Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Neal Norwitz | b44f165 | 2003-05-26 14:11:55 +0000 | [diff] [blame] | 2 | # From configure.in Revision: 1.412 . |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.53 for python 2.3. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 7 | # Free Software Foundation, Inc. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8 | # This configure script is free software; the Free Software Foundation |
| 9 | # gives unlimited permission to copy, distribute and modify it. |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10 | |
| 11 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 12 | as_expr=expr |
| 13 | else |
| 14 | as_expr=false |
| 15 | fi |
| 16 | |
| 17 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18 | ## --------------------- ## |
| 19 | ## M4sh Initialization. ## |
| 20 | ## --------------------- ## |
| 21 | |
| 22 | # Be Bourne compatible |
| 23 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 24 | emulate sh |
| 25 | NULLCMD=: |
| 26 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 27 | set -o posix |
| 28 | fi |
| 29 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 30 | # NLS nuisances. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 31 | # Support unset when possible. |
| 32 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 33 | as_unset=unset |
| 34 | else |
| 35 | as_unset=false |
| 36 | fi |
| 37 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 38 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && |
| 39 | { $as_unset LANG || test "${LANG+set}" != set; } || |
| 40 | { LANG=C; export LANG; } |
| 41 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && |
| 42 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || |
| 43 | { LC_ALL=C; export LC_ALL; } |
| 44 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && |
| 45 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || |
| 46 | { LC_TIME=C; export LC_TIME; } |
| 47 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && |
| 48 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || |
| 49 | { LC_CTYPE=C; export LC_CTYPE; } |
| 50 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && |
| 51 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || |
| 52 | { LANGUAGE=C; export LANGUAGE; } |
| 53 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && |
| 54 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || |
| 55 | { LC_COLLATE=C; export LC_COLLATE; } |
| 56 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && |
| 57 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || |
| 58 | { LC_NUMERIC=C; export LC_NUMERIC; } |
| 59 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && |
| 60 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || |
| 61 | { LC_MESSAGES=C; export LC_MESSAGES; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 62 | |
| 63 | |
| 64 | # Name of the executable. |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 65 | as_me=`(basename "$0") 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 66 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 67 | X"$0" : 'X\(//\)$' \| \ |
| 68 | X"$0" : 'X\(/\)$' \| \ |
| 69 | . : '\(.\)' 2>/dev/null || |
| 70 | echo X/"$0" | |
| 71 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 72 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 73 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 74 | s/.*/./; q'` |
| 75 | |
| 76 | # PATH needs CR, and LINENO needs CR and PATH. |
| 77 | # Avoid depending upon Character Ranges. |
| 78 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 79 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 80 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 81 | as_cr_digits='0123456789' |
| 82 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 83 | |
| 84 | # The user is always right. |
| 85 | if test "${PATH_SEPARATOR+set}" != set; then |
| 86 | echo "#! /bin/sh" >conftest.sh |
| 87 | echo "exit 0" >>conftest.sh |
| 88 | chmod +x conftest.sh |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 89 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 90 | PATH_SEPARATOR=';' |
| 91 | else |
| 92 | PATH_SEPARATOR=: |
| 93 | fi |
| 94 | rm -f conftest.sh |
| 95 | fi |
| 96 | |
| 97 | |
| 98 | as_lineno_1=$LINENO |
| 99 | as_lineno_2=$LINENO |
| 100 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 101 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 102 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 103 | # Find who we are. Look in the path if we contain no path at all |
| 104 | # relative or not. |
| 105 | case $0 in |
| 106 | *[\\/]* ) as_myself=$0 ;; |
| 107 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 108 | for as_dir in $PATH |
| 109 | do |
| 110 | IFS=$as_save_IFS |
| 111 | test -z "$as_dir" && as_dir=. |
| 112 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 113 | done |
| 114 | |
| 115 | ;; |
| 116 | esac |
| 117 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 118 | # in which case we are not to be found in the path. |
| 119 | if test "x$as_myself" = x; then |
| 120 | as_myself=$0 |
| 121 | fi |
| 122 | if test ! -f "$as_myself"; then |
| 123 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 124 | { (exit 1); exit 1; }; } |
| 125 | fi |
| 126 | case $CONFIG_SHELL in |
| 127 | '') |
| 128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 129 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 130 | do |
| 131 | IFS=$as_save_IFS |
| 132 | test -z "$as_dir" && as_dir=. |
| 133 | for as_base in sh bash ksh sh5; do |
| 134 | case $as_dir in |
| 135 | /*) |
| 136 | if ("$as_dir/$as_base" -c ' |
| 137 | as_lineno_1=$LINENO |
| 138 | as_lineno_2=$LINENO |
| 139 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 140 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 141 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 142 | CONFIG_SHELL=$as_dir/$as_base |
| 143 | export CONFIG_SHELL |
| 144 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 145 | fi;; |
| 146 | esac |
| 147 | done |
| 148 | done |
| 149 | ;; |
| 150 | esac |
| 151 | |
| 152 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 153 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 154 | # line-number line before each line; the second 'sed' does the real |
| 155 | # work. The second script uses 'N' to pair each line-number line |
| 156 | # with the numbered line, and appends trailing '-' during |
| 157 | # substitution so that $LINENO is not a special case at line end. |
| 158 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 159 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 160 | sed '=' <$as_myself | |
| 161 | sed ' |
| 162 | N |
| 163 | s,$,-, |
| 164 | : loop |
| 165 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 166 | t loop |
| 167 | s,-$,, |
| 168 | s,^['$as_cr_digits']*\n,, |
| 169 | ' >$as_me.lineno && |
| 170 | chmod +x $as_me.lineno || |
| 171 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 172 | { (exit 1); exit 1; }; } |
| 173 | |
| 174 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 175 | # (the dirname of $[0] is not the place where we might find the |
| 176 | # original and so on. Autoconf is especially sensible to this). |
| 177 | . ./$as_me.lineno |
| 178 | # Exit status is that of the last command. |
| 179 | exit |
| 180 | } |
| 181 | |
| 182 | |
| 183 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 184 | *c*,-n*) ECHO_N= ECHO_C=' |
| 185 | ' ECHO_T=' ' ;; |
| 186 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 187 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 188 | esac |
| 189 | |
| 190 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 191 | as_expr=expr |
| 192 | else |
| 193 | as_expr=false |
| 194 | fi |
| 195 | |
| 196 | rm -f conf$$ conf$$.exe conf$$.file |
| 197 | echo >conf$$.file |
| 198 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 199 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 200 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 201 | if test -f conf$$.exe; then |
| 202 | # Don't use ln at all; we don't have any links |
| 203 | as_ln_s='cp -p' |
| 204 | else |
| 205 | as_ln_s='ln -s' |
| 206 | fi |
| 207 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 208 | as_ln_s=ln |
| 209 | else |
| 210 | as_ln_s='cp -p' |
| 211 | fi |
| 212 | rm -f conf$$ conf$$.exe conf$$.file |
| 213 | |
| 214 | as_executable_p="test -f" |
| 215 | |
| 216 | # Sed expression to map a string onto a valid CPP name. |
| 217 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 218 | |
| 219 | # Sed expression to map a string onto a valid variable name. |
| 220 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 221 | |
| 222 | |
| 223 | # IFS |
| 224 | # We need space, tab and new line, in precisely that order. |
| 225 | as_nl=' |
| 226 | ' |
| 227 | IFS=" $as_nl" |
| 228 | |
| 229 | # CDPATH. |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 230 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 231 | |
| 232 | |
| 233 | # Name of the host. |
| 234 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 235 | # so uname gets run too. |
| 236 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 237 | |
| 238 | exec 6>&1 |
| 239 | |
| 240 | # |
| 241 | # Initializations. |
| 242 | # |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 243 | ac_default_prefix=/usr/local |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 244 | cross_compiling=no |
| 245 | subdirs= |
| 246 | MFLAGS= |
| 247 | MAKEFLAGS= |
| 248 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 249 | |
| 250 | # Maximum number of lines to put in a shell here document. |
| 251 | # This variable seems obsolete. It should probably be removed, and |
| 252 | # only ac_max_sed_lines should be used. |
| 253 | : ${ac_max_here_lines=38} |
| 254 | |
| 255 | # Identity of this package. |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 256 | PACKAGE_NAME='python' |
| 257 | PACKAGE_TARNAME='python' |
| 258 | PACKAGE_VERSION='2.3' |
| 259 | PACKAGE_STRING='python 2.3' |
| 260 | PACKAGE_BUGREPORT='' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 261 | |
| 262 | ac_unique_file="Include/object.h" |
| 263 | # Factoring default headers for most tests. |
| 264 | ac_includes_default="\ |
| 265 | #include <stdio.h> |
| 266 | #if HAVE_SYS_TYPES_H |
| 267 | # include <sys/types.h> |
| 268 | #endif |
| 269 | #if HAVE_SYS_STAT_H |
| 270 | # include <sys/stat.h> |
| 271 | #endif |
| 272 | #if STDC_HEADERS |
| 273 | # include <stdlib.h> |
| 274 | # include <stddef.h> |
| 275 | #else |
| 276 | # if HAVE_STDLIB_H |
| 277 | # include <stdlib.h> |
| 278 | # endif |
| 279 | #endif |
| 280 | #if HAVE_STRING_H |
| 281 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 282 | # include <memory.h> |
| 283 | # endif |
| 284 | # include <string.h> |
| 285 | #endif |
| 286 | #if HAVE_STRINGS_H |
| 287 | # include <strings.h> |
| 288 | #endif |
| 289 | #if HAVE_INTTYPES_H |
| 290 | # include <inttypes.h> |
| 291 | #else |
| 292 | # if HAVE_STDINT_H |
| 293 | # include <stdint.h> |
| 294 | # endif |
| 295 | #endif |
| 296 | #if HAVE_UNISTD_H |
| 297 | # include <unistd.h> |
| 298 | #endif" |
| 299 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 300 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 301 | # Initialize some variables set by options. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 302 | ac_init_help= |
| 303 | ac_init_version=false |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 304 | # The variables have the same names as the options, with |
| 305 | # dashes changed to underlines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 306 | cache_file=/dev/null |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 307 | exec_prefix=NONE |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 308 | no_create= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 309 | no_recursion= |
| 310 | prefix=NONE |
| 311 | program_prefix=NONE |
| 312 | program_suffix=NONE |
| 313 | program_transform_name=s,x,x, |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 314 | silent= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 315 | site= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 316 | srcdir= |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 317 | verbose= |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 318 | x_includes=NONE |
| 319 | x_libraries=NONE |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 320 | |
| 321 | # Installation directory options. |
| 322 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 323 | # and all the variables that are supposed to be based on exec_prefix |
| 324 | # by default will actually change. |
| 325 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 326 | bindir='${exec_prefix}/bin' |
| 327 | sbindir='${exec_prefix}/sbin' |
| 328 | libexecdir='${exec_prefix}/libexec' |
| 329 | datadir='${prefix}/share' |
| 330 | sysconfdir='${prefix}/etc' |
| 331 | sharedstatedir='${prefix}/com' |
| 332 | localstatedir='${prefix}/var' |
| 333 | libdir='${exec_prefix}/lib' |
| 334 | includedir='${prefix}/include' |
| 335 | oldincludedir='/usr/include' |
| 336 | infodir='${prefix}/info' |
| 337 | mandir='${prefix}/man' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 338 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 339 | ac_prev= |
| 340 | for ac_option |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 341 | do |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 342 | # If the previous option needs an argument, assign it. |
| 343 | if test -n "$ac_prev"; then |
| 344 | eval "$ac_prev=\$ac_option" |
| 345 | ac_prev= |
| 346 | continue |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 347 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 348 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 349 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 350 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 351 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 352 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 353 | case $ac_option in |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 354 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 355 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 356 | ac_prev=bindir ;; |
| 357 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 358 | bindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 359 | |
| 360 | -build | --build | --buil | --bui | --bu) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 361 | ac_prev=build_alias ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 362 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 363 | build_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 364 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 365 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 366 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 367 | ac_prev=cache_file ;; |
| 368 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 369 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 370 | cache_file=$ac_optarg ;; |
| 371 | |
| 372 | --config-cache | -C) |
| 373 | cache_file=config.cache ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 374 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 375 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 376 | ac_prev=datadir ;; |
| 377 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 378 | | --da=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 379 | datadir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 380 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 381 | -disable-* | --disable-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 382 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 383 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 384 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 385 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 386 | { (exit 1); exit 1; }; } |
| 387 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 388 | eval "enable_$ac_feature=no" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 389 | |
| 390 | -enable-* | --enable-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 391 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 392 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 393 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 394 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 395 | { (exit 1); exit 1; }; } |
| 396 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 397 | case $ac_option in |
| 398 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 399 | *) ac_optarg=yes ;; |
| 400 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 401 | eval "enable_$ac_feature='$ac_optarg'" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 402 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 403 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 404 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 405 | | --exec | --exe | --ex) |
| 406 | ac_prev=exec_prefix ;; |
| 407 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 408 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 409 | | --exec=* | --exe=* | --ex=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 410 | exec_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 411 | |
| 412 | -gas | --gas | --ga | --g) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 413 | # Obsolete; use --with-gas. |
| 414 | with_gas=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 415 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 416 | -help | --help | --hel | --he | -h) |
| 417 | ac_init_help=long ;; |
| 418 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 419 | ac_init_help=recursive ;; |
| 420 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 421 | ac_init_help=short ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 422 | |
| 423 | -host | --host | --hos | --ho) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 424 | ac_prev=host_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 425 | -host=* | --host=* | --hos=* | --ho=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 426 | host_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 427 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 428 | -includedir | --includedir | --includedi | --included | --include \ |
| 429 | | --includ | --inclu | --incl | --inc) |
| 430 | ac_prev=includedir ;; |
| 431 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 432 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 433 | includedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 434 | |
| 435 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 436 | ac_prev=infodir ;; |
| 437 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 438 | infodir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 439 | |
| 440 | -libdir | --libdir | --libdi | --libd) |
| 441 | ac_prev=libdir ;; |
| 442 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 443 | libdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 444 | |
| 445 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 446 | | --libexe | --libex | --libe) |
| 447 | ac_prev=libexecdir ;; |
| 448 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 449 | | --libexe=* | --libex=* | --libe=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 450 | libexecdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 451 | |
| 452 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 453 | | --localstate | --localstat | --localsta | --localst \ |
| 454 | | --locals | --local | --loca | --loc | --lo) |
| 455 | ac_prev=localstatedir ;; |
| 456 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 457 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 458 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 459 | localstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 460 | |
| 461 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 462 | ac_prev=mandir ;; |
| 463 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 464 | mandir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 465 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 466 | -nfp | --nfp | --nf) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 467 | # Obsolete; use --without-fp. |
| 468 | with_fp=no ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 469 | |
| 470 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 471 | | --no-cr | --no-c | -n) |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 472 | no_create=yes ;; |
| 473 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 474 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 475 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 476 | no_recursion=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 477 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 478 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 479 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 480 | | --oldin | --oldi | --old | --ol | --o) |
| 481 | ac_prev=oldincludedir ;; |
| 482 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 483 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 484 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 485 | oldincludedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 486 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 487 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 488 | ac_prev=prefix ;; |
| 489 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 490 | prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 491 | |
| 492 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 493 | | --program-pre | --program-pr | --program-p) |
| 494 | ac_prev=program_prefix ;; |
| 495 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 496 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 497 | program_prefix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 498 | |
| 499 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 500 | | --program-suf | --program-su | --program-s) |
| 501 | ac_prev=program_suffix ;; |
| 502 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 503 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 504 | program_suffix=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 505 | |
| 506 | -program-transform-name | --program-transform-name \ |
| 507 | | --program-transform-nam | --program-transform-na \ |
| 508 | | --program-transform-n | --program-transform- \ |
| 509 | | --program-transform | --program-transfor \ |
| 510 | | --program-transfo | --program-transf \ |
| 511 | | --program-trans | --program-tran \ |
| 512 | | --progr-tra | --program-tr | --program-t) |
| 513 | ac_prev=program_transform_name ;; |
| 514 | -program-transform-name=* | --program-transform-name=* \ |
| 515 | | --program-transform-nam=* | --program-transform-na=* \ |
| 516 | | --program-transform-n=* | --program-transform-=* \ |
| 517 | | --program-transform=* | --program-transfor=* \ |
| 518 | | --program-transfo=* | --program-transf=* \ |
| 519 | | --program-trans=* | --program-tran=* \ |
| 520 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 521 | program_transform_name=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 522 | |
| 523 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 524 | | -silent | --silent | --silen | --sile | --sil) |
| 525 | silent=yes ;; |
| 526 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 527 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 528 | ac_prev=sbindir ;; |
| 529 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 530 | | --sbi=* | --sb=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 531 | sbindir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 532 | |
| 533 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 534 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 535 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 536 | | --sha | --sh) |
| 537 | ac_prev=sharedstatedir ;; |
| 538 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 539 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 540 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 541 | | --sha=* | --sh=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 542 | sharedstatedir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 543 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 544 | -site | --site | --sit) |
| 545 | ac_prev=site ;; |
| 546 | -site=* | --site=* | --sit=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 547 | site=$ac_optarg ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 548 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 549 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 550 | ac_prev=srcdir ;; |
| 551 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 552 | srcdir=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 553 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 554 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 555 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 556 | ac_prev=sysconfdir ;; |
| 557 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 558 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 559 | sysconfdir=$ac_optarg ;; |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 560 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 561 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 562 | ac_prev=target_alias ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 563 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 564 | target_alias=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 565 | |
| 566 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 567 | verbose=yes ;; |
| 568 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 569 | -version | --version | --versio | --versi | --vers | -V) |
| 570 | ac_init_version=: ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 571 | |
| 572 | -with-* | --with-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 573 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 574 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 575 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 576 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 577 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 578 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 579 | case $ac_option in |
| 580 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 581 | *) ac_optarg=yes ;; |
| 582 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 583 | eval "with_$ac_package='$ac_optarg'" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 584 | |
| 585 | -without-* | --without-*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 586 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 587 | # Reject names that are not valid shell variable names. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 588 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 589 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 590 | { (exit 1); exit 1; }; } |
| 591 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 592 | eval "with_$ac_package=no" ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 593 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 594 | --x) |
| 595 | # Obsolete; use --with-x. |
| 596 | with_x=yes ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 597 | |
| 598 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 599 | | --x-incl | --x-inc | --x-in | --x-i) |
| 600 | ac_prev=x_includes ;; |
| 601 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 602 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 603 | x_includes=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 604 | |
| 605 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 606 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 607 | ac_prev=x_libraries ;; |
| 608 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 609 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 610 | x_libraries=$ac_optarg ;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 611 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 612 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 613 | Try \`$0 --help' for more information." >&2 |
| 614 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 615 | ;; |
| 616 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 617 | *=*) |
| 618 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 619 | # Reject names that are not valid shell variable names. |
| 620 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 621 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 622 | { (exit 1); exit 1; }; } |
| 623 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 624 | eval "$ac_envvar='$ac_optarg'" |
| 625 | export $ac_envvar ;; |
| 626 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 627 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 628 | # FIXME: should be removed in autoconf 3.0. |
| 629 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 630 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 631 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 632 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 633 | ;; |
| 634 | |
| 635 | esac |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 636 | done |
| 637 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 638 | if test -n "$ac_prev"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 639 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 640 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 641 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 642 | fi |
| 643 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 644 | # Be sure to have absolute paths. |
| 645 | for ac_var in exec_prefix prefix |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 646 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 647 | eval ac_val=$`echo $ac_var` |
| 648 | case $ac_val in |
| 649 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 650 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 651 | { (exit 1); exit 1; }; };; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 652 | esac |
| 653 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 654 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 655 | # Be sure to have absolute paths. |
| 656 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 657 | localstatedir libdir includedir oldincludedir infodir mandir |
| 658 | do |
| 659 | eval ac_val=$`echo $ac_var` |
| 660 | case $ac_val in |
| 661 | [\\/$]* | ?:[\\/]* ) ;; |
| 662 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 663 | { (exit 1); exit 1; }; };; |
| 664 | esac |
| 665 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 666 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 667 | # There might be people who depend on the old broken behavior: `$host' |
| 668 | # used to hold the argument of --host etc. |
| 669 | # FIXME: To remove some day. |
| 670 | build=$build_alias |
| 671 | host=$host_alias |
| 672 | target=$target_alias |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 673 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 674 | # FIXME: To remove some day. |
| 675 | if test "x$host_alias" != x; then |
| 676 | if test "x$build_alias" = x; then |
| 677 | cross_compiling=maybe |
| 678 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 679 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 680 | elif test "x$build_alias" != "x$host_alias"; then |
| 681 | cross_compiling=yes |
| 682 | fi |
| 683 | fi |
| 684 | |
| 685 | ac_tool_prefix= |
| 686 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 687 | |
| 688 | test "$silent" = yes && exec 6>/dev/null |
| 689 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 690 | |
| 691 | # Find the source files, if location was not specified. |
| 692 | if test -z "$srcdir"; then |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 693 | ac_srcdir_defaulted=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 694 | # Try the directory containing this script, then its parent. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 695 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 696 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 697 | X"$0" : 'X\(//\)[^/]' \| \ |
| 698 | X"$0" : 'X\(//\)$' \| \ |
| 699 | X"$0" : 'X\(/\)' \| \ |
| 700 | . : '\(.\)' 2>/dev/null || |
| 701 | echo X"$0" | |
| 702 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 703 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 704 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 705 | /^X\(\/\).*/{ s//\1/; q; } |
| 706 | s/.*/./; q'` |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 707 | srcdir=$ac_confdir |
| 708 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 709 | srcdir=.. |
| 710 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 711 | else |
| 712 | ac_srcdir_defaulted=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 713 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 714 | if test ! -r $srcdir/$ac_unique_file; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 715 | if test "$ac_srcdir_defaulted" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 716 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 717 | { (exit 1); exit 1; }; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 718 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 719 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 720 | { (exit 1); exit 1; }; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 721 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 722 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 723 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 724 | ac_env_build_alias_set=${build_alias+set} |
| 725 | ac_env_build_alias_value=$build_alias |
| 726 | ac_cv_env_build_alias_set=${build_alias+set} |
| 727 | ac_cv_env_build_alias_value=$build_alias |
| 728 | ac_env_host_alias_set=${host_alias+set} |
| 729 | ac_env_host_alias_value=$host_alias |
| 730 | ac_cv_env_host_alias_set=${host_alias+set} |
| 731 | ac_cv_env_host_alias_value=$host_alias |
| 732 | ac_env_target_alias_set=${target_alias+set} |
| 733 | ac_env_target_alias_value=$target_alias |
| 734 | ac_cv_env_target_alias_set=${target_alias+set} |
| 735 | ac_cv_env_target_alias_value=$target_alias |
| 736 | ac_env_CC_set=${CC+set} |
| 737 | ac_env_CC_value=$CC |
| 738 | ac_cv_env_CC_set=${CC+set} |
| 739 | ac_cv_env_CC_value=$CC |
| 740 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 741 | ac_env_CFLAGS_value=$CFLAGS |
| 742 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 743 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 744 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 745 | ac_env_LDFLAGS_value=$LDFLAGS |
| 746 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 747 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 748 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 749 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 750 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 751 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 752 | ac_env_CPP_set=${CPP+set} |
| 753 | ac_env_CPP_value=$CPP |
| 754 | ac_cv_env_CPP_set=${CPP+set} |
| 755 | ac_cv_env_CPP_value=$CPP |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 756 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 757 | # |
| 758 | # Report the --help message. |
| 759 | # |
| 760 | if test "$ac_init_help" = "long"; then |
| 761 | # Omit some internal or obsolete options to make the list less imposing. |
| 762 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 763 | cat <<_ACEOF |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 764 | \`configure' configures python 2.3 to adapt to many kinds of systems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 765 | |
| 766 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 767 | |
| 768 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 769 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 770 | |
| 771 | Defaults for the options are specified in brackets. |
| 772 | |
| 773 | Configuration: |
| 774 | -h, --help display this help and exit |
| 775 | --help=short display options specific to this package |
| 776 | --help=recursive display the short help of all the included packages |
| 777 | -V, --version display version information and exit |
| 778 | -q, --quiet, --silent do not print \`checking...' messages |
| 779 | --cache-file=FILE cache test results in FILE [disabled] |
| 780 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 781 | -n, --no-create do not create output files |
| 782 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 783 | |
| 784 | _ACEOF |
| 785 | |
| 786 | cat <<_ACEOF |
| 787 | Installation directories: |
| 788 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 789 | [$ac_default_prefix] |
| 790 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 791 | [PREFIX] |
| 792 | |
| 793 | By default, \`make install' will install all the files in |
| 794 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 795 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 796 | for instance \`--prefix=\$HOME'. |
| 797 | |
| 798 | For better control, use the options below. |
| 799 | |
| 800 | Fine tuning of the installation directories: |
| 801 | --bindir=DIR user executables [EPREFIX/bin] |
| 802 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 803 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 804 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 805 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 806 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 807 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 808 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 809 | --includedir=DIR C header files [PREFIX/include] |
| 810 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 811 | --infodir=DIR info documentation [PREFIX/info] |
| 812 | --mandir=DIR man documentation [PREFIX/man] |
| 813 | _ACEOF |
| 814 | |
| 815 | cat <<\_ACEOF |
| 816 | _ACEOF |
| 817 | fi |
| 818 | |
| 819 | if test -n "$ac_init_help"; then |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 820 | case $ac_init_help in |
| 821 | short | recursive ) echo "Configuration of python 2.3:";; |
| 822 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 823 | cat <<\_ACEOF |
| 824 | |
| 825 | Optional Features: |
| 826 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 827 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 828 | --enable-framework[=INSTALLDIR] |
| 829 | Build (MacOSX|Darwin) framework |
| 830 | --enable-shared disable/enable building shared python library |
| 831 | --enable-toolbox-glue disable/enable MacOSX glue code for extensions |
| 832 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 833 | --disable-ipv6 Disable ipv6 support |
| 834 | --enable-unicode[=ucs[24]] |
| 835 | Enable Unicode strings (default is yes) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 836 | |
| 837 | Optional Packages: |
| 838 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 839 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 840 | --without-gcc never use gcc |
| 841 | --with-cxx=<compiler> enable C++ support |
| 842 | --with-suffix=.exe set executable suffix |
| 843 | --with-pydebug build with Py_DEBUG defined |
| 844 | --with-libs='lib1 ...' link against additional libs |
| 845 | --with-signal-module disable/enable signal module |
| 846 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 847 | --with(out)-threads[=DIRECTORY] |
| 848 | disable/enable thread support |
| 849 | --with(out)-thread[=DIRECTORY] |
| 850 | deprecated; use --with(out)-threads |
| 851 | --with-pth use GNU pth threading libraries |
| 852 | --with(out)-universal-newlines |
| 853 | disable/enable foreign newlines |
| 854 | --with(out)-doc-strings disable/enable documentation strings |
| 855 | --with(out)-pymalloc disable/enable specialized mallocs |
| 856 | --with-wctype-functions use wctype.h functions |
| 857 | --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking |
| 858 | --with-dl-dld=DL_DIR GNU dynamic linking |
| 859 | --with-fpectl enable SIGFPE catching |
| 860 | --with-libm=STRING math library |
| 861 | --with-libc=STRING C library |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 862 | |
| 863 | Some influential environment variables: |
| 864 | CC C compiler command |
| 865 | CFLAGS C compiler flags |
| 866 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 867 | nonstandard directory <lib dir> |
| 868 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 869 | headers in a nonstandard directory <include dir> |
| 870 | CPP C preprocessor |
| 871 | |
| 872 | Use these variables to override the choices made by `configure' or to help |
| 873 | it to find libraries and programs with nonstandard names/locations. |
| 874 | |
| 875 | _ACEOF |
| 876 | fi |
| 877 | |
| 878 | if test "$ac_init_help" = "recursive"; then |
| 879 | # If there are subdirs, report their specific --help. |
| 880 | ac_popdir=`pwd` |
| 881 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 882 | test -d $ac_dir || continue |
| 883 | ac_builddir=. |
| 884 | |
| 885 | if test "$ac_dir" != .; then |
| 886 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 887 | # A "../" for each directory in $ac_dir_suffix. |
| 888 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 889 | else |
| 890 | ac_dir_suffix= ac_top_builddir= |
| 891 | fi |
| 892 | |
| 893 | case $srcdir in |
| 894 | .) # No --srcdir option. We are building in place. |
| 895 | ac_srcdir=. |
| 896 | if test -z "$ac_top_builddir"; then |
| 897 | ac_top_srcdir=. |
| 898 | else |
| 899 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 900 | fi ;; |
| 901 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 902 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 903 | ac_top_srcdir=$srcdir ;; |
| 904 | *) # Relative path. |
| 905 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 906 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 907 | esac |
| 908 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 909 | # absolute. |
| 910 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
Martin v. Löwis | 858f817 | 2003-05-24 12:35:47 +0000 | [diff] [blame] | 911 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 912 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 913 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 914 | |
| 915 | cd $ac_dir |
| 916 | # Check for guested configure; otherwise get Cygnus style configure. |
| 917 | if test -f $ac_srcdir/configure.gnu; then |
| 918 | echo |
| 919 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 920 | elif test -f $ac_srcdir/configure; then |
| 921 | echo |
| 922 | $SHELL $ac_srcdir/configure --help=recursive |
| 923 | elif test -f $ac_srcdir/configure.ac || |
| 924 | test -f $ac_srcdir/configure.in; then |
| 925 | echo |
| 926 | $ac_configure --help |
| 927 | else |
| 928 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 929 | fi |
| 930 | cd $ac_popdir |
| 931 | done |
| 932 | fi |
| 933 | |
| 934 | test -n "$ac_init_help" && exit 0 |
| 935 | if $ac_init_version; then |
| 936 | cat <<\_ACEOF |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 937 | python configure 2.3 |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 938 | generated by GNU Autoconf 2.53 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 939 | |
| 940 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 941 | Free Software Foundation, Inc. |
| 942 | This configure script is free software; the Free Software Foundation |
| 943 | gives unlimited permission to copy, distribute and modify it. |
| 944 | _ACEOF |
| 945 | exit 0 |
| 946 | fi |
| 947 | exec 5>config.log |
| 948 | cat >&5 <<_ACEOF |
| 949 | This file contains any messages produced by compilers while |
| 950 | running configure, to aid debugging if configure makes a mistake. |
| 951 | |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 952 | It was created by python $as_me 2.3, which was |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 953 | generated by GNU Autoconf 2.53. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 954 | |
| 955 | $ $0 $@ |
| 956 | |
| 957 | _ACEOF |
| 958 | { |
| 959 | cat <<_ASUNAME |
| 960 | ## --------- ## |
| 961 | ## Platform. ## |
| 962 | ## --------- ## |
| 963 | |
| 964 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 965 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 966 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 967 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 968 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 969 | |
| 970 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 971 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 972 | |
| 973 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 974 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 975 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 976 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 977 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 978 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 979 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 980 | |
| 981 | _ASUNAME |
| 982 | |
| 983 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 984 | for as_dir in $PATH |
| 985 | do |
| 986 | IFS=$as_save_IFS |
| 987 | test -z "$as_dir" && as_dir=. |
| 988 | echo "PATH: $as_dir" |
| 989 | done |
| 990 | |
| 991 | } >&5 |
| 992 | |
| 993 | cat >&5 <<_ACEOF |
| 994 | |
| 995 | |
| 996 | ## ----------- ## |
| 997 | ## Core tests. ## |
| 998 | ## ----------- ## |
| 999 | |
| 1000 | _ACEOF |
| 1001 | |
| 1002 | |
| 1003 | # Keep a trace of the command line. |
| 1004 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1005 | # Also quote any args containing shell meta-characters. |
| 1006 | ac_configure_args= |
| 1007 | ac_sep= |
| 1008 | for ac_arg |
| 1009 | do |
| 1010 | case $ac_arg in |
| 1011 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1012 | | --no-cr | --no-c | -n ) continue ;; |
| 1013 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1014 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1015 | continue ;; |
| 1016 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1017 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1018 | esac |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1019 | case " $ac_configure_args " in |
| 1020 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1021 | *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1022 | ac_sep=" " ;; |
| 1023 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1024 | # Get rid of the leading space. |
| 1025 | done |
| 1026 | |
| 1027 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1028 | # config.log. We remove comments because anyway the quotes in there |
| 1029 | # would cause problems or look ugly. |
| 1030 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1031 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1032 | trap 'exit_status=$? |
| 1033 | # Save into config.log some information that might help in debugging. |
| 1034 | { |
| 1035 | echo |
| 1036 | cat <<\_ASBOX |
| 1037 | ## ---------------- ## |
| 1038 | ## Cache variables. ## |
| 1039 | ## ---------------- ## |
| 1040 | _ASBOX |
| 1041 | echo |
| 1042 | # The following way of writing the cache mishandles newlines in values, |
| 1043 | { |
| 1044 | (set) 2>&1 | |
| 1045 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1046 | *ac_space=\ *) |
| 1047 | sed -n \ |
| 1048 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1049 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1050 | ;; |
| 1051 | *) |
| 1052 | sed -n \ |
| 1053 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1054 | ;; |
| 1055 | esac; |
| 1056 | } |
| 1057 | echo |
| 1058 | if test -s confdefs.h; then |
| 1059 | cat <<\_ASBOX |
| 1060 | ## ----------- ## |
| 1061 | ## confdefs.h. ## |
| 1062 | ## ----------- ## |
| 1063 | _ASBOX |
| 1064 | echo |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1065 | sed "/^$/d" confdefs.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1066 | echo |
| 1067 | fi |
| 1068 | test "$ac_signal" != 0 && |
| 1069 | echo "$as_me: caught signal $ac_signal" |
| 1070 | echo "$as_me: exit $exit_status" |
| 1071 | } >&5 |
| 1072 | rm -f core core.* *.core && |
| 1073 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1074 | exit $exit_status |
| 1075 | ' 0 |
| 1076 | for ac_signal in 1 2 13 15; do |
| 1077 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1078 | done |
| 1079 | ac_signal=0 |
| 1080 | |
| 1081 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1082 | rm -rf conftest* confdefs.h |
| 1083 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1084 | echo >confdefs.h |
| 1085 | |
| 1086 | # Predefined preprocessor variables. |
| 1087 | |
| 1088 | cat >>confdefs.h <<_ACEOF |
| 1089 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1090 | _ACEOF |
| 1091 | |
| 1092 | |
| 1093 | cat >>confdefs.h <<_ACEOF |
| 1094 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1095 | _ACEOF |
| 1096 | |
| 1097 | |
| 1098 | cat >>confdefs.h <<_ACEOF |
| 1099 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1100 | _ACEOF |
| 1101 | |
| 1102 | |
| 1103 | cat >>confdefs.h <<_ACEOF |
| 1104 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1105 | _ACEOF |
| 1106 | |
| 1107 | |
| 1108 | cat >>confdefs.h <<_ACEOF |
| 1109 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1110 | _ACEOF |
| 1111 | |
| 1112 | |
| 1113 | # Let the site file select an alternate cache file if it wants to. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1114 | # Prefer explicitly selected file to automatically selected ones. |
| 1115 | if test -z "$CONFIG_SITE"; then |
| 1116 | if test "x$prefix" != xNONE; then |
| 1117 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1118 | else |
| 1119 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1120 | fi |
| 1121 | fi |
| 1122 | for ac_site_file in $CONFIG_SITE; do |
| 1123 | if test -r "$ac_site_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1124 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1125 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1126 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1127 | . "$ac_site_file" |
| 1128 | fi |
| 1129 | done |
| 1130 | |
| 1131 | if test -r "$cache_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1132 | # Some versions of bash will fail to source /dev/null (special |
| 1133 | # files actually), so we avoid doing that. |
| 1134 | if test -f "$cache_file"; then |
| 1135 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1136 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1137 | case $cache_file in |
| 1138 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1139 | *) . ./$cache_file;; |
| 1140 | esac |
| 1141 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1142 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1143 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1144 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1145 | >$cache_file |
| 1146 | fi |
| 1147 | |
| 1148 | # Check that the precious variables saved in the cache have kept the same |
| 1149 | # value. |
| 1150 | ac_cache_corrupted=false |
| 1151 | for ac_var in `(set) 2>&1 | |
| 1152 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1153 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1154 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1155 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1156 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1157 | case $ac_old_set,$ac_new_set in |
| 1158 | set,) |
| 1159 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1160 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1161 | ac_cache_corrupted=: ;; |
| 1162 | ,set) |
| 1163 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1164 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1165 | ac_cache_corrupted=: ;; |
| 1166 | ,);; |
| 1167 | *) |
| 1168 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1169 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1170 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1171 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1172 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1173 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1174 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1175 | ac_cache_corrupted=: |
| 1176 | fi;; |
| 1177 | esac |
| 1178 | # Pass precious variables to config.status. |
| 1179 | if test "$ac_new_set" = set; then |
| 1180 | case $ac_new_val in |
| 1181 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1182 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1183 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1184 | esac |
| 1185 | case " $ac_configure_args " in |
| 1186 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1187 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1188 | esac |
| 1189 | fi |
| 1190 | done |
| 1191 | if $ac_cache_corrupted; then |
| 1192 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1193 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1194 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1195 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1196 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1197 | fi |
| 1198 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1199 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1200 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1201 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1202 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1203 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1204 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1205 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1206 | |
| 1207 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1208 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1209 | |
| 1210 | |
| 1211 | |
| 1212 | |
| 1213 | |
| 1214 | |
| 1215 | |
| 1216 | |
| 1217 | |
| 1218 | |
| 1219 | |
| 1220 | |
| 1221 | |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1222 | |
| 1223 | |
| 1224 | |
| 1225 | |
| 1226 | |
| 1227 | |
| 1228 | |
| 1229 | |
| 1230 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1231 | ac_config_headers="$ac_config_headers pyconfig.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1232 | |
| 1233 | |
| 1234 | # This is for stuff that absolutely must end up in pyconfig.h. |
| 1235 | # Please use pyport.h instead, if possible. |
| 1236 | |
| 1237 | |
| 1238 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1239 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1240 | |
| 1241 | |
Andrew M. Kuchling | f2f219d | 2002-02-11 16:31:10 +0000 | [diff] [blame] | 1242 | VERSION=2.3 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1243 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1244 | |
| 1245 | SOVERSION=1.0 |
| 1246 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1247 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1248 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1249 | |
| 1250 | cat >>confdefs.h <<\_ACEOF |
| 1251 | #define _GNU_SOURCE 1 |
| 1252 | _ACEOF |
| 1253 | |
| 1254 | |
Martin v. Löwis | bcd9396 | 2003-05-03 10:32:18 +0000 | [diff] [blame] | 1255 | # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
| 1256 | # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable |
| 1257 | # them. |
| 1258 | |
| 1259 | cat >>confdefs.h <<\_ACEOF |
| 1260 | #define _NETBSD_SOURCE 1 |
| 1261 | _ACEOF |
| 1262 | |
| 1263 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1264 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1265 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1266 | # Arguments passed to configure. |
| 1267 | |
| 1268 | CONFIG_ARGS="$ac_configure_args" |
| 1269 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1270 | # Check whether --enable-framework or --disable-framework was given. |
| 1271 | if test "${enable_framework+set}" = set; then |
| 1272 | enableval="$enable_framework" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1273 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1274 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1275 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1276 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1277 | esac |
| 1278 | case $enableval in |
| 1279 | no) |
| 1280 | PYTHONFRAMEWORK= |
| 1281 | PYTHONFRAMEWORKDIR=no-framework |
| 1282 | PYTHONFRAMEWORKPREFIX= |
| 1283 | PYTHONFRAMEWORKINSTALLDIR= |
| 1284 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1285 | ;; |
| 1286 | *) |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1287 | PYTHONFRAMEWORK=Python |
| 1288 | PYTHONFRAMEWORKDIR=Python.framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1289 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1290 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
| 1291 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1292 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1293 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1294 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1295 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1296 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1297 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1298 | PYTHONFRAMEWORKPREFIX= |
| 1299 | PYTHONFRAMEWORKINSTALLDIR= |
| 1300 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1301 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1302 | fi; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1303 | |
| 1304 | |
| 1305 | |
| 1306 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1307 | |
| 1308 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1309 | ## AC_HELP_STRING(--with-dyld, |
| 1310 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1311 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1312 | # Set name for machine-dependent library files |
| 1313 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1314 | echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 1315 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1316 | if test -z "$MACHDEP" |
| 1317 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1318 | ac_sys_system=`uname -s` |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 1319 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \ |
| 1320 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1321 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1322 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1323 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1324 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1325 | ac_md_system=`echo $ac_sys_system | |
| 1326 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 1327 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 1328 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1329 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1330 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 1331 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 1332 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 1333 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 1334 | atheos*) MACHDEP="atheos";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1335 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1336 | esac |
| 1337 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1338 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1339 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 1340 | # disable features if it is defined, without any means to access these |
| 1341 | # features as extensions. For these systems, we skip the definition of |
| 1342 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 1343 | # some feature, make sure there is no alternative way to access this |
| 1344 | # feature. Also, when using wildcards, make sure you have verified the |
| 1345 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 1346 | # wildcard, and that the wildcard does not include future systems |
| 1347 | # (which may remove their limitations). |
| 1348 | case $ac_sys_system/$ac_sys_release in |
| 1349 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 1350 | # even though select is a POSIX function. Reported by J. Ribbens. |
Martin v. Löwis | 858f817 | 2003-05-24 12:35:47 +0000 | [diff] [blame] | 1351 | # Reconfirmed for OpenBSD 3.3 by Zachary Hamm. |
| 1352 | OpenBSD/2.* | OpenBSD/3.[0123]) |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1353 | define_xopen_source=no;; |
Martin v. Löwis | a9d7142 | 2003-03-28 18:43:31 +0000 | [diff] [blame] | 1354 | # On Solaris 2.6, sys/wait.h is inconsistent in the usage |
| 1355 | # of union __?sigval. Reported by Stuart Bishop. |
| 1356 | SunOS/5.6) |
| 1357 | define_xopen_source=no;; |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 1358 | # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, |
| 1359 | # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. |
| 1360 | OpenUNIX/8.0.0| UnixWare/7.1.[0-3]) |
| 1361 | define_xopen_source=no;; |
| 1362 | # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE, |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 1363 | # but used in struct sockaddr.sa_family. Reported by Tim Rice. |
Martin v. Löwis | c2409b4 | 2003-05-11 05:53:41 +0000 | [diff] [blame] | 1364 | SCO_SV/3.2) |
Martin v. Löwis | 53e73c3 | 2003-05-05 05:13:18 +0000 | [diff] [blame] | 1365 | define_xopen_source=no;; |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1366 | esac |
| 1367 | |
| 1368 | if test $define_xopen_source = yes |
| 1369 | then |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1370 | |
| 1371 | cat >>confdefs.h <<\_ACEOF |
| 1372 | #define _XOPEN_SOURCE 600 |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1373 | _ACEOF |
| 1374 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1375 | |
| 1376 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 1377 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 1378 | # several APIs are not declared. Since this is also needed in some |
| 1379 | # cases for HP-UX, we define it globally. |
| 1380 | |
| 1381 | |
| 1382 | cat >>confdefs.h <<\_ACEOF |
| 1383 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 1384 | _ACEOF |
| 1385 | |
| 1386 | |
| 1387 | cat >>confdefs.h <<\_ACEOF |
| 1388 | #define _POSIX_C_SOURCE 200112L |
| 1389 | _ACEOF |
| 1390 | |
| 1391 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1392 | fi |
| 1393 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1394 | # |
| 1395 | # SGI compilers allow the specification of the both the ABI and the |
| 1396 | # ISA on the command line. Depending on the values of these switches, |
| 1397 | # different and often incompatable code will be generated. |
| 1398 | # |
| 1399 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 1400 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 1401 | # variable is also adjusted. |
| 1402 | # |
| 1403 | |
| 1404 | if test ! -z "$SGI_ABI" |
| 1405 | then |
| 1406 | CC="cc $SGI_ABI" |
| 1407 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 1408 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 1409 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1410 | echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 1411 | echo "${ECHO_T}$MACHDEP" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1412 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1413 | # And add extra plat-mac for darwin |
| 1414 | |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 1415 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1416 | echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5 |
| 1417 | echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6 |
| 1418 | if test -z "$EXTRAPLATDIR" |
| 1419 | then |
| 1420 | case $MACHDEP in |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 1421 | darwin) |
| 1422 | EXTRAPLATDIR="\$(PLATMACDIRS)" |
| 1423 | EXTRAMACHDEPPATH="\$(PLATMACPATH)" |
| 1424 | ;; |
| 1425 | *) |
| 1426 | EXTRAPLATDIR="" |
| 1427 | EXTRAMACHDEPPATH="" |
| 1428 | ;; |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 1429 | esac |
| 1430 | fi |
| 1431 | echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5 |
| 1432 | echo "${ECHO_T}$EXTRAPLATDIR" >&6 |
| 1433 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1434 | # checks for alternative programs |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1435 | |
| 1436 | # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just |
| 1437 | # for debug/optimization stuff. BASECFLAGS is for flags that are required |
| 1438 | # just to get things to compile and link. Users are free to override OPT |
| 1439 | # when running configure or make. The build should not break if they do. |
| 1440 | # BASECFLAGS should generally not be messed with, however. |
| 1441 | |
| 1442 | # XXX shouldn't some/most/all of this code be merged with the stuff later |
| 1443 | # on that fiddles with OPT and BASECFLAGS? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1444 | echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 1445 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6 |
| 1446 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1447 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1448 | if test "${with_gcc+set}" = set; then |
| 1449 | withval="$with_gcc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1450 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1451 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1452 | no) CC=cc |
| 1453 | without_gcc=yes;; |
| 1454 | yes) CC=gcc |
| 1455 | without_gcc=no;; |
| 1456 | *) CC=$withval |
| 1457 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1458 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1459 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1460 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1461 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1462 | AIX*) CC=cc_r |
| 1463 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1464 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1465 | case $BE_HOST_CPU in |
| 1466 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1467 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1468 | without_gcc=yes |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1469 | BASECFLAGS="$BASECFLAGS -export pragma" |
| 1470 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1471 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1472 | ;; |
| 1473 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1474 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1475 | without_gcc=no |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 1476 | OPT="$OPT -O" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1477 | ;; |
| 1478 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1479 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 1480 | echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
| 1481 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1482 | ;; |
| 1483 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1484 | AR="\$(srcdir)/Modules/ar_beos" |
| 1485 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1486 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1487 | Monterey*) |
| 1488 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1489 | without_gcc=;; |
| 1490 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1491 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1492 | fi; |
| 1493 | echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 1494 | echo "${ECHO_T}$without_gcc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1495 | |
| 1496 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1497 | |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1498 | MAINOBJ=python.o |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1499 | echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5 |
| 1500 | echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6 |
| 1501 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1502 | # Check whether --with-cxx or --without-cxx was given. |
| 1503 | if test "${with_cxx+set}" = set; then |
| 1504 | withval="$with_cxx" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1505 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1506 | check_cxx=no |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1507 | case $withval in |
| 1508 | no) CXX= |
| 1509 | with_cxx=no;; |
| 1510 | *) CXX=$withval |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1511 | MAINOBJ=ccpython.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1512 | with_cxx=$withval;; |
| 1513 | esac |
| 1514 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1515 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1516 | with_cxx=no |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1517 | check_cxx=yes |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1518 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1519 | fi; |
| 1520 | echo "$as_me:$LINENO: result: $with_cxx" >&5 |
| 1521 | echo "${ECHO_T}$with_cxx" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1522 | |
| 1523 | if test "$with_cxx" = "yes" |
| 1524 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1525 | { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5 |
| 1526 | echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;} |
| 1527 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1528 | fi |
| 1529 | |
| 1530 | |
| 1531 | |
| 1532 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1533 | if test "$check_cxx" = "yes" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1534 | then |
| 1535 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 1536 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1537 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1538 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1539 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1540 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1541 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 1542 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1543 | else |
| 1544 | if test -n "$CXX"; then |
| 1545 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 1546 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1547 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1548 | for as_dir in $PATH |
| 1549 | do |
| 1550 | IFS=$as_save_IFS |
| 1551 | test -z "$as_dir" && as_dir=. |
| 1552 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1553 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1554 | ac_cv_prog_CXX="$ac_prog" |
| 1555 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1556 | break 2 |
| 1557 | fi |
| 1558 | done |
| 1559 | done |
| 1560 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1561 | fi |
| 1562 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1563 | CXX=$ac_cv_prog_CXX |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1564 | if test -n "$CXX"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1565 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 1566 | echo "${ECHO_T}$CXX" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1567 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1568 | echo "$as_me:$LINENO: result: no" >&5 |
| 1569 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1570 | fi |
| 1571 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1572 | test -n "$CXX" && break |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1573 | done |
| 1574 | test -n "$CXX" || CXX="notfound" |
| 1575 | |
| 1576 | if test "$CXX" = "notfound" |
| 1577 | then |
| 1578 | CXX= |
| 1579 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1580 | ac_ext=cc |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1581 | ac_cpp='$CXXCPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1582 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1583 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1584 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 1585 | cat >conftest.$ac_ext <<_ACEOF |
| 1586 | #line $LINENO "configure" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1587 | #include "confdefs.h" |
| 1588 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1589 | #ifdef F77_DUMMY_MAIN |
| 1590 | # ifdef __cplusplus |
| 1591 | extern "C" |
| 1592 | # endif |
| 1593 | int F77_DUMMY_MAIN() { return 1; } |
| 1594 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1595 | int |
| 1596 | main () |
| 1597 | { |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1598 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1599 | ; |
| 1600 | return 0; |
| 1601 | } |
| 1602 | _ACEOF |
| 1603 | ac_clean_files_save=$ac_clean_files |
| 1604 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 1605 | # Try to create an executable without -o first, disregard a.out. |
| 1606 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1607 | # of exeext. |
| 1608 | echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 |
| 1609 | echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 |
| 1610 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1611 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1612 | (eval $ac_link_default) 2>&5 |
| 1613 | ac_status=$? |
| 1614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1615 | (exit $ac_status); }; then |
| 1616 | # Find the output, starting from the most likely. This scheme is |
| 1617 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1618 | # resort. |
| 1619 | |
| 1620 | # Be careful to initialize this variable, since it used to be cached. |
| 1621 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1622 | ac_cv_exeext= |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1623 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; |
| 1624 | ls a.out conftest 2>/dev/null; |
| 1625 | ls a.* conftest.* 2>/dev/null`; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1626 | case $ac_file in |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1627 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1628 | a.out ) # We found the default executable, but exeext='' is most |
| 1629 | # certainly right. |
| 1630 | break;; |
| 1631 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1632 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 1633 | export ac_cv_exeext |
| 1634 | break;; |
| 1635 | * ) break;; |
| 1636 | esac |
| 1637 | done |
| 1638 | else |
| 1639 | echo "$as_me: failed program was:" >&5 |
| 1640 | cat conftest.$ac_ext >&5 |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1641 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables" >&5 |
| 1642 | echo "$as_me: error: C++ compiler cannot create executables" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1643 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1644 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1645 | |
| 1646 | ac_exeext=$ac_cv_exeext |
| 1647 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1648 | echo "${ECHO_T}$ac_file" >&6 |
| 1649 | |
| 1650 | # Check the compiler produces executables we can run. If not, either |
| 1651 | # the compiler is broken, or we cross compile. |
| 1652 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
| 1653 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
| 1654 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1655 | # If not cross compiling, check that we can run a simple program. |
| 1656 | if test "$cross_compiling" != yes; then |
| 1657 | if { ac_try='./$ac_file' |
| 1658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1659 | (eval $ac_try) 2>&5 |
| 1660 | ac_status=$? |
| 1661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1662 | (exit $ac_status); }; }; then |
| 1663 | cross_compiling=no |
| 1664 | else |
| 1665 | if test "$cross_compiling" = maybe; then |
| 1666 | cross_compiling=yes |
| 1667 | else |
| 1668 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
| 1669 | If you meant to cross compile, use \`--host'." >&5 |
| 1670 | echo "$as_me: error: cannot run C++ compiled programs. |
| 1671 | If you meant to cross compile, use \`--host'." >&2;} |
| 1672 | { (exit 1); exit 1; }; } |
| 1673 | fi |
| 1674 | fi |
| 1675 | fi |
| 1676 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1677 | echo "${ECHO_T}yes" >&6 |
| 1678 | |
| 1679 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 1680 | ac_clean_files=$ac_clean_files_save |
| 1681 | # Check the compiler produces executables we can run. If not, either |
| 1682 | # the compiler is broken, or we cross compile. |
| 1683 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1684 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1685 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1686 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1687 | |
| 1688 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1689 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1690 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1691 | (eval $ac_link) 2>&5 |
| 1692 | ac_status=$? |
| 1693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1694 | (exit $ac_status); }; then |
| 1695 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1696 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1697 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1698 | # `rm'. |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1699 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1700 | case $ac_file in |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1701 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1702 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1703 | export ac_cv_exeext |
| 1704 | break;; |
| 1705 | * ) break;; |
| 1706 | esac |
| 1707 | done |
| 1708 | else |
| 1709 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 1710 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
| 1711 | { (exit 1); exit 1; }; } |
| 1712 | fi |
| 1713 | |
| 1714 | rm -f conftest$ac_cv_exeext |
| 1715 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1716 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1717 | |
| 1718 | rm -f conftest.$ac_ext |
| 1719 | EXEEXT=$ac_cv_exeext |
| 1720 | ac_exeext=$EXEEXT |
| 1721 | |
| 1722 | ac_ext=c |
| 1723 | ac_cpp='$CPP $CPPFLAGS' |
| 1724 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1725 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1726 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1727 | |
| 1728 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1729 | |
| 1730 | fi |
| 1731 | fi |
| 1732 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1733 | # If the user switches compilers, we can't believe the cache |
| 1734 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 1735 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1736 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
| 1737 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
| 1738 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
| 1739 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 1740 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1741 | fi |
| 1742 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1743 | ac_ext=c |
| 1744 | ac_cpp='$CPP $CPPFLAGS' |
| 1745 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1746 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1747 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1748 | if test -n "$ac_tool_prefix"; then |
| 1749 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1750 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1751 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1752 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1753 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1755 | else |
| 1756 | if test -n "$CC"; then |
| 1757 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1758 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1759 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1760 | for as_dir in $PATH |
| 1761 | do |
| 1762 | IFS=$as_save_IFS |
| 1763 | test -z "$as_dir" && as_dir=. |
| 1764 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1765 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1766 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1767 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1768 | break 2 |
| 1769 | fi |
| 1770 | done |
| 1771 | done |
| 1772 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1773 | fi |
| 1774 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1775 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1776 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1777 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1778 | echo "${ECHO_T}$CC" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1779 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1780 | echo "$as_me:$LINENO: result: no" >&5 |
| 1781 | echo "${ECHO_T}no" >&6 |
| 1782 | fi |
| 1783 | |
| 1784 | fi |
| 1785 | if test -z "$ac_cv_prog_CC"; then |
| 1786 | ac_ct_CC=$CC |
| 1787 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1788 | set dummy gcc; ac_word=$2 |
| 1789 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1790 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1791 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1792 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1793 | else |
| 1794 | if test -n "$ac_ct_CC"; then |
| 1795 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1796 | else |
| 1797 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1798 | for as_dir in $PATH |
| 1799 | do |
| 1800 | IFS=$as_save_IFS |
| 1801 | test -z "$as_dir" && as_dir=. |
| 1802 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1803 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1804 | ac_cv_prog_ac_ct_CC="gcc" |
| 1805 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1806 | break 2 |
| 1807 | fi |
| 1808 | done |
| 1809 | done |
| 1810 | |
| 1811 | fi |
| 1812 | fi |
| 1813 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1814 | if test -n "$ac_ct_CC"; then |
| 1815 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1816 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1817 | else |
| 1818 | echo "$as_me:$LINENO: result: no" >&5 |
| 1819 | echo "${ECHO_T}no" >&6 |
| 1820 | fi |
| 1821 | |
| 1822 | CC=$ac_ct_CC |
| 1823 | else |
| 1824 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1825 | fi |
| 1826 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1827 | if test -z "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1828 | if test -n "$ac_tool_prefix"; then |
| 1829 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1830 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1831 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1832 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1833 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1834 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1835 | else |
| 1836 | if test -n "$CC"; then |
| 1837 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1838 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1839 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1840 | for as_dir in $PATH |
| 1841 | do |
| 1842 | IFS=$as_save_IFS |
| 1843 | test -z "$as_dir" && as_dir=. |
| 1844 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1845 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1846 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1847 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1848 | break 2 |
| 1849 | fi |
| 1850 | done |
| 1851 | done |
| 1852 | |
| 1853 | fi |
| 1854 | fi |
| 1855 | CC=$ac_cv_prog_CC |
| 1856 | if test -n "$CC"; then |
| 1857 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1858 | echo "${ECHO_T}$CC" >&6 |
| 1859 | else |
| 1860 | echo "$as_me:$LINENO: result: no" >&5 |
| 1861 | echo "${ECHO_T}no" >&6 |
| 1862 | fi |
| 1863 | |
| 1864 | fi |
| 1865 | if test -z "$ac_cv_prog_CC"; then |
| 1866 | ac_ct_CC=$CC |
| 1867 | # Extract the first word of "cc", so it can be a program name with args. |
| 1868 | set dummy cc; ac_word=$2 |
| 1869 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1870 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1871 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1873 | else |
| 1874 | if test -n "$ac_ct_CC"; then |
| 1875 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1876 | else |
| 1877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1878 | for as_dir in $PATH |
| 1879 | do |
| 1880 | IFS=$as_save_IFS |
| 1881 | test -z "$as_dir" && as_dir=. |
| 1882 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1883 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1884 | ac_cv_prog_ac_ct_CC="cc" |
| 1885 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1886 | break 2 |
| 1887 | fi |
| 1888 | done |
| 1889 | done |
| 1890 | |
| 1891 | fi |
| 1892 | fi |
| 1893 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1894 | if test -n "$ac_ct_CC"; then |
| 1895 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1896 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1897 | else |
| 1898 | echo "$as_me:$LINENO: result: no" >&5 |
| 1899 | echo "${ECHO_T}no" >&6 |
| 1900 | fi |
| 1901 | |
| 1902 | CC=$ac_ct_CC |
| 1903 | else |
| 1904 | CC="$ac_cv_prog_CC" |
| 1905 | fi |
| 1906 | |
| 1907 | fi |
| 1908 | if test -z "$CC"; then |
| 1909 | # Extract the first word of "cc", so it can be a program name with args. |
| 1910 | set dummy cc; ac_word=$2 |
| 1911 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1912 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1913 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1914 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1915 | else |
| 1916 | if test -n "$CC"; then |
| 1917 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1918 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1919 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1921 | for as_dir in $PATH |
| 1922 | do |
| 1923 | IFS=$as_save_IFS |
| 1924 | test -z "$as_dir" && as_dir=. |
| 1925 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1926 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1927 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1928 | ac_prog_rejected=yes |
| 1929 | continue |
| 1930 | fi |
| 1931 | ac_cv_prog_CC="cc" |
| 1932 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1933 | break 2 |
| 1934 | fi |
| 1935 | done |
| 1936 | done |
| 1937 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1938 | if test $ac_prog_rejected = yes; then |
| 1939 | # We found a bogon in the path, so make sure we never use it. |
| 1940 | set dummy $ac_cv_prog_CC |
| 1941 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1942 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1943 | # We chose a different compiler from the bogus one. |
| 1944 | # However, it has the same basename, so the bogon will be chosen |
| 1945 | # first if we set CC to just the basename; use the full file name. |
| 1946 | shift |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 1947 | set dummy "$as_dir/$ac_word" ${1+"$@"} |
| 1948 | shift |
| 1949 | ac_cv_prog_CC="$@" |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1950 | fi |
| 1951 | fi |
| 1952 | fi |
| 1953 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1954 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1955 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1956 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1957 | echo "${ECHO_T}$CC" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1958 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1959 | echo "$as_me:$LINENO: result: no" >&5 |
| 1960 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1961 | fi |
| 1962 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1963 | fi |
| 1964 | if test -z "$CC"; then |
| 1965 | if test -n "$ac_tool_prefix"; then |
| 1966 | for ac_prog in cl |
| 1967 | do |
| 1968 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1969 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1970 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1971 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1972 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1974 | else |
| 1975 | if test -n "$CC"; then |
| 1976 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1977 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1979 | for as_dir in $PATH |
| 1980 | do |
| 1981 | IFS=$as_save_IFS |
| 1982 | test -z "$as_dir" && as_dir=. |
| 1983 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1984 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1985 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1986 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1987 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1988 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1989 | done |
| 1990 | done |
| 1991 | |
| 1992 | fi |
| 1993 | fi |
| 1994 | CC=$ac_cv_prog_CC |
| 1995 | if test -n "$CC"; then |
| 1996 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1997 | echo "${ECHO_T}$CC" >&6 |
| 1998 | else |
| 1999 | echo "$as_me:$LINENO: result: no" >&5 |
| 2000 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2001 | fi |
| 2002 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2003 | test -n "$CC" && break |
| 2004 | done |
| 2005 | fi |
| 2006 | if test -z "$CC"; then |
| 2007 | ac_ct_CC=$CC |
| 2008 | for ac_prog in cl |
| 2009 | do |
| 2010 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2011 | set dummy $ac_prog; ac_word=$2 |
| 2012 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2013 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2014 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2016 | else |
| 2017 | if test -n "$ac_ct_CC"; then |
| 2018 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2019 | else |
| 2020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2021 | for as_dir in $PATH |
| 2022 | do |
| 2023 | IFS=$as_save_IFS |
| 2024 | test -z "$as_dir" && as_dir=. |
| 2025 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2026 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2027 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2028 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2029 | break 2 |
| 2030 | fi |
| 2031 | done |
| 2032 | done |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2033 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2034 | fi |
| 2035 | fi |
| 2036 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2037 | if test -n "$ac_ct_CC"; then |
| 2038 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2039 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2040 | else |
| 2041 | echo "$as_me:$LINENO: result: no" >&5 |
| 2042 | echo "${ECHO_T}no" >&6 |
| 2043 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2044 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2045 | test -n "$ac_ct_CC" && break |
| 2046 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2047 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2048 | CC=$ac_ct_CC |
| 2049 | fi |
| 2050 | |
| 2051 | fi |
| 2052 | |
| 2053 | |
| 2054 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 |
| 2055 | echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} |
| 2056 | { (exit 1); exit 1; }; } |
| 2057 | |
| 2058 | # Provide some information about the compiler. |
| 2059 | echo "$as_me:$LINENO:" \ |
| 2060 | "checking for C compiler version" >&5 |
| 2061 | ac_compiler=`set X $ac_compile; echo $2` |
| 2062 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2063 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2064 | ac_status=$? |
| 2065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2066 | (exit $ac_status); } |
| 2067 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2068 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2069 | ac_status=$? |
| 2070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2071 | (exit $ac_status); } |
| 2072 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2073 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2074 | ac_status=$? |
| 2075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2076 | (exit $ac_status); } |
| 2077 | |
| 2078 | cat >conftest.$ac_ext <<_ACEOF |
| 2079 | #line $LINENO "configure" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2080 | #include "confdefs.h" |
| 2081 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2082 | #ifdef F77_DUMMY_MAIN |
| 2083 | # ifdef __cplusplus |
| 2084 | extern "C" |
| 2085 | # endif |
| 2086 | int F77_DUMMY_MAIN() { return 1; } |
| 2087 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2088 | int |
| 2089 | main () |
| 2090 | { |
| 2091 | |
| 2092 | ; |
| 2093 | return 0; |
| 2094 | } |
| 2095 | _ACEOF |
| 2096 | ac_clean_files_save=$ac_clean_files |
| 2097 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 2098 | # Try to create an executable without -o first, disregard a.out. |
| 2099 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2100 | # of exeext. |
| 2101 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
| 2102 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 2103 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2104 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2105 | (eval $ac_link_default) 2>&5 |
| 2106 | ac_status=$? |
| 2107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2108 | (exit $ac_status); }; then |
| 2109 | # Find the output, starting from the most likely. This scheme is |
| 2110 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2111 | # resort. |
| 2112 | |
| 2113 | # Be careful to initialize this variable, since it used to be cached. |
| 2114 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2115 | ac_cv_exeext= |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2116 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; |
| 2117 | ls a.out conftest 2>/dev/null; |
| 2118 | ls a.* conftest.* 2>/dev/null`; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2119 | case $ac_file in |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2120 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2121 | a.out ) # We found the default executable, but exeext='' is most |
| 2122 | # certainly right. |
| 2123 | break;; |
| 2124 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2125 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 2126 | export ac_cv_exeext |
| 2127 | break;; |
| 2128 | * ) break;; |
| 2129 | esac |
| 2130 | done |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2131 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2132 | echo "$as_me: failed program was:" >&5 |
| 2133 | cat conftest.$ac_ext >&5 |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2134 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 |
| 2135 | echo "$as_me: error: C compiler cannot create executables" >&2;} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2136 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2137 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2138 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2139 | ac_exeext=$ac_cv_exeext |
| 2140 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2141 | echo "${ECHO_T}$ac_file" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2142 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2143 | # Check the compiler produces executables we can run. If not, either |
| 2144 | # the compiler is broken, or we cross compile. |
| 2145 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2146 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2147 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2148 | # If not cross compiling, check that we can run a simple program. |
| 2149 | if test "$cross_compiling" != yes; then |
| 2150 | if { ac_try='./$ac_file' |
| 2151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2152 | (eval $ac_try) 2>&5 |
| 2153 | ac_status=$? |
| 2154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2155 | (exit $ac_status); }; }; then |
| 2156 | cross_compiling=no |
| 2157 | else |
| 2158 | if test "$cross_compiling" = maybe; then |
| 2159 | cross_compiling=yes |
| 2160 | else |
| 2161 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2162 | If you meant to cross compile, use \`--host'." >&5 |
| 2163 | echo "$as_me: error: cannot run C compiled programs. |
| 2164 | If you meant to cross compile, use \`--host'." >&2;} |
| 2165 | { (exit 1); exit 1; }; } |
| 2166 | fi |
| 2167 | fi |
| 2168 | fi |
| 2169 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2170 | echo "${ECHO_T}yes" >&6 |
| 2171 | |
| 2172 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 2173 | ac_clean_files=$ac_clean_files_save |
| 2174 | # Check the compiler produces executables we can run. If not, either |
| 2175 | # the compiler is broken, or we cross compile. |
| 2176 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2177 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2178 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2179 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2180 | |
| 2181 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2182 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2183 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2184 | (eval $ac_link) 2>&5 |
| 2185 | ac_status=$? |
| 2186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2187 | (exit $ac_status); }; then |
| 2188 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2189 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2190 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2191 | # `rm'. |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2192 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2193 | case $ac_file in |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2194 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2195 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2196 | export ac_cv_exeext |
| 2197 | break;; |
| 2198 | * ) break;; |
| 2199 | esac |
| 2200 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2201 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2202 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 2203 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
| 2204 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2205 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2206 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2207 | rm -f conftest$ac_cv_exeext |
| 2208 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2209 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2210 | |
| 2211 | rm -f conftest.$ac_ext |
| 2212 | EXEEXT=$ac_cv_exeext |
| 2213 | ac_exeext=$EXEEXT |
| 2214 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2215 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2216 | if test "${ac_cv_objext+set}" = set; then |
| 2217 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2218 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2219 | cat >conftest.$ac_ext <<_ACEOF |
| 2220 | #line $LINENO "configure" |
| 2221 | #include "confdefs.h" |
| 2222 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2223 | #ifdef F77_DUMMY_MAIN |
| 2224 | # ifdef __cplusplus |
| 2225 | extern "C" |
| 2226 | # endif |
| 2227 | int F77_DUMMY_MAIN() { return 1; } |
| 2228 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2229 | int |
| 2230 | main () |
| 2231 | { |
| 2232 | |
| 2233 | ; |
| 2234 | return 0; |
| 2235 | } |
| 2236 | _ACEOF |
| 2237 | rm -f conftest.o conftest.obj |
| 2238 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2239 | (eval $ac_compile) 2>&5 |
| 2240 | ac_status=$? |
| 2241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2242 | (exit $ac_status); }; then |
| 2243 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2244 | case $ac_file in |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2245 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2246 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2247 | break;; |
| 2248 | esac |
| 2249 | done |
| 2250 | else |
| 2251 | echo "$as_me: failed program was:" >&5 |
| 2252 | cat conftest.$ac_ext >&5 |
| 2253 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 |
| 2254 | echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} |
| 2255 | { (exit 1); exit 1; }; } |
| 2256 | fi |
| 2257 | |
| 2258 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2259 | fi |
| 2260 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2261 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2262 | OBJEXT=$ac_cv_objext |
| 2263 | ac_objext=$OBJEXT |
| 2264 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2265 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2266 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2268 | else |
| 2269 | cat >conftest.$ac_ext <<_ACEOF |
| 2270 | #line $LINENO "configure" |
| 2271 | #include "confdefs.h" |
| 2272 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2273 | #ifdef F77_DUMMY_MAIN |
| 2274 | # ifdef __cplusplus |
| 2275 | extern "C" |
| 2276 | # endif |
| 2277 | int F77_DUMMY_MAIN() { return 1; } |
| 2278 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2279 | int |
| 2280 | main () |
| 2281 | { |
| 2282 | #ifndef __GNUC__ |
| 2283 | choke me |
| 2284 | #endif |
| 2285 | |
| 2286 | ; |
| 2287 | return 0; |
| 2288 | } |
| 2289 | _ACEOF |
| 2290 | rm -f conftest.$ac_objext |
| 2291 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2292 | (eval $ac_compile) 2>&5 |
| 2293 | ac_status=$? |
| 2294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2295 | (exit $ac_status); } && |
| 2296 | { ac_try='test -s conftest.$ac_objext' |
| 2297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2298 | (eval $ac_try) 2>&5 |
| 2299 | ac_status=$? |
| 2300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2301 | (exit $ac_status); }; }; then |
| 2302 | ac_compiler_gnu=yes |
| 2303 | else |
| 2304 | echo "$as_me: failed program was:" >&5 |
| 2305 | cat conftest.$ac_ext >&5 |
| 2306 | ac_compiler_gnu=no |
| 2307 | fi |
| 2308 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2309 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2310 | |
| 2311 | fi |
| 2312 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2313 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2314 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2315 | ac_test_CFLAGS=${CFLAGS+set} |
| 2316 | ac_save_CFLAGS=$CFLAGS |
| 2317 | CFLAGS="-g" |
| 2318 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2319 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2320 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2322 | else |
| 2323 | cat >conftest.$ac_ext <<_ACEOF |
| 2324 | #line $LINENO "configure" |
| 2325 | #include "confdefs.h" |
| 2326 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2327 | #ifdef F77_DUMMY_MAIN |
| 2328 | # ifdef __cplusplus |
| 2329 | extern "C" |
| 2330 | # endif |
| 2331 | int F77_DUMMY_MAIN() { return 1; } |
| 2332 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2333 | int |
| 2334 | main () |
| 2335 | { |
| 2336 | |
| 2337 | ; |
| 2338 | return 0; |
| 2339 | } |
| 2340 | _ACEOF |
| 2341 | rm -f conftest.$ac_objext |
| 2342 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2343 | (eval $ac_compile) 2>&5 |
| 2344 | ac_status=$? |
| 2345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2346 | (exit $ac_status); } && |
| 2347 | { ac_try='test -s conftest.$ac_objext' |
| 2348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2349 | (eval $ac_try) 2>&5 |
| 2350 | ac_status=$? |
| 2351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2352 | (exit $ac_status); }; }; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2353 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2354 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2355 | echo "$as_me: failed program was:" >&5 |
| 2356 | cat conftest.$ac_ext >&5 |
| 2357 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2358 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2359 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2360 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2361 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2362 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2363 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2364 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2365 | elif test $ac_cv_prog_cc_g = yes; then |
| 2366 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2367 | CFLAGS="-g -O2" |
| 2368 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2369 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2370 | fi |
| 2371 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2372 | if test "$GCC" = yes; then |
| 2373 | CFLAGS="-O2" |
| 2374 | else |
| 2375 | CFLAGS= |
| 2376 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2377 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2378 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2379 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2380 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2381 | # the declaration of exit, since it's the most demanding environment. |
| 2382 | cat >conftest.$ac_ext <<_ACEOF |
| 2383 | #ifndef __cplusplus |
| 2384 | choke me |
| 2385 | #endif |
| 2386 | _ACEOF |
| 2387 | rm -f conftest.$ac_objext |
| 2388 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2389 | (eval $ac_compile) 2>&5 |
| 2390 | ac_status=$? |
| 2391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2392 | (exit $ac_status); } && |
| 2393 | { ac_try='test -s conftest.$ac_objext' |
| 2394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2395 | (eval $ac_try) 2>&5 |
| 2396 | ac_status=$? |
| 2397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2398 | (exit $ac_status); }; }; then |
| 2399 | for ac_declaration in \ |
| 2400 | ''\ |
| 2401 | '#include <stdlib.h>' \ |
| 2402 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2403 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2404 | 'extern "C" void exit (int) throw ();' \ |
| 2405 | 'extern "C" void exit (int);' \ |
| 2406 | 'void exit (int);' |
| 2407 | do |
| 2408 | cat >conftest.$ac_ext <<_ACEOF |
| 2409 | #line $LINENO "configure" |
| 2410 | #include "confdefs.h" |
| 2411 | #include <stdlib.h> |
| 2412 | $ac_declaration |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2413 | #ifdef F77_DUMMY_MAIN |
| 2414 | # ifdef __cplusplus |
| 2415 | extern "C" |
| 2416 | # endif |
| 2417 | int F77_DUMMY_MAIN() { return 1; } |
| 2418 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2419 | int |
| 2420 | main () |
| 2421 | { |
| 2422 | exit (42); |
| 2423 | ; |
| 2424 | return 0; |
| 2425 | } |
| 2426 | _ACEOF |
| 2427 | rm -f conftest.$ac_objext |
| 2428 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2429 | (eval $ac_compile) 2>&5 |
| 2430 | ac_status=$? |
| 2431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2432 | (exit $ac_status); } && |
| 2433 | { ac_try='test -s conftest.$ac_objext' |
| 2434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2435 | (eval $ac_try) 2>&5 |
| 2436 | ac_status=$? |
| 2437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2438 | (exit $ac_status); }; }; then |
| 2439 | : |
| 2440 | else |
| 2441 | echo "$as_me: failed program was:" >&5 |
| 2442 | cat conftest.$ac_ext >&5 |
| 2443 | continue |
| 2444 | fi |
| 2445 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2446 | cat >conftest.$ac_ext <<_ACEOF |
| 2447 | #line $LINENO "configure" |
| 2448 | #include "confdefs.h" |
| 2449 | $ac_declaration |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2450 | #ifdef F77_DUMMY_MAIN |
| 2451 | # ifdef __cplusplus |
| 2452 | extern "C" |
| 2453 | # endif |
| 2454 | int F77_DUMMY_MAIN() { return 1; } |
| 2455 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2456 | int |
| 2457 | main () |
| 2458 | { |
| 2459 | exit (42); |
| 2460 | ; |
| 2461 | return 0; |
| 2462 | } |
| 2463 | _ACEOF |
| 2464 | rm -f conftest.$ac_objext |
| 2465 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2466 | (eval $ac_compile) 2>&5 |
| 2467 | ac_status=$? |
| 2468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2469 | (exit $ac_status); } && |
| 2470 | { ac_try='test -s conftest.$ac_objext' |
| 2471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2472 | (eval $ac_try) 2>&5 |
| 2473 | ac_status=$? |
| 2474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2475 | (exit $ac_status); }; }; then |
| 2476 | break |
| 2477 | else |
| 2478 | echo "$as_me: failed program was:" >&5 |
| 2479 | cat conftest.$ac_ext >&5 |
| 2480 | fi |
| 2481 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2482 | done |
| 2483 | rm -f conftest* |
| 2484 | if test -n "$ac_declaration"; then |
| 2485 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2486 | echo $ac_declaration >>confdefs.h |
| 2487 | echo '#endif' >>confdefs.h |
| 2488 | fi |
| 2489 | |
| 2490 | else |
| 2491 | echo "$as_me: failed program was:" >&5 |
| 2492 | cat conftest.$ac_ext >&5 |
| 2493 | fi |
| 2494 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2495 | ac_ext=c |
| 2496 | ac_cpp='$CPP $CPPFLAGS' |
| 2497 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2498 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2499 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2500 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2501 | |
| 2502 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2503 | |
| 2504 | ac_ext=c |
| 2505 | ac_cpp='$CPP $CPPFLAGS' |
| 2506 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2507 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2508 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2509 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2510 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2511 | # On Suns, sometimes $CPP names a directory. |
| 2512 | if test -n "$CPP" && test -d "$CPP"; then |
| 2513 | CPP= |
| 2514 | fi |
| 2515 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2516 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2518 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2519 | # Double quotes because CPP needs to be expanded |
| 2520 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2521 | do |
| 2522 | ac_preproc_ok=false |
| 2523 | for ac_c_preproc_warn_flag in '' yes |
| 2524 | do |
| 2525 | # Use a header file that comes with gcc, so configuring glibc |
| 2526 | # with a fresh cross-compiler works. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2527 | # On the NeXT, cc -E runs the code through the compiler's parser, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2528 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2529 | cat >conftest.$ac_ext <<_ACEOF |
| 2530 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2531 | #include "confdefs.h" |
| 2532 | #include <assert.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2533 | Syntax error |
| 2534 | _ACEOF |
| 2535 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2536 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2537 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2538 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2539 | rm -f conftest.er1 |
| 2540 | cat conftest.err >&5 |
| 2541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2542 | (exit $ac_status); } >/dev/null; then |
| 2543 | if test -s conftest.err; then |
| 2544 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2545 | else |
| 2546 | ac_cpp_err= |
| 2547 | fi |
| 2548 | else |
| 2549 | ac_cpp_err=yes |
| 2550 | fi |
| 2551 | if test -z "$ac_cpp_err"; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2552 | : |
| 2553 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2554 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2555 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2556 | # Broken: fails on valid input. |
| 2557 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2558 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2559 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2560 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2561 | # OK, works on sane cases. Now check whether non-existent headers |
| 2562 | # can be detected and how. |
| 2563 | cat >conftest.$ac_ext <<_ACEOF |
| 2564 | #line $LINENO "configure" |
| 2565 | #include "confdefs.h" |
| 2566 | #include <ac_nonexistent.h> |
| 2567 | _ACEOF |
| 2568 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2569 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2570 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2571 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2572 | rm -f conftest.er1 |
| 2573 | cat conftest.err >&5 |
| 2574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2575 | (exit $ac_status); } >/dev/null; then |
| 2576 | if test -s conftest.err; then |
| 2577 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2578 | else |
| 2579 | ac_cpp_err= |
| 2580 | fi |
| 2581 | else |
| 2582 | ac_cpp_err=yes |
| 2583 | fi |
| 2584 | if test -z "$ac_cpp_err"; then |
| 2585 | # Broken: success on invalid input. |
| 2586 | continue |
| 2587 | else |
| 2588 | echo "$as_me: failed program was:" >&5 |
| 2589 | cat conftest.$ac_ext >&5 |
| 2590 | # Passes both tests. |
| 2591 | ac_preproc_ok=: |
| 2592 | break |
| 2593 | fi |
| 2594 | rm -f conftest.err conftest.$ac_ext |
| 2595 | |
| 2596 | done |
| 2597 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2598 | rm -f conftest.err conftest.$ac_ext |
| 2599 | if $ac_preproc_ok; then |
| 2600 | break |
| 2601 | fi |
| 2602 | |
| 2603 | done |
| 2604 | ac_cv_prog_CPP=$CPP |
| 2605 | |
| 2606 | fi |
| 2607 | CPP=$ac_cv_prog_CPP |
| 2608 | else |
| 2609 | ac_cv_prog_CPP=$CPP |
| 2610 | fi |
| 2611 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2612 | echo "${ECHO_T}$CPP" >&6 |
| 2613 | ac_preproc_ok=false |
| 2614 | for ac_c_preproc_warn_flag in '' yes |
| 2615 | do |
| 2616 | # Use a header file that comes with gcc, so configuring glibc |
| 2617 | # with a fresh cross-compiler works. |
| 2618 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2619 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2620 | cat >conftest.$ac_ext <<_ACEOF |
| 2621 | #line $LINENO "configure" |
| 2622 | #include "confdefs.h" |
| 2623 | #include <assert.h> |
| 2624 | Syntax error |
| 2625 | _ACEOF |
| 2626 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2627 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2628 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2629 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2630 | rm -f conftest.er1 |
| 2631 | cat conftest.err >&5 |
| 2632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2633 | (exit $ac_status); } >/dev/null; then |
| 2634 | if test -s conftest.err; then |
| 2635 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2636 | else |
| 2637 | ac_cpp_err= |
| 2638 | fi |
| 2639 | else |
| 2640 | ac_cpp_err=yes |
| 2641 | fi |
| 2642 | if test -z "$ac_cpp_err"; then |
| 2643 | : |
| 2644 | else |
| 2645 | echo "$as_me: failed program was:" >&5 |
| 2646 | cat conftest.$ac_ext >&5 |
| 2647 | # Broken: fails on valid input. |
| 2648 | continue |
| 2649 | fi |
| 2650 | rm -f conftest.err conftest.$ac_ext |
| 2651 | |
| 2652 | # OK, works on sane cases. Now check whether non-existent headers |
| 2653 | # can be detected and how. |
| 2654 | cat >conftest.$ac_ext <<_ACEOF |
| 2655 | #line $LINENO "configure" |
| 2656 | #include "confdefs.h" |
| 2657 | #include <ac_nonexistent.h> |
| 2658 | _ACEOF |
| 2659 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2660 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2661 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2662 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2663 | rm -f conftest.er1 |
| 2664 | cat conftest.err >&5 |
| 2665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2666 | (exit $ac_status); } >/dev/null; then |
| 2667 | if test -s conftest.err; then |
| 2668 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2669 | else |
| 2670 | ac_cpp_err= |
| 2671 | fi |
| 2672 | else |
| 2673 | ac_cpp_err=yes |
| 2674 | fi |
| 2675 | if test -z "$ac_cpp_err"; then |
| 2676 | # Broken: success on invalid input. |
| 2677 | continue |
| 2678 | else |
| 2679 | echo "$as_me: failed program was:" >&5 |
| 2680 | cat conftest.$ac_ext >&5 |
| 2681 | # Passes both tests. |
| 2682 | ac_preproc_ok=: |
| 2683 | break |
| 2684 | fi |
| 2685 | rm -f conftest.err conftest.$ac_ext |
| 2686 | |
| 2687 | done |
| 2688 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2689 | rm -f conftest.err conftest.$ac_ext |
| 2690 | if $ac_preproc_ok; then |
| 2691 | : |
| 2692 | else |
| 2693 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
| 2694 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
| 2695 | { (exit 1); exit 1; }; } |
| 2696 | fi |
| 2697 | |
| 2698 | ac_ext=c |
| 2699 | ac_cpp='$CPP $CPPFLAGS' |
| 2700 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2701 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2702 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2703 | |
| 2704 | |
| 2705 | |
| 2706 | echo "$as_me:$LINENO: checking for AIX" >&5 |
| 2707 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 2708 | cat >conftest.$ac_ext <<_ACEOF |
| 2709 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2710 | #include "confdefs.h" |
| 2711 | #ifdef _AIX |
| 2712 | yes |
| 2713 | #endif |
| 2714 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2715 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2716 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2717 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2718 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2719 | echo "${ECHO_T}yes" >&6 |
| 2720 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2721 | #define _ALL_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2722 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2723 | |
| 2724 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2725 | echo "$as_me:$LINENO: result: no" >&5 |
| 2726 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2727 | fi |
| 2728 | rm -f conftest* |
| 2729 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2730 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2731 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 2732 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 2733 | if test "${ac_cv_header_stdc+set}" = set; then |
| 2734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2735 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2736 | cat >conftest.$ac_ext <<_ACEOF |
| 2737 | #line $LINENO "configure" |
| 2738 | #include "confdefs.h" |
| 2739 | #include <stdlib.h> |
| 2740 | #include <stdarg.h> |
| 2741 | #include <string.h> |
| 2742 | #include <float.h> |
| 2743 | |
| 2744 | _ACEOF |
| 2745 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2746 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2747 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2748 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2749 | rm -f conftest.er1 |
| 2750 | cat conftest.err >&5 |
| 2751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2752 | (exit $ac_status); } >/dev/null; then |
| 2753 | if test -s conftest.err; then |
| 2754 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2755 | else |
| 2756 | ac_cpp_err= |
| 2757 | fi |
| 2758 | else |
| 2759 | ac_cpp_err=yes |
| 2760 | fi |
| 2761 | if test -z "$ac_cpp_err"; then |
| 2762 | ac_cv_header_stdc=yes |
| 2763 | else |
| 2764 | echo "$as_me: failed program was:" >&5 |
| 2765 | cat conftest.$ac_ext >&5 |
| 2766 | ac_cv_header_stdc=no |
| 2767 | fi |
| 2768 | rm -f conftest.err conftest.$ac_ext |
| 2769 | |
| 2770 | if test $ac_cv_header_stdc = yes; then |
| 2771 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 2772 | cat >conftest.$ac_ext <<_ACEOF |
| 2773 | #line $LINENO "configure" |
| 2774 | #include "confdefs.h" |
| 2775 | #include <string.h> |
| 2776 | |
| 2777 | _ACEOF |
| 2778 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2779 | egrep "memchr" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2780 | : |
| 2781 | else |
| 2782 | ac_cv_header_stdc=no |
| 2783 | fi |
| 2784 | rm -f conftest* |
| 2785 | |
| 2786 | fi |
| 2787 | |
| 2788 | if test $ac_cv_header_stdc = yes; then |
| 2789 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 2790 | cat >conftest.$ac_ext <<_ACEOF |
| 2791 | #line $LINENO "configure" |
| 2792 | #include "confdefs.h" |
| 2793 | #include <stdlib.h> |
| 2794 | |
| 2795 | _ACEOF |
| 2796 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2797 | egrep "free" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2798 | : |
| 2799 | else |
| 2800 | ac_cv_header_stdc=no |
| 2801 | fi |
| 2802 | rm -f conftest* |
| 2803 | |
| 2804 | fi |
| 2805 | |
| 2806 | if test $ac_cv_header_stdc = yes; then |
| 2807 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 2808 | if test "$cross_compiling" = yes; then |
| 2809 | : |
| 2810 | else |
| 2811 | cat >conftest.$ac_ext <<_ACEOF |
| 2812 | #line $LINENO "configure" |
| 2813 | #include "confdefs.h" |
| 2814 | #include <ctype.h> |
| 2815 | #if ((' ' & 0x0FF) == 0x020) |
| 2816 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 2817 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 2818 | #else |
| 2819 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 2820 | || ('j' <= (c) && (c) <= 'r') \ |
| 2821 | || ('s' <= (c) && (c) <= 'z')) |
| 2822 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 2823 | #endif |
| 2824 | |
| 2825 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 2826 | int |
| 2827 | main () |
| 2828 | { |
| 2829 | int i; |
| 2830 | for (i = 0; i < 256; i++) |
| 2831 | if (XOR (islower (i), ISLOWER (i)) |
| 2832 | || toupper (i) != TOUPPER (i)) |
| 2833 | exit(2); |
| 2834 | exit (0); |
| 2835 | } |
| 2836 | _ACEOF |
| 2837 | rm -f conftest$ac_exeext |
| 2838 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2839 | (eval $ac_link) 2>&5 |
| 2840 | ac_status=$? |
| 2841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2842 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 2843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2844 | (eval $ac_try) 2>&5 |
| 2845 | ac_status=$? |
| 2846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2847 | (exit $ac_status); }; }; then |
| 2848 | : |
| 2849 | else |
| 2850 | echo "$as_me: program exited with status $ac_status" >&5 |
| 2851 | echo "$as_me: failed program was:" >&5 |
| 2852 | cat conftest.$ac_ext >&5 |
| 2853 | ( exit $ac_status ) |
| 2854 | ac_cv_header_stdc=no |
| 2855 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2856 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2857 | fi |
| 2858 | fi |
| 2859 | fi |
| 2860 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 2861 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 2862 | if test $ac_cv_header_stdc = yes; then |
| 2863 | |
| 2864 | cat >>confdefs.h <<\_ACEOF |
| 2865 | #define STDC_HEADERS 1 |
| 2866 | _ACEOF |
| 2867 | |
| 2868 | fi |
| 2869 | |
| 2870 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 2871 | |
| 2872 | |
| 2873 | |
| 2874 | |
| 2875 | |
| 2876 | |
| 2877 | |
| 2878 | |
| 2879 | |
| 2880 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 2881 | inttypes.h stdint.h unistd.h |
| 2882 | do |
| 2883 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 2884 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 2885 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 2886 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 2887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2888 | else |
| 2889 | cat >conftest.$ac_ext <<_ACEOF |
| 2890 | #line $LINENO "configure" |
| 2891 | #include "confdefs.h" |
| 2892 | $ac_includes_default |
| 2893 | |
| 2894 | #include <$ac_header> |
| 2895 | _ACEOF |
| 2896 | rm -f conftest.$ac_objext |
| 2897 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2898 | (eval $ac_compile) 2>&5 |
| 2899 | ac_status=$? |
| 2900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2901 | (exit $ac_status); } && |
| 2902 | { ac_try='test -s conftest.$ac_objext' |
| 2903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2904 | (eval $ac_try) 2>&5 |
| 2905 | ac_status=$? |
| 2906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2907 | (exit $ac_status); }; }; then |
| 2908 | eval "$as_ac_Header=yes" |
| 2909 | else |
| 2910 | echo "$as_me: failed program was:" >&5 |
| 2911 | cat conftest.$ac_ext >&5 |
| 2912 | eval "$as_ac_Header=no" |
| 2913 | fi |
| 2914 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2915 | fi |
| 2916 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 2917 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 2918 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 2919 | cat >>confdefs.h <<_ACEOF |
| 2920 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 2921 | _ACEOF |
| 2922 | |
| 2923 | fi |
| 2924 | |
| 2925 | done |
| 2926 | |
| 2927 | |
| 2928 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2929 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 2930 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 2931 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2933 | fi |
| 2934 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 2935 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 2936 | else |
| 2937 | # Is the header compilable? |
| 2938 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5 |
| 2939 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 |
| 2940 | cat >conftest.$ac_ext <<_ACEOF |
| 2941 | #line $LINENO "configure" |
| 2942 | #include "confdefs.h" |
| 2943 | $ac_includes_default |
| 2944 | #include <minix/config.h> |
| 2945 | _ACEOF |
| 2946 | rm -f conftest.$ac_objext |
| 2947 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2948 | (eval $ac_compile) 2>&5 |
| 2949 | ac_status=$? |
| 2950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2951 | (exit $ac_status); } && |
| 2952 | { ac_try='test -s conftest.$ac_objext' |
| 2953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2954 | (eval $ac_try) 2>&5 |
| 2955 | ac_status=$? |
| 2956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2957 | (exit $ac_status); }; }; then |
| 2958 | ac_header_compiler=yes |
| 2959 | else |
| 2960 | echo "$as_me: failed program was:" >&5 |
| 2961 | cat conftest.$ac_ext >&5 |
| 2962 | ac_header_compiler=no |
| 2963 | fi |
| 2964 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2965 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 2966 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 2967 | |
| 2968 | # Is the header present? |
| 2969 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5 |
| 2970 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 |
| 2971 | cat >conftest.$ac_ext <<_ACEOF |
| 2972 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2973 | #include "confdefs.h" |
| 2974 | #include <minix/config.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2975 | _ACEOF |
| 2976 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2977 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2978 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 2979 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2980 | rm -f conftest.er1 |
| 2981 | cat conftest.err >&5 |
| 2982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2983 | (exit $ac_status); } >/dev/null; then |
| 2984 | if test -s conftest.err; then |
| 2985 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2986 | else |
| 2987 | ac_cpp_err= |
| 2988 | fi |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2989 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2990 | ac_cpp_err=yes |
| 2991 | fi |
| 2992 | if test -z "$ac_cpp_err"; then |
| 2993 | ac_header_preproc=yes |
| 2994 | else |
| 2995 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2996 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2997 | ac_header_preproc=no |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2998 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2999 | rm -f conftest.err conftest.$ac_ext |
| 3000 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3001 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3002 | |
| 3003 | # So? What about this header? |
| 3004 | case $ac_header_compiler:$ac_header_preproc in |
| 3005 | yes:no ) |
| 3006 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3007 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3008 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 3009 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};; |
| 3010 | no:yes ) |
| 3011 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 |
| 3012 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} |
| 3013 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 |
| 3014 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} |
| 3015 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 3016 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};; |
| 3017 | esac |
| 3018 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 3019 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 3020 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 3021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3022 | else |
| 3023 | ac_cv_header_minix_config_h=$ac_header_preproc |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3024 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3025 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 3026 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 3027 | |
| 3028 | fi |
| 3029 | if test $ac_cv_header_minix_config_h = yes; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3030 | MINIX=yes |
| 3031 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3032 | MINIX= |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3033 | fi |
| 3034 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3035 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3036 | if test "$MINIX" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3037 | |
| 3038 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3039 | #define _POSIX_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3040 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3041 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3042 | |
| 3043 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3044 | #define _POSIX_1_SOURCE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3045 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3046 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3047 | |
| 3048 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3049 | #define _MINIX 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3050 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3051 | |
| 3052 | fi |
| 3053 | |
| 3054 | |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3055 | # Check for unsupported systems |
| 3056 | case $ac_sys_system/$ac_sys_release in |
| 3057 | SunOS/4*|DYNIX/*|dgux*/*|IRIX/4*|Linux*/1*) |
| 3058 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 3059 | echo See README for details. |
| 3060 | exit 1;; |
| 3061 | esac |
| 3062 | |
| 3063 | if test "$MINIX" = yes; then |
| 3064 | echo This system \(MINIX\) is no longer supported. |
| 3065 | echo Read README for details. |
| 3066 | exit 1 |
| 3067 | fi |
| 3068 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3069 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3070 | echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3071 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3072 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3073 | # Check whether --with-suffix or --without-suffix was given. |
| 3074 | if test "${with_suffix+set}" = set; then |
| 3075 | withval="$with_suffix" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3076 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3077 | case $withval in |
| 3078 | no) EXEEXT=;; |
| 3079 | yes) EXEEXT=.exe;; |
| 3080 | *) EXEEXT=$withval;; |
| 3081 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3082 | fi; |
| 3083 | echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3084 | echo "${ECHO_T}$EXEEXT" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3085 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3086 | # Test whether we're running on a non-case-sensitive system, in which |
| 3087 | # case we give a warning if no ext is given |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3088 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3089 | echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3090 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6 |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3091 | if test ! -d CaseSensitiveTestDir; then |
| 3092 | mkdir CaseSensitiveTestDir |
| 3093 | fi |
| 3094 | |
| 3095 | if test -d casesensitivetestdir |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3096 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3097 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3098 | echo "${ECHO_T}yes" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3099 | BUILDEXEEXT=.exe |
| 3100 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3101 | echo "$as_me:$LINENO: result: no" >&5 |
| 3102 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3103 | BUILDEXEEXT=$EXEEXT |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3104 | fi |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3105 | rmdir CaseSensitiveTestDir |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 3106 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 3107 | case $MACHDEP in |
| 3108 | bsdos*) |
| 3109 | case $CC in |
| 3110 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3111 | esac;; |
| 3112 | esac |
| 3113 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3114 | case $ac_sys_system in |
| 3115 | hp*|HP*) |
| 3116 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 3117 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3118 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3119 | Monterey*) |
| 3120 | case $CC in |
| 3121 | cc) CC="$CC -Wl,-Bexport";; |
| 3122 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3123 | SunOS*) |
| 3124 | # Some functions have a prototype only with that define, e.g. confstr |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3125 | |
| 3126 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3127 | #define __EXTENSIONS__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3128 | _ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3129 | |
| 3130 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3131 | esac |
| 3132 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3133 | |
| 3134 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3135 | echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3136 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3137 | if test -z "$LIBRARY" |
| 3138 | then |
| 3139 | LIBRARY='libpython$(VERSION).a' |
| 3140 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3141 | echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3142 | echo "${ECHO_T}$LIBRARY" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3143 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3144 | # LDLIBRARY is the name of the library to link against (as opposed to the |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3145 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3146 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3147 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3148 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3149 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3150 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3151 | # DLLLIBRARY is the shared (i.e., DLL) library. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3152 | # |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3153 | # RUNSHARED is used to run shared python without installed libraries |
| 3154 | # |
| 3155 | # INSTSONAME is the name of the shared library that will be use to install |
| 3156 | # on the system - some systems like version suffix, others don't |
| 3157 | |
| 3158 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3159 | |
| 3160 | |
| 3161 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3162 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3163 | LDLIBRARY="$LIBRARY" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3164 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 09bdf72 | 2002-05-08 08:51:29 +0000 | [diff] [blame] | 3165 | INSTSONAME='$(LDLIBRARY)' |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 3166 | DLLLIBRARY='' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3167 | LDLIBRARYDIR='' |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3168 | RUNSHARED='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3169 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3170 | # LINKCC is the command that links the python executable -- default is $(CC). |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3171 | # If CXX is set, and if it is needed to link a main function that was |
| 3172 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3173 | # python might then depend on the C++ runtime |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3174 | # This is altered for AIX in order to build the export list before |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3175 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3176 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3177 | echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3178 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3179 | if test -z "$LINKCC" |
| 3180 | then |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3181 | if test -z "$CXX"; then |
| 3182 | LINKCC="\$(PURIFY) \$(CC)" |
| 3183 | else |
Martin v. Löwis | 1931ca7 | 2002-06-01 21:39:58 +0000 | [diff] [blame] | 3184 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3185 | $CXX -c conftest.$ac_ext 2>&5 |
| 3186 | if $CC -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 3187 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 3188 | then |
| 3189 | LINKCC="\$(PURIFY) \$(CC)" |
| 3190 | else |
| 3191 | LINKCC="\$(PURIFY) \$(CXX)" |
| 3192 | fi |
| 3193 | rm -fr conftest* |
| 3194 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3195 | case $ac_sys_system in |
| 3196 | AIX*) |
Neal Norwitz | 0b27ff9 | 2003-03-31 15:53:49 +0000 | [diff] [blame] | 3197 | exp_extra="\"\"" |
| 3198 | if test $ac_sys_release -ge 5 -o \ |
| 3199 | $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then |
| 3200 | exp_extra="." |
| 3201 | fi |
| 3202 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 3203 | dgux*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3204 | LINKCC="LD_RUN_PATH=$libdir $LINKCC";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3205 | Monterey64*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3206 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3207 | esac |
| 3208 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3209 | echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3210 | echo "${ECHO_T}$LINKCC" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3211 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3212 | echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 3213 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3214 | # Check whether --enable-shared or --disable-shared was given. |
| 3215 | if test "${enable_shared+set}" = set; then |
| 3216 | enableval="$enable_shared" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3217 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3218 | fi; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3219 | |
| 3220 | if test -z "$enable_shared" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3221 | then |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3222 | case $ac_sys_system in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3223 | CYGWIN* | atheos*) |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3224 | enable_shared="yes";; |
| 3225 | *) |
| 3226 | enable_shared="no";; |
| 3227 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3228 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3229 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 3230 | echo "${ECHO_T}$enable_shared" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3231 | |
| 3232 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3233 | echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 3234 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3235 | |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 3236 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 3237 | # library that we build, but we do not want to link against it (we |
| 3238 | # will find it with a -framework option). For this reason there is an |
| 3239 | # extra variable BLDLIBRARY against which Python and the extension |
| 3240 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 3241 | # LDLIBRARY, but empty for MacOSX framework builds. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3242 | if test "$enable_framework" |
| 3243 | then |
| 3244 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 3245 | LDLIBRARYDIR='$(PYTHONFRAMEWORKDIR)' |
| 3246 | BLDLIBRARY='' |
| 3247 | else |
| 3248 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3249 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3250 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3251 | # Other platforms follow |
| 3252 | if test $enable_shared = "yes"; then |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 3253 | |
| 3254 | cat >>confdefs.h <<\_ACEOF |
| 3255 | #define Py_ENABLE_SHARED 1 |
| 3256 | _ACEOF |
| 3257 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3258 | case $ac_sys_system in |
| 3259 | BeOS*) |
| 3260 | LDLIBRARY='libpython$(VERSION).so' |
| 3261 | ;; |
| 3262 | CYGWIN*) |
| 3263 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3264 | DLLLIBRARY='libpython$(VERSION).dll' |
| 3265 | ;; |
| 3266 | SunOS*) |
| 3267 | LDLIBRARY='libpython$(VERSION).so' |
| 3268 | BLDLIBRARY='-Wl,-rpath,$(LIBDIR) -L. -lpython$(VERSION)' |
| 3269 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3270 | ;; |
Martin v. Löwis | 1bc894b | 2002-07-30 20:19:58 +0000 | [diff] [blame] | 3271 | Linux*|GNU*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3272 | LDLIBRARY='libpython$(VERSION).so' |
| 3273 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3274 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3275 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 3276 | ;; |
| 3277 | hp*|HP*) |
| 3278 | LDLIBRARY='libpython$(VERSION).sl' |
| 3279 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| 3280 | RUNSHARED=SHLIB_PATH=`pwd`:$SHLIB_PATH |
| 3281 | ;; |
| 3282 | OSF*) |
| 3283 | LDLIBRARY='libpython$(VERSION).so' |
| 3284 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| 3285 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3286 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3287 | atheos*) |
| 3288 | LDLIBRARY='libpython$(VERSION).so' |
| 3289 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3290 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 3291 | ;; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3292 | esac |
| 3293 | # DG/UX requires some fancy ld contortions to produce a .so from an .a |
| 3294 | case $MACHDEP in |
| 3295 | dguxR4) |
| 3296 | LDLIBRARY='libpython$(VERSION).so' |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3297 | BASECFLAGS="$BASECFLAGS -pic" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3298 | ;; |
| 3299 | esac |
| 3300 | fi |
| 3301 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3302 | echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 3303 | echo "${ECHO_T}$LDLIBRARY" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3304 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3305 | if test -n "$ac_tool_prefix"; then |
| 3306 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3307 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3308 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3309 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3310 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3311 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3312 | else |
| 3313 | if test -n "$RANLIB"; then |
| 3314 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3315 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3316 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3317 | for as_dir in $PATH |
| 3318 | do |
| 3319 | IFS=$as_save_IFS |
| 3320 | test -z "$as_dir" && as_dir=. |
| 3321 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3322 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3323 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3324 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3325 | break 2 |
| 3326 | fi |
| 3327 | done |
| 3328 | done |
| 3329 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3330 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3331 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3332 | RANLIB=$ac_cv_prog_RANLIB |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3333 | if test -n "$RANLIB"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3334 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3335 | echo "${ECHO_T}$RANLIB" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3336 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3337 | echo "$as_me:$LINENO: result: no" >&5 |
| 3338 | echo "${ECHO_T}no" >&6 |
| 3339 | fi |
| 3340 | |
| 3341 | fi |
| 3342 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3343 | ac_ct_RANLIB=$RANLIB |
| 3344 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3345 | set dummy ranlib; ac_word=$2 |
| 3346 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3347 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3348 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3350 | else |
| 3351 | if test -n "$ac_ct_RANLIB"; then |
| 3352 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3353 | else |
| 3354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3355 | for as_dir in $PATH |
| 3356 | do |
| 3357 | IFS=$as_save_IFS |
| 3358 | test -z "$as_dir" && as_dir=. |
| 3359 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3360 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3361 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3362 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3363 | break 2 |
| 3364 | fi |
| 3365 | done |
| 3366 | done |
| 3367 | |
| 3368 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3369 | fi |
| 3370 | fi |
| 3371 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3372 | if test -n "$ac_ct_RANLIB"; then |
| 3373 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3374 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3375 | else |
| 3376 | echo "$as_me:$LINENO: result: no" >&5 |
| 3377 | echo "${ECHO_T}no" >&6 |
| 3378 | fi |
| 3379 | |
| 3380 | RANLIB=$ac_ct_RANLIB |
| 3381 | else |
| 3382 | RANLIB="$ac_cv_prog_RANLIB" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3383 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3384 | |
| 3385 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3386 | for ac_prog in ar aal |
| 3387 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3388 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3389 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3390 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3391 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3392 | if test "${ac_cv_prog_AR+set}" = set; then |
| 3393 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3394 | else |
| 3395 | if test -n "$AR"; then |
| 3396 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3397 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3399 | for as_dir in $PATH |
| 3400 | do |
| 3401 | IFS=$as_save_IFS |
| 3402 | test -z "$as_dir" && as_dir=. |
| 3403 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3404 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3405 | ac_cv_prog_AR="$ac_prog" |
| 3406 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3407 | break 2 |
| 3408 | fi |
| 3409 | done |
| 3410 | done |
| 3411 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3412 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3413 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3414 | AR=$ac_cv_prog_AR |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3415 | if test -n "$AR"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3416 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 3417 | echo "${ECHO_T}$AR" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3418 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3419 | echo "$as_me:$LINENO: result: no" >&5 |
| 3420 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3421 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3422 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3423 | test -n "$AR" && break |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3424 | done |
| 3425 | test -n "$AR" || AR="ar" |
| 3426 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3427 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3428 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 3429 | bsdos*|hp*|HP*) |
| 3430 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3431 | if test -z "$INSTALL" |
| 3432 | then |
| 3433 | INSTALL="${srcdir}/install-sh -c" |
| 3434 | fi |
| 3435 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3436 | ac_aux_dir= |
| 3437 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 3438 | if test -f $ac_dir/install-sh; then |
| 3439 | ac_aux_dir=$ac_dir |
| 3440 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3441 | break |
| 3442 | elif test -f $ac_dir/install.sh; then |
| 3443 | ac_aux_dir=$ac_dir |
| 3444 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3445 | break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3446 | elif test -f $ac_dir/shtool; then |
| 3447 | ac_aux_dir=$ac_dir |
| 3448 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3449 | break |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3450 | fi |
| 3451 | done |
| 3452 | if test -z "$ac_aux_dir"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3453 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 3454 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 3455 | { (exit 1); exit 1; }; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3456 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3457 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 3458 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 3459 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3460 | |
| 3461 | # Find a good install program. We prefer a C program (faster), |
| 3462 | # so one script is as good as another. But avoid the broken or |
| 3463 | # incompatible versions: |
| 3464 | # SysV /etc/install, /usr/sbin/install |
| 3465 | # SunOS /usr/etc/install |
| 3466 | # IRIX /sbin/install |
| 3467 | # AIX /bin/install |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3468 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3469 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3470 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3471 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3472 | # ./install, which can be erroneously created by make from ./install.sh. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3473 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 3474 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3475 | if test -z "$INSTALL"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3476 | if test "${ac_cv_path_install+set}" = set; then |
| 3477 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3478 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3479 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3480 | for as_dir in $PATH |
| 3481 | do |
| 3482 | IFS=$as_save_IFS |
| 3483 | test -z "$as_dir" && as_dir=. |
| 3484 | # Account for people who put trailing slashes in PATH elements. |
| 3485 | case $as_dir/ in |
| 3486 | ./ | .// | /cC/* | \ |
| 3487 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3488 | /usr/ucb/* ) ;; |
| 3489 | *) |
| 3490 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3491 | # Don't use installbsd from OSF since it installs stuff as root |
| 3492 | # by default. |
| 3493 | for ac_prog in ginstall scoinst install; do |
| 3494 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3495 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3496 | if test $ac_prog = install && |
| 3497 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3498 | # AIX install. It has an incompatible calling convention. |
| 3499 | : |
| 3500 | elif test $ac_prog = install && |
| 3501 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3502 | # program-specific install script used by HP pwplus--don't use. |
| 3503 | : |
| 3504 | else |
| 3505 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3506 | break 3 |
| 3507 | fi |
| 3508 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3509 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3510 | done |
| 3511 | ;; |
| 3512 | esac |
| 3513 | done |
| 3514 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3515 | |
| 3516 | fi |
| 3517 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3518 | INSTALL=$ac_cv_path_install |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3519 | else |
| 3520 | # As a last resort, use the slow shell script. We don't cache a |
| 3521 | # path for INSTALL within a source directory, because that will |
| 3522 | # break other packages using the cache if that directory is |
| 3523 | # removed, or if the path is relative. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3524 | INSTALL=$ac_install_sh |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3525 | fi |
| 3526 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3527 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 3528 | echo "${ECHO_T}$INSTALL" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3529 | |
| 3530 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3531 | # It thinks the first close brace ends the variable substitution. |
| 3532 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3533 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3534 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3535 | |
| 3536 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3537 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3538 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3539 | # Not every filesystem supports hard links |
| 3540 | |
| 3541 | if test -z "$LN" ; then |
| 3542 | case $ac_sys_system in |
| 3543 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3544 | CYGWIN*) LN="ln -s";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3545 | atheos*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3546 | *) LN=ln;; |
| 3547 | esac |
| 3548 | fi |
| 3549 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3550 | # Check for --with-pydebug |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3551 | echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 3552 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6 |
| 3553 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3554 | # Check whether --with-pydebug or --without-pydebug was given. |
| 3555 | if test "${with_pydebug+set}" = set; then |
| 3556 | withval="$with_pydebug" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3557 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3558 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3559 | then |
| 3560 | |
| 3561 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3562 | #define Py_DEBUG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3563 | _ACEOF |
| 3564 | |
| 3565 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3566 | echo "${ECHO_T}yes" >&6; |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 3567 | Py_DEBUG='true' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3568 | else echo "$as_me:$LINENO: result: no" >&5 |
| 3569 | echo "${ECHO_T}no" >&6; Py_DEBUG='false' |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3570 | fi |
| 3571 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3572 | echo "$as_me:$LINENO: result: no" >&5 |
| 3573 | echo "${ECHO_T}no" >&6 |
| 3574 | fi; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3575 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3576 | # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be |
| 3577 | # merged with this chunk of code? |
| 3578 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3579 | # Optimizer/debugger flags |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3580 | # ------------------------ |
| 3581 | # (The following bit of code is complicated enough - please keep things |
| 3582 | # indented properly. Just pretend you're editing Python code. ;-) |
| 3583 | |
| 3584 | # There are two parallel sets of case statements below, one that checks to |
| 3585 | # see if OPT was set and one that does BASECFLAGS setting based upon |
| 3586 | # compiler and platform. BASECFLAGS tweaks need to be made even if the |
| 3587 | # user set OPT. |
| 3588 | |
| 3589 | # tweak OPT based on compiler and platform, only if the user didn't set |
| 3590 | # it on the command line |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3591 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3592 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3593 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3594 | case $GCC in |
| 3595 | yes) |
| 3596 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3597 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3598 | if test "$Py_DEBUG" = 'true' ; then |
| 3599 | # Optimization messes up debuggers, so turn it off for |
| 3600 | # debug builds. |
| 3601 | OPT="-g -Wall -Wstrict-prototypes" |
| 3602 | else |
| 3603 | OPT="-g -O3 -Wall -Wstrict-prototypes" |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3604 | fi |
| 3605 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3606 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3607 | OPT="-O3 -Wall -Wstrict-prototypes" |
| 3608 | ;; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3609 | esac |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3610 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3611 | SCO_SV*) OPT="$OPT -m486 -DSCO5" |
| 3612 | ;; |
| 3613 | esac |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3614 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3615 | |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3616 | *) |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3617 | OPT="-O" |
| 3618 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3619 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3620 | |
| 3621 | # The current (beta) Monterey compiler dies with optimizations |
| 3622 | # XXX what is Monterey? Does it still die w/ -O? Can we get rid of this? |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3623 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3624 | Monterey*) |
| 3625 | OPT="" |
| 3626 | ;; |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3627 | esac |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3628 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3629 | fi |
| 3630 | |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3631 | |
| 3632 | # tweak BASECFLAGS based on compiler and platform |
| 3633 | case $GCC in |
| 3634 | yes) |
| 3635 | case $ac_sys_system in |
| 3636 | SCO_SV*) |
| 3637 | BASECFLAGS="$BASECFLAGS -m486 -DSCO5" |
| 3638 | ;; |
| 3639 | # is there any other compiler on Darwin besides gcc? |
| 3640 | Darwin*) |
| 3641 | BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp" |
| 3642 | ;; |
| 3643 | esac |
| 3644 | ;; |
| 3645 | |
| 3646 | *) |
| 3647 | case $ac_sys_system in |
| 3648 | OpenUNIX*|UnixWare*) |
| 3649 | BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " |
| 3650 | ;; |
Neal Norwitz | b44f165 | 2003-05-26 14:11:55 +0000 | [diff] [blame] | 3651 | OSF*) |
| 3652 | BASECFLAGS="$BASECFLAGS -ieee -std" |
| 3653 | ;; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3654 | SCO_SV*) |
| 3655 | BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" |
| 3656 | ;; |
| 3657 | esac |
| 3658 | ;; |
| 3659 | esac |
| 3660 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 3661 | if test "$Py_DEBUG" = 'true'; then |
| 3662 | : |
| 3663 | else |
| 3664 | OPT="-DNDEBUG $OPT" |
| 3665 | fi |
| 3666 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3667 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3668 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3669 | BASECFLAGS="$BASECFLAGS $ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3670 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3671 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3672 | echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 3673 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6 |
| 3674 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 3675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3676 | else |
| 3677 | ac_save_cc="$CC" |
| 3678 | CC="$CC -OPT:Olimit=0" |
| 3679 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3680 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3681 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3682 | cat >conftest.$ac_ext <<_ACEOF |
| 3683 | #line $LINENO "configure" |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3684 | #include "confdefs.h" |
| 3685 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3686 | _ACEOF |
| 3687 | rm -f conftest$ac_exeext |
| 3688 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3689 | (eval $ac_link) 2>&5 |
| 3690 | ac_status=$? |
| 3691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3692 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3694 | (eval $ac_try) 2>&5 |
| 3695 | ac_status=$? |
| 3696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3697 | (exit $ac_status); }; }; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3698 | ac_cv_opt_olimit_ok=yes |
| 3699 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3700 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3701 | echo "$as_me: failed program was:" >&5 |
| 3702 | cat conftest.$ac_ext >&5 |
| 3703 | ( exit $ac_status ) |
| 3704 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3705 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 3706 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3707 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3708 | CC="$ac_save_cc" |
| 3709 | fi |
| 3710 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3711 | echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 3712 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 3713 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3714 | case $ac_sys_system in |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3715 | # XXX is this branch needed? On MacOSX 10.2.2 the result of the |
| 3716 | # olimit_ok test is "no". Is it "yes" in some other Darwin-esque |
| 3717 | # environment? |
| 3718 | Darwin*) |
| 3719 | ;; |
| 3720 | *) |
| 3721 | BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" |
| 3722 | ;; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3723 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3724 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3725 | echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 3726 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6 |
| 3727 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 3728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3729 | else |
| 3730 | ac_save_cc="$CC" |
| 3731 | CC="$CC -Olimit 1500" |
| 3732 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3733 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3734 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3735 | cat >conftest.$ac_ext <<_ACEOF |
| 3736 | #line $LINENO "configure" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3737 | #include "confdefs.h" |
| 3738 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3739 | _ACEOF |
| 3740 | rm -f conftest$ac_exeext |
| 3741 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3742 | (eval $ac_link) 2>&5 |
| 3743 | ac_status=$? |
| 3744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3745 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3747 | (eval $ac_try) 2>&5 |
| 3748 | ac_status=$? |
| 3749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3750 | (exit $ac_status); }; }; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3751 | ac_cv_olimit_ok=yes |
| 3752 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3753 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3754 | echo "$as_me: failed program was:" >&5 |
| 3755 | cat conftest.$ac_ext >&5 |
| 3756 | ( exit $ac_status ) |
| 3757 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 3758 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 3759 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3760 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3761 | CC="$ac_save_cc" |
| 3762 | fi |
| 3763 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3764 | echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 3765 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3766 | if test $ac_cv_olimit_ok = yes; then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 3767 | BASECFLAGS="$BASECFLAGS -Olimit 1500" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3768 | fi |
| 3769 | fi |
| 3770 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3771 | # On some compilers, pthreads are available without further options |
| 3772 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 3773 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 3774 | # So we have to see first whether pthreads are available without |
| 3775 | # options before we can check whether -Kpthread improves anything. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3776 | echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 3777 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6 |
| 3778 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 3779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3780 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3781 | if test "$cross_compiling" = yes; then |
| 3782 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3783 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3784 | cat >conftest.$ac_ext <<_ACEOF |
| 3785 | #line $LINENO "configure" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3786 | #include "confdefs.h" |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3787 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3788 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3789 | |
| 3790 | void* routine(void* p){return NULL;} |
| 3791 | |
| 3792 | int main(){ |
| 3793 | pthread_t p; |
| 3794 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3795 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3796 | (void)pthread_detach(p); |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3797 | return 0; |
| 3798 | } |
| 3799 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3800 | _ACEOF |
| 3801 | rm -f conftest$ac_exeext |
| 3802 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3803 | (eval $ac_link) 2>&5 |
| 3804 | ac_status=$? |
| 3805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3806 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3808 | (eval $ac_try) 2>&5 |
| 3809 | ac_status=$? |
| 3810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3811 | (exit $ac_status); }; }; then |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3812 | ac_cv_pthread_is_default=yes |
| 3813 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3814 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3815 | echo "$as_me: failed program was:" >&5 |
| 3816 | cat conftest.$ac_ext >&5 |
| 3817 | ( exit $ac_status ) |
| 3818 | ac_cv_pthread_is_default=no |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3819 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 3820 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3821 | fi |
| 3822 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3823 | fi |
| 3824 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3825 | echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 3826 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3827 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3828 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3829 | if test $ac_cv_pthread_is_default = yes |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3830 | then |
| 3831 | ac_cv_kpthread=no |
| 3832 | else |
| 3833 | # -Kpthread, if available, provides the right #defines |
| 3834 | # and linker options to make pthread_create available |
| 3835 | # Some compilers won't report that they do not support -Kpthread, |
| 3836 | # so we need to run a program to see whether it really made the |
| 3837 | # function available. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3838 | echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 3839 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6 |
| 3840 | if test "${ac_cv_kpthread+set}" = set; then |
| 3841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3842 | else |
| 3843 | ac_save_cc="$CC" |
| 3844 | CC="$CC -Kpthread" |
| 3845 | if test "$cross_compiling" = yes; then |
| 3846 | ac_cv_kpthread=no |
| 3847 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3848 | cat >conftest.$ac_ext <<_ACEOF |
| 3849 | #line $LINENO "configure" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3850 | #include "confdefs.h" |
| 3851 | |
| 3852 | #include <pthread.h> |
| 3853 | |
| 3854 | void* routine(void* p){return NULL;} |
| 3855 | |
| 3856 | int main(){ |
| 3857 | pthread_t p; |
| 3858 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3859 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3860 | (void)pthread_detach(p); |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3861 | return 0; |
| 3862 | } |
| 3863 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3864 | _ACEOF |
| 3865 | rm -f conftest$ac_exeext |
| 3866 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3867 | (eval $ac_link) 2>&5 |
| 3868 | ac_status=$? |
| 3869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3870 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3872 | (eval $ac_try) 2>&5 |
| 3873 | ac_status=$? |
| 3874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3875 | (exit $ac_status); }; }; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3876 | ac_cv_kpthread=yes |
| 3877 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3878 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3879 | echo "$as_me: failed program was:" >&5 |
| 3880 | cat conftest.$ac_ext >&5 |
| 3881 | ( exit $ac_status ) |
| 3882 | ac_cv_kpthread=no |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3883 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 3884 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3885 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3886 | CC="$ac_save_cc" |
| 3887 | fi |
| 3888 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3889 | echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 3890 | echo "${ECHO_T}$ac_cv_kpthread" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3891 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3892 | |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 3893 | if test $ac_cv_kpthread = no |
| 3894 | then |
| 3895 | # -Kthread, if available, provides the right #defines |
| 3896 | # and linker options to make pthread_create available |
| 3897 | # Some compilers won't report that they do not support -Kthread, |
| 3898 | # so we need to run a program to see whether it really made the |
| 3899 | # function available. |
| 3900 | echo "$as_me:$LINENO: checking whether $CC accepts -Kthread" >&5 |
| 3901 | echo $ECHO_N "checking whether $CC accepts -Kthread... $ECHO_C" >&6 |
| 3902 | if test "${ac_cv_kthread+set}" = set; then |
| 3903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3904 | else |
| 3905 | ac_save_cc="$CC" |
| 3906 | CC="$CC -Kthread" |
| 3907 | if test "$cross_compiling" = yes; then |
| 3908 | ac_cv_kthread=no |
| 3909 | else |
| 3910 | cat >conftest.$ac_ext <<_ACEOF |
| 3911 | #line $LINENO "configure" |
| 3912 | #include "confdefs.h" |
| 3913 | |
| 3914 | #include <pthread.h> |
| 3915 | |
| 3916 | void* routine(void* p){return NULL;} |
| 3917 | |
| 3918 | int main(){ |
| 3919 | pthread_t p; |
| 3920 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3921 | return 1; |
| 3922 | (void)pthread_detach(p); |
| 3923 | return 0; |
| 3924 | } |
| 3925 | |
| 3926 | _ACEOF |
| 3927 | rm -f conftest$ac_exeext |
| 3928 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3929 | (eval $ac_link) 2>&5 |
| 3930 | ac_status=$? |
| 3931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3932 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3934 | (eval $ac_try) 2>&5 |
| 3935 | ac_status=$? |
| 3936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3937 | (exit $ac_status); }; }; then |
| 3938 | ac_cv_kthread=yes |
| 3939 | else |
| 3940 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3941 | echo "$as_me: failed program was:" >&5 |
| 3942 | cat conftest.$ac_ext >&5 |
| 3943 | ( exit $ac_status ) |
| 3944 | ac_cv_kthread=no |
| 3945 | fi |
| 3946 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 3947 | fi |
| 3948 | CC="$ac_save_cc" |
| 3949 | fi |
| 3950 | |
| 3951 | echo "$as_me:$LINENO: result: $ac_cv_kthread" >&5 |
| 3952 | echo "${ECHO_T}$ac_cv_kthread" >&6 |
| 3953 | fi |
| 3954 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 3955 | if test $ac_cv_kthread = no |
| 3956 | then |
| 3957 | # -pthread, if available, provides the right #defines |
| 3958 | # and linker options to make pthread_create available |
| 3959 | # Some compilers won't report that they do not support -pthread, |
| 3960 | # so we need to run a program to see whether it really made the |
| 3961 | # function available. |
| 3962 | echo "$as_me:$LINENO: checking whether $CC accepts -pthread" >&5 |
| 3963 | echo $ECHO_N "checking whether $CC accepts -pthread... $ECHO_C" >&6 |
| 3964 | if test "${ac_cv_thread+set}" = set; then |
| 3965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3966 | else |
| 3967 | ac_save_cc="$CC" |
| 3968 | CC="$CC -pthread" |
| 3969 | if test "$cross_compiling" = yes; then |
| 3970 | ac_cv_pthread=no |
| 3971 | else |
| 3972 | cat >conftest.$ac_ext <<_ACEOF |
| 3973 | #line $LINENO "configure" |
| 3974 | #include "confdefs.h" |
| 3975 | |
| 3976 | #include <pthread.h> |
| 3977 | |
| 3978 | void* routine(void* p){return NULL;} |
| 3979 | |
| 3980 | int main(){ |
| 3981 | pthread_t p; |
| 3982 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3983 | return 1; |
| 3984 | (void)pthread_detach(p); |
| 3985 | return 0; |
| 3986 | } |
| 3987 | |
| 3988 | _ACEOF |
| 3989 | rm -f conftest$ac_exeext |
| 3990 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3991 | (eval $ac_link) 2>&5 |
| 3992 | ac_status=$? |
| 3993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3994 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3996 | (eval $ac_try) 2>&5 |
| 3997 | ac_status=$? |
| 3998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3999 | (exit $ac_status); }; }; then |
| 4000 | ac_cv_pthread=yes |
| 4001 | else |
| 4002 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4003 | echo "$as_me: failed program was:" >&5 |
| 4004 | cat conftest.$ac_ext >&5 |
| 4005 | ( exit $ac_status ) |
| 4006 | ac_cv_pthread=no |
| 4007 | fi |
| 4008 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4009 | fi |
| 4010 | CC="$ac_save_cc" |
| 4011 | fi |
| 4012 | |
| 4013 | echo "$as_me:$LINENO: result: $ac_cv_pthread" >&5 |
| 4014 | echo "${ECHO_T}$ac_cv_pthread" >&6 |
| 4015 | fi |
| 4016 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4017 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4018 | # checks for header files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4019 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4020 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 4021 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4023 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4024 | cat >conftest.$ac_ext <<_ACEOF |
| 4025 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4026 | #include "confdefs.h" |
| 4027 | #include <stdlib.h> |
| 4028 | #include <stdarg.h> |
| 4029 | #include <string.h> |
| 4030 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4031 | |
| 4032 | _ACEOF |
| 4033 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4034 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4035 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4036 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4037 | rm -f conftest.er1 |
| 4038 | cat conftest.err >&5 |
| 4039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4040 | (exit $ac_status); } >/dev/null; then |
| 4041 | if test -s conftest.err; then |
| 4042 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4043 | else |
| 4044 | ac_cpp_err= |
| 4045 | fi |
| 4046 | else |
| 4047 | ac_cpp_err=yes |
| 4048 | fi |
| 4049 | if test -z "$ac_cpp_err"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4050 | ac_cv_header_stdc=yes |
| 4051 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4052 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 4053 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4054 | ac_cv_header_stdc=no |
| 4055 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4056 | rm -f conftest.err conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4057 | |
| 4058 | if test $ac_cv_header_stdc = yes; then |
| 4059 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4060 | cat >conftest.$ac_ext <<_ACEOF |
| 4061 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4062 | #include "confdefs.h" |
| 4063 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4064 | |
| 4065 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4066 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4067 | egrep "memchr" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4068 | : |
| 4069 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4070 | ac_cv_header_stdc=no |
| 4071 | fi |
| 4072 | rm -f conftest* |
| 4073 | |
| 4074 | fi |
| 4075 | |
| 4076 | if test $ac_cv_header_stdc = yes; then |
| 4077 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4078 | cat >conftest.$ac_ext <<_ACEOF |
| 4079 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4080 | #include "confdefs.h" |
| 4081 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4082 | |
| 4083 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4084 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4085 | egrep "free" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4086 | : |
| 4087 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4088 | ac_cv_header_stdc=no |
| 4089 | fi |
| 4090 | rm -f conftest* |
| 4091 | |
| 4092 | fi |
| 4093 | |
| 4094 | if test $ac_cv_header_stdc = yes; then |
| 4095 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4096 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4097 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4098 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4099 | cat >conftest.$ac_ext <<_ACEOF |
| 4100 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4101 | #include "confdefs.h" |
| 4102 | #include <ctype.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4103 | #if ((' ' & 0x0FF) == 0x020) |
| 4104 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4105 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4106 | #else |
| 4107 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 4108 | || ('j' <= (c) && (c) <= 'r') \ |
| 4109 | || ('s' <= (c) && (c) <= 'z')) |
| 4110 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4111 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4112 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4113 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4114 | int |
| 4115 | main () |
| 4116 | { |
| 4117 | int i; |
| 4118 | for (i = 0; i < 256; i++) |
| 4119 | if (XOR (islower (i), ISLOWER (i)) |
| 4120 | || toupper (i) != TOUPPER (i)) |
| 4121 | exit(2); |
| 4122 | exit (0); |
| 4123 | } |
| 4124 | _ACEOF |
| 4125 | rm -f conftest$ac_exeext |
| 4126 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4127 | (eval $ac_link) 2>&5 |
| 4128 | ac_status=$? |
| 4129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4130 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4132 | (eval $ac_try) 2>&5 |
| 4133 | ac_status=$? |
| 4134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4135 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4136 | : |
| 4137 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4138 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4139 | echo "$as_me: failed program was:" >&5 |
| 4140 | cat conftest.$ac_ext >&5 |
| 4141 | ( exit $ac_status ) |
| 4142 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4143 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4144 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4145 | fi |
| 4146 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4147 | fi |
| 4148 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4149 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4150 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4151 | |
| 4152 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4153 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4154 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4155 | |
| 4156 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4157 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4158 | |
| 4159 | |
| 4160 | |
| 4161 | |
| 4162 | |
| 4163 | |
| 4164 | |
| 4165 | |
| 4166 | |
| 4167 | |
| 4168 | |
| 4169 | |
| 4170 | |
| 4171 | |
| 4172 | |
| 4173 | |
| 4174 | |
| 4175 | |
| 4176 | |
| 4177 | |
| 4178 | |
| 4179 | |
| 4180 | |
| 4181 | |
| 4182 | |
| 4183 | |
| 4184 | |
| 4185 | |
| 4186 | |
| 4187 | |
| 4188 | |
| 4189 | |
| 4190 | |
| 4191 | |
| 4192 | |
| 4193 | |
| 4194 | |
Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 4195 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4196 | |
Neal Norwitz | 8225103 | 2003-05-23 14:35:24 +0000 | [diff] [blame] | 4197 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4198 | for ac_header in dlfcn.h fcntl.h grp.h limits.h langinfo.h \ |
Martin v. Löwis | 2e64c34 | 2002-03-27 18:49:02 +0000 | [diff] [blame] | 4199 | libintl.h locale.h ncurses.h poll.h pthread.h \ |
Martin v. Löwis | 14e73b1 | 2003-01-01 09:51:12 +0000 | [diff] [blame] | 4200 | signal.h stdarg.h stddef.h stdlib.h stropts.h termios.h thread.h \ |
| 4201 | unistd.h utime.h \ |
Neal Norwitz | 8225103 | 2003-05-23 14:35:24 +0000 | [diff] [blame] | 4202 | sys/audioio.h sys/bsdtty.h sys/file.h sys/lock.h sys/mkdev.h sys/modem.h \ |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 4203 | sys/param.h sys/poll.h sys/select.h sys/socket.h sys/time.h sys/times.h \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 4204 | sys/un.h sys/utsname.h sys/wait.h pty.h term.h libutil.h \ |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4205 | sys/resource.h netpacket/packet.h sysexits.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4206 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4207 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4208 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4209 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4210 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4211 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4213 | fi |
| 4214 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4215 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4216 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4217 | # Is the header compilable? |
| 4218 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4219 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4220 | cat >conftest.$ac_ext <<_ACEOF |
| 4221 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4222 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4223 | $ac_includes_default |
| 4224 | #include <$ac_header> |
| 4225 | _ACEOF |
| 4226 | rm -f conftest.$ac_objext |
| 4227 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4228 | (eval $ac_compile) 2>&5 |
| 4229 | ac_status=$? |
| 4230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4231 | (exit $ac_status); } && |
| 4232 | { ac_try='test -s conftest.$ac_objext' |
| 4233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4234 | (eval $ac_try) 2>&5 |
| 4235 | ac_status=$? |
| 4236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4237 | (exit $ac_status); }; }; then |
| 4238 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4239 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4240 | echo "$as_me: failed program was:" >&5 |
| 4241 | cat conftest.$ac_ext >&5 |
| 4242 | ac_header_compiler=no |
| 4243 | fi |
| 4244 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4245 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4246 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4247 | |
| 4248 | # Is the header present? |
| 4249 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4250 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4251 | cat >conftest.$ac_ext <<_ACEOF |
| 4252 | #line $LINENO "configure" |
| 4253 | #include "confdefs.h" |
| 4254 | #include <$ac_header> |
| 4255 | _ACEOF |
| 4256 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4257 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4258 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4259 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4260 | rm -f conftest.er1 |
| 4261 | cat conftest.err >&5 |
| 4262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4263 | (exit $ac_status); } >/dev/null; then |
| 4264 | if test -s conftest.err; then |
| 4265 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4266 | else |
| 4267 | ac_cpp_err= |
| 4268 | fi |
| 4269 | else |
| 4270 | ac_cpp_err=yes |
| 4271 | fi |
| 4272 | if test -z "$ac_cpp_err"; then |
| 4273 | ac_header_preproc=yes |
| 4274 | else |
| 4275 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4276 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4277 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4278 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4279 | rm -f conftest.err conftest.$ac_ext |
| 4280 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4281 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4282 | |
| 4283 | # So? What about this header? |
| 4284 | case $ac_header_compiler:$ac_header_preproc in |
| 4285 | yes:no ) |
| 4286 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4287 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4288 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4289 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 4290 | no:yes ) |
| 4291 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4292 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 4293 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4294 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4295 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4296 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 4297 | esac |
| 4298 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4299 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4300 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4301 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4302 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4303 | eval "$as_ac_Header=$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4304 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4305 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4306 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4307 | |
| 4308 | fi |
| 4309 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4310 | cat >>confdefs.h <<_ACEOF |
| 4311 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4312 | _ACEOF |
| 4313 | |
| 4314 | fi |
| 4315 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4316 | done |
| 4317 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4318 | |
| 4319 | |
| 4320 | |
| 4321 | |
| 4322 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4323 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4324 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 4325 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 4326 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 4327 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 4328 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4329 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4330 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4331 | cat >conftest.$ac_ext <<_ACEOF |
| 4332 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4333 | #include "confdefs.h" |
| 4334 | #include <sys/types.h> |
| 4335 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4336 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4337 | #ifdef F77_DUMMY_MAIN |
| 4338 | # ifdef __cplusplus |
| 4339 | extern "C" |
| 4340 | # endif |
| 4341 | int F77_DUMMY_MAIN() { return 1; } |
| 4342 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4343 | int |
| 4344 | main () |
| 4345 | { |
| 4346 | if ((DIR *) 0) |
| 4347 | return 0; |
| 4348 | ; |
| 4349 | return 0; |
| 4350 | } |
| 4351 | _ACEOF |
| 4352 | rm -f conftest.$ac_objext |
| 4353 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4354 | (eval $ac_compile) 2>&5 |
| 4355 | ac_status=$? |
| 4356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4357 | (exit $ac_status); } && |
| 4358 | { ac_try='test -s conftest.$ac_objext' |
| 4359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4360 | (eval $ac_try) 2>&5 |
| 4361 | ac_status=$? |
| 4362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4363 | (exit $ac_status); }; }; then |
| 4364 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4365 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4366 | echo "$as_me: failed program was:" >&5 |
| 4367 | cat conftest.$ac_ext >&5 |
| 4368 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4369 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4370 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4371 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4372 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4373 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4374 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4375 | cat >>confdefs.h <<_ACEOF |
| 4376 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 4377 | _ACEOF |
| 4378 | |
| 4379 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4380 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4381 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4382 | done |
| 4383 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 4384 | if test $ac_header_dirent = dirent.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4385 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4386 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4387 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4389 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4390 | ac_func_search_save_LIBS=$LIBS |
| 4391 | ac_cv_search_opendir=no |
| 4392 | cat >conftest.$ac_ext <<_ACEOF |
| 4393 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4394 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4395 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4396 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4397 | #ifdef __cplusplus |
| 4398 | extern "C" |
| 4399 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4400 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4401 | builtin and then its argument prototype would still apply. */ |
| 4402 | char opendir (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4403 | #ifdef F77_DUMMY_MAIN |
| 4404 | # ifdef __cplusplus |
| 4405 | extern "C" |
| 4406 | # endif |
| 4407 | int F77_DUMMY_MAIN() { return 1; } |
| 4408 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4409 | int |
| 4410 | main () |
| 4411 | { |
| 4412 | opendir (); |
| 4413 | ; |
| 4414 | return 0; |
| 4415 | } |
| 4416 | _ACEOF |
| 4417 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4418 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4419 | (eval $ac_link) 2>&5 |
| 4420 | ac_status=$? |
| 4421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4422 | (exit $ac_status); } && |
| 4423 | { ac_try='test -s conftest$ac_exeext' |
| 4424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4425 | (eval $ac_try) 2>&5 |
| 4426 | ac_status=$? |
| 4427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4428 | (exit $ac_status); }; }; then |
| 4429 | ac_cv_search_opendir="none required" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4430 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4431 | echo "$as_me: failed program was:" >&5 |
| 4432 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4433 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4434 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4435 | if test "$ac_cv_search_opendir" = no; then |
| 4436 | for ac_lib in dir; do |
| 4437 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4438 | cat >conftest.$ac_ext <<_ACEOF |
| 4439 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4440 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4441 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4442 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4443 | #ifdef __cplusplus |
| 4444 | extern "C" |
| 4445 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4446 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4447 | builtin and then its argument prototype would still apply. */ |
| 4448 | char opendir (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4449 | #ifdef F77_DUMMY_MAIN |
| 4450 | # ifdef __cplusplus |
| 4451 | extern "C" |
| 4452 | # endif |
| 4453 | int F77_DUMMY_MAIN() { return 1; } |
| 4454 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4455 | int |
| 4456 | main () |
| 4457 | { |
| 4458 | opendir (); |
| 4459 | ; |
| 4460 | return 0; |
| 4461 | } |
| 4462 | _ACEOF |
| 4463 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4464 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4465 | (eval $ac_link) 2>&5 |
| 4466 | ac_status=$? |
| 4467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4468 | (exit $ac_status); } && |
| 4469 | { ac_try='test -s conftest$ac_exeext' |
| 4470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4471 | (eval $ac_try) 2>&5 |
| 4472 | ac_status=$? |
| 4473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4474 | (exit $ac_status); }; }; then |
| 4475 | ac_cv_search_opendir="-l$ac_lib" |
| 4476 | break |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4477 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4478 | echo "$as_me: failed program was:" >&5 |
| 4479 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4480 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4481 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4482 | done |
| 4483 | fi |
| 4484 | LIBS=$ac_func_search_save_LIBS |
| 4485 | fi |
| 4486 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4487 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4488 | if test "$ac_cv_search_opendir" != no; then |
| 4489 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4490 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4491 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4492 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4493 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4494 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4495 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4496 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4498 | else |
| 4499 | ac_func_search_save_LIBS=$LIBS |
| 4500 | ac_cv_search_opendir=no |
| 4501 | cat >conftest.$ac_ext <<_ACEOF |
| 4502 | #line $LINENO "configure" |
| 4503 | #include "confdefs.h" |
| 4504 | |
| 4505 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4506 | #ifdef __cplusplus |
| 4507 | extern "C" |
| 4508 | #endif |
| 4509 | /* We use char because int might match the return type of a gcc2 |
| 4510 | builtin and then its argument prototype would still apply. */ |
| 4511 | char opendir (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4512 | #ifdef F77_DUMMY_MAIN |
| 4513 | # ifdef __cplusplus |
| 4514 | extern "C" |
| 4515 | # endif |
| 4516 | int F77_DUMMY_MAIN() { return 1; } |
| 4517 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4518 | int |
| 4519 | main () |
| 4520 | { |
| 4521 | opendir (); |
| 4522 | ; |
| 4523 | return 0; |
| 4524 | } |
| 4525 | _ACEOF |
| 4526 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4527 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4528 | (eval $ac_link) 2>&5 |
| 4529 | ac_status=$? |
| 4530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4531 | (exit $ac_status); } && |
| 4532 | { ac_try='test -s conftest$ac_exeext' |
| 4533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4534 | (eval $ac_try) 2>&5 |
| 4535 | ac_status=$? |
| 4536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4537 | (exit $ac_status); }; }; then |
| 4538 | ac_cv_search_opendir="none required" |
| 4539 | else |
| 4540 | echo "$as_me: failed program was:" >&5 |
| 4541 | cat conftest.$ac_ext >&5 |
| 4542 | fi |
| 4543 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4544 | if test "$ac_cv_search_opendir" = no; then |
| 4545 | for ac_lib in x; do |
| 4546 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4547 | cat >conftest.$ac_ext <<_ACEOF |
| 4548 | #line $LINENO "configure" |
| 4549 | #include "confdefs.h" |
| 4550 | |
| 4551 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4552 | #ifdef __cplusplus |
| 4553 | extern "C" |
| 4554 | #endif |
| 4555 | /* We use char because int might match the return type of a gcc2 |
| 4556 | builtin and then its argument prototype would still apply. */ |
| 4557 | char opendir (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4558 | #ifdef F77_DUMMY_MAIN |
| 4559 | # ifdef __cplusplus |
| 4560 | extern "C" |
| 4561 | # endif |
| 4562 | int F77_DUMMY_MAIN() { return 1; } |
| 4563 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4564 | int |
| 4565 | main () |
| 4566 | { |
| 4567 | opendir (); |
| 4568 | ; |
| 4569 | return 0; |
| 4570 | } |
| 4571 | _ACEOF |
| 4572 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4573 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4574 | (eval $ac_link) 2>&5 |
| 4575 | ac_status=$? |
| 4576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4577 | (exit $ac_status); } && |
| 4578 | { ac_try='test -s conftest$ac_exeext' |
| 4579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4580 | (eval $ac_try) 2>&5 |
| 4581 | ac_status=$? |
| 4582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4583 | (exit $ac_status); }; }; then |
| 4584 | ac_cv_search_opendir="-l$ac_lib" |
| 4585 | break |
| 4586 | else |
| 4587 | echo "$as_me: failed program was:" >&5 |
| 4588 | cat conftest.$ac_ext >&5 |
| 4589 | fi |
| 4590 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4591 | done |
| 4592 | fi |
| 4593 | LIBS=$ac_func_search_save_LIBS |
| 4594 | fi |
| 4595 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4596 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4597 | if test "$ac_cv_search_opendir" != no; then |
| 4598 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 4599 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4600 | fi |
| 4601 | |
| 4602 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4603 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4604 | echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 4605 | echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6 |
| 4606 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
| 4607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4608 | else |
| 4609 | cat >conftest.$ac_ext <<_ACEOF |
| 4610 | #line $LINENO "configure" |
| 4611 | #include "confdefs.h" |
| 4612 | #include <sys/types.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4613 | #ifdef F77_DUMMY_MAIN |
| 4614 | # ifdef __cplusplus |
| 4615 | extern "C" |
| 4616 | # endif |
| 4617 | int F77_DUMMY_MAIN() { return 1; } |
| 4618 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4619 | int |
| 4620 | main () |
| 4621 | { |
| 4622 | return makedev(0, 0); |
| 4623 | ; |
| 4624 | return 0; |
| 4625 | } |
| 4626 | _ACEOF |
| 4627 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4628 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4629 | (eval $ac_link) 2>&5 |
| 4630 | ac_status=$? |
| 4631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4632 | (exit $ac_status); } && |
| 4633 | { ac_try='test -s conftest$ac_exeext' |
| 4634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4635 | (eval $ac_try) 2>&5 |
| 4636 | ac_status=$? |
| 4637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4638 | (exit $ac_status); }; }; then |
| 4639 | ac_cv_header_sys_types_h_makedev=yes |
| 4640 | else |
| 4641 | echo "$as_me: failed program was:" >&5 |
| 4642 | cat conftest.$ac_ext >&5 |
| 4643 | ac_cv_header_sys_types_h_makedev=no |
| 4644 | fi |
| 4645 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4646 | |
| 4647 | fi |
| 4648 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 4649 | echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6 |
| 4650 | |
| 4651 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 4652 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4653 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 4654 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 4655 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4657 | fi |
| 4658 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 4659 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 4660 | else |
| 4661 | # Is the header compilable? |
| 4662 | echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 4663 | echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6 |
| 4664 | cat >conftest.$ac_ext <<_ACEOF |
| 4665 | #line $LINENO "configure" |
| 4666 | #include "confdefs.h" |
| 4667 | $ac_includes_default |
| 4668 | #include <sys/mkdev.h> |
| 4669 | _ACEOF |
| 4670 | rm -f conftest.$ac_objext |
| 4671 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4672 | (eval $ac_compile) 2>&5 |
| 4673 | ac_status=$? |
| 4674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4675 | (exit $ac_status); } && |
| 4676 | { ac_try='test -s conftest.$ac_objext' |
| 4677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4678 | (eval $ac_try) 2>&5 |
| 4679 | ac_status=$? |
| 4680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4681 | (exit $ac_status); }; }; then |
| 4682 | ac_header_compiler=yes |
| 4683 | else |
| 4684 | echo "$as_me: failed program was:" >&5 |
| 4685 | cat conftest.$ac_ext >&5 |
| 4686 | ac_header_compiler=no |
| 4687 | fi |
| 4688 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4689 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4690 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4691 | |
| 4692 | # Is the header present? |
| 4693 | echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 4694 | echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6 |
| 4695 | cat >conftest.$ac_ext <<_ACEOF |
| 4696 | #line $LINENO "configure" |
| 4697 | #include "confdefs.h" |
| 4698 | #include <sys/mkdev.h> |
| 4699 | _ACEOF |
| 4700 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4701 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4702 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4703 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4704 | rm -f conftest.er1 |
| 4705 | cat conftest.err >&5 |
| 4706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4707 | (exit $ac_status); } >/dev/null; then |
| 4708 | if test -s conftest.err; then |
| 4709 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4710 | else |
| 4711 | ac_cpp_err= |
| 4712 | fi |
| 4713 | else |
| 4714 | ac_cpp_err=yes |
| 4715 | fi |
| 4716 | if test -z "$ac_cpp_err"; then |
| 4717 | ac_header_preproc=yes |
| 4718 | else |
| 4719 | echo "$as_me: failed program was:" >&5 |
| 4720 | cat conftest.$ac_ext >&5 |
| 4721 | ac_header_preproc=no |
| 4722 | fi |
| 4723 | rm -f conftest.err conftest.$ac_ext |
| 4724 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4725 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4726 | |
| 4727 | # So? What about this header? |
| 4728 | case $ac_header_compiler:$ac_header_preproc in |
| 4729 | yes:no ) |
| 4730 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4731 | echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4732 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 4733 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};; |
| 4734 | no:yes ) |
| 4735 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 4736 | echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
| 4737 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 4738 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 4739 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 4740 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};; |
| 4741 | esac |
| 4742 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 4743 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 4744 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4746 | else |
| 4747 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 4748 | fi |
| 4749 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 4750 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 4751 | |
| 4752 | fi |
| 4753 | if test $ac_cv_header_sys_mkdev_h = yes; then |
| 4754 | |
| 4755 | cat >>confdefs.h <<\_ACEOF |
| 4756 | #define MAJOR_IN_MKDEV 1 |
| 4757 | _ACEOF |
| 4758 | |
| 4759 | fi |
| 4760 | |
| 4761 | |
| 4762 | |
| 4763 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 4764 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4765 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 4766 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 4767 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4769 | fi |
| 4770 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 4771 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 4772 | else |
| 4773 | # Is the header compilable? |
| 4774 | echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 4775 | echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6 |
| 4776 | cat >conftest.$ac_ext <<_ACEOF |
| 4777 | #line $LINENO "configure" |
| 4778 | #include "confdefs.h" |
| 4779 | $ac_includes_default |
| 4780 | #include <sys/sysmacros.h> |
| 4781 | _ACEOF |
| 4782 | rm -f conftest.$ac_objext |
| 4783 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4784 | (eval $ac_compile) 2>&5 |
| 4785 | ac_status=$? |
| 4786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4787 | (exit $ac_status); } && |
| 4788 | { ac_try='test -s conftest.$ac_objext' |
| 4789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4790 | (eval $ac_try) 2>&5 |
| 4791 | ac_status=$? |
| 4792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4793 | (exit $ac_status); }; }; then |
| 4794 | ac_header_compiler=yes |
| 4795 | else |
| 4796 | echo "$as_me: failed program was:" >&5 |
| 4797 | cat conftest.$ac_ext >&5 |
| 4798 | ac_header_compiler=no |
| 4799 | fi |
| 4800 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4801 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4802 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4803 | |
| 4804 | # Is the header present? |
| 4805 | echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 4806 | echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6 |
| 4807 | cat >conftest.$ac_ext <<_ACEOF |
| 4808 | #line $LINENO "configure" |
| 4809 | #include "confdefs.h" |
| 4810 | #include <sys/sysmacros.h> |
| 4811 | _ACEOF |
| 4812 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4813 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4814 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4815 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4816 | rm -f conftest.er1 |
| 4817 | cat conftest.err >&5 |
| 4818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4819 | (exit $ac_status); } >/dev/null; then |
| 4820 | if test -s conftest.err; then |
| 4821 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4822 | else |
| 4823 | ac_cpp_err= |
| 4824 | fi |
| 4825 | else |
| 4826 | ac_cpp_err=yes |
| 4827 | fi |
| 4828 | if test -z "$ac_cpp_err"; then |
| 4829 | ac_header_preproc=yes |
| 4830 | else |
| 4831 | echo "$as_me: failed program was:" >&5 |
| 4832 | cat conftest.$ac_ext >&5 |
| 4833 | ac_header_preproc=no |
| 4834 | fi |
| 4835 | rm -f conftest.err conftest.$ac_ext |
| 4836 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4837 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4838 | |
| 4839 | # So? What about this header? |
| 4840 | case $ac_header_compiler:$ac_header_preproc in |
| 4841 | yes:no ) |
| 4842 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4843 | echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4844 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 4845 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};; |
| 4846 | no:yes ) |
| 4847 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 4848 | echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
| 4849 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 4850 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 4851 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 4852 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};; |
| 4853 | esac |
| 4854 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 4855 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 4856 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4858 | else |
| 4859 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 4860 | fi |
| 4861 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 4862 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 4863 | |
| 4864 | fi |
| 4865 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
| 4866 | |
| 4867 | cat >>confdefs.h <<\_ACEOF |
| 4868 | #define MAJOR_IN_SYSMACROS 1 |
| 4869 | _ACEOF |
| 4870 | |
| 4871 | fi |
| 4872 | |
| 4873 | |
| 4874 | fi |
| 4875 | fi |
| 4876 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4877 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4878 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4879 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4880 | echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 4881 | echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6 |
| 4882 | cat >conftest.$ac_ext <<_ACEOF |
| 4883 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4884 | #include "confdefs.h" |
| 4885 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4886 | |
| 4887 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4888 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4889 | egrep "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4890 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4891 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4892 | |
| 4893 | |
| 4894 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4895 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4896 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4897 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 4898 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4899 | fi |
| 4900 | rm -f conftest* |
| 4901 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4902 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 4903 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4904 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 4905 | # Check whether using makedev requires defining _OSF_SOURCE |
| 4906 | echo "$as_me:$LINENO: checking for makedev" >&5 |
| 4907 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6 |
| 4908 | cat >conftest.$ac_ext <<_ACEOF |
| 4909 | #line $LINENO "configure" |
| 4910 | #include "confdefs.h" |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 4911 | #include <sys/types.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4912 | #ifdef F77_DUMMY_MAIN |
| 4913 | # ifdef __cplusplus |
| 4914 | extern "C" |
| 4915 | # endif |
| 4916 | int F77_DUMMY_MAIN() { return 1; } |
| 4917 | #endif |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 4918 | int |
| 4919 | main () |
| 4920 | { |
| 4921 | makedev(0, 0) |
| 4922 | ; |
| 4923 | return 0; |
| 4924 | } |
| 4925 | _ACEOF |
| 4926 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4927 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4928 | (eval $ac_link) 2>&5 |
| 4929 | ac_status=$? |
| 4930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4931 | (exit $ac_status); } && |
| 4932 | { ac_try='test -s conftest$ac_exeext' |
| 4933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4934 | (eval $ac_try) 2>&5 |
| 4935 | ac_status=$? |
| 4936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4937 | (exit $ac_status); }; }; then |
| 4938 | ac_cv_has_makedev=yes |
| 4939 | else |
| 4940 | echo "$as_me: failed program was:" >&5 |
| 4941 | cat conftest.$ac_ext >&5 |
| 4942 | ac_cv_has_makedev=no |
| 4943 | fi |
| 4944 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4945 | if test "$ac_cv_has_makedev" = "no"; then |
| 4946 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 4947 | cat >conftest.$ac_ext <<_ACEOF |
| 4948 | #line $LINENO "configure" |
| 4949 | #include "confdefs.h" |
| 4950 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 4951 | #define _OSF_SOURCE 1 |
| 4952 | #include <sys/types.h> |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 4953 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 4954 | #ifdef F77_DUMMY_MAIN |
| 4955 | # ifdef __cplusplus |
| 4956 | extern "C" |
| 4957 | # endif |
| 4958 | int F77_DUMMY_MAIN() { return 1; } |
| 4959 | #endif |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 4960 | int |
| 4961 | main () |
| 4962 | { |
| 4963 | makedev(0, 0) |
| 4964 | ; |
| 4965 | return 0; |
| 4966 | } |
| 4967 | _ACEOF |
| 4968 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4969 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4970 | (eval $ac_link) 2>&5 |
| 4971 | ac_status=$? |
| 4972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4973 | (exit $ac_status); } && |
| 4974 | { ac_try='test -s conftest$ac_exeext' |
| 4975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4976 | (eval $ac_try) 2>&5 |
| 4977 | ac_status=$? |
| 4978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4979 | (exit $ac_status); }; }; then |
| 4980 | ac_cv_has_makedev=yes |
| 4981 | else |
| 4982 | echo "$as_me: failed program was:" >&5 |
| 4983 | cat conftest.$ac_ext >&5 |
| 4984 | ac_cv_has_makedev=no |
| 4985 | fi |
| 4986 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4987 | if test "$ac_cv_has_makedev" = "yes"; then |
| 4988 | |
| 4989 | cat >>confdefs.h <<\_ACEOF |
| 4990 | #define _OSF_SOURCE 1 |
| 4991 | _ACEOF |
| 4992 | |
| 4993 | fi |
| 4994 | fi |
| 4995 | echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 4996 | echo "${ECHO_T}$ac_cv_has_makedev" >&6 |
| 4997 | if test "$ac_cv_has_makedev" = "yes"; then |
| 4998 | |
| 4999 | cat >>confdefs.h <<\_ACEOF |
| 5000 | #define HAVE_MAKEDEV 1 |
| 5001 | _ACEOF |
| 5002 | |
| 5003 | fi |
| 5004 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5005 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 5006 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 5007 | # defined, but the compiler does not support pragma redefine_extname, |
| 5008 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 5009 | # structures (such as rlimit64) without declaring them. As a |
| 5010 | # work-around, disable LFS on such configurations |
| 5011 | |
| 5012 | use_lfs=yes |
| 5013 | echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 5014 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6 |
| 5015 | cat >conftest.$ac_ext <<_ACEOF |
| 5016 | #line $LINENO "configure" |
| 5017 | #include "confdefs.h" |
| 5018 | |
| 5019 | #define _LARGEFILE_SOURCE 1 |
| 5020 | #define _FILE_OFFSET_BITS 64 |
| 5021 | #include <sys/resource.h> |
| 5022 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5023 | #ifdef F77_DUMMY_MAIN |
| 5024 | # ifdef __cplusplus |
| 5025 | extern "C" |
| 5026 | # endif |
| 5027 | int F77_DUMMY_MAIN() { return 1; } |
| 5028 | #endif |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5029 | int |
| 5030 | main () |
| 5031 | { |
| 5032 | struct rlimit foo; |
| 5033 | ; |
| 5034 | return 0; |
| 5035 | } |
| 5036 | _ACEOF |
| 5037 | rm -f conftest.$ac_objext |
| 5038 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5039 | (eval $ac_compile) 2>&5 |
| 5040 | ac_status=$? |
| 5041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5042 | (exit $ac_status); } && |
| 5043 | { ac_try='test -s conftest.$ac_objext' |
| 5044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5045 | (eval $ac_try) 2>&5 |
| 5046 | ac_status=$? |
| 5047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5048 | (exit $ac_status); }; }; then |
| 5049 | sol_lfs_bug=no |
| 5050 | else |
| 5051 | echo "$as_me: failed program was:" >&5 |
| 5052 | cat conftest.$ac_ext >&5 |
| 5053 | sol_lfs_bug=yes |
| 5054 | fi |
| 5055 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5056 | echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 5057 | echo "${ECHO_T}$sol_lfs_bug" >&6 |
| 5058 | if test "$sol_lfs_bug" = "yes"; then |
| 5059 | use_lfs=no |
| 5060 | fi |
| 5061 | |
| 5062 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5063 | # Two defines needed to enable largefile support on various platforms |
| 5064 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5065 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5066 | cat >>confdefs.h <<\_ACEOF |
| 5067 | #define _LARGEFILE_SOURCE 1 |
| 5068 | _ACEOF |
| 5069 | |
| 5070 | |
| 5071 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5072 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5073 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 5074 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 5075 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5076 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 5077 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 5078 | cat >> confdefs.h <<\EOF |
| 5079 | #if defined(SCO_DS) |
| 5080 | #undef _OFF_T |
| 5081 | #endif |
| 5082 | EOF |
| 5083 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 5084 | # Type availability checks |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5085 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 5086 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 5087 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 5088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5089 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5090 | cat >conftest.$ac_ext <<_ACEOF |
| 5091 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5092 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5093 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5094 | #ifdef F77_DUMMY_MAIN |
| 5095 | # ifdef __cplusplus |
| 5096 | extern "C" |
| 5097 | # endif |
| 5098 | int F77_DUMMY_MAIN() { return 1; } |
| 5099 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5100 | int |
| 5101 | main () |
| 5102 | { |
| 5103 | if ((mode_t *) 0) |
| 5104 | return 0; |
| 5105 | if (sizeof (mode_t)) |
| 5106 | return 0; |
| 5107 | ; |
| 5108 | return 0; |
| 5109 | } |
| 5110 | _ACEOF |
| 5111 | rm -f conftest.$ac_objext |
| 5112 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5113 | (eval $ac_compile) 2>&5 |
| 5114 | ac_status=$? |
| 5115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5116 | (exit $ac_status); } && |
| 5117 | { ac_try='test -s conftest.$ac_objext' |
| 5118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5119 | (eval $ac_try) 2>&5 |
| 5120 | ac_status=$? |
| 5121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5122 | (exit $ac_status); }; }; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5123 | ac_cv_type_mode_t=yes |
| 5124 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5125 | echo "$as_me: failed program was:" >&5 |
| 5126 | cat conftest.$ac_ext >&5 |
| 5127 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5128 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5129 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5130 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5131 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 5132 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 5133 | if test $ac_cv_type_mode_t = yes; then |
| 5134 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5135 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5136 | |
| 5137 | cat >>confdefs.h <<_ACEOF |
| 5138 | #define mode_t int |
| 5139 | _ACEOF |
| 5140 | |
| 5141 | fi |
| 5142 | |
| 5143 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 5144 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 5145 | if test "${ac_cv_type_off_t+set}" = set; then |
| 5146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5147 | else |
| 5148 | cat >conftest.$ac_ext <<_ACEOF |
| 5149 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5150 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5151 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5152 | #ifdef F77_DUMMY_MAIN |
| 5153 | # ifdef __cplusplus |
| 5154 | extern "C" |
| 5155 | # endif |
| 5156 | int F77_DUMMY_MAIN() { return 1; } |
| 5157 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5158 | int |
| 5159 | main () |
| 5160 | { |
| 5161 | if ((off_t *) 0) |
| 5162 | return 0; |
| 5163 | if (sizeof (off_t)) |
| 5164 | return 0; |
| 5165 | ; |
| 5166 | return 0; |
| 5167 | } |
| 5168 | _ACEOF |
| 5169 | rm -f conftest.$ac_objext |
| 5170 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5171 | (eval $ac_compile) 2>&5 |
| 5172 | ac_status=$? |
| 5173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5174 | (exit $ac_status); } && |
| 5175 | { ac_try='test -s conftest.$ac_objext' |
| 5176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5177 | (eval $ac_try) 2>&5 |
| 5178 | ac_status=$? |
| 5179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5180 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5181 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5182 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5183 | echo "$as_me: failed program was:" >&5 |
| 5184 | cat conftest.$ac_ext >&5 |
| 5185 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5186 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5187 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5188 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5189 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 5190 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 5191 | if test $ac_cv_type_off_t = yes; then |
| 5192 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5193 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5194 | |
| 5195 | cat >>confdefs.h <<_ACEOF |
| 5196 | #define off_t long |
| 5197 | _ACEOF |
| 5198 | |
| 5199 | fi |
| 5200 | |
| 5201 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 5202 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 5203 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 5204 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5205 | else |
| 5206 | cat >conftest.$ac_ext <<_ACEOF |
| 5207 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5208 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5209 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5210 | #ifdef F77_DUMMY_MAIN |
| 5211 | # ifdef __cplusplus |
| 5212 | extern "C" |
| 5213 | # endif |
| 5214 | int F77_DUMMY_MAIN() { return 1; } |
| 5215 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5216 | int |
| 5217 | main () |
| 5218 | { |
| 5219 | if ((pid_t *) 0) |
| 5220 | return 0; |
| 5221 | if (sizeof (pid_t)) |
| 5222 | return 0; |
| 5223 | ; |
| 5224 | return 0; |
| 5225 | } |
| 5226 | _ACEOF |
| 5227 | rm -f conftest.$ac_objext |
| 5228 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5229 | (eval $ac_compile) 2>&5 |
| 5230 | ac_status=$? |
| 5231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5232 | (exit $ac_status); } && |
| 5233 | { ac_try='test -s conftest.$ac_objext' |
| 5234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5235 | (eval $ac_try) 2>&5 |
| 5236 | ac_status=$? |
| 5237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5238 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5239 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5240 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5241 | echo "$as_me: failed program was:" >&5 |
| 5242 | cat conftest.$ac_ext >&5 |
| 5243 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5244 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5245 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5246 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5247 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 5248 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 5249 | if test $ac_cv_type_pid_t = yes; then |
| 5250 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5251 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5252 | |
| 5253 | cat >>confdefs.h <<_ACEOF |
| 5254 | #define pid_t int |
| 5255 | _ACEOF |
| 5256 | |
| 5257 | fi |
| 5258 | |
| 5259 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 5260 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 5261 | if test "${ac_cv_type_signal+set}" = set; then |
| 5262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5263 | else |
| 5264 | cat >conftest.$ac_ext <<_ACEOF |
| 5265 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5266 | #include "confdefs.h" |
| 5267 | #include <sys/types.h> |
| 5268 | #include <signal.h> |
| 5269 | #ifdef signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5270 | # undef signal |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5271 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5272 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5273 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 5274 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5275 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5276 | #endif |
| 5277 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5278 | #ifdef F77_DUMMY_MAIN |
| 5279 | # ifdef __cplusplus |
| 5280 | extern "C" |
| 5281 | # endif |
| 5282 | int F77_DUMMY_MAIN() { return 1; } |
| 5283 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5284 | int |
| 5285 | main () |
| 5286 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5287 | int i; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5288 | ; |
| 5289 | return 0; |
| 5290 | } |
| 5291 | _ACEOF |
| 5292 | rm -f conftest.$ac_objext |
| 5293 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5294 | (eval $ac_compile) 2>&5 |
| 5295 | ac_status=$? |
| 5296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5297 | (exit $ac_status); } && |
| 5298 | { ac_try='test -s conftest.$ac_objext' |
| 5299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5300 | (eval $ac_try) 2>&5 |
| 5301 | ac_status=$? |
| 5302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5303 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5304 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5305 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5306 | echo "$as_me: failed program was:" >&5 |
| 5307 | cat conftest.$ac_ext >&5 |
| 5308 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5309 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5310 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5311 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5312 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 5313 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5314 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5315 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5316 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5317 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5318 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5319 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5320 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 5321 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 5322 | if test "${ac_cv_type_size_t+set}" = set; then |
| 5323 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5324 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5325 | cat >conftest.$ac_ext <<_ACEOF |
| 5326 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5327 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5328 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5329 | #ifdef F77_DUMMY_MAIN |
| 5330 | # ifdef __cplusplus |
| 5331 | extern "C" |
| 5332 | # endif |
| 5333 | int F77_DUMMY_MAIN() { return 1; } |
| 5334 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5335 | int |
| 5336 | main () |
| 5337 | { |
| 5338 | if ((size_t *) 0) |
| 5339 | return 0; |
| 5340 | if (sizeof (size_t)) |
| 5341 | return 0; |
| 5342 | ; |
| 5343 | return 0; |
| 5344 | } |
| 5345 | _ACEOF |
| 5346 | rm -f conftest.$ac_objext |
| 5347 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5348 | (eval $ac_compile) 2>&5 |
| 5349 | ac_status=$? |
| 5350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5351 | (exit $ac_status); } && |
| 5352 | { ac_try='test -s conftest.$ac_objext' |
| 5353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5354 | (eval $ac_try) 2>&5 |
| 5355 | ac_status=$? |
| 5356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5357 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5358 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5359 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5360 | echo "$as_me: failed program was:" >&5 |
| 5361 | cat conftest.$ac_ext >&5 |
| 5362 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5363 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5364 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5365 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5366 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 5367 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 5368 | if test $ac_cv_type_size_t = yes; then |
| 5369 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5370 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5371 | |
| 5372 | cat >>confdefs.h <<_ACEOF |
| 5373 | #define size_t unsigned |
| 5374 | _ACEOF |
| 5375 | |
| 5376 | fi |
| 5377 | |
| 5378 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 5379 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 5380 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 5381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5382 | else |
| 5383 | cat >conftest.$ac_ext <<_ACEOF |
| 5384 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5385 | #include "confdefs.h" |
| 5386 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5387 | |
| 5388 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5389 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5390 | egrep "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5391 | ac_cv_type_uid_t=yes |
| 5392 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5393 | ac_cv_type_uid_t=no |
| 5394 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5395 | rm -f conftest* |
| 5396 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5397 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5398 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 5399 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5400 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5401 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5402 | cat >>confdefs.h <<\_ACEOF |
| 5403 | #define uid_t int |
| 5404 | _ACEOF |
| 5405 | |
| 5406 | |
| 5407 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5408 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5409 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5410 | |
| 5411 | fi |
| 5412 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5413 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5414 | # Sizes of various common basic types |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5415 | echo "$as_me:$LINENO: checking for int" >&5 |
| 5416 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
| 5417 | if test "${ac_cv_type_int+set}" = set; then |
| 5418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5419 | else |
| 5420 | cat >conftest.$ac_ext <<_ACEOF |
| 5421 | #line $LINENO "configure" |
| 5422 | #include "confdefs.h" |
| 5423 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5424 | #ifdef F77_DUMMY_MAIN |
| 5425 | # ifdef __cplusplus |
| 5426 | extern "C" |
| 5427 | # endif |
| 5428 | int F77_DUMMY_MAIN() { return 1; } |
| 5429 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5430 | int |
| 5431 | main () |
| 5432 | { |
| 5433 | if ((int *) 0) |
| 5434 | return 0; |
| 5435 | if (sizeof (int)) |
| 5436 | return 0; |
| 5437 | ; |
| 5438 | return 0; |
| 5439 | } |
| 5440 | _ACEOF |
| 5441 | rm -f conftest.$ac_objext |
| 5442 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5443 | (eval $ac_compile) 2>&5 |
| 5444 | ac_status=$? |
| 5445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5446 | (exit $ac_status); } && |
| 5447 | { ac_try='test -s conftest.$ac_objext' |
| 5448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5449 | (eval $ac_try) 2>&5 |
| 5450 | ac_status=$? |
| 5451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5452 | (exit $ac_status); }; }; then |
| 5453 | ac_cv_type_int=yes |
| 5454 | else |
| 5455 | echo "$as_me: failed program was:" >&5 |
| 5456 | cat conftest.$ac_ext >&5 |
| 5457 | ac_cv_type_int=no |
| 5458 | fi |
| 5459 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5460 | fi |
| 5461 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 5462 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
| 5463 | |
| 5464 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 5465 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 5466 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 5467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5468 | else |
| 5469 | if test "$ac_cv_type_int" = yes; then |
| 5470 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5471 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5472 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5473 | # This bug is HP SR number 8606223364. |
| 5474 | if test "$cross_compiling" = yes; then |
| 5475 | # Depending upon the size, compute the lo and hi bounds. |
| 5476 | cat >conftest.$ac_ext <<_ACEOF |
| 5477 | #line $LINENO "configure" |
| 5478 | #include "confdefs.h" |
| 5479 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5480 | #ifdef F77_DUMMY_MAIN |
| 5481 | # ifdef __cplusplus |
| 5482 | extern "C" |
| 5483 | # endif |
| 5484 | int F77_DUMMY_MAIN() { return 1; } |
| 5485 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5486 | int |
| 5487 | main () |
| 5488 | { |
| 5489 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
| 5490 | test_array [0] = 0 |
| 5491 | |
| 5492 | ; |
| 5493 | return 0; |
| 5494 | } |
| 5495 | _ACEOF |
| 5496 | rm -f conftest.$ac_objext |
| 5497 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5498 | (eval $ac_compile) 2>&5 |
| 5499 | ac_status=$? |
| 5500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5501 | (exit $ac_status); } && |
| 5502 | { ac_try='test -s conftest.$ac_objext' |
| 5503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5504 | (eval $ac_try) 2>&5 |
| 5505 | ac_status=$? |
| 5506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5507 | (exit $ac_status); }; }; then |
| 5508 | ac_lo=0 ac_mid=0 |
| 5509 | while :; do |
| 5510 | cat >conftest.$ac_ext <<_ACEOF |
| 5511 | #line $LINENO "configure" |
| 5512 | #include "confdefs.h" |
| 5513 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5514 | #ifdef F77_DUMMY_MAIN |
| 5515 | # ifdef __cplusplus |
| 5516 | extern "C" |
| 5517 | # endif |
| 5518 | int F77_DUMMY_MAIN() { return 1; } |
| 5519 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5520 | int |
| 5521 | main () |
| 5522 | { |
| 5523 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 5524 | test_array [0] = 0 |
| 5525 | |
| 5526 | ; |
| 5527 | return 0; |
| 5528 | } |
| 5529 | _ACEOF |
| 5530 | rm -f conftest.$ac_objext |
| 5531 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5532 | (eval $ac_compile) 2>&5 |
| 5533 | ac_status=$? |
| 5534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5535 | (exit $ac_status); } && |
| 5536 | { ac_try='test -s conftest.$ac_objext' |
| 5537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5538 | (eval $ac_try) 2>&5 |
| 5539 | ac_status=$? |
| 5540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5541 | (exit $ac_status); }; }; then |
| 5542 | ac_hi=$ac_mid; break |
| 5543 | else |
| 5544 | echo "$as_me: failed program was:" >&5 |
| 5545 | cat conftest.$ac_ext >&5 |
| 5546 | ac_lo=`expr $ac_mid + 1` |
| 5547 | if test $ac_lo -le $ac_mid; then |
| 5548 | ac_lo= ac_hi= |
| 5549 | break |
| 5550 | fi |
| 5551 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5552 | fi |
| 5553 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5554 | done |
| 5555 | else |
| 5556 | echo "$as_me: failed program was:" >&5 |
| 5557 | cat conftest.$ac_ext >&5 |
| 5558 | cat >conftest.$ac_ext <<_ACEOF |
| 5559 | #line $LINENO "configure" |
| 5560 | #include "confdefs.h" |
| 5561 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5562 | #ifdef F77_DUMMY_MAIN |
| 5563 | # ifdef __cplusplus |
| 5564 | extern "C" |
| 5565 | # endif |
| 5566 | int F77_DUMMY_MAIN() { return 1; } |
| 5567 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5568 | int |
| 5569 | main () |
| 5570 | { |
| 5571 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
| 5572 | test_array [0] = 0 |
| 5573 | |
| 5574 | ; |
| 5575 | return 0; |
| 5576 | } |
| 5577 | _ACEOF |
| 5578 | rm -f conftest.$ac_objext |
| 5579 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5580 | (eval $ac_compile) 2>&5 |
| 5581 | ac_status=$? |
| 5582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5583 | (exit $ac_status); } && |
| 5584 | { ac_try='test -s conftest.$ac_objext' |
| 5585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5586 | (eval $ac_try) 2>&5 |
| 5587 | ac_status=$? |
| 5588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5589 | (exit $ac_status); }; }; then |
| 5590 | ac_hi=-1 ac_mid=-1 |
| 5591 | while :; do |
| 5592 | cat >conftest.$ac_ext <<_ACEOF |
| 5593 | #line $LINENO "configure" |
| 5594 | #include "confdefs.h" |
| 5595 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5596 | #ifdef F77_DUMMY_MAIN |
| 5597 | # ifdef __cplusplus |
| 5598 | extern "C" |
| 5599 | # endif |
| 5600 | int F77_DUMMY_MAIN() { return 1; } |
| 5601 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5602 | int |
| 5603 | main () |
| 5604 | { |
| 5605 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
| 5606 | test_array [0] = 0 |
| 5607 | |
| 5608 | ; |
| 5609 | return 0; |
| 5610 | } |
| 5611 | _ACEOF |
| 5612 | rm -f conftest.$ac_objext |
| 5613 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5614 | (eval $ac_compile) 2>&5 |
| 5615 | ac_status=$? |
| 5616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5617 | (exit $ac_status); } && |
| 5618 | { ac_try='test -s conftest.$ac_objext' |
| 5619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5620 | (eval $ac_try) 2>&5 |
| 5621 | ac_status=$? |
| 5622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5623 | (exit $ac_status); }; }; then |
| 5624 | ac_lo=$ac_mid; break |
| 5625 | else |
| 5626 | echo "$as_me: failed program was:" >&5 |
| 5627 | cat conftest.$ac_ext >&5 |
| 5628 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5629 | if test $ac_mid -le $ac_hi; then |
| 5630 | ac_lo= ac_hi= |
| 5631 | break |
| 5632 | fi |
| 5633 | ac_mid=`expr 2 '*' $ac_mid` |
| 5634 | fi |
| 5635 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5636 | done |
| 5637 | else |
| 5638 | echo "$as_me: failed program was:" >&5 |
| 5639 | cat conftest.$ac_ext >&5 |
| 5640 | ac_lo= ac_hi= |
| 5641 | fi |
| 5642 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5643 | fi |
| 5644 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5645 | # Binary search between lo and hi bounds. |
| 5646 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5647 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5648 | cat >conftest.$ac_ext <<_ACEOF |
| 5649 | #line $LINENO "configure" |
| 5650 | #include "confdefs.h" |
| 5651 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5652 | #ifdef F77_DUMMY_MAIN |
| 5653 | # ifdef __cplusplus |
| 5654 | extern "C" |
| 5655 | # endif |
| 5656 | int F77_DUMMY_MAIN() { return 1; } |
| 5657 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5658 | int |
| 5659 | main () |
| 5660 | { |
| 5661 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 5662 | test_array [0] = 0 |
| 5663 | |
| 5664 | ; |
| 5665 | return 0; |
| 5666 | } |
| 5667 | _ACEOF |
| 5668 | rm -f conftest.$ac_objext |
| 5669 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5670 | (eval $ac_compile) 2>&5 |
| 5671 | ac_status=$? |
| 5672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5673 | (exit $ac_status); } && |
| 5674 | { ac_try='test -s conftest.$ac_objext' |
| 5675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5676 | (eval $ac_try) 2>&5 |
| 5677 | ac_status=$? |
| 5678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5679 | (exit $ac_status); }; }; then |
| 5680 | ac_hi=$ac_mid |
| 5681 | else |
| 5682 | echo "$as_me: failed program was:" >&5 |
| 5683 | cat conftest.$ac_ext >&5 |
| 5684 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5685 | fi |
| 5686 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5687 | done |
| 5688 | case $ac_lo in |
| 5689 | ?*) ac_cv_sizeof_int=$ac_lo;; |
| 5690 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 |
| 5691 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} |
| 5692 | { (exit 1); exit 1; }; } ;; |
| 5693 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5694 | else |
| 5695 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5696 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 5697 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 5698 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5699 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5700 | cat >conftest.$ac_ext <<_ACEOF |
| 5701 | #line $LINENO "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5702 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5703 | $ac_includes_default |
| 5704 | long longval () { return (long) (sizeof (int)); } |
| 5705 | unsigned long ulongval () { return (long) (sizeof (int)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5706 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5707 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5708 | #ifdef F77_DUMMY_MAIN |
| 5709 | # ifdef __cplusplus |
| 5710 | extern "C" |
| 5711 | # endif |
| 5712 | int F77_DUMMY_MAIN() { return 1; } |
| 5713 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5714 | int |
| 5715 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5716 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5717 | |
| 5718 | FILE *f = fopen ("conftest.val", "w"); |
| 5719 | if (! f) |
| 5720 | exit (1); |
| 5721 | if (((long) (sizeof (int))) < 0) |
| 5722 | { |
| 5723 | long i = longval (); |
| 5724 | if (i != ((long) (sizeof (int)))) |
| 5725 | exit (1); |
| 5726 | fprintf (f, "%ld\n", i); |
| 5727 | } |
| 5728 | else |
| 5729 | { |
| 5730 | unsigned long i = ulongval (); |
| 5731 | if (i != ((long) (sizeof (int)))) |
| 5732 | exit (1); |
| 5733 | fprintf (f, "%lu\n", i); |
| 5734 | } |
| 5735 | exit (ferror (f) || fclose (f) != 0); |
| 5736 | |
| 5737 | ; |
| 5738 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5739 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5740 | _ACEOF |
| 5741 | rm -f conftest$ac_exeext |
| 5742 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5743 | (eval $ac_link) 2>&5 |
| 5744 | ac_status=$? |
| 5745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5746 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5748 | (eval $ac_try) 2>&5 |
| 5749 | ac_status=$? |
| 5750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5751 | (exit $ac_status); }; }; then |
| 5752 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5753 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5754 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5755 | echo "$as_me: failed program was:" >&5 |
| 5756 | cat conftest.$ac_ext >&5 |
| 5757 | ( exit $ac_status ) |
| 5758 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 |
| 5759 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} |
| 5760 | { (exit 1); exit 1; }; } |
| 5761 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5762 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5763 | fi |
| 5764 | fi |
| 5765 | rm -f conftest.val |
| 5766 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5767 | ac_cv_sizeof_int=0 |
| 5768 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5769 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5770 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 5771 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 5772 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5773 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5774 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5775 | |
| 5776 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5777 | echo "$as_me:$LINENO: checking for long" >&5 |
| 5778 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 5779 | if test "${ac_cv_type_long+set}" = set; then |
| 5780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5781 | else |
| 5782 | cat >conftest.$ac_ext <<_ACEOF |
| 5783 | #line $LINENO "configure" |
| 5784 | #include "confdefs.h" |
| 5785 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5786 | #ifdef F77_DUMMY_MAIN |
| 5787 | # ifdef __cplusplus |
| 5788 | extern "C" |
| 5789 | # endif |
| 5790 | int F77_DUMMY_MAIN() { return 1; } |
| 5791 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5792 | int |
| 5793 | main () |
| 5794 | { |
| 5795 | if ((long *) 0) |
| 5796 | return 0; |
| 5797 | if (sizeof (long)) |
| 5798 | return 0; |
| 5799 | ; |
| 5800 | return 0; |
| 5801 | } |
| 5802 | _ACEOF |
| 5803 | rm -f conftest.$ac_objext |
| 5804 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5805 | (eval $ac_compile) 2>&5 |
| 5806 | ac_status=$? |
| 5807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5808 | (exit $ac_status); } && |
| 5809 | { ac_try='test -s conftest.$ac_objext' |
| 5810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5811 | (eval $ac_try) 2>&5 |
| 5812 | ac_status=$? |
| 5813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5814 | (exit $ac_status); }; }; then |
| 5815 | ac_cv_type_long=yes |
| 5816 | else |
| 5817 | echo "$as_me: failed program was:" >&5 |
| 5818 | cat conftest.$ac_ext >&5 |
| 5819 | ac_cv_type_long=no |
| 5820 | fi |
| 5821 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5822 | fi |
| 5823 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 5824 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 5825 | |
| 5826 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 5827 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 5828 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 5829 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5830 | else |
| 5831 | if test "$ac_cv_type_long" = yes; then |
| 5832 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5833 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5834 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5835 | # This bug is HP SR number 8606223364. |
| 5836 | if test "$cross_compiling" = yes; then |
| 5837 | # Depending upon the size, compute the lo and hi bounds. |
| 5838 | cat >conftest.$ac_ext <<_ACEOF |
| 5839 | #line $LINENO "configure" |
| 5840 | #include "confdefs.h" |
| 5841 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5842 | #ifdef F77_DUMMY_MAIN |
| 5843 | # ifdef __cplusplus |
| 5844 | extern "C" |
| 5845 | # endif |
| 5846 | int F77_DUMMY_MAIN() { return 1; } |
| 5847 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5848 | int |
| 5849 | main () |
| 5850 | { |
| 5851 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 5852 | test_array [0] = 0 |
| 5853 | |
| 5854 | ; |
| 5855 | return 0; |
| 5856 | } |
| 5857 | _ACEOF |
| 5858 | rm -f conftest.$ac_objext |
| 5859 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5860 | (eval $ac_compile) 2>&5 |
| 5861 | ac_status=$? |
| 5862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5863 | (exit $ac_status); } && |
| 5864 | { ac_try='test -s conftest.$ac_objext' |
| 5865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5866 | (eval $ac_try) 2>&5 |
| 5867 | ac_status=$? |
| 5868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5869 | (exit $ac_status); }; }; then |
| 5870 | ac_lo=0 ac_mid=0 |
| 5871 | while :; do |
| 5872 | cat >conftest.$ac_ext <<_ACEOF |
| 5873 | #line $LINENO "configure" |
| 5874 | #include "confdefs.h" |
| 5875 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5876 | #ifdef F77_DUMMY_MAIN |
| 5877 | # ifdef __cplusplus |
| 5878 | extern "C" |
| 5879 | # endif |
| 5880 | int F77_DUMMY_MAIN() { return 1; } |
| 5881 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5882 | int |
| 5883 | main () |
| 5884 | { |
| 5885 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 5886 | test_array [0] = 0 |
| 5887 | |
| 5888 | ; |
| 5889 | return 0; |
| 5890 | } |
| 5891 | _ACEOF |
| 5892 | rm -f conftest.$ac_objext |
| 5893 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5894 | (eval $ac_compile) 2>&5 |
| 5895 | ac_status=$? |
| 5896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5897 | (exit $ac_status); } && |
| 5898 | { ac_try='test -s conftest.$ac_objext' |
| 5899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5900 | (eval $ac_try) 2>&5 |
| 5901 | ac_status=$? |
| 5902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5903 | (exit $ac_status); }; }; then |
| 5904 | ac_hi=$ac_mid; break |
| 5905 | else |
| 5906 | echo "$as_me: failed program was:" >&5 |
| 5907 | cat conftest.$ac_ext >&5 |
| 5908 | ac_lo=`expr $ac_mid + 1` |
| 5909 | if test $ac_lo -le $ac_mid; then |
| 5910 | ac_lo= ac_hi= |
| 5911 | break |
| 5912 | fi |
| 5913 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5914 | fi |
| 5915 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5916 | done |
| 5917 | else |
| 5918 | echo "$as_me: failed program was:" >&5 |
| 5919 | cat conftest.$ac_ext >&5 |
| 5920 | cat >conftest.$ac_ext <<_ACEOF |
| 5921 | #line $LINENO "configure" |
| 5922 | #include "confdefs.h" |
| 5923 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5924 | #ifdef F77_DUMMY_MAIN |
| 5925 | # ifdef __cplusplus |
| 5926 | extern "C" |
| 5927 | # endif |
| 5928 | int F77_DUMMY_MAIN() { return 1; } |
| 5929 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5930 | int |
| 5931 | main () |
| 5932 | { |
| 5933 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 5934 | test_array [0] = 0 |
| 5935 | |
| 5936 | ; |
| 5937 | return 0; |
| 5938 | } |
| 5939 | _ACEOF |
| 5940 | rm -f conftest.$ac_objext |
| 5941 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5942 | (eval $ac_compile) 2>&5 |
| 5943 | ac_status=$? |
| 5944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5945 | (exit $ac_status); } && |
| 5946 | { ac_try='test -s conftest.$ac_objext' |
| 5947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5948 | (eval $ac_try) 2>&5 |
| 5949 | ac_status=$? |
| 5950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5951 | (exit $ac_status); }; }; then |
| 5952 | ac_hi=-1 ac_mid=-1 |
| 5953 | while :; do |
| 5954 | cat >conftest.$ac_ext <<_ACEOF |
| 5955 | #line $LINENO "configure" |
| 5956 | #include "confdefs.h" |
| 5957 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 5958 | #ifdef F77_DUMMY_MAIN |
| 5959 | # ifdef __cplusplus |
| 5960 | extern "C" |
| 5961 | # endif |
| 5962 | int F77_DUMMY_MAIN() { return 1; } |
| 5963 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5964 | int |
| 5965 | main () |
| 5966 | { |
| 5967 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 5968 | test_array [0] = 0 |
| 5969 | |
| 5970 | ; |
| 5971 | return 0; |
| 5972 | } |
| 5973 | _ACEOF |
| 5974 | rm -f conftest.$ac_objext |
| 5975 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5976 | (eval $ac_compile) 2>&5 |
| 5977 | ac_status=$? |
| 5978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5979 | (exit $ac_status); } && |
| 5980 | { ac_try='test -s conftest.$ac_objext' |
| 5981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5982 | (eval $ac_try) 2>&5 |
| 5983 | ac_status=$? |
| 5984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5985 | (exit $ac_status); }; }; then |
| 5986 | ac_lo=$ac_mid; break |
| 5987 | else |
| 5988 | echo "$as_me: failed program was:" >&5 |
| 5989 | cat conftest.$ac_ext >&5 |
| 5990 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5991 | if test $ac_mid -le $ac_hi; then |
| 5992 | ac_lo= ac_hi= |
| 5993 | break |
| 5994 | fi |
| 5995 | ac_mid=`expr 2 '*' $ac_mid` |
| 5996 | fi |
| 5997 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5998 | done |
| 5999 | else |
| 6000 | echo "$as_me: failed program was:" >&5 |
| 6001 | cat conftest.$ac_ext >&5 |
| 6002 | ac_lo= ac_hi= |
| 6003 | fi |
| 6004 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6005 | fi |
| 6006 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6007 | # Binary search between lo and hi bounds. |
| 6008 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6009 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6010 | cat >conftest.$ac_ext <<_ACEOF |
| 6011 | #line $LINENO "configure" |
| 6012 | #include "confdefs.h" |
| 6013 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6014 | #ifdef F77_DUMMY_MAIN |
| 6015 | # ifdef __cplusplus |
| 6016 | extern "C" |
| 6017 | # endif |
| 6018 | int F77_DUMMY_MAIN() { return 1; } |
| 6019 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6020 | int |
| 6021 | main () |
| 6022 | { |
| 6023 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 6024 | test_array [0] = 0 |
| 6025 | |
| 6026 | ; |
| 6027 | return 0; |
| 6028 | } |
| 6029 | _ACEOF |
| 6030 | rm -f conftest.$ac_objext |
| 6031 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6032 | (eval $ac_compile) 2>&5 |
| 6033 | ac_status=$? |
| 6034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6035 | (exit $ac_status); } && |
| 6036 | { ac_try='test -s conftest.$ac_objext' |
| 6037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6038 | (eval $ac_try) 2>&5 |
| 6039 | ac_status=$? |
| 6040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6041 | (exit $ac_status); }; }; then |
| 6042 | ac_hi=$ac_mid |
| 6043 | else |
| 6044 | echo "$as_me: failed program was:" >&5 |
| 6045 | cat conftest.$ac_ext >&5 |
| 6046 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6047 | fi |
| 6048 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6049 | done |
| 6050 | case $ac_lo in |
| 6051 | ?*) ac_cv_sizeof_long=$ac_lo;; |
| 6052 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 |
| 6053 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} |
| 6054 | { (exit 1); exit 1; }; } ;; |
| 6055 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6056 | else |
| 6057 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6058 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6059 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6060 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6061 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6062 | cat >conftest.$ac_ext <<_ACEOF |
| 6063 | #line $LINENO "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6064 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6065 | $ac_includes_default |
| 6066 | long longval () { return (long) (sizeof (long)); } |
| 6067 | unsigned long ulongval () { return (long) (sizeof (long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6068 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6069 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6070 | #ifdef F77_DUMMY_MAIN |
| 6071 | # ifdef __cplusplus |
| 6072 | extern "C" |
| 6073 | # endif |
| 6074 | int F77_DUMMY_MAIN() { return 1; } |
| 6075 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6076 | int |
| 6077 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6078 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6079 | |
| 6080 | FILE *f = fopen ("conftest.val", "w"); |
| 6081 | if (! f) |
| 6082 | exit (1); |
| 6083 | if (((long) (sizeof (long))) < 0) |
| 6084 | { |
| 6085 | long i = longval (); |
| 6086 | if (i != ((long) (sizeof (long)))) |
| 6087 | exit (1); |
| 6088 | fprintf (f, "%ld\n", i); |
| 6089 | } |
| 6090 | else |
| 6091 | { |
| 6092 | unsigned long i = ulongval (); |
| 6093 | if (i != ((long) (sizeof (long)))) |
| 6094 | exit (1); |
| 6095 | fprintf (f, "%lu\n", i); |
| 6096 | } |
| 6097 | exit (ferror (f) || fclose (f) != 0); |
| 6098 | |
| 6099 | ; |
| 6100 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6101 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6102 | _ACEOF |
| 6103 | rm -f conftest$ac_exeext |
| 6104 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6105 | (eval $ac_link) 2>&5 |
| 6106 | ac_status=$? |
| 6107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6108 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6110 | (eval $ac_try) 2>&5 |
| 6111 | ac_status=$? |
| 6112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6113 | (exit $ac_status); }; }; then |
| 6114 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6115 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6116 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6117 | echo "$as_me: failed program was:" >&5 |
| 6118 | cat conftest.$ac_ext >&5 |
| 6119 | ( exit $ac_status ) |
| 6120 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 |
| 6121 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} |
| 6122 | { (exit 1); exit 1; }; } |
| 6123 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6124 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6125 | fi |
| 6126 | fi |
| 6127 | rm -f conftest.val |
| 6128 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6129 | ac_cv_sizeof_long=0 |
| 6130 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6131 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6132 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 6133 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 6134 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6135 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6136 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 6137 | |
| 6138 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6139 | echo "$as_me:$LINENO: checking for void *" >&5 |
| 6140 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
| 6141 | if test "${ac_cv_type_void_p+set}" = set; then |
| 6142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6143 | else |
| 6144 | cat >conftest.$ac_ext <<_ACEOF |
| 6145 | #line $LINENO "configure" |
| 6146 | #include "confdefs.h" |
| 6147 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6148 | #ifdef F77_DUMMY_MAIN |
| 6149 | # ifdef __cplusplus |
| 6150 | extern "C" |
| 6151 | # endif |
| 6152 | int F77_DUMMY_MAIN() { return 1; } |
| 6153 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6154 | int |
| 6155 | main () |
| 6156 | { |
| 6157 | if ((void * *) 0) |
| 6158 | return 0; |
| 6159 | if (sizeof (void *)) |
| 6160 | return 0; |
| 6161 | ; |
| 6162 | return 0; |
| 6163 | } |
| 6164 | _ACEOF |
| 6165 | rm -f conftest.$ac_objext |
| 6166 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6167 | (eval $ac_compile) 2>&5 |
| 6168 | ac_status=$? |
| 6169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6170 | (exit $ac_status); } && |
| 6171 | { ac_try='test -s conftest.$ac_objext' |
| 6172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6173 | (eval $ac_try) 2>&5 |
| 6174 | ac_status=$? |
| 6175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6176 | (exit $ac_status); }; }; then |
| 6177 | ac_cv_type_void_p=yes |
| 6178 | else |
| 6179 | echo "$as_me: failed program was:" >&5 |
| 6180 | cat conftest.$ac_ext >&5 |
| 6181 | ac_cv_type_void_p=no |
| 6182 | fi |
| 6183 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6184 | fi |
| 6185 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 6186 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
| 6187 | |
| 6188 | echo "$as_me:$LINENO: checking size of void *" >&5 |
| 6189 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
| 6190 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 6191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6192 | else |
| 6193 | if test "$ac_cv_type_void_p" = yes; then |
| 6194 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6195 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6196 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6197 | # This bug is HP SR number 8606223364. |
| 6198 | if test "$cross_compiling" = yes; then |
| 6199 | # Depending upon the size, compute the lo and hi bounds. |
| 6200 | cat >conftest.$ac_ext <<_ACEOF |
| 6201 | #line $LINENO "configure" |
| 6202 | #include "confdefs.h" |
| 6203 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6204 | #ifdef F77_DUMMY_MAIN |
| 6205 | # ifdef __cplusplus |
| 6206 | extern "C" |
| 6207 | # endif |
| 6208 | int F77_DUMMY_MAIN() { return 1; } |
| 6209 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6210 | int |
| 6211 | main () |
| 6212 | { |
| 6213 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
| 6214 | test_array [0] = 0 |
| 6215 | |
| 6216 | ; |
| 6217 | return 0; |
| 6218 | } |
| 6219 | _ACEOF |
| 6220 | rm -f conftest.$ac_objext |
| 6221 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6222 | (eval $ac_compile) 2>&5 |
| 6223 | ac_status=$? |
| 6224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6225 | (exit $ac_status); } && |
| 6226 | { ac_try='test -s conftest.$ac_objext' |
| 6227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6228 | (eval $ac_try) 2>&5 |
| 6229 | ac_status=$? |
| 6230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6231 | (exit $ac_status); }; }; then |
| 6232 | ac_lo=0 ac_mid=0 |
| 6233 | while :; do |
| 6234 | cat >conftest.$ac_ext <<_ACEOF |
| 6235 | #line $LINENO "configure" |
| 6236 | #include "confdefs.h" |
| 6237 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6238 | #ifdef F77_DUMMY_MAIN |
| 6239 | # ifdef __cplusplus |
| 6240 | extern "C" |
| 6241 | # endif |
| 6242 | int F77_DUMMY_MAIN() { return 1; } |
| 6243 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6244 | int |
| 6245 | main () |
| 6246 | { |
| 6247 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 6248 | test_array [0] = 0 |
| 6249 | |
| 6250 | ; |
| 6251 | return 0; |
| 6252 | } |
| 6253 | _ACEOF |
| 6254 | rm -f conftest.$ac_objext |
| 6255 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6256 | (eval $ac_compile) 2>&5 |
| 6257 | ac_status=$? |
| 6258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6259 | (exit $ac_status); } && |
| 6260 | { ac_try='test -s conftest.$ac_objext' |
| 6261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6262 | (eval $ac_try) 2>&5 |
| 6263 | ac_status=$? |
| 6264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6265 | (exit $ac_status); }; }; then |
| 6266 | ac_hi=$ac_mid; break |
| 6267 | else |
| 6268 | echo "$as_me: failed program was:" >&5 |
| 6269 | cat conftest.$ac_ext >&5 |
| 6270 | ac_lo=`expr $ac_mid + 1` |
| 6271 | if test $ac_lo -le $ac_mid; then |
| 6272 | ac_lo= ac_hi= |
| 6273 | break |
| 6274 | fi |
| 6275 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6276 | fi |
| 6277 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6278 | done |
| 6279 | else |
| 6280 | echo "$as_me: failed program was:" >&5 |
| 6281 | cat conftest.$ac_ext >&5 |
| 6282 | cat >conftest.$ac_ext <<_ACEOF |
| 6283 | #line $LINENO "configure" |
| 6284 | #include "confdefs.h" |
| 6285 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6286 | #ifdef F77_DUMMY_MAIN |
| 6287 | # ifdef __cplusplus |
| 6288 | extern "C" |
| 6289 | # endif |
| 6290 | int F77_DUMMY_MAIN() { return 1; } |
| 6291 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6292 | int |
| 6293 | main () |
| 6294 | { |
| 6295 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
| 6296 | test_array [0] = 0 |
| 6297 | |
| 6298 | ; |
| 6299 | return 0; |
| 6300 | } |
| 6301 | _ACEOF |
| 6302 | rm -f conftest.$ac_objext |
| 6303 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6304 | (eval $ac_compile) 2>&5 |
| 6305 | ac_status=$? |
| 6306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6307 | (exit $ac_status); } && |
| 6308 | { ac_try='test -s conftest.$ac_objext' |
| 6309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6310 | (eval $ac_try) 2>&5 |
| 6311 | ac_status=$? |
| 6312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6313 | (exit $ac_status); }; }; then |
| 6314 | ac_hi=-1 ac_mid=-1 |
| 6315 | while :; do |
| 6316 | cat >conftest.$ac_ext <<_ACEOF |
| 6317 | #line $LINENO "configure" |
| 6318 | #include "confdefs.h" |
| 6319 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6320 | #ifdef F77_DUMMY_MAIN |
| 6321 | # ifdef __cplusplus |
| 6322 | extern "C" |
| 6323 | # endif |
| 6324 | int F77_DUMMY_MAIN() { return 1; } |
| 6325 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6326 | int |
| 6327 | main () |
| 6328 | { |
| 6329 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
| 6330 | test_array [0] = 0 |
| 6331 | |
| 6332 | ; |
| 6333 | return 0; |
| 6334 | } |
| 6335 | _ACEOF |
| 6336 | rm -f conftest.$ac_objext |
| 6337 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6338 | (eval $ac_compile) 2>&5 |
| 6339 | ac_status=$? |
| 6340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6341 | (exit $ac_status); } && |
| 6342 | { ac_try='test -s conftest.$ac_objext' |
| 6343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6344 | (eval $ac_try) 2>&5 |
| 6345 | ac_status=$? |
| 6346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6347 | (exit $ac_status); }; }; then |
| 6348 | ac_lo=$ac_mid; break |
| 6349 | else |
| 6350 | echo "$as_me: failed program was:" >&5 |
| 6351 | cat conftest.$ac_ext >&5 |
| 6352 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6353 | if test $ac_mid -le $ac_hi; then |
| 6354 | ac_lo= ac_hi= |
| 6355 | break |
| 6356 | fi |
| 6357 | ac_mid=`expr 2 '*' $ac_mid` |
| 6358 | fi |
| 6359 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6360 | done |
| 6361 | else |
| 6362 | echo "$as_me: failed program was:" >&5 |
| 6363 | cat conftest.$ac_ext >&5 |
| 6364 | ac_lo= ac_hi= |
| 6365 | fi |
| 6366 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6367 | fi |
| 6368 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6369 | # Binary search between lo and hi bounds. |
| 6370 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6371 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6372 | cat >conftest.$ac_ext <<_ACEOF |
| 6373 | #line $LINENO "configure" |
| 6374 | #include "confdefs.h" |
| 6375 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6376 | #ifdef F77_DUMMY_MAIN |
| 6377 | # ifdef __cplusplus |
| 6378 | extern "C" |
| 6379 | # endif |
| 6380 | int F77_DUMMY_MAIN() { return 1; } |
| 6381 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6382 | int |
| 6383 | main () |
| 6384 | { |
| 6385 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 6386 | test_array [0] = 0 |
| 6387 | |
| 6388 | ; |
| 6389 | return 0; |
| 6390 | } |
| 6391 | _ACEOF |
| 6392 | rm -f conftest.$ac_objext |
| 6393 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6394 | (eval $ac_compile) 2>&5 |
| 6395 | ac_status=$? |
| 6396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6397 | (exit $ac_status); } && |
| 6398 | { ac_try='test -s conftest.$ac_objext' |
| 6399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6400 | (eval $ac_try) 2>&5 |
| 6401 | ac_status=$? |
| 6402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6403 | (exit $ac_status); }; }; then |
| 6404 | ac_hi=$ac_mid |
| 6405 | else |
| 6406 | echo "$as_me: failed program was:" >&5 |
| 6407 | cat conftest.$ac_ext >&5 |
| 6408 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6409 | fi |
| 6410 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6411 | done |
| 6412 | case $ac_lo in |
| 6413 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
| 6414 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 |
| 6415 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} |
| 6416 | { (exit 1); exit 1; }; } ;; |
| 6417 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6418 | else |
| 6419 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6420 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6421 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6422 | { (exit 1); exit 1; }; } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6423 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6424 | cat >conftest.$ac_ext <<_ACEOF |
| 6425 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6426 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6427 | $ac_includes_default |
| 6428 | long longval () { return (long) (sizeof (void *)); } |
| 6429 | unsigned long ulongval () { return (long) (sizeof (void *)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6430 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6431 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6432 | #ifdef F77_DUMMY_MAIN |
| 6433 | # ifdef __cplusplus |
| 6434 | extern "C" |
| 6435 | # endif |
| 6436 | int F77_DUMMY_MAIN() { return 1; } |
| 6437 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6438 | int |
| 6439 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6440 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6441 | |
| 6442 | FILE *f = fopen ("conftest.val", "w"); |
| 6443 | if (! f) |
| 6444 | exit (1); |
| 6445 | if (((long) (sizeof (void *))) < 0) |
| 6446 | { |
| 6447 | long i = longval (); |
| 6448 | if (i != ((long) (sizeof (void *)))) |
| 6449 | exit (1); |
| 6450 | fprintf (f, "%ld\n", i); |
| 6451 | } |
| 6452 | else |
| 6453 | { |
| 6454 | unsigned long i = ulongval (); |
| 6455 | if (i != ((long) (sizeof (void *)))) |
| 6456 | exit (1); |
| 6457 | fprintf (f, "%lu\n", i); |
| 6458 | } |
| 6459 | exit (ferror (f) || fclose (f) != 0); |
| 6460 | |
| 6461 | ; |
| 6462 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6463 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6464 | _ACEOF |
| 6465 | rm -f conftest$ac_exeext |
| 6466 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6467 | (eval $ac_link) 2>&5 |
| 6468 | ac_status=$? |
| 6469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6470 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6472 | (eval $ac_try) 2>&5 |
| 6473 | ac_status=$? |
| 6474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6475 | (exit $ac_status); }; }; then |
| 6476 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6477 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6478 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6479 | echo "$as_me: failed program was:" >&5 |
| 6480 | cat conftest.$ac_ext >&5 |
| 6481 | ( exit $ac_status ) |
| 6482 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 |
| 6483 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} |
| 6484 | { (exit 1); exit 1; }; } |
| 6485 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6486 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6487 | fi |
| 6488 | fi |
| 6489 | rm -f conftest.val |
| 6490 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6491 | ac_cv_sizeof_void_p=0 |
| 6492 | fi |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6493 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6494 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 6495 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
| 6496 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6497 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6498 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6499 | |
| 6500 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6501 | echo "$as_me:$LINENO: checking for char" >&5 |
| 6502 | echo $ECHO_N "checking for char... $ECHO_C" >&6 |
| 6503 | if test "${ac_cv_type_char+set}" = set; then |
| 6504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6505 | else |
| 6506 | cat >conftest.$ac_ext <<_ACEOF |
| 6507 | #line $LINENO "configure" |
| 6508 | #include "confdefs.h" |
| 6509 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6510 | #ifdef F77_DUMMY_MAIN |
| 6511 | # ifdef __cplusplus |
| 6512 | extern "C" |
| 6513 | # endif |
| 6514 | int F77_DUMMY_MAIN() { return 1; } |
| 6515 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6516 | int |
| 6517 | main () |
| 6518 | { |
| 6519 | if ((char *) 0) |
| 6520 | return 0; |
| 6521 | if (sizeof (char)) |
| 6522 | return 0; |
| 6523 | ; |
| 6524 | return 0; |
| 6525 | } |
| 6526 | _ACEOF |
| 6527 | rm -f conftest.$ac_objext |
| 6528 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6529 | (eval $ac_compile) 2>&5 |
| 6530 | ac_status=$? |
| 6531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6532 | (exit $ac_status); } && |
| 6533 | { ac_try='test -s conftest.$ac_objext' |
| 6534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6535 | (eval $ac_try) 2>&5 |
| 6536 | ac_status=$? |
| 6537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6538 | (exit $ac_status); }; }; then |
| 6539 | ac_cv_type_char=yes |
| 6540 | else |
| 6541 | echo "$as_me: failed program was:" >&5 |
| 6542 | cat conftest.$ac_ext >&5 |
| 6543 | ac_cv_type_char=no |
| 6544 | fi |
| 6545 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6546 | fi |
| 6547 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
| 6548 | echo "${ECHO_T}$ac_cv_type_char" >&6 |
| 6549 | |
| 6550 | echo "$as_me:$LINENO: checking size of char" >&5 |
| 6551 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 |
| 6552 | if test "${ac_cv_sizeof_char+set}" = set; then |
| 6553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6554 | else |
| 6555 | if test "$ac_cv_type_char" = yes; then |
| 6556 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6557 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6558 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6559 | # This bug is HP SR number 8606223364. |
| 6560 | if test "$cross_compiling" = yes; then |
| 6561 | # Depending upon the size, compute the lo and hi bounds. |
| 6562 | cat >conftest.$ac_ext <<_ACEOF |
| 6563 | #line $LINENO "configure" |
| 6564 | #include "confdefs.h" |
| 6565 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6566 | #ifdef F77_DUMMY_MAIN |
| 6567 | # ifdef __cplusplus |
| 6568 | extern "C" |
| 6569 | # endif |
| 6570 | int F77_DUMMY_MAIN() { return 1; } |
| 6571 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6572 | int |
| 6573 | main () |
| 6574 | { |
| 6575 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
| 6576 | test_array [0] = 0 |
| 6577 | |
| 6578 | ; |
| 6579 | return 0; |
| 6580 | } |
| 6581 | _ACEOF |
| 6582 | rm -f conftest.$ac_objext |
| 6583 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6584 | (eval $ac_compile) 2>&5 |
| 6585 | ac_status=$? |
| 6586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6587 | (exit $ac_status); } && |
| 6588 | { ac_try='test -s conftest.$ac_objext' |
| 6589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6590 | (eval $ac_try) 2>&5 |
| 6591 | ac_status=$? |
| 6592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6593 | (exit $ac_status); }; }; then |
| 6594 | ac_lo=0 ac_mid=0 |
| 6595 | while :; do |
| 6596 | cat >conftest.$ac_ext <<_ACEOF |
| 6597 | #line $LINENO "configure" |
| 6598 | #include "confdefs.h" |
| 6599 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6600 | #ifdef F77_DUMMY_MAIN |
| 6601 | # ifdef __cplusplus |
| 6602 | extern "C" |
| 6603 | # endif |
| 6604 | int F77_DUMMY_MAIN() { return 1; } |
| 6605 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6606 | int |
| 6607 | main () |
| 6608 | { |
| 6609 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 6610 | test_array [0] = 0 |
| 6611 | |
| 6612 | ; |
| 6613 | return 0; |
| 6614 | } |
| 6615 | _ACEOF |
| 6616 | rm -f conftest.$ac_objext |
| 6617 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6618 | (eval $ac_compile) 2>&5 |
| 6619 | ac_status=$? |
| 6620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6621 | (exit $ac_status); } && |
| 6622 | { ac_try='test -s conftest.$ac_objext' |
| 6623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6624 | (eval $ac_try) 2>&5 |
| 6625 | ac_status=$? |
| 6626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6627 | (exit $ac_status); }; }; then |
| 6628 | ac_hi=$ac_mid; break |
| 6629 | else |
| 6630 | echo "$as_me: failed program was:" >&5 |
| 6631 | cat conftest.$ac_ext >&5 |
| 6632 | ac_lo=`expr $ac_mid + 1` |
| 6633 | if test $ac_lo -le $ac_mid; then |
| 6634 | ac_lo= ac_hi= |
| 6635 | break |
| 6636 | fi |
| 6637 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6638 | fi |
| 6639 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6640 | done |
| 6641 | else |
| 6642 | echo "$as_me: failed program was:" >&5 |
| 6643 | cat conftest.$ac_ext >&5 |
| 6644 | cat >conftest.$ac_ext <<_ACEOF |
| 6645 | #line $LINENO "configure" |
| 6646 | #include "confdefs.h" |
| 6647 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6648 | #ifdef F77_DUMMY_MAIN |
| 6649 | # ifdef __cplusplus |
| 6650 | extern "C" |
| 6651 | # endif |
| 6652 | int F77_DUMMY_MAIN() { return 1; } |
| 6653 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6654 | int |
| 6655 | main () |
| 6656 | { |
| 6657 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
| 6658 | test_array [0] = 0 |
| 6659 | |
| 6660 | ; |
| 6661 | return 0; |
| 6662 | } |
| 6663 | _ACEOF |
| 6664 | rm -f conftest.$ac_objext |
| 6665 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6666 | (eval $ac_compile) 2>&5 |
| 6667 | ac_status=$? |
| 6668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6669 | (exit $ac_status); } && |
| 6670 | { ac_try='test -s conftest.$ac_objext' |
| 6671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6672 | (eval $ac_try) 2>&5 |
| 6673 | ac_status=$? |
| 6674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6675 | (exit $ac_status); }; }; then |
| 6676 | ac_hi=-1 ac_mid=-1 |
| 6677 | while :; do |
| 6678 | cat >conftest.$ac_ext <<_ACEOF |
| 6679 | #line $LINENO "configure" |
| 6680 | #include "confdefs.h" |
| 6681 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6682 | #ifdef F77_DUMMY_MAIN |
| 6683 | # ifdef __cplusplus |
| 6684 | extern "C" |
| 6685 | # endif |
| 6686 | int F77_DUMMY_MAIN() { return 1; } |
| 6687 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6688 | int |
| 6689 | main () |
| 6690 | { |
| 6691 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
| 6692 | test_array [0] = 0 |
| 6693 | |
| 6694 | ; |
| 6695 | return 0; |
| 6696 | } |
| 6697 | _ACEOF |
| 6698 | rm -f conftest.$ac_objext |
| 6699 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6700 | (eval $ac_compile) 2>&5 |
| 6701 | ac_status=$? |
| 6702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6703 | (exit $ac_status); } && |
| 6704 | { ac_try='test -s conftest.$ac_objext' |
| 6705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6706 | (eval $ac_try) 2>&5 |
| 6707 | ac_status=$? |
| 6708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6709 | (exit $ac_status); }; }; then |
| 6710 | ac_lo=$ac_mid; break |
| 6711 | else |
| 6712 | echo "$as_me: failed program was:" >&5 |
| 6713 | cat conftest.$ac_ext >&5 |
| 6714 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6715 | if test $ac_mid -le $ac_hi; then |
| 6716 | ac_lo= ac_hi= |
| 6717 | break |
| 6718 | fi |
| 6719 | ac_mid=`expr 2 '*' $ac_mid` |
| 6720 | fi |
| 6721 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6722 | done |
| 6723 | else |
| 6724 | echo "$as_me: failed program was:" >&5 |
| 6725 | cat conftest.$ac_ext >&5 |
| 6726 | ac_lo= ac_hi= |
| 6727 | fi |
| 6728 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6729 | fi |
| 6730 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6731 | # Binary search between lo and hi bounds. |
| 6732 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6733 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6734 | cat >conftest.$ac_ext <<_ACEOF |
| 6735 | #line $LINENO "configure" |
| 6736 | #include "confdefs.h" |
| 6737 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6738 | #ifdef F77_DUMMY_MAIN |
| 6739 | # ifdef __cplusplus |
| 6740 | extern "C" |
| 6741 | # endif |
| 6742 | int F77_DUMMY_MAIN() { return 1; } |
| 6743 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6744 | int |
| 6745 | main () |
| 6746 | { |
| 6747 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 6748 | test_array [0] = 0 |
| 6749 | |
| 6750 | ; |
| 6751 | return 0; |
| 6752 | } |
| 6753 | _ACEOF |
| 6754 | rm -f conftest.$ac_objext |
| 6755 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6756 | (eval $ac_compile) 2>&5 |
| 6757 | ac_status=$? |
| 6758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6759 | (exit $ac_status); } && |
| 6760 | { ac_try='test -s conftest.$ac_objext' |
| 6761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6762 | (eval $ac_try) 2>&5 |
| 6763 | ac_status=$? |
| 6764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6765 | (exit $ac_status); }; }; then |
| 6766 | ac_hi=$ac_mid |
| 6767 | else |
| 6768 | echo "$as_me: failed program was:" >&5 |
| 6769 | cat conftest.$ac_ext >&5 |
| 6770 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6771 | fi |
| 6772 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6773 | done |
| 6774 | case $ac_lo in |
| 6775 | ?*) ac_cv_sizeof_char=$ac_lo;; |
| 6776 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 |
| 6777 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} |
| 6778 | { (exit 1); exit 1; }; } ;; |
| 6779 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6780 | else |
| 6781 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6782 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6783 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6784 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6785 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6786 | cat >conftest.$ac_ext <<_ACEOF |
| 6787 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6788 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6789 | $ac_includes_default |
| 6790 | long longval () { return (long) (sizeof (char)); } |
| 6791 | unsigned long ulongval () { return (long) (sizeof (char)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6792 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6793 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6794 | #ifdef F77_DUMMY_MAIN |
| 6795 | # ifdef __cplusplus |
| 6796 | extern "C" |
| 6797 | # endif |
| 6798 | int F77_DUMMY_MAIN() { return 1; } |
| 6799 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6800 | int |
| 6801 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6802 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6803 | |
| 6804 | FILE *f = fopen ("conftest.val", "w"); |
| 6805 | if (! f) |
| 6806 | exit (1); |
| 6807 | if (((long) (sizeof (char))) < 0) |
| 6808 | { |
| 6809 | long i = longval (); |
| 6810 | if (i != ((long) (sizeof (char)))) |
| 6811 | exit (1); |
| 6812 | fprintf (f, "%ld\n", i); |
| 6813 | } |
| 6814 | else |
| 6815 | { |
| 6816 | unsigned long i = ulongval (); |
| 6817 | if (i != ((long) (sizeof (char)))) |
| 6818 | exit (1); |
| 6819 | fprintf (f, "%lu\n", i); |
| 6820 | } |
| 6821 | exit (ferror (f) || fclose (f) != 0); |
| 6822 | |
| 6823 | ; |
| 6824 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6825 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6826 | _ACEOF |
| 6827 | rm -f conftest$ac_exeext |
| 6828 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6829 | (eval $ac_link) 2>&5 |
| 6830 | ac_status=$? |
| 6831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6832 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6834 | (eval $ac_try) 2>&5 |
| 6835 | ac_status=$? |
| 6836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6837 | (exit $ac_status); }; }; then |
| 6838 | ac_cv_sizeof_char=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6839 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6840 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6841 | echo "$as_me: failed program was:" >&5 |
| 6842 | cat conftest.$ac_ext >&5 |
| 6843 | ( exit $ac_status ) |
| 6844 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 |
| 6845 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} |
| 6846 | { (exit 1); exit 1; }; } |
| 6847 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6848 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6849 | fi |
| 6850 | fi |
| 6851 | rm -f conftest.val |
| 6852 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6853 | ac_cv_sizeof_char=0 |
| 6854 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6855 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6856 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
| 6857 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 |
| 6858 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6859 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6860 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6861 | |
| 6862 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6863 | echo "$as_me:$LINENO: checking for short" >&5 |
| 6864 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
| 6865 | if test "${ac_cv_type_short+set}" = set; then |
| 6866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6867 | else |
| 6868 | cat >conftest.$ac_ext <<_ACEOF |
| 6869 | #line $LINENO "configure" |
| 6870 | #include "confdefs.h" |
| 6871 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6872 | #ifdef F77_DUMMY_MAIN |
| 6873 | # ifdef __cplusplus |
| 6874 | extern "C" |
| 6875 | # endif |
| 6876 | int F77_DUMMY_MAIN() { return 1; } |
| 6877 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6878 | int |
| 6879 | main () |
| 6880 | { |
| 6881 | if ((short *) 0) |
| 6882 | return 0; |
| 6883 | if (sizeof (short)) |
| 6884 | return 0; |
| 6885 | ; |
| 6886 | return 0; |
| 6887 | } |
| 6888 | _ACEOF |
| 6889 | rm -f conftest.$ac_objext |
| 6890 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6891 | (eval $ac_compile) 2>&5 |
| 6892 | ac_status=$? |
| 6893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6894 | (exit $ac_status); } && |
| 6895 | { ac_try='test -s conftest.$ac_objext' |
| 6896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6897 | (eval $ac_try) 2>&5 |
| 6898 | ac_status=$? |
| 6899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6900 | (exit $ac_status); }; }; then |
| 6901 | ac_cv_type_short=yes |
| 6902 | else |
| 6903 | echo "$as_me: failed program was:" >&5 |
| 6904 | cat conftest.$ac_ext >&5 |
| 6905 | ac_cv_type_short=no |
| 6906 | fi |
| 6907 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6908 | fi |
| 6909 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 6910 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
| 6911 | |
| 6912 | echo "$as_me:$LINENO: checking size of short" >&5 |
| 6913 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
| 6914 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 6915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6916 | else |
| 6917 | if test "$ac_cv_type_short" = yes; then |
| 6918 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6919 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6920 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6921 | # This bug is HP SR number 8606223364. |
| 6922 | if test "$cross_compiling" = yes; then |
| 6923 | # Depending upon the size, compute the lo and hi bounds. |
| 6924 | cat >conftest.$ac_ext <<_ACEOF |
| 6925 | #line $LINENO "configure" |
| 6926 | #include "confdefs.h" |
| 6927 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6928 | #ifdef F77_DUMMY_MAIN |
| 6929 | # ifdef __cplusplus |
| 6930 | extern "C" |
| 6931 | # endif |
| 6932 | int F77_DUMMY_MAIN() { return 1; } |
| 6933 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6934 | int |
| 6935 | main () |
| 6936 | { |
| 6937 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
| 6938 | test_array [0] = 0 |
| 6939 | |
| 6940 | ; |
| 6941 | return 0; |
| 6942 | } |
| 6943 | _ACEOF |
| 6944 | rm -f conftest.$ac_objext |
| 6945 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6946 | (eval $ac_compile) 2>&5 |
| 6947 | ac_status=$? |
| 6948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6949 | (exit $ac_status); } && |
| 6950 | { ac_try='test -s conftest.$ac_objext' |
| 6951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6952 | (eval $ac_try) 2>&5 |
| 6953 | ac_status=$? |
| 6954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6955 | (exit $ac_status); }; }; then |
| 6956 | ac_lo=0 ac_mid=0 |
| 6957 | while :; do |
| 6958 | cat >conftest.$ac_ext <<_ACEOF |
| 6959 | #line $LINENO "configure" |
| 6960 | #include "confdefs.h" |
| 6961 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 6962 | #ifdef F77_DUMMY_MAIN |
| 6963 | # ifdef __cplusplus |
| 6964 | extern "C" |
| 6965 | # endif |
| 6966 | int F77_DUMMY_MAIN() { return 1; } |
| 6967 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6968 | int |
| 6969 | main () |
| 6970 | { |
| 6971 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 6972 | test_array [0] = 0 |
| 6973 | |
| 6974 | ; |
| 6975 | return 0; |
| 6976 | } |
| 6977 | _ACEOF |
| 6978 | rm -f conftest.$ac_objext |
| 6979 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6980 | (eval $ac_compile) 2>&5 |
| 6981 | ac_status=$? |
| 6982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6983 | (exit $ac_status); } && |
| 6984 | { ac_try='test -s conftest.$ac_objext' |
| 6985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6986 | (eval $ac_try) 2>&5 |
| 6987 | ac_status=$? |
| 6988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6989 | (exit $ac_status); }; }; then |
| 6990 | ac_hi=$ac_mid; break |
| 6991 | else |
| 6992 | echo "$as_me: failed program was:" >&5 |
| 6993 | cat conftest.$ac_ext >&5 |
| 6994 | ac_lo=`expr $ac_mid + 1` |
| 6995 | if test $ac_lo -le $ac_mid; then |
| 6996 | ac_lo= ac_hi= |
| 6997 | break |
| 6998 | fi |
| 6999 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7000 | fi |
| 7001 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7002 | done |
| 7003 | else |
| 7004 | echo "$as_me: failed program was:" >&5 |
| 7005 | cat conftest.$ac_ext >&5 |
| 7006 | cat >conftest.$ac_ext <<_ACEOF |
| 7007 | #line $LINENO "configure" |
| 7008 | #include "confdefs.h" |
| 7009 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7010 | #ifdef F77_DUMMY_MAIN |
| 7011 | # ifdef __cplusplus |
| 7012 | extern "C" |
| 7013 | # endif |
| 7014 | int F77_DUMMY_MAIN() { return 1; } |
| 7015 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7016 | int |
| 7017 | main () |
| 7018 | { |
| 7019 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
| 7020 | test_array [0] = 0 |
| 7021 | |
| 7022 | ; |
| 7023 | return 0; |
| 7024 | } |
| 7025 | _ACEOF |
| 7026 | rm -f conftest.$ac_objext |
| 7027 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7028 | (eval $ac_compile) 2>&5 |
| 7029 | ac_status=$? |
| 7030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7031 | (exit $ac_status); } && |
| 7032 | { ac_try='test -s conftest.$ac_objext' |
| 7033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7034 | (eval $ac_try) 2>&5 |
| 7035 | ac_status=$? |
| 7036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7037 | (exit $ac_status); }; }; then |
| 7038 | ac_hi=-1 ac_mid=-1 |
| 7039 | while :; do |
| 7040 | cat >conftest.$ac_ext <<_ACEOF |
| 7041 | #line $LINENO "configure" |
| 7042 | #include "confdefs.h" |
| 7043 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7044 | #ifdef F77_DUMMY_MAIN |
| 7045 | # ifdef __cplusplus |
| 7046 | extern "C" |
| 7047 | # endif |
| 7048 | int F77_DUMMY_MAIN() { return 1; } |
| 7049 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7050 | int |
| 7051 | main () |
| 7052 | { |
| 7053 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
| 7054 | test_array [0] = 0 |
| 7055 | |
| 7056 | ; |
| 7057 | return 0; |
| 7058 | } |
| 7059 | _ACEOF |
| 7060 | rm -f conftest.$ac_objext |
| 7061 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7062 | (eval $ac_compile) 2>&5 |
| 7063 | ac_status=$? |
| 7064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7065 | (exit $ac_status); } && |
| 7066 | { ac_try='test -s conftest.$ac_objext' |
| 7067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7068 | (eval $ac_try) 2>&5 |
| 7069 | ac_status=$? |
| 7070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7071 | (exit $ac_status); }; }; then |
| 7072 | ac_lo=$ac_mid; break |
| 7073 | else |
| 7074 | echo "$as_me: failed program was:" >&5 |
| 7075 | cat conftest.$ac_ext >&5 |
| 7076 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7077 | if test $ac_mid -le $ac_hi; then |
| 7078 | ac_lo= ac_hi= |
| 7079 | break |
| 7080 | fi |
| 7081 | ac_mid=`expr 2 '*' $ac_mid` |
| 7082 | fi |
| 7083 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7084 | done |
| 7085 | else |
| 7086 | echo "$as_me: failed program was:" >&5 |
| 7087 | cat conftest.$ac_ext >&5 |
| 7088 | ac_lo= ac_hi= |
| 7089 | fi |
| 7090 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7091 | fi |
| 7092 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7093 | # Binary search between lo and hi bounds. |
| 7094 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7095 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7096 | cat >conftest.$ac_ext <<_ACEOF |
| 7097 | #line $LINENO "configure" |
| 7098 | #include "confdefs.h" |
| 7099 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7100 | #ifdef F77_DUMMY_MAIN |
| 7101 | # ifdef __cplusplus |
| 7102 | extern "C" |
| 7103 | # endif |
| 7104 | int F77_DUMMY_MAIN() { return 1; } |
| 7105 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7106 | int |
| 7107 | main () |
| 7108 | { |
| 7109 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 7110 | test_array [0] = 0 |
| 7111 | |
| 7112 | ; |
| 7113 | return 0; |
| 7114 | } |
| 7115 | _ACEOF |
| 7116 | rm -f conftest.$ac_objext |
| 7117 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7118 | (eval $ac_compile) 2>&5 |
| 7119 | ac_status=$? |
| 7120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7121 | (exit $ac_status); } && |
| 7122 | { ac_try='test -s conftest.$ac_objext' |
| 7123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7124 | (eval $ac_try) 2>&5 |
| 7125 | ac_status=$? |
| 7126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7127 | (exit $ac_status); }; }; then |
| 7128 | ac_hi=$ac_mid |
| 7129 | else |
| 7130 | echo "$as_me: failed program was:" >&5 |
| 7131 | cat conftest.$ac_ext >&5 |
| 7132 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7133 | fi |
| 7134 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7135 | done |
| 7136 | case $ac_lo in |
| 7137 | ?*) ac_cv_sizeof_short=$ac_lo;; |
| 7138 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 |
| 7139 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} |
| 7140 | { (exit 1); exit 1; }; } ;; |
| 7141 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7142 | else |
| 7143 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7144 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7145 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7146 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7147 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7148 | cat >conftest.$ac_ext <<_ACEOF |
| 7149 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7150 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7151 | $ac_includes_default |
| 7152 | long longval () { return (long) (sizeof (short)); } |
| 7153 | unsigned long ulongval () { return (long) (sizeof (short)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7154 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7155 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7156 | #ifdef F77_DUMMY_MAIN |
| 7157 | # ifdef __cplusplus |
| 7158 | extern "C" |
| 7159 | # endif |
| 7160 | int F77_DUMMY_MAIN() { return 1; } |
| 7161 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7162 | int |
| 7163 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7164 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7165 | |
| 7166 | FILE *f = fopen ("conftest.val", "w"); |
| 7167 | if (! f) |
| 7168 | exit (1); |
| 7169 | if (((long) (sizeof (short))) < 0) |
| 7170 | { |
| 7171 | long i = longval (); |
| 7172 | if (i != ((long) (sizeof (short)))) |
| 7173 | exit (1); |
| 7174 | fprintf (f, "%ld\n", i); |
| 7175 | } |
| 7176 | else |
| 7177 | { |
| 7178 | unsigned long i = ulongval (); |
| 7179 | if (i != ((long) (sizeof (short)))) |
| 7180 | exit (1); |
| 7181 | fprintf (f, "%lu\n", i); |
| 7182 | } |
| 7183 | exit (ferror (f) || fclose (f) != 0); |
| 7184 | |
| 7185 | ; |
| 7186 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7187 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7188 | _ACEOF |
| 7189 | rm -f conftest$ac_exeext |
| 7190 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7191 | (eval $ac_link) 2>&5 |
| 7192 | ac_status=$? |
| 7193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7194 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7196 | (eval $ac_try) 2>&5 |
| 7197 | ac_status=$? |
| 7198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7199 | (exit $ac_status); }; }; then |
| 7200 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7201 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7202 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7203 | echo "$as_me: failed program was:" >&5 |
| 7204 | cat conftest.$ac_ext >&5 |
| 7205 | ( exit $ac_status ) |
| 7206 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 |
| 7207 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} |
| 7208 | { (exit 1); exit 1; }; } |
| 7209 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7210 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7211 | fi |
| 7212 | fi |
| 7213 | rm -f conftest.val |
| 7214 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7215 | ac_cv_sizeof_short=0 |
| 7216 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7217 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7218 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 7219 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
| 7220 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7221 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7222 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7223 | |
| 7224 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7225 | echo "$as_me:$LINENO: checking for float" >&5 |
| 7226 | echo $ECHO_N "checking for float... $ECHO_C" >&6 |
| 7227 | if test "${ac_cv_type_float+set}" = set; then |
| 7228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7229 | else |
| 7230 | cat >conftest.$ac_ext <<_ACEOF |
| 7231 | #line $LINENO "configure" |
| 7232 | #include "confdefs.h" |
| 7233 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7234 | #ifdef F77_DUMMY_MAIN |
| 7235 | # ifdef __cplusplus |
| 7236 | extern "C" |
| 7237 | # endif |
| 7238 | int F77_DUMMY_MAIN() { return 1; } |
| 7239 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7240 | int |
| 7241 | main () |
| 7242 | { |
| 7243 | if ((float *) 0) |
| 7244 | return 0; |
| 7245 | if (sizeof (float)) |
| 7246 | return 0; |
| 7247 | ; |
| 7248 | return 0; |
| 7249 | } |
| 7250 | _ACEOF |
| 7251 | rm -f conftest.$ac_objext |
| 7252 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7253 | (eval $ac_compile) 2>&5 |
| 7254 | ac_status=$? |
| 7255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7256 | (exit $ac_status); } && |
| 7257 | { ac_try='test -s conftest.$ac_objext' |
| 7258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7259 | (eval $ac_try) 2>&5 |
| 7260 | ac_status=$? |
| 7261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7262 | (exit $ac_status); }; }; then |
| 7263 | ac_cv_type_float=yes |
| 7264 | else |
| 7265 | echo "$as_me: failed program was:" >&5 |
| 7266 | cat conftest.$ac_ext >&5 |
| 7267 | ac_cv_type_float=no |
| 7268 | fi |
| 7269 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7270 | fi |
| 7271 | echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 7272 | echo "${ECHO_T}$ac_cv_type_float" >&6 |
| 7273 | |
| 7274 | echo "$as_me:$LINENO: checking size of float" >&5 |
| 7275 | echo $ECHO_N "checking size of float... $ECHO_C" >&6 |
| 7276 | if test "${ac_cv_sizeof_float+set}" = set; then |
| 7277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7278 | else |
| 7279 | if test "$ac_cv_type_float" = yes; then |
| 7280 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7281 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7282 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7283 | # This bug is HP SR number 8606223364. |
| 7284 | if test "$cross_compiling" = yes; then |
| 7285 | # Depending upon the size, compute the lo and hi bounds. |
| 7286 | cat >conftest.$ac_ext <<_ACEOF |
| 7287 | #line $LINENO "configure" |
| 7288 | #include "confdefs.h" |
| 7289 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7290 | #ifdef F77_DUMMY_MAIN |
| 7291 | # ifdef __cplusplus |
| 7292 | extern "C" |
| 7293 | # endif |
| 7294 | int F77_DUMMY_MAIN() { return 1; } |
| 7295 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7296 | int |
| 7297 | main () |
| 7298 | { |
| 7299 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)]; |
| 7300 | test_array [0] = 0 |
| 7301 | |
| 7302 | ; |
| 7303 | return 0; |
| 7304 | } |
| 7305 | _ACEOF |
| 7306 | rm -f conftest.$ac_objext |
| 7307 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7308 | (eval $ac_compile) 2>&5 |
| 7309 | ac_status=$? |
| 7310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7311 | (exit $ac_status); } && |
| 7312 | { ac_try='test -s conftest.$ac_objext' |
| 7313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7314 | (eval $ac_try) 2>&5 |
| 7315 | ac_status=$? |
| 7316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7317 | (exit $ac_status); }; }; then |
| 7318 | ac_lo=0 ac_mid=0 |
| 7319 | while :; do |
| 7320 | cat >conftest.$ac_ext <<_ACEOF |
| 7321 | #line $LINENO "configure" |
| 7322 | #include "confdefs.h" |
| 7323 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7324 | #ifdef F77_DUMMY_MAIN |
| 7325 | # ifdef __cplusplus |
| 7326 | extern "C" |
| 7327 | # endif |
| 7328 | int F77_DUMMY_MAIN() { return 1; } |
| 7329 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7330 | int |
| 7331 | main () |
| 7332 | { |
| 7333 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 7334 | test_array [0] = 0 |
| 7335 | |
| 7336 | ; |
| 7337 | return 0; |
| 7338 | } |
| 7339 | _ACEOF |
| 7340 | rm -f conftest.$ac_objext |
| 7341 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7342 | (eval $ac_compile) 2>&5 |
| 7343 | ac_status=$? |
| 7344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7345 | (exit $ac_status); } && |
| 7346 | { ac_try='test -s conftest.$ac_objext' |
| 7347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7348 | (eval $ac_try) 2>&5 |
| 7349 | ac_status=$? |
| 7350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7351 | (exit $ac_status); }; }; then |
| 7352 | ac_hi=$ac_mid; break |
| 7353 | else |
| 7354 | echo "$as_me: failed program was:" >&5 |
| 7355 | cat conftest.$ac_ext >&5 |
| 7356 | ac_lo=`expr $ac_mid + 1` |
| 7357 | if test $ac_lo -le $ac_mid; then |
| 7358 | ac_lo= ac_hi= |
| 7359 | break |
| 7360 | fi |
| 7361 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7362 | fi |
| 7363 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7364 | done |
| 7365 | else |
| 7366 | echo "$as_me: failed program was:" >&5 |
| 7367 | cat conftest.$ac_ext >&5 |
| 7368 | cat >conftest.$ac_ext <<_ACEOF |
| 7369 | #line $LINENO "configure" |
| 7370 | #include "confdefs.h" |
| 7371 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7372 | #ifdef F77_DUMMY_MAIN |
| 7373 | # ifdef __cplusplus |
| 7374 | extern "C" |
| 7375 | # endif |
| 7376 | int F77_DUMMY_MAIN() { return 1; } |
| 7377 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7378 | int |
| 7379 | main () |
| 7380 | { |
| 7381 | static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)]; |
| 7382 | test_array [0] = 0 |
| 7383 | |
| 7384 | ; |
| 7385 | return 0; |
| 7386 | } |
| 7387 | _ACEOF |
| 7388 | rm -f conftest.$ac_objext |
| 7389 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7390 | (eval $ac_compile) 2>&5 |
| 7391 | ac_status=$? |
| 7392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7393 | (exit $ac_status); } && |
| 7394 | { ac_try='test -s conftest.$ac_objext' |
| 7395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7396 | (eval $ac_try) 2>&5 |
| 7397 | ac_status=$? |
| 7398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7399 | (exit $ac_status); }; }; then |
| 7400 | ac_hi=-1 ac_mid=-1 |
| 7401 | while :; do |
| 7402 | cat >conftest.$ac_ext <<_ACEOF |
| 7403 | #line $LINENO "configure" |
| 7404 | #include "confdefs.h" |
| 7405 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7406 | #ifdef F77_DUMMY_MAIN |
| 7407 | # ifdef __cplusplus |
| 7408 | extern "C" |
| 7409 | # endif |
| 7410 | int F77_DUMMY_MAIN() { return 1; } |
| 7411 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7412 | int |
| 7413 | main () |
| 7414 | { |
| 7415 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)]; |
| 7416 | test_array [0] = 0 |
| 7417 | |
| 7418 | ; |
| 7419 | return 0; |
| 7420 | } |
| 7421 | _ACEOF |
| 7422 | rm -f conftest.$ac_objext |
| 7423 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7424 | (eval $ac_compile) 2>&5 |
| 7425 | ac_status=$? |
| 7426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7427 | (exit $ac_status); } && |
| 7428 | { ac_try='test -s conftest.$ac_objext' |
| 7429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7430 | (eval $ac_try) 2>&5 |
| 7431 | ac_status=$? |
| 7432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7433 | (exit $ac_status); }; }; then |
| 7434 | ac_lo=$ac_mid; break |
| 7435 | else |
| 7436 | echo "$as_me: failed program was:" >&5 |
| 7437 | cat conftest.$ac_ext >&5 |
| 7438 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7439 | if test $ac_mid -le $ac_hi; then |
| 7440 | ac_lo= ac_hi= |
| 7441 | break |
| 7442 | fi |
| 7443 | ac_mid=`expr 2 '*' $ac_mid` |
| 7444 | fi |
| 7445 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7446 | done |
| 7447 | else |
| 7448 | echo "$as_me: failed program was:" >&5 |
| 7449 | cat conftest.$ac_ext >&5 |
| 7450 | ac_lo= ac_hi= |
| 7451 | fi |
| 7452 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7453 | fi |
| 7454 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7455 | # Binary search between lo and hi bounds. |
| 7456 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7457 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7458 | cat >conftest.$ac_ext <<_ACEOF |
| 7459 | #line $LINENO "configure" |
| 7460 | #include "confdefs.h" |
| 7461 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7462 | #ifdef F77_DUMMY_MAIN |
| 7463 | # ifdef __cplusplus |
| 7464 | extern "C" |
| 7465 | # endif |
| 7466 | int F77_DUMMY_MAIN() { return 1; } |
| 7467 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7468 | int |
| 7469 | main () |
| 7470 | { |
| 7471 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 7472 | test_array [0] = 0 |
| 7473 | |
| 7474 | ; |
| 7475 | return 0; |
| 7476 | } |
| 7477 | _ACEOF |
| 7478 | rm -f conftest.$ac_objext |
| 7479 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7480 | (eval $ac_compile) 2>&5 |
| 7481 | ac_status=$? |
| 7482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7483 | (exit $ac_status); } && |
| 7484 | { ac_try='test -s conftest.$ac_objext' |
| 7485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7486 | (eval $ac_try) 2>&5 |
| 7487 | ac_status=$? |
| 7488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7489 | (exit $ac_status); }; }; then |
| 7490 | ac_hi=$ac_mid |
| 7491 | else |
| 7492 | echo "$as_me: failed program was:" >&5 |
| 7493 | cat conftest.$ac_ext >&5 |
| 7494 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7495 | fi |
| 7496 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7497 | done |
| 7498 | case $ac_lo in |
| 7499 | ?*) ac_cv_sizeof_float=$ac_lo;; |
| 7500 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5 |
| 7501 | echo "$as_me: error: cannot compute sizeof (float), 77" >&2;} |
| 7502 | { (exit 1); exit 1; }; } ;; |
| 7503 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7504 | else |
| 7505 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7506 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7507 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7508 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7509 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7510 | cat >conftest.$ac_ext <<_ACEOF |
| 7511 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7512 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7513 | $ac_includes_default |
| 7514 | long longval () { return (long) (sizeof (float)); } |
| 7515 | unsigned long ulongval () { return (long) (sizeof (float)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7516 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7517 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7518 | #ifdef F77_DUMMY_MAIN |
| 7519 | # ifdef __cplusplus |
| 7520 | extern "C" |
| 7521 | # endif |
| 7522 | int F77_DUMMY_MAIN() { return 1; } |
| 7523 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7524 | int |
| 7525 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7526 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7527 | |
| 7528 | FILE *f = fopen ("conftest.val", "w"); |
| 7529 | if (! f) |
| 7530 | exit (1); |
| 7531 | if (((long) (sizeof (float))) < 0) |
| 7532 | { |
| 7533 | long i = longval (); |
| 7534 | if (i != ((long) (sizeof (float)))) |
| 7535 | exit (1); |
| 7536 | fprintf (f, "%ld\n", i); |
| 7537 | } |
| 7538 | else |
| 7539 | { |
| 7540 | unsigned long i = ulongval (); |
| 7541 | if (i != ((long) (sizeof (float)))) |
| 7542 | exit (1); |
| 7543 | fprintf (f, "%lu\n", i); |
| 7544 | } |
| 7545 | exit (ferror (f) || fclose (f) != 0); |
| 7546 | |
| 7547 | ; |
| 7548 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7549 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7550 | _ACEOF |
| 7551 | rm -f conftest$ac_exeext |
| 7552 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7553 | (eval $ac_link) 2>&5 |
| 7554 | ac_status=$? |
| 7555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7556 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7558 | (eval $ac_try) 2>&5 |
| 7559 | ac_status=$? |
| 7560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7561 | (exit $ac_status); }; }; then |
| 7562 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7563 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7564 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7565 | echo "$as_me: failed program was:" >&5 |
| 7566 | cat conftest.$ac_ext >&5 |
| 7567 | ( exit $ac_status ) |
| 7568 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5 |
| 7569 | echo "$as_me: error: cannot compute sizeof (float), 77" >&2;} |
| 7570 | { (exit 1); exit 1; }; } |
| 7571 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7572 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7573 | fi |
| 7574 | fi |
| 7575 | rm -f conftest.val |
| 7576 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7577 | ac_cv_sizeof_float=0 |
| 7578 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7579 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7580 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 7581 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6 |
| 7582 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7583 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7584 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7585 | |
| 7586 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7587 | echo "$as_me:$LINENO: checking for double" >&5 |
| 7588 | echo $ECHO_N "checking for double... $ECHO_C" >&6 |
| 7589 | if test "${ac_cv_type_double+set}" = set; then |
| 7590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7591 | else |
| 7592 | cat >conftest.$ac_ext <<_ACEOF |
| 7593 | #line $LINENO "configure" |
| 7594 | #include "confdefs.h" |
| 7595 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7596 | #ifdef F77_DUMMY_MAIN |
| 7597 | # ifdef __cplusplus |
| 7598 | extern "C" |
| 7599 | # endif |
| 7600 | int F77_DUMMY_MAIN() { return 1; } |
| 7601 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7602 | int |
| 7603 | main () |
| 7604 | { |
| 7605 | if ((double *) 0) |
| 7606 | return 0; |
| 7607 | if (sizeof (double)) |
| 7608 | return 0; |
| 7609 | ; |
| 7610 | return 0; |
| 7611 | } |
| 7612 | _ACEOF |
| 7613 | rm -f conftest.$ac_objext |
| 7614 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7615 | (eval $ac_compile) 2>&5 |
| 7616 | ac_status=$? |
| 7617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7618 | (exit $ac_status); } && |
| 7619 | { ac_try='test -s conftest.$ac_objext' |
| 7620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7621 | (eval $ac_try) 2>&5 |
| 7622 | ac_status=$? |
| 7623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7624 | (exit $ac_status); }; }; then |
| 7625 | ac_cv_type_double=yes |
| 7626 | else |
| 7627 | echo "$as_me: failed program was:" >&5 |
| 7628 | cat conftest.$ac_ext >&5 |
| 7629 | ac_cv_type_double=no |
| 7630 | fi |
| 7631 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7632 | fi |
| 7633 | echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 7634 | echo "${ECHO_T}$ac_cv_type_double" >&6 |
| 7635 | |
| 7636 | echo "$as_me:$LINENO: checking size of double" >&5 |
| 7637 | echo $ECHO_N "checking size of double... $ECHO_C" >&6 |
| 7638 | if test "${ac_cv_sizeof_double+set}" = set; then |
| 7639 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7640 | else |
| 7641 | if test "$ac_cv_type_double" = yes; then |
| 7642 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7643 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7644 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7645 | # This bug is HP SR number 8606223364. |
| 7646 | if test "$cross_compiling" = yes; then |
| 7647 | # Depending upon the size, compute the lo and hi bounds. |
| 7648 | cat >conftest.$ac_ext <<_ACEOF |
| 7649 | #line $LINENO "configure" |
| 7650 | #include "confdefs.h" |
| 7651 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7652 | #ifdef F77_DUMMY_MAIN |
| 7653 | # ifdef __cplusplus |
| 7654 | extern "C" |
| 7655 | # endif |
| 7656 | int F77_DUMMY_MAIN() { return 1; } |
| 7657 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7658 | int |
| 7659 | main () |
| 7660 | { |
| 7661 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)]; |
| 7662 | test_array [0] = 0 |
| 7663 | |
| 7664 | ; |
| 7665 | return 0; |
| 7666 | } |
| 7667 | _ACEOF |
| 7668 | rm -f conftest.$ac_objext |
| 7669 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7670 | (eval $ac_compile) 2>&5 |
| 7671 | ac_status=$? |
| 7672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7673 | (exit $ac_status); } && |
| 7674 | { ac_try='test -s conftest.$ac_objext' |
| 7675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7676 | (eval $ac_try) 2>&5 |
| 7677 | ac_status=$? |
| 7678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7679 | (exit $ac_status); }; }; then |
| 7680 | ac_lo=0 ac_mid=0 |
| 7681 | while :; do |
| 7682 | cat >conftest.$ac_ext <<_ACEOF |
| 7683 | #line $LINENO "configure" |
| 7684 | #include "confdefs.h" |
| 7685 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7686 | #ifdef F77_DUMMY_MAIN |
| 7687 | # ifdef __cplusplus |
| 7688 | extern "C" |
| 7689 | # endif |
| 7690 | int F77_DUMMY_MAIN() { return 1; } |
| 7691 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7692 | int |
| 7693 | main () |
| 7694 | { |
| 7695 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 7696 | test_array [0] = 0 |
| 7697 | |
| 7698 | ; |
| 7699 | return 0; |
| 7700 | } |
| 7701 | _ACEOF |
| 7702 | rm -f conftest.$ac_objext |
| 7703 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7704 | (eval $ac_compile) 2>&5 |
| 7705 | ac_status=$? |
| 7706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7707 | (exit $ac_status); } && |
| 7708 | { ac_try='test -s conftest.$ac_objext' |
| 7709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7710 | (eval $ac_try) 2>&5 |
| 7711 | ac_status=$? |
| 7712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7713 | (exit $ac_status); }; }; then |
| 7714 | ac_hi=$ac_mid; break |
| 7715 | else |
| 7716 | echo "$as_me: failed program was:" >&5 |
| 7717 | cat conftest.$ac_ext >&5 |
| 7718 | ac_lo=`expr $ac_mid + 1` |
| 7719 | if test $ac_lo -le $ac_mid; then |
| 7720 | ac_lo= ac_hi= |
| 7721 | break |
| 7722 | fi |
| 7723 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7724 | fi |
| 7725 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7726 | done |
| 7727 | else |
| 7728 | echo "$as_me: failed program was:" >&5 |
| 7729 | cat conftest.$ac_ext >&5 |
| 7730 | cat >conftest.$ac_ext <<_ACEOF |
| 7731 | #line $LINENO "configure" |
| 7732 | #include "confdefs.h" |
| 7733 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7734 | #ifdef F77_DUMMY_MAIN |
| 7735 | # ifdef __cplusplus |
| 7736 | extern "C" |
| 7737 | # endif |
| 7738 | int F77_DUMMY_MAIN() { return 1; } |
| 7739 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7740 | int |
| 7741 | main () |
| 7742 | { |
| 7743 | static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)]; |
| 7744 | test_array [0] = 0 |
| 7745 | |
| 7746 | ; |
| 7747 | return 0; |
| 7748 | } |
| 7749 | _ACEOF |
| 7750 | rm -f conftest.$ac_objext |
| 7751 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7752 | (eval $ac_compile) 2>&5 |
| 7753 | ac_status=$? |
| 7754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7755 | (exit $ac_status); } && |
| 7756 | { ac_try='test -s conftest.$ac_objext' |
| 7757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7758 | (eval $ac_try) 2>&5 |
| 7759 | ac_status=$? |
| 7760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7761 | (exit $ac_status); }; }; then |
| 7762 | ac_hi=-1 ac_mid=-1 |
| 7763 | while :; do |
| 7764 | cat >conftest.$ac_ext <<_ACEOF |
| 7765 | #line $LINENO "configure" |
| 7766 | #include "confdefs.h" |
| 7767 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7768 | #ifdef F77_DUMMY_MAIN |
| 7769 | # ifdef __cplusplus |
| 7770 | extern "C" |
| 7771 | # endif |
| 7772 | int F77_DUMMY_MAIN() { return 1; } |
| 7773 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7774 | int |
| 7775 | main () |
| 7776 | { |
| 7777 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)]; |
| 7778 | test_array [0] = 0 |
| 7779 | |
| 7780 | ; |
| 7781 | return 0; |
| 7782 | } |
| 7783 | _ACEOF |
| 7784 | rm -f conftest.$ac_objext |
| 7785 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7786 | (eval $ac_compile) 2>&5 |
| 7787 | ac_status=$? |
| 7788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7789 | (exit $ac_status); } && |
| 7790 | { ac_try='test -s conftest.$ac_objext' |
| 7791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7792 | (eval $ac_try) 2>&5 |
| 7793 | ac_status=$? |
| 7794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7795 | (exit $ac_status); }; }; then |
| 7796 | ac_lo=$ac_mid; break |
| 7797 | else |
| 7798 | echo "$as_me: failed program was:" >&5 |
| 7799 | cat conftest.$ac_ext >&5 |
| 7800 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7801 | if test $ac_mid -le $ac_hi; then |
| 7802 | ac_lo= ac_hi= |
| 7803 | break |
| 7804 | fi |
| 7805 | ac_mid=`expr 2 '*' $ac_mid` |
| 7806 | fi |
| 7807 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7808 | done |
| 7809 | else |
| 7810 | echo "$as_me: failed program was:" >&5 |
| 7811 | cat conftest.$ac_ext >&5 |
| 7812 | ac_lo= ac_hi= |
| 7813 | fi |
| 7814 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7815 | fi |
| 7816 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7817 | # Binary search between lo and hi bounds. |
| 7818 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7819 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7820 | cat >conftest.$ac_ext <<_ACEOF |
| 7821 | #line $LINENO "configure" |
| 7822 | #include "confdefs.h" |
| 7823 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7824 | #ifdef F77_DUMMY_MAIN |
| 7825 | # ifdef __cplusplus |
| 7826 | extern "C" |
| 7827 | # endif |
| 7828 | int F77_DUMMY_MAIN() { return 1; } |
| 7829 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7830 | int |
| 7831 | main () |
| 7832 | { |
| 7833 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 7834 | test_array [0] = 0 |
| 7835 | |
| 7836 | ; |
| 7837 | return 0; |
| 7838 | } |
| 7839 | _ACEOF |
| 7840 | rm -f conftest.$ac_objext |
| 7841 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7842 | (eval $ac_compile) 2>&5 |
| 7843 | ac_status=$? |
| 7844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7845 | (exit $ac_status); } && |
| 7846 | { ac_try='test -s conftest.$ac_objext' |
| 7847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7848 | (eval $ac_try) 2>&5 |
| 7849 | ac_status=$? |
| 7850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7851 | (exit $ac_status); }; }; then |
| 7852 | ac_hi=$ac_mid |
| 7853 | else |
| 7854 | echo "$as_me: failed program was:" >&5 |
| 7855 | cat conftest.$ac_ext >&5 |
| 7856 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7857 | fi |
| 7858 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7859 | done |
| 7860 | case $ac_lo in |
| 7861 | ?*) ac_cv_sizeof_double=$ac_lo;; |
| 7862 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5 |
| 7863 | echo "$as_me: error: cannot compute sizeof (double), 77" >&2;} |
| 7864 | { (exit 1); exit 1; }; } ;; |
| 7865 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7866 | else |
| 7867 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7868 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7869 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7870 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7871 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7872 | cat >conftest.$ac_ext <<_ACEOF |
| 7873 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7874 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7875 | $ac_includes_default |
| 7876 | long longval () { return (long) (sizeof (double)); } |
| 7877 | unsigned long ulongval () { return (long) (sizeof (double)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7878 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7879 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7880 | #ifdef F77_DUMMY_MAIN |
| 7881 | # ifdef __cplusplus |
| 7882 | extern "C" |
| 7883 | # endif |
| 7884 | int F77_DUMMY_MAIN() { return 1; } |
| 7885 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7886 | int |
| 7887 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7888 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7889 | |
| 7890 | FILE *f = fopen ("conftest.val", "w"); |
| 7891 | if (! f) |
| 7892 | exit (1); |
| 7893 | if (((long) (sizeof (double))) < 0) |
| 7894 | { |
| 7895 | long i = longval (); |
| 7896 | if (i != ((long) (sizeof (double)))) |
| 7897 | exit (1); |
| 7898 | fprintf (f, "%ld\n", i); |
| 7899 | } |
| 7900 | else |
| 7901 | { |
| 7902 | unsigned long i = ulongval (); |
| 7903 | if (i != ((long) (sizeof (double)))) |
| 7904 | exit (1); |
| 7905 | fprintf (f, "%lu\n", i); |
| 7906 | } |
| 7907 | exit (ferror (f) || fclose (f) != 0); |
| 7908 | |
| 7909 | ; |
| 7910 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7911 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7912 | _ACEOF |
| 7913 | rm -f conftest$ac_exeext |
| 7914 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7915 | (eval $ac_link) 2>&5 |
| 7916 | ac_status=$? |
| 7917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7918 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7920 | (eval $ac_try) 2>&5 |
| 7921 | ac_status=$? |
| 7922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7923 | (exit $ac_status); }; }; then |
| 7924 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7925 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7926 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7927 | echo "$as_me: failed program was:" >&5 |
| 7928 | cat conftest.$ac_ext >&5 |
| 7929 | ( exit $ac_status ) |
| 7930 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5 |
| 7931 | echo "$as_me: error: cannot compute sizeof (double), 77" >&2;} |
| 7932 | { (exit 1); exit 1; }; } |
| 7933 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7934 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7935 | fi |
| 7936 | fi |
| 7937 | rm -f conftest.val |
| 7938 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7939 | ac_cv_sizeof_double=0 |
| 7940 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7941 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7942 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 7943 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6 |
| 7944 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7945 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7946 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7947 | |
| 7948 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7949 | echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 7950 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6 |
| 7951 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 7952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7953 | else |
| 7954 | cat >conftest.$ac_ext <<_ACEOF |
| 7955 | #line $LINENO "configure" |
| 7956 | #include "confdefs.h" |
| 7957 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 7958 | #ifdef F77_DUMMY_MAIN |
| 7959 | # ifdef __cplusplus |
| 7960 | extern "C" |
| 7961 | # endif |
| 7962 | int F77_DUMMY_MAIN() { return 1; } |
| 7963 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7964 | int |
| 7965 | main () |
| 7966 | { |
| 7967 | if ((fpos_t *) 0) |
| 7968 | return 0; |
| 7969 | if (sizeof (fpos_t)) |
| 7970 | return 0; |
| 7971 | ; |
| 7972 | return 0; |
| 7973 | } |
| 7974 | _ACEOF |
| 7975 | rm -f conftest.$ac_objext |
| 7976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7977 | (eval $ac_compile) 2>&5 |
| 7978 | ac_status=$? |
| 7979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7980 | (exit $ac_status); } && |
| 7981 | { ac_try='test -s conftest.$ac_objext' |
| 7982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7983 | (eval $ac_try) 2>&5 |
| 7984 | ac_status=$? |
| 7985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7986 | (exit $ac_status); }; }; then |
| 7987 | ac_cv_type_fpos_t=yes |
| 7988 | else |
| 7989 | echo "$as_me: failed program was:" >&5 |
| 7990 | cat conftest.$ac_ext >&5 |
| 7991 | ac_cv_type_fpos_t=no |
| 7992 | fi |
| 7993 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7994 | fi |
| 7995 | echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 7996 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6 |
| 7997 | |
| 7998 | echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 7999 | echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6 |
| 8000 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| 8001 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8002 | else |
| 8003 | if test "$ac_cv_type_fpos_t" = yes; then |
| 8004 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8005 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8006 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8007 | # This bug is HP SR number 8606223364. |
| 8008 | if test "$cross_compiling" = yes; then |
| 8009 | # Depending upon the size, compute the lo and hi bounds. |
| 8010 | cat >conftest.$ac_ext <<_ACEOF |
| 8011 | #line $LINENO "configure" |
| 8012 | #include "confdefs.h" |
| 8013 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8014 | #ifdef F77_DUMMY_MAIN |
| 8015 | # ifdef __cplusplus |
| 8016 | extern "C" |
| 8017 | # endif |
| 8018 | int F77_DUMMY_MAIN() { return 1; } |
| 8019 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8020 | int |
| 8021 | main () |
| 8022 | { |
| 8023 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)]; |
| 8024 | test_array [0] = 0 |
| 8025 | |
| 8026 | ; |
| 8027 | return 0; |
| 8028 | } |
| 8029 | _ACEOF |
| 8030 | rm -f conftest.$ac_objext |
| 8031 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8032 | (eval $ac_compile) 2>&5 |
| 8033 | ac_status=$? |
| 8034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8035 | (exit $ac_status); } && |
| 8036 | { ac_try='test -s conftest.$ac_objext' |
| 8037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8038 | (eval $ac_try) 2>&5 |
| 8039 | ac_status=$? |
| 8040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8041 | (exit $ac_status); }; }; then |
| 8042 | ac_lo=0 ac_mid=0 |
| 8043 | while :; do |
| 8044 | cat >conftest.$ac_ext <<_ACEOF |
| 8045 | #line $LINENO "configure" |
| 8046 | #include "confdefs.h" |
| 8047 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8048 | #ifdef F77_DUMMY_MAIN |
| 8049 | # ifdef __cplusplus |
| 8050 | extern "C" |
| 8051 | # endif |
| 8052 | int F77_DUMMY_MAIN() { return 1; } |
| 8053 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8054 | int |
| 8055 | main () |
| 8056 | { |
| 8057 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 8058 | test_array [0] = 0 |
| 8059 | |
| 8060 | ; |
| 8061 | return 0; |
| 8062 | } |
| 8063 | _ACEOF |
| 8064 | rm -f conftest.$ac_objext |
| 8065 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8066 | (eval $ac_compile) 2>&5 |
| 8067 | ac_status=$? |
| 8068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8069 | (exit $ac_status); } && |
| 8070 | { ac_try='test -s conftest.$ac_objext' |
| 8071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8072 | (eval $ac_try) 2>&5 |
| 8073 | ac_status=$? |
| 8074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8075 | (exit $ac_status); }; }; then |
| 8076 | ac_hi=$ac_mid; break |
| 8077 | else |
| 8078 | echo "$as_me: failed program was:" >&5 |
| 8079 | cat conftest.$ac_ext >&5 |
| 8080 | ac_lo=`expr $ac_mid + 1` |
| 8081 | if test $ac_lo -le $ac_mid; then |
| 8082 | ac_lo= ac_hi= |
| 8083 | break |
| 8084 | fi |
| 8085 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8086 | fi |
| 8087 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8088 | done |
| 8089 | else |
| 8090 | echo "$as_me: failed program was:" >&5 |
| 8091 | cat conftest.$ac_ext >&5 |
| 8092 | cat >conftest.$ac_ext <<_ACEOF |
| 8093 | #line $LINENO "configure" |
| 8094 | #include "confdefs.h" |
| 8095 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8096 | #ifdef F77_DUMMY_MAIN |
| 8097 | # ifdef __cplusplus |
| 8098 | extern "C" |
| 8099 | # endif |
| 8100 | int F77_DUMMY_MAIN() { return 1; } |
| 8101 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8102 | int |
| 8103 | main () |
| 8104 | { |
| 8105 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)]; |
| 8106 | test_array [0] = 0 |
| 8107 | |
| 8108 | ; |
| 8109 | return 0; |
| 8110 | } |
| 8111 | _ACEOF |
| 8112 | rm -f conftest.$ac_objext |
| 8113 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8114 | (eval $ac_compile) 2>&5 |
| 8115 | ac_status=$? |
| 8116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8117 | (exit $ac_status); } && |
| 8118 | { ac_try='test -s conftest.$ac_objext' |
| 8119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8120 | (eval $ac_try) 2>&5 |
| 8121 | ac_status=$? |
| 8122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8123 | (exit $ac_status); }; }; then |
| 8124 | ac_hi=-1 ac_mid=-1 |
| 8125 | while :; do |
| 8126 | cat >conftest.$ac_ext <<_ACEOF |
| 8127 | #line $LINENO "configure" |
| 8128 | #include "confdefs.h" |
| 8129 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8130 | #ifdef F77_DUMMY_MAIN |
| 8131 | # ifdef __cplusplus |
| 8132 | extern "C" |
| 8133 | # endif |
| 8134 | int F77_DUMMY_MAIN() { return 1; } |
| 8135 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8136 | int |
| 8137 | main () |
| 8138 | { |
| 8139 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)]; |
| 8140 | test_array [0] = 0 |
| 8141 | |
| 8142 | ; |
| 8143 | return 0; |
| 8144 | } |
| 8145 | _ACEOF |
| 8146 | rm -f conftest.$ac_objext |
| 8147 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8148 | (eval $ac_compile) 2>&5 |
| 8149 | ac_status=$? |
| 8150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8151 | (exit $ac_status); } && |
| 8152 | { ac_try='test -s conftest.$ac_objext' |
| 8153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8154 | (eval $ac_try) 2>&5 |
| 8155 | ac_status=$? |
| 8156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8157 | (exit $ac_status); }; }; then |
| 8158 | ac_lo=$ac_mid; break |
| 8159 | else |
| 8160 | echo "$as_me: failed program was:" >&5 |
| 8161 | cat conftest.$ac_ext >&5 |
| 8162 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8163 | if test $ac_mid -le $ac_hi; then |
| 8164 | ac_lo= ac_hi= |
| 8165 | break |
| 8166 | fi |
| 8167 | ac_mid=`expr 2 '*' $ac_mid` |
| 8168 | fi |
| 8169 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8170 | done |
| 8171 | else |
| 8172 | echo "$as_me: failed program was:" >&5 |
| 8173 | cat conftest.$ac_ext >&5 |
| 8174 | ac_lo= ac_hi= |
| 8175 | fi |
| 8176 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8177 | fi |
| 8178 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8179 | # Binary search between lo and hi bounds. |
| 8180 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8181 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8182 | cat >conftest.$ac_ext <<_ACEOF |
| 8183 | #line $LINENO "configure" |
| 8184 | #include "confdefs.h" |
| 8185 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8186 | #ifdef F77_DUMMY_MAIN |
| 8187 | # ifdef __cplusplus |
| 8188 | extern "C" |
| 8189 | # endif |
| 8190 | int F77_DUMMY_MAIN() { return 1; } |
| 8191 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8192 | int |
| 8193 | main () |
| 8194 | { |
| 8195 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 8196 | test_array [0] = 0 |
| 8197 | |
| 8198 | ; |
| 8199 | return 0; |
| 8200 | } |
| 8201 | _ACEOF |
| 8202 | rm -f conftest.$ac_objext |
| 8203 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8204 | (eval $ac_compile) 2>&5 |
| 8205 | ac_status=$? |
| 8206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8207 | (exit $ac_status); } && |
| 8208 | { ac_try='test -s conftest.$ac_objext' |
| 8209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8210 | (eval $ac_try) 2>&5 |
| 8211 | ac_status=$? |
| 8212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8213 | (exit $ac_status); }; }; then |
| 8214 | ac_hi=$ac_mid |
| 8215 | else |
| 8216 | echo "$as_me: failed program was:" >&5 |
| 8217 | cat conftest.$ac_ext >&5 |
| 8218 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8219 | fi |
| 8220 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8221 | done |
| 8222 | case $ac_lo in |
| 8223 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
| 8224 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5 |
| 8225 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;} |
| 8226 | { (exit 1); exit 1; }; } ;; |
| 8227 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8228 | else |
| 8229 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8230 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 8231 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 8232 | { (exit 1); exit 1; }; } |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8233 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8234 | cat >conftest.$ac_ext <<_ACEOF |
| 8235 | #line $LINENO "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8236 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8237 | $ac_includes_default |
| 8238 | long longval () { return (long) (sizeof (fpos_t)); } |
| 8239 | unsigned long ulongval () { return (long) (sizeof (fpos_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8240 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8241 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8242 | #ifdef F77_DUMMY_MAIN |
| 8243 | # ifdef __cplusplus |
| 8244 | extern "C" |
| 8245 | # endif |
| 8246 | int F77_DUMMY_MAIN() { return 1; } |
| 8247 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8248 | int |
| 8249 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8250 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8251 | |
| 8252 | FILE *f = fopen ("conftest.val", "w"); |
| 8253 | if (! f) |
| 8254 | exit (1); |
| 8255 | if (((long) (sizeof (fpos_t))) < 0) |
| 8256 | { |
| 8257 | long i = longval (); |
| 8258 | if (i != ((long) (sizeof (fpos_t)))) |
| 8259 | exit (1); |
| 8260 | fprintf (f, "%ld\n", i); |
| 8261 | } |
| 8262 | else |
| 8263 | { |
| 8264 | unsigned long i = ulongval (); |
| 8265 | if (i != ((long) (sizeof (fpos_t)))) |
| 8266 | exit (1); |
| 8267 | fprintf (f, "%lu\n", i); |
| 8268 | } |
| 8269 | exit (ferror (f) || fclose (f) != 0); |
| 8270 | |
| 8271 | ; |
| 8272 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8273 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8274 | _ACEOF |
| 8275 | rm -f conftest$ac_exeext |
| 8276 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8277 | (eval $ac_link) 2>&5 |
| 8278 | ac_status=$? |
| 8279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8280 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8282 | (eval $ac_try) 2>&5 |
| 8283 | ac_status=$? |
| 8284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8285 | (exit $ac_status); }; }; then |
| 8286 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8287 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8288 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8289 | echo "$as_me: failed program was:" >&5 |
| 8290 | cat conftest.$ac_ext >&5 |
| 8291 | ( exit $ac_status ) |
| 8292 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5 |
| 8293 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;} |
| 8294 | { (exit 1); exit 1; }; } |
| 8295 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8296 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8297 | fi |
| 8298 | fi |
| 8299 | rm -f conftest.val |
| 8300 | else |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8301 | ac_cv_sizeof_fpos_t=0 |
| 8302 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8303 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8304 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 8305 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6 |
| 8306 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8307 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8308 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8309 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8310 | |
| 8311 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8312 | echo "$as_me:$LINENO: checking for long long support" >&5 |
| 8313 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8314 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8315 | cat >conftest.$ac_ext <<_ACEOF |
| 8316 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8317 | #include "confdefs.h" |
| 8318 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8319 | #ifdef F77_DUMMY_MAIN |
| 8320 | # ifdef __cplusplus |
| 8321 | extern "C" |
| 8322 | # endif |
| 8323 | int F77_DUMMY_MAIN() { return 1; } |
| 8324 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8325 | int |
| 8326 | main () |
| 8327 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8328 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8329 | ; |
| 8330 | return 0; |
| 8331 | } |
| 8332 | _ACEOF |
| 8333 | rm -f conftest.$ac_objext |
| 8334 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8335 | (eval $ac_compile) 2>&5 |
| 8336 | ac_status=$? |
| 8337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8338 | (exit $ac_status); } && |
| 8339 | { ac_try='test -s conftest.$ac_objext' |
| 8340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8341 | (eval $ac_try) 2>&5 |
| 8342 | ac_status=$? |
| 8343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8344 | (exit $ac_status); }; }; then |
| 8345 | |
| 8346 | |
| 8347 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8348 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8349 | _ACEOF |
| 8350 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8351 | have_long_long=yes |
| 8352 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8353 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8354 | echo "$as_me: failed program was:" >&5 |
| 8355 | cat conftest.$ac_ext >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8356 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8357 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8358 | echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 8359 | echo "${ECHO_T}$have_long_long" >&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 8360 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8361 | echo "$as_me:$LINENO: checking for long long" >&5 |
| 8362 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 8363 | if test "${ac_cv_type_long_long+set}" = set; then |
| 8364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8365 | else |
| 8366 | cat >conftest.$ac_ext <<_ACEOF |
| 8367 | #line $LINENO "configure" |
| 8368 | #include "confdefs.h" |
| 8369 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8370 | #ifdef F77_DUMMY_MAIN |
| 8371 | # ifdef __cplusplus |
| 8372 | extern "C" |
| 8373 | # endif |
| 8374 | int F77_DUMMY_MAIN() { return 1; } |
| 8375 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8376 | int |
| 8377 | main () |
| 8378 | { |
| 8379 | if ((long long *) 0) |
| 8380 | return 0; |
| 8381 | if (sizeof (long long)) |
| 8382 | return 0; |
| 8383 | ; |
| 8384 | return 0; |
| 8385 | } |
| 8386 | _ACEOF |
| 8387 | rm -f conftest.$ac_objext |
| 8388 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8389 | (eval $ac_compile) 2>&5 |
| 8390 | ac_status=$? |
| 8391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8392 | (exit $ac_status); } && |
| 8393 | { ac_try='test -s conftest.$ac_objext' |
| 8394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8395 | (eval $ac_try) 2>&5 |
| 8396 | ac_status=$? |
| 8397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8398 | (exit $ac_status); }; }; then |
| 8399 | ac_cv_type_long_long=yes |
| 8400 | else |
| 8401 | echo "$as_me: failed program was:" >&5 |
| 8402 | cat conftest.$ac_ext >&5 |
| 8403 | ac_cv_type_long_long=no |
| 8404 | fi |
| 8405 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8406 | fi |
| 8407 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 8408 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 8409 | |
| 8410 | echo "$as_me:$LINENO: checking size of long long" >&5 |
| 8411 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 8412 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 8413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8414 | else |
| 8415 | if test "$ac_cv_type_long_long" = yes; then |
| 8416 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8417 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8418 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8419 | # This bug is HP SR number 8606223364. |
| 8420 | if test "$cross_compiling" = yes; then |
| 8421 | # Depending upon the size, compute the lo and hi bounds. |
| 8422 | cat >conftest.$ac_ext <<_ACEOF |
| 8423 | #line $LINENO "configure" |
| 8424 | #include "confdefs.h" |
| 8425 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8426 | #ifdef F77_DUMMY_MAIN |
| 8427 | # ifdef __cplusplus |
| 8428 | extern "C" |
| 8429 | # endif |
| 8430 | int F77_DUMMY_MAIN() { return 1; } |
| 8431 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8432 | int |
| 8433 | main () |
| 8434 | { |
| 8435 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
| 8436 | test_array [0] = 0 |
| 8437 | |
| 8438 | ; |
| 8439 | return 0; |
| 8440 | } |
| 8441 | _ACEOF |
| 8442 | rm -f conftest.$ac_objext |
| 8443 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8444 | (eval $ac_compile) 2>&5 |
| 8445 | ac_status=$? |
| 8446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8447 | (exit $ac_status); } && |
| 8448 | { ac_try='test -s conftest.$ac_objext' |
| 8449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8450 | (eval $ac_try) 2>&5 |
| 8451 | ac_status=$? |
| 8452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8453 | (exit $ac_status); }; }; then |
| 8454 | ac_lo=0 ac_mid=0 |
| 8455 | while :; do |
| 8456 | cat >conftest.$ac_ext <<_ACEOF |
| 8457 | #line $LINENO "configure" |
| 8458 | #include "confdefs.h" |
| 8459 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8460 | #ifdef F77_DUMMY_MAIN |
| 8461 | # ifdef __cplusplus |
| 8462 | extern "C" |
| 8463 | # endif |
| 8464 | int F77_DUMMY_MAIN() { return 1; } |
| 8465 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8466 | int |
| 8467 | main () |
| 8468 | { |
| 8469 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 8470 | test_array [0] = 0 |
| 8471 | |
| 8472 | ; |
| 8473 | return 0; |
| 8474 | } |
| 8475 | _ACEOF |
| 8476 | rm -f conftest.$ac_objext |
| 8477 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8478 | (eval $ac_compile) 2>&5 |
| 8479 | ac_status=$? |
| 8480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8481 | (exit $ac_status); } && |
| 8482 | { ac_try='test -s conftest.$ac_objext' |
| 8483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8484 | (eval $ac_try) 2>&5 |
| 8485 | ac_status=$? |
| 8486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8487 | (exit $ac_status); }; }; then |
| 8488 | ac_hi=$ac_mid; break |
| 8489 | else |
| 8490 | echo "$as_me: failed program was:" >&5 |
| 8491 | cat conftest.$ac_ext >&5 |
| 8492 | ac_lo=`expr $ac_mid + 1` |
| 8493 | if test $ac_lo -le $ac_mid; then |
| 8494 | ac_lo= ac_hi= |
| 8495 | break |
| 8496 | fi |
| 8497 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8498 | fi |
| 8499 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8500 | done |
| 8501 | else |
| 8502 | echo "$as_me: failed program was:" >&5 |
| 8503 | cat conftest.$ac_ext >&5 |
| 8504 | cat >conftest.$ac_ext <<_ACEOF |
| 8505 | #line $LINENO "configure" |
| 8506 | #include "confdefs.h" |
| 8507 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8508 | #ifdef F77_DUMMY_MAIN |
| 8509 | # ifdef __cplusplus |
| 8510 | extern "C" |
| 8511 | # endif |
| 8512 | int F77_DUMMY_MAIN() { return 1; } |
| 8513 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8514 | int |
| 8515 | main () |
| 8516 | { |
| 8517 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| 8518 | test_array [0] = 0 |
| 8519 | |
| 8520 | ; |
| 8521 | return 0; |
| 8522 | } |
| 8523 | _ACEOF |
| 8524 | rm -f conftest.$ac_objext |
| 8525 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8526 | (eval $ac_compile) 2>&5 |
| 8527 | ac_status=$? |
| 8528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8529 | (exit $ac_status); } && |
| 8530 | { ac_try='test -s conftest.$ac_objext' |
| 8531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8532 | (eval $ac_try) 2>&5 |
| 8533 | ac_status=$? |
| 8534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8535 | (exit $ac_status); }; }; then |
| 8536 | ac_hi=-1 ac_mid=-1 |
| 8537 | while :; do |
| 8538 | cat >conftest.$ac_ext <<_ACEOF |
| 8539 | #line $LINENO "configure" |
| 8540 | #include "confdefs.h" |
| 8541 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8542 | #ifdef F77_DUMMY_MAIN |
| 8543 | # ifdef __cplusplus |
| 8544 | extern "C" |
| 8545 | # endif |
| 8546 | int F77_DUMMY_MAIN() { return 1; } |
| 8547 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8548 | int |
| 8549 | main () |
| 8550 | { |
| 8551 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| 8552 | test_array [0] = 0 |
| 8553 | |
| 8554 | ; |
| 8555 | return 0; |
| 8556 | } |
| 8557 | _ACEOF |
| 8558 | rm -f conftest.$ac_objext |
| 8559 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8560 | (eval $ac_compile) 2>&5 |
| 8561 | ac_status=$? |
| 8562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8563 | (exit $ac_status); } && |
| 8564 | { ac_try='test -s conftest.$ac_objext' |
| 8565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8566 | (eval $ac_try) 2>&5 |
| 8567 | ac_status=$? |
| 8568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8569 | (exit $ac_status); }; }; then |
| 8570 | ac_lo=$ac_mid; break |
| 8571 | else |
| 8572 | echo "$as_me: failed program was:" >&5 |
| 8573 | cat conftest.$ac_ext >&5 |
| 8574 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8575 | if test $ac_mid -le $ac_hi; then |
| 8576 | ac_lo= ac_hi= |
| 8577 | break |
| 8578 | fi |
| 8579 | ac_mid=`expr 2 '*' $ac_mid` |
| 8580 | fi |
| 8581 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8582 | done |
| 8583 | else |
| 8584 | echo "$as_me: failed program was:" >&5 |
| 8585 | cat conftest.$ac_ext >&5 |
| 8586 | ac_lo= ac_hi= |
| 8587 | fi |
| 8588 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8589 | fi |
| 8590 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8591 | # Binary search between lo and hi bounds. |
| 8592 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8593 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8594 | cat >conftest.$ac_ext <<_ACEOF |
| 8595 | #line $LINENO "configure" |
| 8596 | #include "confdefs.h" |
| 8597 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8598 | #ifdef F77_DUMMY_MAIN |
| 8599 | # ifdef __cplusplus |
| 8600 | extern "C" |
| 8601 | # endif |
| 8602 | int F77_DUMMY_MAIN() { return 1; } |
| 8603 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8604 | int |
| 8605 | main () |
| 8606 | { |
| 8607 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 8608 | test_array [0] = 0 |
| 8609 | |
| 8610 | ; |
| 8611 | return 0; |
| 8612 | } |
| 8613 | _ACEOF |
| 8614 | rm -f conftest.$ac_objext |
| 8615 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8616 | (eval $ac_compile) 2>&5 |
| 8617 | ac_status=$? |
| 8618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8619 | (exit $ac_status); } && |
| 8620 | { ac_try='test -s conftest.$ac_objext' |
| 8621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8622 | (eval $ac_try) 2>&5 |
| 8623 | ac_status=$? |
| 8624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8625 | (exit $ac_status); }; }; then |
| 8626 | ac_hi=$ac_mid |
| 8627 | else |
| 8628 | echo "$as_me: failed program was:" >&5 |
| 8629 | cat conftest.$ac_ext >&5 |
| 8630 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8631 | fi |
| 8632 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8633 | done |
| 8634 | case $ac_lo in |
| 8635 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
| 8636 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 8637 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 8638 | { (exit 1); exit 1; }; } ;; |
| 8639 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8640 | else |
| 8641 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8642 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 8643 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 8644 | { (exit 1); exit 1; }; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8645 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8646 | cat >conftest.$ac_ext <<_ACEOF |
| 8647 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8648 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8649 | $ac_includes_default |
| 8650 | long longval () { return (long) (sizeof (long long)); } |
| 8651 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8652 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8653 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8654 | #ifdef F77_DUMMY_MAIN |
| 8655 | # ifdef __cplusplus |
| 8656 | extern "C" |
| 8657 | # endif |
| 8658 | int F77_DUMMY_MAIN() { return 1; } |
| 8659 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8660 | int |
| 8661 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8662 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8663 | |
| 8664 | FILE *f = fopen ("conftest.val", "w"); |
| 8665 | if (! f) |
| 8666 | exit (1); |
| 8667 | if (((long) (sizeof (long long))) < 0) |
| 8668 | { |
| 8669 | long i = longval (); |
| 8670 | if (i != ((long) (sizeof (long long)))) |
| 8671 | exit (1); |
| 8672 | fprintf (f, "%ld\n", i); |
| 8673 | } |
| 8674 | else |
| 8675 | { |
| 8676 | unsigned long i = ulongval (); |
| 8677 | if (i != ((long) (sizeof (long long)))) |
| 8678 | exit (1); |
| 8679 | fprintf (f, "%lu\n", i); |
| 8680 | } |
| 8681 | exit (ferror (f) || fclose (f) != 0); |
| 8682 | |
| 8683 | ; |
| 8684 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8685 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8686 | _ACEOF |
| 8687 | rm -f conftest$ac_exeext |
| 8688 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8689 | (eval $ac_link) 2>&5 |
| 8690 | ac_status=$? |
| 8691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8692 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8694 | (eval $ac_try) 2>&5 |
| 8695 | ac_status=$? |
| 8696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8697 | (exit $ac_status); }; }; then |
| 8698 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8699 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8700 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8701 | echo "$as_me: failed program was:" >&5 |
| 8702 | cat conftest.$ac_ext >&5 |
| 8703 | ( exit $ac_status ) |
| 8704 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 8705 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 8706 | { (exit 1); exit 1; }; } |
| 8707 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8708 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8709 | fi |
| 8710 | fi |
| 8711 | rm -f conftest.val |
| 8712 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8713 | ac_cv_sizeof_long_long=0 |
| 8714 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8715 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8716 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 8717 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
| 8718 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8719 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8720 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8721 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8722 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8723 | fi |
| 8724 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8725 | echo "$as_me:$LINENO: checking for uintptr_t support" >&5 |
| 8726 | echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8727 | have_uintptr_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8728 | cat >conftest.$ac_ext <<_ACEOF |
| 8729 | #line $LINENO "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8730 | #include "confdefs.h" |
| 8731 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8732 | #ifdef F77_DUMMY_MAIN |
| 8733 | # ifdef __cplusplus |
| 8734 | extern "C" |
| 8735 | # endif |
| 8736 | int F77_DUMMY_MAIN() { return 1; } |
| 8737 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8738 | int |
| 8739 | main () |
| 8740 | { |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8741 | uintptr_t x; x = (uintptr_t)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8742 | ; |
| 8743 | return 0; |
| 8744 | } |
| 8745 | _ACEOF |
| 8746 | rm -f conftest.$ac_objext |
| 8747 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8748 | (eval $ac_compile) 2>&5 |
| 8749 | ac_status=$? |
| 8750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8751 | (exit $ac_status); } && |
| 8752 | { ac_try='test -s conftest.$ac_objext' |
| 8753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8754 | (eval $ac_try) 2>&5 |
| 8755 | ac_status=$? |
| 8756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8757 | (exit $ac_status); }; }; then |
| 8758 | |
| 8759 | |
| 8760 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8761 | #define HAVE_UINTPTR_T 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8762 | _ACEOF |
| 8763 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8764 | have_uintptr_t=yes |
| 8765 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8766 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8767 | echo "$as_me: failed program was:" >&5 |
| 8768 | cat conftest.$ac_ext >&5 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8769 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8770 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8771 | echo "$as_me:$LINENO: result: $have_uintptr_t" >&5 |
| 8772 | echo "${ECHO_T}$have_uintptr_t" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8773 | if test "$have_uintptr_t" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8774 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 8775 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 8776 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 8777 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8778 | else |
| 8779 | cat >conftest.$ac_ext <<_ACEOF |
| 8780 | #line $LINENO "configure" |
| 8781 | #include "confdefs.h" |
| 8782 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8783 | #ifdef F77_DUMMY_MAIN |
| 8784 | # ifdef __cplusplus |
| 8785 | extern "C" |
| 8786 | # endif |
| 8787 | int F77_DUMMY_MAIN() { return 1; } |
| 8788 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8789 | int |
| 8790 | main () |
| 8791 | { |
| 8792 | if ((uintptr_t *) 0) |
| 8793 | return 0; |
| 8794 | if (sizeof (uintptr_t)) |
| 8795 | return 0; |
| 8796 | ; |
| 8797 | return 0; |
| 8798 | } |
| 8799 | _ACEOF |
| 8800 | rm -f conftest.$ac_objext |
| 8801 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8802 | (eval $ac_compile) 2>&5 |
| 8803 | ac_status=$? |
| 8804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8805 | (exit $ac_status); } && |
| 8806 | { ac_try='test -s conftest.$ac_objext' |
| 8807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8808 | (eval $ac_try) 2>&5 |
| 8809 | ac_status=$? |
| 8810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8811 | (exit $ac_status); }; }; then |
| 8812 | ac_cv_type_uintptr_t=yes |
| 8813 | else |
| 8814 | echo "$as_me: failed program was:" >&5 |
| 8815 | cat conftest.$ac_ext >&5 |
| 8816 | ac_cv_type_uintptr_t=no |
| 8817 | fi |
| 8818 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8819 | fi |
| 8820 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 8821 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 8822 | |
| 8823 | echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 8824 | echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6 |
| 8825 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| 8826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8827 | else |
| 8828 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 8829 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8830 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8831 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8832 | # This bug is HP SR number 8606223364. |
| 8833 | if test "$cross_compiling" = yes; then |
| 8834 | # Depending upon the size, compute the lo and hi bounds. |
| 8835 | cat >conftest.$ac_ext <<_ACEOF |
| 8836 | #line $LINENO "configure" |
| 8837 | #include "confdefs.h" |
| 8838 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8839 | #ifdef F77_DUMMY_MAIN |
| 8840 | # ifdef __cplusplus |
| 8841 | extern "C" |
| 8842 | # endif |
| 8843 | int F77_DUMMY_MAIN() { return 1; } |
| 8844 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8845 | int |
| 8846 | main () |
| 8847 | { |
| 8848 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)]; |
| 8849 | test_array [0] = 0 |
| 8850 | |
| 8851 | ; |
| 8852 | return 0; |
| 8853 | } |
| 8854 | _ACEOF |
| 8855 | rm -f conftest.$ac_objext |
| 8856 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8857 | (eval $ac_compile) 2>&5 |
| 8858 | ac_status=$? |
| 8859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8860 | (exit $ac_status); } && |
| 8861 | { ac_try='test -s conftest.$ac_objext' |
| 8862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8863 | (eval $ac_try) 2>&5 |
| 8864 | ac_status=$? |
| 8865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8866 | (exit $ac_status); }; }; then |
| 8867 | ac_lo=0 ac_mid=0 |
| 8868 | while :; do |
| 8869 | cat >conftest.$ac_ext <<_ACEOF |
| 8870 | #line $LINENO "configure" |
| 8871 | #include "confdefs.h" |
| 8872 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8873 | #ifdef F77_DUMMY_MAIN |
| 8874 | # ifdef __cplusplus |
| 8875 | extern "C" |
| 8876 | # endif |
| 8877 | int F77_DUMMY_MAIN() { return 1; } |
| 8878 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8879 | int |
| 8880 | main () |
| 8881 | { |
| 8882 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 8883 | test_array [0] = 0 |
| 8884 | |
| 8885 | ; |
| 8886 | return 0; |
| 8887 | } |
| 8888 | _ACEOF |
| 8889 | rm -f conftest.$ac_objext |
| 8890 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8891 | (eval $ac_compile) 2>&5 |
| 8892 | ac_status=$? |
| 8893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8894 | (exit $ac_status); } && |
| 8895 | { ac_try='test -s conftest.$ac_objext' |
| 8896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8897 | (eval $ac_try) 2>&5 |
| 8898 | ac_status=$? |
| 8899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8900 | (exit $ac_status); }; }; then |
| 8901 | ac_hi=$ac_mid; break |
| 8902 | else |
| 8903 | echo "$as_me: failed program was:" >&5 |
| 8904 | cat conftest.$ac_ext >&5 |
| 8905 | ac_lo=`expr $ac_mid + 1` |
| 8906 | if test $ac_lo -le $ac_mid; then |
| 8907 | ac_lo= ac_hi= |
| 8908 | break |
| 8909 | fi |
| 8910 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8911 | fi |
| 8912 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8913 | done |
| 8914 | else |
| 8915 | echo "$as_me: failed program was:" >&5 |
| 8916 | cat conftest.$ac_ext >&5 |
| 8917 | cat >conftest.$ac_ext <<_ACEOF |
| 8918 | #line $LINENO "configure" |
| 8919 | #include "confdefs.h" |
| 8920 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8921 | #ifdef F77_DUMMY_MAIN |
| 8922 | # ifdef __cplusplus |
| 8923 | extern "C" |
| 8924 | # endif |
| 8925 | int F77_DUMMY_MAIN() { return 1; } |
| 8926 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8927 | int |
| 8928 | main () |
| 8929 | { |
| 8930 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)]; |
| 8931 | test_array [0] = 0 |
| 8932 | |
| 8933 | ; |
| 8934 | return 0; |
| 8935 | } |
| 8936 | _ACEOF |
| 8937 | rm -f conftest.$ac_objext |
| 8938 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8939 | (eval $ac_compile) 2>&5 |
| 8940 | ac_status=$? |
| 8941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8942 | (exit $ac_status); } && |
| 8943 | { ac_try='test -s conftest.$ac_objext' |
| 8944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8945 | (eval $ac_try) 2>&5 |
| 8946 | ac_status=$? |
| 8947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8948 | (exit $ac_status); }; }; then |
| 8949 | ac_hi=-1 ac_mid=-1 |
| 8950 | while :; do |
| 8951 | cat >conftest.$ac_ext <<_ACEOF |
| 8952 | #line $LINENO "configure" |
| 8953 | #include "confdefs.h" |
| 8954 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 8955 | #ifdef F77_DUMMY_MAIN |
| 8956 | # ifdef __cplusplus |
| 8957 | extern "C" |
| 8958 | # endif |
| 8959 | int F77_DUMMY_MAIN() { return 1; } |
| 8960 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8961 | int |
| 8962 | main () |
| 8963 | { |
| 8964 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)]; |
| 8965 | test_array [0] = 0 |
| 8966 | |
| 8967 | ; |
| 8968 | return 0; |
| 8969 | } |
| 8970 | _ACEOF |
| 8971 | rm -f conftest.$ac_objext |
| 8972 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8973 | (eval $ac_compile) 2>&5 |
| 8974 | ac_status=$? |
| 8975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8976 | (exit $ac_status); } && |
| 8977 | { ac_try='test -s conftest.$ac_objext' |
| 8978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8979 | (eval $ac_try) 2>&5 |
| 8980 | ac_status=$? |
| 8981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8982 | (exit $ac_status); }; }; then |
| 8983 | ac_lo=$ac_mid; break |
| 8984 | else |
| 8985 | echo "$as_me: failed program was:" >&5 |
| 8986 | cat conftest.$ac_ext >&5 |
| 8987 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8988 | if test $ac_mid -le $ac_hi; then |
| 8989 | ac_lo= ac_hi= |
| 8990 | break |
| 8991 | fi |
| 8992 | ac_mid=`expr 2 '*' $ac_mid` |
| 8993 | fi |
| 8994 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8995 | done |
| 8996 | else |
| 8997 | echo "$as_me: failed program was:" >&5 |
| 8998 | cat conftest.$ac_ext >&5 |
| 8999 | ac_lo= ac_hi= |
| 9000 | fi |
| 9001 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9002 | fi |
| 9003 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9004 | # Binary search between lo and hi bounds. |
| 9005 | while test "x$ac_lo" != "x$ac_hi"; do |
| 9006 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 9007 | cat >conftest.$ac_ext <<_ACEOF |
| 9008 | #line $LINENO "configure" |
| 9009 | #include "confdefs.h" |
| 9010 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9011 | #ifdef F77_DUMMY_MAIN |
| 9012 | # ifdef __cplusplus |
| 9013 | extern "C" |
| 9014 | # endif |
| 9015 | int F77_DUMMY_MAIN() { return 1; } |
| 9016 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9017 | int |
| 9018 | main () |
| 9019 | { |
| 9020 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 9021 | test_array [0] = 0 |
| 9022 | |
| 9023 | ; |
| 9024 | return 0; |
| 9025 | } |
| 9026 | _ACEOF |
| 9027 | rm -f conftest.$ac_objext |
| 9028 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9029 | (eval $ac_compile) 2>&5 |
| 9030 | ac_status=$? |
| 9031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9032 | (exit $ac_status); } && |
| 9033 | { ac_try='test -s conftest.$ac_objext' |
| 9034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9035 | (eval $ac_try) 2>&5 |
| 9036 | ac_status=$? |
| 9037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9038 | (exit $ac_status); }; }; then |
| 9039 | ac_hi=$ac_mid |
| 9040 | else |
| 9041 | echo "$as_me: failed program was:" >&5 |
| 9042 | cat conftest.$ac_ext >&5 |
| 9043 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 9044 | fi |
| 9045 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9046 | done |
| 9047 | case $ac_lo in |
| 9048 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
| 9049 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5 |
| 9050 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;} |
| 9051 | { (exit 1); exit 1; }; } ;; |
| 9052 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9053 | else |
| 9054 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9055 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 9056 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 9057 | { (exit 1); exit 1; }; } |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9058 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9059 | cat >conftest.$ac_ext <<_ACEOF |
| 9060 | #line $LINENO "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9061 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9062 | $ac_includes_default |
| 9063 | long longval () { return (long) (sizeof (uintptr_t)); } |
| 9064 | unsigned long ulongval () { return (long) (sizeof (uintptr_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9065 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9066 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9067 | #ifdef F77_DUMMY_MAIN |
| 9068 | # ifdef __cplusplus |
| 9069 | extern "C" |
| 9070 | # endif |
| 9071 | int F77_DUMMY_MAIN() { return 1; } |
| 9072 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9073 | int |
| 9074 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9075 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9076 | |
| 9077 | FILE *f = fopen ("conftest.val", "w"); |
| 9078 | if (! f) |
| 9079 | exit (1); |
| 9080 | if (((long) (sizeof (uintptr_t))) < 0) |
| 9081 | { |
| 9082 | long i = longval (); |
| 9083 | if (i != ((long) (sizeof (uintptr_t)))) |
| 9084 | exit (1); |
| 9085 | fprintf (f, "%ld\n", i); |
| 9086 | } |
| 9087 | else |
| 9088 | { |
| 9089 | unsigned long i = ulongval (); |
| 9090 | if (i != ((long) (sizeof (uintptr_t)))) |
| 9091 | exit (1); |
| 9092 | fprintf (f, "%lu\n", i); |
| 9093 | } |
| 9094 | exit (ferror (f) || fclose (f) != 0); |
| 9095 | |
| 9096 | ; |
| 9097 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9098 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9099 | _ACEOF |
| 9100 | rm -f conftest$ac_exeext |
| 9101 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9102 | (eval $ac_link) 2>&5 |
| 9103 | ac_status=$? |
| 9104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9105 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9107 | (eval $ac_try) 2>&5 |
| 9108 | ac_status=$? |
| 9109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9110 | (exit $ac_status); }; }; then |
| 9111 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9112 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9113 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9114 | echo "$as_me: failed program was:" >&5 |
| 9115 | cat conftest.$ac_ext >&5 |
| 9116 | ( exit $ac_status ) |
| 9117 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5 |
| 9118 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;} |
| 9119 | { (exit 1); exit 1; }; } |
| 9120 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9121 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9122 | fi |
| 9123 | fi |
| 9124 | rm -f conftest.val |
| 9125 | else |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9126 | ac_cv_sizeof_uintptr_t=0 |
| 9127 | fi |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9128 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9129 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 9130 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6 |
| 9131 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9132 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9133 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9134 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9135 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 9136 | fi |
| 9137 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9138 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9139 | echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 9140 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 |
| 9141 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 9142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9143 | else |
| 9144 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9145 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9146 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9147 | cat >conftest.$ac_ext <<_ACEOF |
| 9148 | #line $LINENO "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9149 | #include "confdefs.h" |
| 9150 | #include <stdio.h> |
| 9151 | #include <sys/types.h> |
| 9152 | main() |
| 9153 | { |
| 9154 | FILE *f=fopen("conftestval", "w"); |
| 9155 | if (!f) exit(1); |
| 9156 | fprintf(f, "%d\n", sizeof(off_t)); |
| 9157 | exit(0); |
| 9158 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9159 | _ACEOF |
| 9160 | rm -f conftest$ac_exeext |
| 9161 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9162 | (eval $ac_link) 2>&5 |
| 9163 | ac_status=$? |
| 9164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9165 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9167 | (eval $ac_try) 2>&5 |
| 9168 | ac_status=$? |
| 9169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9170 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9171 | ac_cv_sizeof_off_t=`cat conftestval` |
| 9172 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9173 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9174 | echo "$as_me: failed program was:" >&5 |
| 9175 | cat conftest.$ac_ext >&5 |
| 9176 | ( exit $ac_status ) |
| 9177 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9178 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9179 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9180 | fi |
| 9181 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9182 | fi |
| 9183 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9184 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 9185 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 |
| 9186 | |
| 9187 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9188 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9189 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9190 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9191 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9192 | echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 9193 | echo $ECHO_N "checking whether to enable large file support... $ECHO_C" >&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 9194 | if test "$have_long_long" = yes -a \ |
| 9195 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 9196 | "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9197 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9198 | cat >>confdefs.h <<\_ACEOF |
| 9199 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 9200 | _ACEOF |
| 9201 | |
| 9202 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9203 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9204 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9205 | echo "$as_me:$LINENO: result: no" >&5 |
| 9206 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 9207 | fi |
| 9208 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9209 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9210 | echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 9211 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6 |
| 9212 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 9213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9214 | else |
| 9215 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9216 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9217 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9218 | cat >conftest.$ac_ext <<_ACEOF |
| 9219 | #line $LINENO "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9220 | #include "confdefs.h" |
| 9221 | #include <stdio.h> |
| 9222 | #include <time.h> |
| 9223 | main() |
| 9224 | { |
| 9225 | FILE *f=fopen("conftestval", "w"); |
| 9226 | if (!f) exit(1); |
| 9227 | fprintf(f, "%d\n", sizeof(time_t)); |
| 9228 | exit(0); |
| 9229 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9230 | _ACEOF |
| 9231 | rm -f conftest$ac_exeext |
| 9232 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9233 | (eval $ac_link) 2>&5 |
| 9234 | ac_status=$? |
| 9235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9236 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9238 | (eval $ac_try) 2>&5 |
| 9239 | ac_status=$? |
| 9240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9241 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9242 | ac_cv_sizeof_time_t=`cat conftestval` |
| 9243 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9244 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9245 | echo "$as_me: failed program was:" >&5 |
| 9246 | cat conftest.$ac_ext >&5 |
| 9247 | ( exit $ac_status ) |
| 9248 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9249 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9250 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9251 | fi |
| 9252 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9253 | fi |
| 9254 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9255 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 9256 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6 |
| 9257 | |
| 9258 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9259 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9260 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9261 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9262 | |
| 9263 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9264 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9265 | ac_save_cc="$CC" |
| 9266 | if test "$ac_cv_kpthread" = "yes" |
| 9267 | then CC="$CC -Kpthread" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 9268 | elif test "$ac_cv_kthread" = "yes" |
| 9269 | then CC="$CC -Kthread" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 9270 | elif test "$ac_cv_pthread" = "yes" |
| 9271 | then CC="$CC -pthread" |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9272 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9273 | echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 9274 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9275 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9276 | cat >conftest.$ac_ext <<_ACEOF |
| 9277 | #line $LINENO "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9278 | #include "confdefs.h" |
| 9279 | #include <pthread.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9280 | #ifdef F77_DUMMY_MAIN |
| 9281 | # ifdef __cplusplus |
| 9282 | extern "C" |
| 9283 | # endif |
| 9284 | int F77_DUMMY_MAIN() { return 1; } |
| 9285 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9286 | int |
| 9287 | main () |
| 9288 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 9289 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9290 | ; |
| 9291 | return 0; |
| 9292 | } |
| 9293 | _ACEOF |
| 9294 | rm -f conftest.$ac_objext |
| 9295 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9296 | (eval $ac_compile) 2>&5 |
| 9297 | ac_status=$? |
| 9298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9299 | (exit $ac_status); } && |
| 9300 | { ac_try='test -s conftest.$ac_objext' |
| 9301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9302 | (eval $ac_try) 2>&5 |
| 9303 | ac_status=$? |
| 9304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9305 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9306 | have_pthread_t=yes |
| 9307 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9308 | echo "$as_me: failed program was:" >&5 |
| 9309 | cat conftest.$ac_ext >&5 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9310 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9311 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9312 | echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 9313 | echo "${ECHO_T}$have_pthread_t" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9314 | if test "$have_pthread_t" = yes ; then |
| 9315 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9316 | echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 9317 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6 |
| 9318 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 9319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9320 | else |
| 9321 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9322 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9323 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9324 | cat >conftest.$ac_ext <<_ACEOF |
| 9325 | #line $LINENO "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9326 | #include "confdefs.h" |
| 9327 | #include <stdio.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 9328 | #include <pthread.h> |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9329 | main() |
| 9330 | { |
| 9331 | FILE *f=fopen("conftestval", "w"); |
| 9332 | if (!f) exit(1); |
| 9333 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 9334 | exit(0); |
| 9335 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9336 | _ACEOF |
| 9337 | rm -f conftest$ac_exeext |
| 9338 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9339 | (eval $ac_link) 2>&5 |
| 9340 | ac_status=$? |
| 9341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9342 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9344 | (eval $ac_try) 2>&5 |
| 9345 | ac_status=$? |
| 9346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9347 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9348 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 9349 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9350 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9351 | echo "$as_me: failed program was:" >&5 |
| 9352 | cat conftest.$ac_ext >&5 |
| 9353 | ( exit $ac_status ) |
| 9354 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9355 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9356 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9357 | fi |
| 9358 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9359 | fi |
| 9360 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9361 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 9362 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6 |
| 9363 | |
| 9364 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9365 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9366 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9367 | |
| 9368 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9369 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9370 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9371 | echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 9372 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9373 | # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given. |
| 9374 | if test "${enable_toolbox_glue+set}" = set; then |
| 9375 | enableval="$enable_toolbox_glue" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9376 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9377 | fi; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9378 | |
| 9379 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9380 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9381 | case $ac_sys_system/$ac_sys_release in |
| 9382 | Darwin/*) |
| 9383 | enable_toolbox_glue="yes";; |
| 9384 | *) |
| 9385 | enable_toolbox_glue="no";; |
| 9386 | esac |
| 9387 | fi |
| 9388 | case "$enable_toolbox_glue" in |
| 9389 | yes) |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 9390 | extra_frameworks="-framework CoreServices -framework Foundation" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9391 | extra_machdep_objs="Python/mactoolboxglue.o" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9392 | extra_undefs="-u __dummy -u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9393 | |
| 9394 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9395 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9396 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9397 | |
| 9398 | ;; |
| 9399 | *) |
| 9400 | extra_frameworks="" |
| 9401 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9402 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9403 | ;; |
| 9404 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9405 | echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 9406 | echo "${ECHO_T}$enable_toolbox_glue" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9407 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9408 | |
| 9409 | case $ac_sys_system/$ac_sys_release in |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9410 | Darwin/1.3*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9411 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9412 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9413 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' |
| 9414 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 9415 | Darwin/*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9416 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9417 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9418 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' |
| 9419 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9420 | esac |
| 9421 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9422 | echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 9423 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9424 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9425 | then |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 9426 | BASECFLAGS="$BASECFLAGS -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9427 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9428 | # in the build location. |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9429 | LDFLAGS="$LDFLAGS -Wl,-F." |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9430 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9431 | cat >>confdefs.h <<\_ACEOF |
| 9432 | #define WITH_NEXT_FRAMEWORK 1 |
| 9433 | _ACEOF |
| 9434 | |
| 9435 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9436 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9437 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9438 | echo "$as_me:$LINENO: result: no" >&5 |
| 9439 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9440 | fi |
| 9441 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9442 | echo "$as_me:$LINENO: checking for dyld" >&5 |
| 9443 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9444 | case $ac_sys_system/$ac_sys_release in |
| 9445 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9446 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9447 | cat >>confdefs.h <<\_ACEOF |
| 9448 | #define WITH_DYLD 1 |
| 9449 | _ACEOF |
| 9450 | |
| 9451 | echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 9452 | echo "${ECHO_T}always on for Darwin" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9453 | ;; |
| 9454 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9455 | echo "$as_me:$LINENO: result: no" >&5 |
| 9456 | echo "${ECHO_T}no" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9457 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9458 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9459 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9460 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9461 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9462 | |
| 9463 | |
| 9464 | |
| 9465 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9466 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 9467 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9468 | echo "$as_me:$LINENO: checking SO" >&5 |
| 9469 | echo $ECHO_N "checking SO... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9470 | if test -z "$SO" |
| 9471 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9472 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 9473 | hp*|HP*) SO=.sl;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 9474 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 9475 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9476 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9477 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9478 | echo "$as_me:$LINENO: result: $SO" >&5 |
| 9479 | echo "${ECHO_T}$SO" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9480 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 5b718fc | 2001-09-10 15:34:42 +0000 | [diff] [blame] | 9481 | # -- "ld" on SunOS 4.x.x, "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9482 | # (Shared libraries in this instance are shared modules to be loaded into |
| 9483 | # Python, as opposed to building Python itself as a shared library.) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9484 | echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 9485 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9486 | if test -z "$LDSHARED" |
| 9487 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9488 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9489 | AIX*) |
| 9490 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 9491 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9492 | ;; |
| 9493 | BeOS*) |
| 9494 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 9495 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9496 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9497 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 9498 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9499 | SunOS/4*) LDSHARED="ld";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9500 | SunOS/5*) |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 9501 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 9502 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 9503 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 9504 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9505 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 9506 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 9507 | DYNIX/ptx*) LDSHARED="ld -G";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9508 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9509 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 9510 | if test "$enable_framework" ; then |
| 9511 | # Link against the framework. All externals should be defined. |
| 9512 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 9513 | else |
| 9514 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9515 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9516 | fi ;; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9517 | Darwin/*) |
| 9518 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 9519 | if test "$enable_framework" ; then |
| 9520 | # Link against the framework. All externals should be defined. |
| 9521 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 9522 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 9523 | # No framework, use the Python app as bundle-loader |
| 9524 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
Jack Jansen | c28fc37 | 2003-02-25 13:14:43 +0000 | [diff] [blame] | 9525 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9526 | fi ;; |
Martin v. Löwis | 3cba5c0 | 2002-09-16 17:50:59 +0000 | [diff] [blame] | 9527 | Linux*|GNU*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 9528 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 9529 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 9530 | OpenBSD*|FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 9531 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9532 | then |
| 9533 | LDSHARED="cc -shared ${LDFLAGS}" |
| 9534 | else |
| 9535 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 9536 | fi;; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 9537 | NetBSD*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9538 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9539 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 9540 | then LDSHARED='$(CC) -shared' |
| 9541 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9542 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 9543 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9544 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 9545 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9546 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9547 | *) LDSHARED="ld";; |
| 9548 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9549 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9550 | echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 9551 | echo "${ECHO_T}$LDSHARED" >&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9552 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9553 | # CCSHARED are the C *flags* used to create objects to go into a shared |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9554 | # library (module) -- this is only needed for a few systems |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9555 | echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 9556 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9557 | if test -z "$CCSHARED" |
| 9558 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9559 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 9560 | SunOS*) if test "$GCC" = yes; |
| 9561 | then CCSHARED="-fPIC"; |
| 9562 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9563 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 9564 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9565 | else CCSHARED="+z"; |
| 9566 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9567 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9568 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 9569 | FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9570 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9571 | if test "$GCC" = "yes" |
| 9572 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9573 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9574 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9575 | SCO_SV*) |
| 9576 | if test "$GCC" = "yes" |
| 9577 | then CCSHARED="-fPIC" |
| 9578 | else CCSHARED="-Kpic -belf" |
| 9579 | fi;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9580 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9581 | IRIX*/6*) case $CC in |
| 9582 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 9583 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9584 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9585 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9586 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9587 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9588 | echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 9589 | echo "${ECHO_T}$CCSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9590 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9591 | # the python executable -- this is only needed for a few systems |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9592 | echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 9593 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9594 | if test -z "$LINKFORSHARED" |
| 9595 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9596 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9597 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 9598 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 9599 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 9600 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9601 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9602 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9603 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9604 | Darwin/*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9605 | # -u __dummy makes the linker aware of the objc runtime |
| 9606 | # in System.framework; otherwise, __objcInit (referenced in |
| 9607 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 9608 | # loading of any modules which reference it in System.framework. |
| 9609 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, which is |
| 9610 | # not used by the core itself but which needs to be in the core so |
| 9611 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 97e3f00 | 2003-02-23 22:59:01 +0000 | [diff] [blame] | 9612 | # -prebind is no longer used, because it actually seems to give a |
| 9613 | # slowdown in stead of a speedup, maybe due to the large number of |
| 9614 | # dynamic loads Python does. |
| 9615 | LINKFORSHARED="$extra_undefs -framework System" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9616 | if test "$enable_framework" |
| 9617 | then |
| 9618 | LINKFORSHARED="$LINKFORSHARED -framework Python" |
| 9619 | fi |
| 9620 | LINKFORSHARED="$LINKFORSHARED $extra_frameworks";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9621 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9622 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 9623 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9624 | FreeBSD*|NetBSD*|OpenBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 9625 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 9626 | then |
| 9627 | LINKFORSHARED="-Wl,--export-dynamic" |
| 9628 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9629 | SunOS/5*) case $CC in |
| 9630 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 9631 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 9632 | then |
| 9633 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9634 | fi;; |
| 9635 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9636 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9637 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9638 | echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 9639 | echo "${ECHO_T}$LINKFORSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9640 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9641 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9642 | echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 9643 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9644 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 9645 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 9646 | case $ac_sys_system in |
| 9647 | CYGWIN*) |
| 9648 | # Cygwin needs CCSHARED when building extension DLLs |
| 9649 | # but not when building the interpreter DLL. |
| 9650 | CFLAGSFORSHARED='';; |
| 9651 | *) |
| 9652 | CFLAGSFORSHARED='$(CCSHARED)' |
| 9653 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9654 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9655 | echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 9656 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9657 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9658 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 9659 | # library (with --enable-shared). |
| 9660 | # For platforms on which shared libraries are not allowed to have unresolved |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 9661 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 9662 | # if it is not required, since it creates a dependency of the shared library |
| 9663 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 9664 | # don't need to link LIBS explicitly. The default should be only changed |
| 9665 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9666 | |
| 9667 | echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 9668 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6 |
| 9669 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9670 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 9671 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9672 | esac |
| 9673 | echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 9674 | echo "${ECHO_T}$SHLIBS" >&6 |
| 9675 | |
| 9676 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9677 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9678 | |
| 9679 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9680 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 9681 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9683 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9684 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9685 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9686 | cat >conftest.$ac_ext <<_ACEOF |
| 9687 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9688 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9689 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9690 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9691 | #ifdef __cplusplus |
| 9692 | extern "C" |
| 9693 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9694 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9695 | builtin and then its argument prototype would still apply. */ |
| 9696 | char dlopen (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9697 | #ifdef F77_DUMMY_MAIN |
| 9698 | # ifdef __cplusplus |
| 9699 | extern "C" |
| 9700 | # endif |
| 9701 | int F77_DUMMY_MAIN() { return 1; } |
| 9702 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9703 | int |
| 9704 | main () |
| 9705 | { |
| 9706 | dlopen (); |
| 9707 | ; |
| 9708 | return 0; |
| 9709 | } |
| 9710 | _ACEOF |
| 9711 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9712 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9713 | (eval $ac_link) 2>&5 |
| 9714 | ac_status=$? |
| 9715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9716 | (exit $ac_status); } && |
| 9717 | { ac_try='test -s conftest$ac_exeext' |
| 9718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9719 | (eval $ac_try) 2>&5 |
| 9720 | ac_status=$? |
| 9721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9722 | (exit $ac_status); }; }; then |
| 9723 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9724 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9725 | echo "$as_me: failed program was:" >&5 |
| 9726 | cat conftest.$ac_ext >&5 |
| 9727 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9728 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9729 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9730 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9731 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9732 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9733 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 9734 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 9735 | cat >>confdefs.h <<_ACEOF |
| 9736 | #define HAVE_LIBDL 1 |
| 9737 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9738 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9739 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9740 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9741 | fi |
| 9742 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9743 | |
| 9744 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9745 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 9746 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9748 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9749 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9750 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9751 | cat >conftest.$ac_ext <<_ACEOF |
| 9752 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9753 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9754 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9755 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9756 | #ifdef __cplusplus |
| 9757 | extern "C" |
| 9758 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9759 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9760 | builtin and then its argument prototype would still apply. */ |
| 9761 | char shl_load (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9762 | #ifdef F77_DUMMY_MAIN |
| 9763 | # ifdef __cplusplus |
| 9764 | extern "C" |
| 9765 | # endif |
| 9766 | int F77_DUMMY_MAIN() { return 1; } |
| 9767 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9768 | int |
| 9769 | main () |
| 9770 | { |
| 9771 | shl_load (); |
| 9772 | ; |
| 9773 | return 0; |
| 9774 | } |
| 9775 | _ACEOF |
| 9776 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9777 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9778 | (eval $ac_link) 2>&5 |
| 9779 | ac_status=$? |
| 9780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9781 | (exit $ac_status); } && |
| 9782 | { ac_try='test -s conftest$ac_exeext' |
| 9783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9784 | (eval $ac_try) 2>&5 |
| 9785 | ac_status=$? |
| 9786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9787 | (exit $ac_status); }; }; then |
| 9788 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9789 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9790 | echo "$as_me: failed program was:" >&5 |
| 9791 | cat conftest.$ac_ext >&5 |
| 9792 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9793 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9794 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9795 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9796 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9797 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9798 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 9799 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 9800 | cat >>confdefs.h <<_ACEOF |
| 9801 | #define HAVE_LIBDLD 1 |
| 9802 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9803 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9804 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9805 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9806 | fi |
| 9807 | # Dynamic linking for HP-UX |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9808 | echo "$as_me:$LINENO: checking for library containing sem_init" >&5 |
| 9809 | echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6 |
| 9810 | if test "${ac_cv_search_sem_init+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9812 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9813 | ac_func_search_save_LIBS=$LIBS |
| 9814 | ac_cv_search_sem_init=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9815 | cat >conftest.$ac_ext <<_ACEOF |
| 9816 | #line $LINENO "configure" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9817 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9818 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9819 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9820 | #ifdef __cplusplus |
| 9821 | extern "C" |
| 9822 | #endif |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9823 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9824 | builtin and then its argument prototype would still apply. */ |
| 9825 | char sem_init (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9826 | #ifdef F77_DUMMY_MAIN |
| 9827 | # ifdef __cplusplus |
| 9828 | extern "C" |
| 9829 | # endif |
| 9830 | int F77_DUMMY_MAIN() { return 1; } |
| 9831 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9832 | int |
| 9833 | main () |
| 9834 | { |
| 9835 | sem_init (); |
| 9836 | ; |
| 9837 | return 0; |
| 9838 | } |
| 9839 | _ACEOF |
| 9840 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9841 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9842 | (eval $ac_link) 2>&5 |
| 9843 | ac_status=$? |
| 9844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9845 | (exit $ac_status); } && |
| 9846 | { ac_try='test -s conftest$ac_exeext' |
| 9847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9848 | (eval $ac_try) 2>&5 |
| 9849 | ac_status=$? |
| 9850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9851 | (exit $ac_status); }; }; then |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9852 | ac_cv_search_sem_init="none required" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9853 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9854 | echo "$as_me: failed program was:" >&5 |
| 9855 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9856 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9857 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9858 | if test "$ac_cv_search_sem_init" = no; then |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 9859 | for ac_lib in pthread rt posix4; do |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9860 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9861 | cat >conftest.$ac_ext <<_ACEOF |
| 9862 | #line $LINENO "configure" |
| 9863 | #include "confdefs.h" |
| 9864 | |
| 9865 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9866 | #ifdef __cplusplus |
| 9867 | extern "C" |
| 9868 | #endif |
| 9869 | /* We use char because int might match the return type of a gcc2 |
| 9870 | builtin and then its argument prototype would still apply. */ |
| 9871 | char sem_init (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9872 | #ifdef F77_DUMMY_MAIN |
| 9873 | # ifdef __cplusplus |
| 9874 | extern "C" |
| 9875 | # endif |
| 9876 | int F77_DUMMY_MAIN() { return 1; } |
| 9877 | #endif |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9878 | int |
| 9879 | main () |
| 9880 | { |
| 9881 | sem_init (); |
| 9882 | ; |
| 9883 | return 0; |
| 9884 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9885 | _ACEOF |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9886 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9887 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9888 | (eval $ac_link) 2>&5 |
| 9889 | ac_status=$? |
| 9890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9891 | (exit $ac_status); } && |
| 9892 | { ac_try='test -s conftest$ac_exeext' |
| 9893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9894 | (eval $ac_try) 2>&5 |
| 9895 | ac_status=$? |
| 9896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9897 | (exit $ac_status); }; }; then |
| 9898 | ac_cv_search_sem_init="-l$ac_lib" |
| 9899 | break |
| 9900 | else |
| 9901 | echo "$as_me: failed program was:" >&5 |
| 9902 | cat conftest.$ac_ext >&5 |
| 9903 | fi |
| 9904 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9905 | done |
| 9906 | fi |
| 9907 | LIBS=$ac_func_search_save_LIBS |
| 9908 | fi |
| 9909 | echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 9910 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6 |
| 9911 | if test "$ac_cv_search_sem_init" != no; then |
| 9912 | test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9913 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9914 | fi |
Martin v. Löwis | d3545ec | 2003-05-03 11:25:43 +0000 | [diff] [blame] | 9915 | # 'Real Time' functions on Solaris |
| 9916 | # posix4 on Solaris 2.6 |
| 9917 | # pthread (first!) on Linux |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9918 | |
| 9919 | # checks for system dependent C++ extensions support |
| 9920 | case "$ac_sys_system" in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9921 | AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 9922 | echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6 |
| 9923 | cat >conftest.$ac_ext <<_ACEOF |
| 9924 | #line $LINENO "configure" |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9925 | #include "confdefs.h" |
| 9926 | #include "/usr/lpp/xlC/include/load.h" |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9927 | #ifdef F77_DUMMY_MAIN |
| 9928 | # ifdef __cplusplus |
| 9929 | extern "C" |
| 9930 | # endif |
| 9931 | int F77_DUMMY_MAIN() { return 1; } |
| 9932 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9933 | int |
| 9934 | main () |
| 9935 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9936 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9937 | ; |
| 9938 | return 0; |
| 9939 | } |
| 9940 | _ACEOF |
| 9941 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9942 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9943 | (eval $ac_link) 2>&5 |
| 9944 | ac_status=$? |
| 9945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9946 | (exit $ac_status); } && |
| 9947 | { ac_try='test -s conftest$ac_exeext' |
| 9948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9949 | (eval $ac_try) 2>&5 |
| 9950 | ac_status=$? |
| 9951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9952 | (exit $ac_status); }; }; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9953 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9954 | cat >>confdefs.h <<\_ACEOF |
| 9955 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 9956 | _ACEOF |
| 9957 | |
| 9958 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9959 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9960 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9961 | echo "$as_me: failed program was:" >&5 |
| 9962 | cat conftest.$ac_ext >&5 |
| 9963 | echo "$as_me:$LINENO: result: no" >&5 |
| 9964 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9965 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9966 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9967 | *) ;; |
| 9968 | esac |
| 9969 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9970 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Martin v. Löwis | e117258 | 2002-11-13 08:51:19 +0000 | [diff] [blame] | 9971 | # However on SGI IRIX 4, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9972 | # BeOS' sockets are stashed in libnet. |
| 9973 | case "$ac_sys_system" in |
| 9974 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9975 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9976 | echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 9977 | echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6 |
| 9978 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 9979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9980 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9981 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9982 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9983 | cat >conftest.$ac_ext <<_ACEOF |
| 9984 | #line $LINENO "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9985 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9986 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9987 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9988 | #ifdef __cplusplus |
| 9989 | extern "C" |
| 9990 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9991 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9992 | builtin and then its argument prototype would still apply. */ |
| 9993 | char t_open (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 9994 | #ifdef F77_DUMMY_MAIN |
| 9995 | # ifdef __cplusplus |
| 9996 | extern "C" |
| 9997 | # endif |
| 9998 | int F77_DUMMY_MAIN() { return 1; } |
| 9999 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10000 | int |
| 10001 | main () |
| 10002 | { |
| 10003 | t_open (); |
| 10004 | ; |
| 10005 | return 0; |
| 10006 | } |
| 10007 | _ACEOF |
| 10008 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10009 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10010 | (eval $ac_link) 2>&5 |
| 10011 | ac_status=$? |
| 10012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10013 | (exit $ac_status); } && |
| 10014 | { ac_try='test -s conftest$ac_exeext' |
| 10015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10016 | (eval $ac_try) 2>&5 |
| 10017 | ac_status=$? |
| 10018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10019 | (exit $ac_status); }; }; then |
| 10020 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10021 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10022 | echo "$as_me: failed program was:" >&5 |
| 10023 | cat conftest.$ac_ext >&5 |
| 10024 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10025 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10026 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10027 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10028 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10029 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 10030 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6 |
| 10031 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10032 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 10033 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 10034 | # SVR4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10035 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 10036 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 10037 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 10038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10039 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10040 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10041 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10042 | cat >conftest.$ac_ext <<_ACEOF |
| 10043 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10044 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10045 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10046 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10047 | #ifdef __cplusplus |
| 10048 | extern "C" |
| 10049 | #endif |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10050 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10051 | builtin and then its argument prototype would still apply. */ |
| 10052 | char socket (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10053 | #ifdef F77_DUMMY_MAIN |
| 10054 | # ifdef __cplusplus |
| 10055 | extern "C" |
| 10056 | # endif |
| 10057 | int F77_DUMMY_MAIN() { return 1; } |
| 10058 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10059 | int |
| 10060 | main () |
| 10061 | { |
| 10062 | socket (); |
| 10063 | ; |
| 10064 | return 0; |
| 10065 | } |
| 10066 | _ACEOF |
| 10067 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10068 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10069 | (eval $ac_link) 2>&5 |
| 10070 | ac_status=$? |
| 10071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10072 | (exit $ac_status); } && |
| 10073 | { ac_try='test -s conftest$ac_exeext' |
| 10074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10075 | (eval $ac_try) 2>&5 |
| 10076 | ac_status=$? |
| 10077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10078 | (exit $ac_status); }; }; then |
| 10079 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10080 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10081 | echo "$as_me: failed program was:" >&5 |
| 10082 | cat conftest.$ac_ext >&5 |
| 10083 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10084 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10085 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10086 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10087 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10088 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 10089 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 10090 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10091 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10092 | fi |
| 10093 | # SVR4 sockets |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 10094 | ;; |
| 10095 | esac |
| 10096 | case "$ac_sys_system" in |
| 10097 | BeOS*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10098 | echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 10099 | echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6 |
| 10100 | if test "${ac_cv_lib_net_socket+set}" = set; then |
| 10101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10102 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10103 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10104 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10105 | cat >conftest.$ac_ext <<_ACEOF |
| 10106 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10107 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10108 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10109 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10110 | #ifdef __cplusplus |
| 10111 | extern "C" |
| 10112 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10113 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10114 | builtin and then its argument prototype would still apply. */ |
| 10115 | char socket (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10116 | #ifdef F77_DUMMY_MAIN |
| 10117 | # ifdef __cplusplus |
| 10118 | extern "C" |
| 10119 | # endif |
| 10120 | int F77_DUMMY_MAIN() { return 1; } |
| 10121 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10122 | int |
| 10123 | main () |
| 10124 | { |
| 10125 | socket (); |
| 10126 | ; |
| 10127 | return 0; |
| 10128 | } |
| 10129 | _ACEOF |
| 10130 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10131 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10132 | (eval $ac_link) 2>&5 |
| 10133 | ac_status=$? |
| 10134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10135 | (exit $ac_status); } && |
| 10136 | { ac_try='test -s conftest$ac_exeext' |
| 10137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10138 | (eval $ac_try) 2>&5 |
| 10139 | ac_status=$? |
| 10140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10141 | (exit $ac_status); }; }; then |
| 10142 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10143 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10144 | echo "$as_me: failed program was:" >&5 |
| 10145 | cat conftest.$ac_ext >&5 |
| 10146 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10147 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10148 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10149 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10150 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10151 | echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 10152 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6 |
| 10153 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10154 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10155 | fi |
| 10156 | # BeOS |
| 10157 | ;; |
| 10158 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 10159 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10160 | echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 10161 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6 |
| 10162 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 10163 | # Check whether --with-libs or --without-libs was given. |
| 10164 | if test "${with_libs+set}" = set; then |
| 10165 | withval="$with_libs" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10166 | |
| 10167 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 10168 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 10169 | LIBS="$withval $LIBS" |
| 10170 | |
| 10171 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10172 | echo "$as_me:$LINENO: result: no" >&5 |
| 10173 | echo "${ECHO_T}no" >&6 |
| 10174 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 10175 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10176 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10177 | |
| 10178 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10179 | echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 10180 | echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6 |
| 10181 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10182 | # Check whether --with-signal-module or --without-signal-module was given. |
| 10183 | if test "${with_signal_module+set}" = set; then |
| 10184 | withval="$with_signal_module" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10185 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10186 | fi; |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10187 | |
| 10188 | if test -z "$with_signal_module" |
| 10189 | then with_signal_module="yes" |
| 10190 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10191 | echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 10192 | echo "${ECHO_T}$with_signal_module" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 10193 | |
| 10194 | if test "${with_signal_module}" = "yes"; then |
| 10195 | USE_SIGNAL_MODULE="" |
| 10196 | SIGNAL_OBJS="" |
| 10197 | else |
| 10198 | USE_SIGNAL_MODULE="#" |
| 10199 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 10200 | fi |
| 10201 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 10202 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 10203 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10204 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 10205 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10206 | echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 10207 | echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6 |
| 10208 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10209 | |
| 10210 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 10211 | if test "${with_dec_threads+set}" = set; then |
| 10212 | withval="$with_dec_threads" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10213 | |
| 10214 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 10215 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10216 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 10217 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10218 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 10219 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10220 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10221 | echo "$as_me:$LINENO: result: no" >&5 |
| 10222 | echo "${ECHO_T}no" >&6 |
| 10223 | fi; |
| 10224 | |
| 10225 | # Templates for things AC_DEFINEd more than once. |
| 10226 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10227 | |
| 10228 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10229 | |
| 10230 | |
| 10231 | |
| 10232 | |
| 10233 | |
| 10234 | echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 10235 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6 |
| 10236 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10237 | # Check whether --with-threads or --without-threads was given. |
| 10238 | if test "${with_threads+set}" = set; then |
| 10239 | withval="$with_threads" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10240 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10241 | fi; |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10242 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10243 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10244 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10245 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10246 | if test "${with_thread+set}" = set; then |
| 10247 | withval="$with_thread" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10248 | with_threads=$with_thread |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10249 | fi; |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10250 | |
| 10251 | if test -z "$with_threads" |
| 10252 | then with_threads="yes" |
| 10253 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10254 | echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 10255 | echo "${ECHO_T}$with_threads" >&6 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10256 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10257 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10258 | if test "$with_threads" = "no" |
| 10259 | then |
| 10260 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10261 | elif test "$ac_cv_pthread_is_default" = yes |
| 10262 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10263 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10264 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10265 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10266 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10267 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10268 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10269 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10270 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10271 | |
| 10272 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10273 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10274 | elif test "$ac_cv_kpthread" = "yes" |
| 10275 | then |
| 10276 | CC="$CC -Kpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10277 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 10278 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10279 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 10280 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10281 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10282 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 5f433f0 | 2003-05-05 05:05:30 +0000 | [diff] [blame] | 10283 | elif test "$ac_cv_kthread" = "yes" |
| 10284 | then |
| 10285 | CC="$CC -Kthread" |
| 10286 | cat >>confdefs.h <<\_ACEOF |
| 10287 | #define WITH_THREAD 1 |
| 10288 | _ACEOF |
| 10289 | |
| 10290 | posix_threads=yes |
| 10291 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 10292 | elif test "$ac_cv_pthread" = "yes" |
| 10293 | then |
| 10294 | CC="$CC -pthread" |
| 10295 | cat >>confdefs.h <<\_ACEOF |
| 10296 | #define WITH_THREAD 1 |
| 10297 | _ACEOF |
| 10298 | |
| 10299 | posix_threads=yes |
| 10300 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10301 | else |
| 10302 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 10303 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 10304 | fi |
| 10305 | if test ! -z "$withval" -a -d "$withval" |
| 10306 | then LDFLAGS="$LDFLAGS -L$withval" |
| 10307 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10308 | |
| 10309 | # According to the POSIX spec, a pthreads implementation must |
| 10310 | # define _POSIX_THREADS in unistd.h. Some apparently don't (which ones?) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10311 | echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 10312 | echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6 |
| 10313 | cat >conftest.$ac_ext <<_ACEOF |
| 10314 | #line $LINENO "configure" |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10315 | #include "confdefs.h" |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10316 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10317 | #include <unistd.h> |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 10318 | #ifdef _POSIX_THREADS |
| 10319 | yes |
| 10320 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10321 | |
| 10322 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10323 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10324 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10325 | unistd_defines_pthreads=yes |
| 10326 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10327 | unistd_defines_pthreads=no |
| 10328 | fi |
| 10329 | rm -f conftest* |
| 10330 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10331 | echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 10332 | echo "${ECHO_T}$unistd_defines_pthreads" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10333 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10334 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10335 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10336 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10337 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10338 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10339 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 10340 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 10341 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10343 | fi |
| 10344 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 10345 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10346 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10347 | # Is the header compilable? |
| 10348 | echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 10349 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6 |
| 10350 | cat >conftest.$ac_ext <<_ACEOF |
| 10351 | #line $LINENO "configure" |
| 10352 | #include "confdefs.h" |
| 10353 | $ac_includes_default |
| 10354 | #include <cthreads.h> |
| 10355 | _ACEOF |
| 10356 | rm -f conftest.$ac_objext |
| 10357 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10358 | (eval $ac_compile) 2>&5 |
| 10359 | ac_status=$? |
| 10360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10361 | (exit $ac_status); } && |
| 10362 | { ac_try='test -s conftest.$ac_objext' |
| 10363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10364 | (eval $ac_try) 2>&5 |
| 10365 | ac_status=$? |
| 10366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10367 | (exit $ac_status); }; }; then |
| 10368 | ac_header_compiler=yes |
| 10369 | else |
| 10370 | echo "$as_me: failed program was:" >&5 |
| 10371 | cat conftest.$ac_ext >&5 |
| 10372 | ac_header_compiler=no |
| 10373 | fi |
| 10374 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10375 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10376 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10377 | |
| 10378 | # Is the header present? |
| 10379 | echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 10380 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6 |
| 10381 | cat >conftest.$ac_ext <<_ACEOF |
| 10382 | #line $LINENO "configure" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10383 | #include "confdefs.h" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10384 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10385 | _ACEOF |
| 10386 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10387 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10388 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10389 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10390 | rm -f conftest.er1 |
| 10391 | cat conftest.err >&5 |
| 10392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10393 | (exit $ac_status); } >/dev/null; then |
| 10394 | if test -s conftest.err; then |
| 10395 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10396 | else |
| 10397 | ac_cpp_err= |
| 10398 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10399 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10400 | ac_cpp_err=yes |
| 10401 | fi |
| 10402 | if test -z "$ac_cpp_err"; then |
| 10403 | ac_header_preproc=yes |
| 10404 | else |
| 10405 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 10406 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10407 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10408 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10409 | rm -f conftest.err conftest.$ac_ext |
| 10410 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10411 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10412 | |
| 10413 | # So? What about this header? |
| 10414 | case $ac_header_compiler:$ac_header_preproc in |
| 10415 | yes:no ) |
| 10416 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10417 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10418 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10419 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10420 | no:yes ) |
| 10421 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 10422 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 10423 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 10424 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 10425 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10426 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10427 | esac |
| 10428 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 10429 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 10430 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10432 | else |
| 10433 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10434 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10435 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 10436 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
| 10437 | |
| 10438 | fi |
| 10439 | if test $ac_cv_header_cthreads_h = yes; then |
| 10440 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10441 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10442 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10443 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10444 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10445 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10446 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10447 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10448 | |
| 10449 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10450 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10451 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10452 | |
| 10453 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10454 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10455 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10456 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10457 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10458 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 10459 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 10460 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10462 | fi |
| 10463 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 10464 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10465 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10466 | # Is the header compilable? |
| 10467 | echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 10468 | echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6 |
| 10469 | cat >conftest.$ac_ext <<_ACEOF |
| 10470 | #line $LINENO "configure" |
| 10471 | #include "confdefs.h" |
| 10472 | $ac_includes_default |
| 10473 | #include <mach/cthreads.h> |
| 10474 | _ACEOF |
| 10475 | rm -f conftest.$ac_objext |
| 10476 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10477 | (eval $ac_compile) 2>&5 |
| 10478 | ac_status=$? |
| 10479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10480 | (exit $ac_status); } && |
| 10481 | { ac_try='test -s conftest.$ac_objext' |
| 10482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10483 | (eval $ac_try) 2>&5 |
| 10484 | ac_status=$? |
| 10485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10486 | (exit $ac_status); }; }; then |
| 10487 | ac_header_compiler=yes |
| 10488 | else |
| 10489 | echo "$as_me: failed program was:" >&5 |
| 10490 | cat conftest.$ac_ext >&5 |
| 10491 | ac_header_compiler=no |
| 10492 | fi |
| 10493 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10494 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10495 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10496 | |
| 10497 | # Is the header present? |
| 10498 | echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 10499 | echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6 |
| 10500 | cat >conftest.$ac_ext <<_ACEOF |
| 10501 | #line $LINENO "configure" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10502 | #include "confdefs.h" |
| 10503 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10504 | _ACEOF |
| 10505 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10506 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10507 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10508 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10509 | rm -f conftest.er1 |
| 10510 | cat conftest.err >&5 |
| 10511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10512 | (exit $ac_status); } >/dev/null; then |
| 10513 | if test -s conftest.err; then |
| 10514 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10515 | else |
| 10516 | ac_cpp_err= |
| 10517 | fi |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10518 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10519 | ac_cpp_err=yes |
| 10520 | fi |
| 10521 | if test -z "$ac_cpp_err"; then |
| 10522 | ac_header_preproc=yes |
| 10523 | else |
| 10524 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10525 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10526 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10527 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10528 | rm -f conftest.err conftest.$ac_ext |
| 10529 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10530 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10531 | |
| 10532 | # So? What about this header? |
| 10533 | case $ac_header_compiler:$ac_header_preproc in |
| 10534 | yes:no ) |
| 10535 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10536 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10537 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10538 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10539 | no:yes ) |
| 10540 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 10541 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 10542 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 10543 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 10544 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10545 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10546 | esac |
| 10547 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 10548 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 10549 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10551 | else |
| 10552 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10553 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10554 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 10555 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
| 10556 | |
| 10557 | fi |
| 10558 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 10559 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10560 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10561 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10562 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10563 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10564 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10565 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10566 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10567 | |
| 10568 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10569 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10570 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10571 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10572 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10573 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10574 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10575 | echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 10576 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6 |
| 10577 | |
| 10578 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10579 | if test "${with_pth+set}" = set; then |
| 10580 | withval="$with_pth" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10581 | echo "$as_me:$LINENO: result: $withval" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10582 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10583 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10584 | #define WITH_THREAD 1 |
| 10585 | _ACEOF |
| 10586 | |
| 10587 | |
| 10588 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10589 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10590 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10591 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10592 | LIBS="-lpth $LIBS" |
| 10593 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10594 | else |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10595 | echo "$as_me:$LINENO: result: no" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10596 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10597 | |
| 10598 | # Just looking for pthread_create in libpthread is not enough: |
| 10599 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 10600 | # So we really have to include pthread.h, and then link. |
| 10601 | _libs=$LIBS |
| 10602 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10603 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 10604 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 10605 | cat >conftest.$ac_ext <<_ACEOF |
| 10606 | #line $LINENO "configure" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10607 | #include "confdefs.h" |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10608 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10609 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10610 | void * start_routine (void *arg) { exit (0); } |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10611 | #ifdef F77_DUMMY_MAIN |
| 10612 | # ifdef __cplusplus |
| 10613 | extern "C" |
| 10614 | # endif |
| 10615 | int F77_DUMMY_MAIN() { return 1; } |
| 10616 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10617 | int |
| 10618 | main () |
| 10619 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10620 | |
| 10621 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10622 | ; |
| 10623 | return 0; |
| 10624 | } |
| 10625 | _ACEOF |
| 10626 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10627 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10628 | (eval $ac_link) 2>&5 |
| 10629 | ac_status=$? |
| 10630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10631 | (exit $ac_status); } && |
| 10632 | { ac_try='test -s conftest$ac_exeext' |
| 10633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10634 | (eval $ac_try) 2>&5 |
| 10635 | ac_status=$? |
| 10636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10637 | (exit $ac_status); }; }; then |
| 10638 | |
| 10639 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10640 | echo "${ECHO_T}yes" >&6 |
| 10641 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10642 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10643 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10644 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10645 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10646 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10647 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10648 | echo "$as_me: failed program was:" >&5 |
| 10649 | cat conftest.$ac_ext >&5 |
| 10650 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10651 | LIBS=$_libs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10652 | echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 10653 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6 |
| 10654 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 10655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10656 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10657 | cat >conftest.$ac_ext <<_ACEOF |
| 10658 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10659 | #include "confdefs.h" |
| 10660 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10661 | which can conflict with char pthread_detach (); below. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10662 | #include <assert.h> |
| 10663 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10664 | #ifdef __cplusplus |
| 10665 | extern "C" |
| 10666 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10667 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10668 | builtin and then its argument prototype would still apply. */ |
| 10669 | char pthread_detach (); |
| 10670 | char (*f) (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10671 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10672 | #ifdef F77_DUMMY_MAIN |
| 10673 | # ifdef __cplusplus |
| 10674 | extern "C" |
| 10675 | # endif |
| 10676 | int F77_DUMMY_MAIN() { return 1; } |
| 10677 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10678 | int |
| 10679 | main () |
| 10680 | { |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10681 | /* The GNU C library defines this for functions which it implements |
| 10682 | to always fail with ENOSYS. Some functions are actually named |
| 10683 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 10684 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10685 | choke me |
| 10686 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10687 | f = pthread_detach; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10688 | #endif |
| 10689 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10690 | ; |
| 10691 | return 0; |
| 10692 | } |
| 10693 | _ACEOF |
| 10694 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10695 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10696 | (eval $ac_link) 2>&5 |
| 10697 | ac_status=$? |
| 10698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10699 | (exit $ac_status); } && |
| 10700 | { ac_try='test -s conftest$ac_exeext' |
| 10701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10702 | (eval $ac_try) 2>&5 |
| 10703 | ac_status=$? |
| 10704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10705 | (exit $ac_status); }; }; then |
| 10706 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10707 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10708 | echo "$as_me: failed program was:" >&5 |
| 10709 | cat conftest.$ac_ext >&5 |
| 10710 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10711 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10712 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10713 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10714 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 10715 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6 |
| 10716 | if test $ac_cv_func_pthread_detach = yes; then |
| 10717 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10718 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10719 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10720 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10721 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10722 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10723 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10724 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10725 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10726 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 10727 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 10728 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10729 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10730 | fi |
| 10731 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 10732 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 10733 | else |
| 10734 | # Is the header compilable? |
| 10735 | echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 10736 | echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6 |
| 10737 | cat >conftest.$ac_ext <<_ACEOF |
| 10738 | #line $LINENO "configure" |
| 10739 | #include "confdefs.h" |
| 10740 | $ac_includes_default |
| 10741 | #include <atheos/threads.h> |
| 10742 | _ACEOF |
| 10743 | rm -f conftest.$ac_objext |
| 10744 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10745 | (eval $ac_compile) 2>&5 |
| 10746 | ac_status=$? |
| 10747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10748 | (exit $ac_status); } && |
| 10749 | { ac_try='test -s conftest.$ac_objext' |
| 10750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10751 | (eval $ac_try) 2>&5 |
| 10752 | ac_status=$? |
| 10753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10754 | (exit $ac_status); }; }; then |
| 10755 | ac_header_compiler=yes |
| 10756 | else |
| 10757 | echo "$as_me: failed program was:" >&5 |
| 10758 | cat conftest.$ac_ext >&5 |
| 10759 | ac_header_compiler=no |
| 10760 | fi |
| 10761 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10762 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10763 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10764 | |
| 10765 | # Is the header present? |
| 10766 | echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 10767 | echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6 |
| 10768 | cat >conftest.$ac_ext <<_ACEOF |
| 10769 | #line $LINENO "configure" |
| 10770 | #include "confdefs.h" |
| 10771 | #include <atheos/threads.h> |
| 10772 | _ACEOF |
| 10773 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10774 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10775 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10776 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10777 | rm -f conftest.er1 |
| 10778 | cat conftest.err >&5 |
| 10779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10780 | (exit $ac_status); } >/dev/null; then |
| 10781 | if test -s conftest.err; then |
| 10782 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10783 | else |
| 10784 | ac_cpp_err= |
| 10785 | fi |
| 10786 | else |
| 10787 | ac_cpp_err=yes |
| 10788 | fi |
| 10789 | if test -z "$ac_cpp_err"; then |
| 10790 | ac_header_preproc=yes |
| 10791 | else |
| 10792 | echo "$as_me: failed program was:" >&5 |
| 10793 | cat conftest.$ac_ext >&5 |
| 10794 | ac_header_preproc=no |
| 10795 | fi |
| 10796 | rm -f conftest.err conftest.$ac_ext |
| 10797 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10798 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10799 | |
| 10800 | # So? What about this header? |
| 10801 | case $ac_header_compiler:$ac_header_preproc in |
| 10802 | yes:no ) |
| 10803 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10804 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10805 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 10806 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};; |
| 10807 | no:yes ) |
| 10808 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 10809 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
| 10810 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 10811 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 10812 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 10813 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};; |
| 10814 | esac |
| 10815 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 10816 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 10817 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10819 | else |
| 10820 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 10821 | fi |
| 10822 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 10823 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 10824 | |
| 10825 | fi |
| 10826 | if test $ac_cv_header_atheos_threads_h = yes; then |
| 10827 | cat >>confdefs.h <<\_ACEOF |
| 10828 | #define WITH_THREAD 1 |
| 10829 | _ACEOF |
| 10830 | |
| 10831 | |
| 10832 | cat >>confdefs.h <<\_ACEOF |
| 10833 | #define ATHEOS_THREADS 1 |
| 10834 | _ACEOF |
| 10835 | |
| 10836 | THREADOBJ="Python/thread.o" |
| 10837 | else |
| 10838 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10839 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10840 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 10841 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 10842 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10843 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10844 | fi |
| 10845 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 10846 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10847 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10848 | # Is the header compilable? |
| 10849 | echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 10850 | echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6 |
| 10851 | cat >conftest.$ac_ext <<_ACEOF |
| 10852 | #line $LINENO "configure" |
| 10853 | #include "confdefs.h" |
| 10854 | $ac_includes_default |
| 10855 | #include <kernel/OS.h> |
| 10856 | _ACEOF |
| 10857 | rm -f conftest.$ac_objext |
| 10858 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10859 | (eval $ac_compile) 2>&5 |
| 10860 | ac_status=$? |
| 10861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10862 | (exit $ac_status); } && |
| 10863 | { ac_try='test -s conftest.$ac_objext' |
| 10864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10865 | (eval $ac_try) 2>&5 |
| 10866 | ac_status=$? |
| 10867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10868 | (exit $ac_status); }; }; then |
| 10869 | ac_header_compiler=yes |
| 10870 | else |
| 10871 | echo "$as_me: failed program was:" >&5 |
| 10872 | cat conftest.$ac_ext >&5 |
| 10873 | ac_header_compiler=no |
| 10874 | fi |
| 10875 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10876 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10877 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10878 | |
| 10879 | # Is the header present? |
| 10880 | echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 10881 | echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6 |
| 10882 | cat >conftest.$ac_ext <<_ACEOF |
| 10883 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10884 | #include "confdefs.h" |
| 10885 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10886 | _ACEOF |
| 10887 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10888 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10889 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10890 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10891 | rm -f conftest.er1 |
| 10892 | cat conftest.err >&5 |
| 10893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10894 | (exit $ac_status); } >/dev/null; then |
| 10895 | if test -s conftest.err; then |
| 10896 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10897 | else |
| 10898 | ac_cpp_err= |
| 10899 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10900 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10901 | ac_cpp_err=yes |
| 10902 | fi |
| 10903 | if test -z "$ac_cpp_err"; then |
| 10904 | ac_header_preproc=yes |
| 10905 | else |
| 10906 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10907 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10908 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10909 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10910 | rm -f conftest.err conftest.$ac_ext |
| 10911 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10912 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10913 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10914 | # So? What about this header? |
| 10915 | case $ac_header_compiler:$ac_header_preproc in |
| 10916 | yes:no ) |
| 10917 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10918 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10919 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 10920 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};; |
| 10921 | no:yes ) |
| 10922 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 10923 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
| 10924 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 10925 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 10926 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 10927 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};; |
| 10928 | esac |
| 10929 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 10930 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 10931 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10933 | else |
| 10934 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 10935 | fi |
| 10936 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 10937 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
| 10938 | |
| 10939 | fi |
| 10940 | if test $ac_cv_header_kernel_OS_h = yes; then |
| 10941 | cat >>confdefs.h <<\_ACEOF |
| 10942 | #define WITH_THREAD 1 |
| 10943 | _ACEOF |
| 10944 | |
| 10945 | |
| 10946 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10947 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10948 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10949 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10950 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10951 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10952 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10953 | echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 10954 | echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6 |
| 10955 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 10956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10957 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10958 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10959 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10960 | cat >conftest.$ac_ext <<_ACEOF |
| 10961 | #line $LINENO "configure" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10962 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10963 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10964 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10965 | #ifdef __cplusplus |
| 10966 | extern "C" |
| 10967 | #endif |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10968 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10969 | builtin and then its argument prototype would still apply. */ |
| 10970 | char pthread_create (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 10971 | #ifdef F77_DUMMY_MAIN |
| 10972 | # ifdef __cplusplus |
| 10973 | extern "C" |
| 10974 | # endif |
| 10975 | int F77_DUMMY_MAIN() { return 1; } |
| 10976 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10977 | int |
| 10978 | main () |
| 10979 | { |
| 10980 | pthread_create (); |
| 10981 | ; |
| 10982 | return 0; |
| 10983 | } |
| 10984 | _ACEOF |
| 10985 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10986 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10987 | (eval $ac_link) 2>&5 |
| 10988 | ac_status=$? |
| 10989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10990 | (exit $ac_status); } && |
| 10991 | { ac_try='test -s conftest$ac_exeext' |
| 10992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10993 | (eval $ac_try) 2>&5 |
| 10994 | ac_status=$? |
| 10995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10996 | (exit $ac_status); }; }; then |
| 10997 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10998 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10999 | echo "$as_me: failed program was:" >&5 |
| 11000 | cat conftest.$ac_ext >&5 |
| 11001 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11002 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11003 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11004 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11005 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11006 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 11007 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6 |
| 11008 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 11009 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11010 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11011 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11012 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11013 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11014 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11015 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11016 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11017 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11018 | echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 11019 | echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 |
| 11020 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 11021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11022 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11023 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11024 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11025 | cat >conftest.$ac_ext <<_ACEOF |
| 11026 | #line $LINENO "configure" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11027 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11028 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11029 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11030 | #ifdef __cplusplus |
| 11031 | extern "C" |
| 11032 | #endif |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11033 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11034 | builtin and then its argument prototype would still apply. */ |
| 11035 | char pthread_create (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11036 | #ifdef F77_DUMMY_MAIN |
| 11037 | # ifdef __cplusplus |
| 11038 | extern "C" |
| 11039 | # endif |
| 11040 | int F77_DUMMY_MAIN() { return 1; } |
| 11041 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11042 | int |
| 11043 | main () |
| 11044 | { |
| 11045 | pthread_create (); |
| 11046 | ; |
| 11047 | return 0; |
| 11048 | } |
| 11049 | _ACEOF |
| 11050 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11051 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11052 | (eval $ac_link) 2>&5 |
| 11053 | ac_status=$? |
| 11054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11055 | (exit $ac_status); } && |
| 11056 | { ac_try='test -s conftest$ac_exeext' |
| 11057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11058 | (eval $ac_try) 2>&5 |
| 11059 | ac_status=$? |
| 11060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11061 | (exit $ac_status); }; }; then |
| 11062 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11063 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11064 | echo "$as_me: failed program was:" >&5 |
| 11065 | cat conftest.$ac_ext >&5 |
| 11066 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11067 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11068 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11069 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11070 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11071 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 11072 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 |
| 11073 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 11074 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11075 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11076 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11077 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11078 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11079 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11080 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11081 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11082 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11083 | echo "$as_me:$LINENO: checking for __d6_pthread_create in -lthread" >&5 |
| 11084 | echo $ECHO_N "checking for __d6_pthread_create in -lthread... $ECHO_C" >&6 |
| 11085 | if test "${ac_cv_lib_thread___d6_pthread_create+set}" = set; then |
| 11086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11087 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11088 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 11089 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11090 | cat >conftest.$ac_ext <<_ACEOF |
| 11091 | #line $LINENO "configure" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11092 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11093 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11094 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11095 | #ifdef __cplusplus |
| 11096 | extern "C" |
| 11097 | #endif |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11098 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11099 | builtin and then its argument prototype would still apply. */ |
| 11100 | char __d6_pthread_create (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11101 | #ifdef F77_DUMMY_MAIN |
| 11102 | # ifdef __cplusplus |
| 11103 | extern "C" |
| 11104 | # endif |
| 11105 | int F77_DUMMY_MAIN() { return 1; } |
| 11106 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11107 | int |
| 11108 | main () |
| 11109 | { |
| 11110 | __d6_pthread_create (); |
| 11111 | ; |
| 11112 | return 0; |
| 11113 | } |
| 11114 | _ACEOF |
| 11115 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11116 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11117 | (eval $ac_link) 2>&5 |
| 11118 | ac_status=$? |
| 11119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11120 | (exit $ac_status); } && |
| 11121 | { ac_try='test -s conftest$ac_exeext' |
| 11122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11123 | (eval $ac_try) 2>&5 |
| 11124 | ac_status=$? |
| 11125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11126 | (exit $ac_status); }; }; then |
| 11127 | ac_cv_lib_thread___d6_pthread_create=yes |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11128 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11129 | echo "$as_me: failed program was:" >&5 |
| 11130 | cat conftest.$ac_ext >&5 |
| 11131 | ac_cv_lib_thread___d6_pthread_create=no |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11132 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11133 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11134 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11135 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11136 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread___d6_pthread_create" >&5 |
| 11137 | echo "${ECHO_T}$ac_cv_lib_thread___d6_pthread_create" >&6 |
| 11138 | if test $ac_cv_lib_thread___d6_pthread_create = yes; then |
| 11139 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11140 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11141 | _ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11142 | |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 11143 | echo Systems with __d6_pthread_create are not supported anymore. |
| 11144 | echo See README |
| 11145 | exit 1 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11146 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11147 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11148 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11149 | else |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11150 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11151 | echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 11152 | echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6 |
| 11153 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 11154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11155 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11156 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11157 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11158 | cat >conftest.$ac_ext <<_ACEOF |
| 11159 | #line $LINENO "configure" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11160 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11161 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11162 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11163 | #ifdef __cplusplus |
| 11164 | extern "C" |
| 11165 | #endif |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11166 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11167 | builtin and then its argument prototype would still apply. */ |
| 11168 | char __pthread_create_system (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11169 | #ifdef F77_DUMMY_MAIN |
| 11170 | # ifdef __cplusplus |
| 11171 | extern "C" |
| 11172 | # endif |
| 11173 | int F77_DUMMY_MAIN() { return 1; } |
| 11174 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11175 | int |
| 11176 | main () |
| 11177 | { |
| 11178 | __pthread_create_system (); |
| 11179 | ; |
| 11180 | return 0; |
| 11181 | } |
| 11182 | _ACEOF |
| 11183 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11184 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11185 | (eval $ac_link) 2>&5 |
| 11186 | ac_status=$? |
| 11187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11188 | (exit $ac_status); } && |
| 11189 | { ac_try='test -s conftest$ac_exeext' |
| 11190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11191 | (eval $ac_try) 2>&5 |
| 11192 | ac_status=$? |
| 11193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11194 | (exit $ac_status); }; }; then |
| 11195 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11196 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11197 | echo "$as_me: failed program was:" >&5 |
| 11198 | cat conftest.$ac_ext >&5 |
| 11199 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11200 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11201 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11202 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11203 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11204 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 11205 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6 |
| 11206 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 11207 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11208 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11209 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11210 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11211 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11212 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11213 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11214 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 11215 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11216 | echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 11217 | echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6 |
| 11218 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 11219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11220 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11221 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11222 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11223 | cat >conftest.$ac_ext <<_ACEOF |
| 11224 | #line $LINENO "configure" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11225 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11226 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11227 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11228 | #ifdef __cplusplus |
| 11229 | extern "C" |
| 11230 | #endif |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11231 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11232 | builtin and then its argument prototype would still apply. */ |
| 11233 | char pthread_create (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11234 | #ifdef F77_DUMMY_MAIN |
| 11235 | # ifdef __cplusplus |
| 11236 | extern "C" |
| 11237 | # endif |
| 11238 | int F77_DUMMY_MAIN() { return 1; } |
| 11239 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11240 | int |
| 11241 | main () |
| 11242 | { |
| 11243 | pthread_create (); |
| 11244 | ; |
| 11245 | return 0; |
| 11246 | } |
| 11247 | _ACEOF |
| 11248 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11249 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11250 | (eval $ac_link) 2>&5 |
| 11251 | ac_status=$? |
| 11252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11253 | (exit $ac_status); } && |
| 11254 | { ac_try='test -s conftest$ac_exeext' |
| 11255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11256 | (eval $ac_try) 2>&5 |
| 11257 | ac_status=$? |
| 11258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11259 | (exit $ac_status); }; }; then |
| 11260 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11261 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11262 | echo "$as_me: failed program was:" >&5 |
| 11263 | cat conftest.$ac_ext >&5 |
| 11264 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11265 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11266 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11267 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11268 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11269 | echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 11270 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6 |
| 11271 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 11272 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11273 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11274 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11275 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11276 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11277 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11278 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11279 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 11280 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11281 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 11282 | fi |
| 11283 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11284 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11285 | fi |
| 11286 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 11287 | fi |
| 11288 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11289 | fi |
| 11290 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11291 | fi |
| 11292 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11293 | fi |
| 11294 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11295 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11296 | fi |
| 11297 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11298 | |
| 11299 | fi |
| 11300 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11301 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11302 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11303 | fi; |
| 11304 | fi |
| 11305 | |
| 11306 | |
| 11307 | fi |
| 11308 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11309 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11310 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11311 | echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 11312 | echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6 |
| 11313 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 11314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11315 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11316 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11317 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11318 | cat >conftest.$ac_ext <<_ACEOF |
| 11319 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11320 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11321 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11322 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11323 | #ifdef __cplusplus |
| 11324 | extern "C" |
| 11325 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11326 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11327 | builtin and then its argument prototype would still apply. */ |
| 11328 | char usconfig (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11329 | #ifdef F77_DUMMY_MAIN |
| 11330 | # ifdef __cplusplus |
| 11331 | extern "C" |
| 11332 | # endif |
| 11333 | int F77_DUMMY_MAIN() { return 1; } |
| 11334 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11335 | int |
| 11336 | main () |
| 11337 | { |
| 11338 | usconfig (); |
| 11339 | ; |
| 11340 | return 0; |
| 11341 | } |
| 11342 | _ACEOF |
| 11343 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11344 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11345 | (eval $ac_link) 2>&5 |
| 11346 | ac_status=$? |
| 11347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11348 | (exit $ac_status); } && |
| 11349 | { ac_try='test -s conftest$ac_exeext' |
| 11350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11351 | (eval $ac_try) 2>&5 |
| 11352 | ac_status=$? |
| 11353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11354 | (exit $ac_status); }; }; then |
| 11355 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11356 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11357 | echo "$as_me: failed program was:" >&5 |
| 11358 | cat conftest.$ac_ext >&5 |
| 11359 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11360 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11361 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11362 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11363 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11364 | echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 11365 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6 |
| 11366 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 11367 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11368 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11369 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11370 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11371 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11372 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11373 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11374 | fi |
| 11375 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11376 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 11377 | if test "$posix_threads" != "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11378 | echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 11379 | echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6 |
| 11380 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 11381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11382 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11383 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11384 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11385 | cat >conftest.$ac_ext <<_ACEOF |
| 11386 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11387 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11388 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11389 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11390 | #ifdef __cplusplus |
| 11391 | extern "C" |
| 11392 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11393 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11394 | builtin and then its argument prototype would still apply. */ |
| 11395 | char thr_create (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11396 | #ifdef F77_DUMMY_MAIN |
| 11397 | # ifdef __cplusplus |
| 11398 | extern "C" |
| 11399 | # endif |
| 11400 | int F77_DUMMY_MAIN() { return 1; } |
| 11401 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11402 | int |
| 11403 | main () |
| 11404 | { |
| 11405 | thr_create (); |
| 11406 | ; |
| 11407 | return 0; |
| 11408 | } |
| 11409 | _ACEOF |
| 11410 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11411 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11412 | (eval $ac_link) 2>&5 |
| 11413 | ac_status=$? |
| 11414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11415 | (exit $ac_status); } && |
| 11416 | { ac_try='test -s conftest$ac_exeext' |
| 11417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11418 | (eval $ac_try) 2>&5 |
| 11419 | ac_status=$? |
| 11420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11421 | (exit $ac_status); }; }; then |
| 11422 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11423 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11424 | echo "$as_me: failed program was:" >&5 |
| 11425 | cat conftest.$ac_ext >&5 |
| 11426 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11427 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11428 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11429 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11430 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11431 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 11432 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6 |
| 11433 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 11434 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11435 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11436 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11437 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11438 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11439 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11440 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11441 | fi |
| 11442 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11443 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11444 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11445 | if test "$USE_THREAD_MODULE" != "#" |
| 11446 | then |
| 11447 | # If the above checks didn't disable threads, (at least) OSF1 |
| 11448 | # needs this '-threads' argument during linking. |
| 11449 | case $ac_sys_system in |
| 11450 | OSF1) LDLAST=-threads;; |
| 11451 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 11452 | fi |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11453 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 11454 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11455 | if test "$posix_threads" = "yes"; then |
| 11456 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 11457 | |
| 11458 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11459 | #define _POSIX_THREADS 1 |
| 11460 | _ACEOF |
| 11461 | |
| 11462 | fi |
| 11463 | |
| 11464 | # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. |
| 11465 | case $ac_sys_system/$ac_sys_release in |
| 11466 | SunOS/5.6) |
| 11467 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 11468 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 11469 | _ACEOF |
| 11470 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11471 | ;; |
| 11472 | SunOS/5.8) |
| 11473 | cat >>confdefs.h <<\_ACEOF |
| 11474 | #define HAVE_BROKEN_POSIX_SEMAPHORES 1 |
| 11475 | _ACEOF |
| 11476 | |
| 11477 | ;; |
| 11478 | esac |
| 11479 | |
| 11480 | echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 11481 | echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6 |
| 11482 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 11483 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11484 | else |
| 11485 | if test "$cross_compiling" = yes; then |
| 11486 | ac_cv_pthread_system_supported=no |
| 11487 | else |
| 11488 | cat >conftest.$ac_ext <<_ACEOF |
| 11489 | #line $LINENO "configure" |
| 11490 | #include "confdefs.h" |
| 11491 | #include <pthread.h> |
| 11492 | void *foo(void *parm) { |
| 11493 | return NULL; |
| 11494 | } |
| 11495 | main() { |
| 11496 | pthread_attr_t attr; |
| 11497 | pthread_t id; |
| 11498 | if (pthread_attr_init(&attr)) exit(-1); |
| 11499 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
| 11500 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
| 11501 | exit(0); |
| 11502 | } |
| 11503 | _ACEOF |
| 11504 | rm -f conftest$ac_exeext |
| 11505 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11506 | (eval $ac_link) 2>&5 |
| 11507 | ac_status=$? |
| 11508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11509 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11511 | (eval $ac_try) 2>&5 |
| 11512 | ac_status=$? |
| 11513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11514 | (exit $ac_status); }; }; then |
| 11515 | ac_cv_pthread_system_supported=yes |
| 11516 | else |
| 11517 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11518 | echo "$as_me: failed program was:" >&5 |
| 11519 | cat conftest.$ac_ext >&5 |
| 11520 | ( exit $ac_status ) |
| 11521 | ac_cv_pthread_system_supported=no |
| 11522 | fi |
| 11523 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 11524 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 11525 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11526 | fi |
| 11527 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 11528 | echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 11529 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6 |
| 11530 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
| 11531 | |
| 11532 | cat >>confdefs.h <<\_ACEOF |
| 11533 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
| 11534 | _ACEOF |
| 11535 | |
| 11536 | fi |
| 11537 | |
| 11538 | for ac_func in pthread_sigmask |
| 11539 | do |
| 11540 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11541 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11542 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11543 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 11545 | else |
| 11546 | cat >conftest.$ac_ext <<_ACEOF |
| 11547 | #line $LINENO "configure" |
| 11548 | #include "confdefs.h" |
| 11549 | /* System header to define __stub macros and hopefully few prototypes, |
| 11550 | which can conflict with char $ac_func (); below. */ |
| 11551 | #include <assert.h> |
| 11552 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 11553 | #ifdef __cplusplus |
| 11554 | extern "C" |
| 11555 | #endif |
| 11556 | /* We use char because int might match the return type of a gcc2 |
| 11557 | builtin and then its argument prototype would still apply. */ |
| 11558 | char $ac_func (); |
| 11559 | char (*f) (); |
| 11560 | |
| 11561 | #ifdef F77_DUMMY_MAIN |
| 11562 | # ifdef __cplusplus |
| 11563 | extern "C" |
| 11564 | # endif |
| 11565 | int F77_DUMMY_MAIN() { return 1; } |
| 11566 | #endif |
| 11567 | int |
| 11568 | main () |
| 11569 | { |
| 11570 | /* The GNU C library defines this for functions which it implements |
| 11571 | to always fail with ENOSYS. Some functions are actually named |
| 11572 | something starting with __ and the normal name is an alias. */ |
| 11573 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11574 | choke me |
| 11575 | #else |
| 11576 | f = $ac_func; |
| 11577 | #endif |
| 11578 | |
| 11579 | ; |
| 11580 | return 0; |
| 11581 | } |
| 11582 | _ACEOF |
| 11583 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11584 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11585 | (eval $ac_link) 2>&5 |
| 11586 | ac_status=$? |
| 11587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11588 | (exit $ac_status); } && |
| 11589 | { ac_try='test -s conftest$ac_exeext' |
| 11590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11591 | (eval $ac_try) 2>&5 |
| 11592 | ac_status=$? |
| 11593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11594 | (exit $ac_status); }; }; then |
| 11595 | eval "$as_ac_var=yes" |
| 11596 | else |
| 11597 | echo "$as_me: failed program was:" >&5 |
| 11598 | cat conftest.$ac_ext >&5 |
| 11599 | eval "$as_ac_var=no" |
| 11600 | fi |
| 11601 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11602 | fi |
| 11603 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11604 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11605 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11606 | cat >>confdefs.h <<_ACEOF |
| 11607 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11608 | _ACEOF |
| 11609 | |
| 11610 | fi |
| 11611 | done |
| 11612 | |
| 11613 | fi |
| 11614 | |
| 11615 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11616 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11617 | |
| 11618 | |
| 11619 | echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 11620 | echo $ECHO_N "checking if --enable-ipv6 is specified... $ECHO_C" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11621 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 11622 | if test "${enable_ipv6+set}" = set; then |
| 11623 | enableval="$enable_ipv6" |
| 11624 | case "$enableval" in |
| 11625 | no) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11626 | echo "$as_me:$LINENO: result: no" >&5 |
| 11627 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11628 | ipv6=no |
| 11629 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11630 | *) echo "$as_me:$LINENO: result: yes" >&5 |
| 11631 | echo "${ECHO_T}yes" >&6 |
| 11632 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11633 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11634 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11635 | |
| 11636 | ipv6=yes |
| 11637 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11638 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11639 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11640 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11641 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11642 | echo "$as_me:$LINENO: result: no" >&5 |
| 11643 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11644 | ipv6=no |
| 11645 | |
| 11646 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11647 | cat >conftest.$ac_ext <<_ACEOF |
| 11648 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11649 | #include "confdefs.h" |
| 11650 | /* AF_INET6 available check */ |
| 11651 | #include <sys/types.h> |
| 11652 | #include <sys/socket.h> |
| 11653 | main() |
| 11654 | { |
| 11655 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 11656 | exit(1); |
| 11657 | else |
| 11658 | exit(0); |
| 11659 | } |
| 11660 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11661 | _ACEOF |
| 11662 | rm -f conftest$ac_exeext |
| 11663 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11664 | (eval $ac_link) 2>&5 |
| 11665 | ac_status=$? |
| 11666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11667 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11669 | (eval $ac_try) 2>&5 |
| 11670 | ac_status=$? |
| 11671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11672 | (exit $ac_status); }; }; then |
| 11673 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11674 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11675 | ipv6=yes |
| 11676 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11677 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11678 | echo "$as_me: failed program was:" >&5 |
| 11679 | cat conftest.$ac_ext >&5 |
| 11680 | ( exit $ac_status ) |
| 11681 | echo "$as_me:$LINENO: result: no" >&5 |
| 11682 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11683 | ipv6=no |
| 11684 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11685 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11686 | fi |
| 11687 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11688 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11689 | echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 11690 | echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6 |
| 11691 | cat >conftest.$ac_ext <<_ACEOF |
| 11692 | #line $LINENO "configure" |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11693 | #include "confdefs.h" |
| 11694 | #include <sys/types.h> |
| 11695 | #include <netinet/in.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11696 | #ifdef F77_DUMMY_MAIN |
| 11697 | # ifdef __cplusplus |
| 11698 | extern "C" |
| 11699 | # endif |
| 11700 | int F77_DUMMY_MAIN() { return 1; } |
| 11701 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11702 | int |
| 11703 | main () |
| 11704 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11705 | struct sockaddr_in6 x; |
| 11706 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11707 | ; |
| 11708 | return 0; |
| 11709 | } |
| 11710 | _ACEOF |
| 11711 | rm -f conftest.$ac_objext |
| 11712 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11713 | (eval $ac_compile) 2>&5 |
| 11714 | ac_status=$? |
| 11715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11716 | (exit $ac_status); } && |
| 11717 | { ac_try='test -s conftest.$ac_objext' |
| 11718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11719 | (eval $ac_try) 2>&5 |
| 11720 | ac_status=$? |
| 11721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11722 | (exit $ac_status); }; }; then |
| 11723 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11724 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11725 | ipv6=yes |
| 11726 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11727 | echo "$as_me: failed program was:" >&5 |
| 11728 | cat conftest.$ac_ext >&5 |
| 11729 | echo "$as_me:$LINENO: result: no" >&5 |
| 11730 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11731 | ipv6=no |
| 11732 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11733 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11734 | fi |
| 11735 | |
| 11736 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11737 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11738 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11739 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11740 | |
| 11741 | fi |
| 11742 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11743 | fi; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11744 | |
| 11745 | ipv6type=unknown |
| 11746 | ipv6lib=none |
| 11747 | ipv6trylibc=no |
| 11748 | |
| 11749 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11750 | echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 11751 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 11752 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 11753 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11754 | case $i in |
| 11755 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11756 | cat >conftest.$ac_ext <<_ACEOF |
| 11757 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11758 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11759 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11760 | #include <netinet/in.h> |
| 11761 | #ifdef IPV6_INRIA_VERSION |
| 11762 | yes |
| 11763 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11764 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11765 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11766 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11767 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11768 | fi |
| 11769 | rm -f conftest* |
| 11770 | |
| 11771 | ;; |
| 11772 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11773 | cat >conftest.$ac_ext <<_ACEOF |
| 11774 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11775 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11776 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11777 | #include <netinet/in.h> |
| 11778 | #ifdef __KAME__ |
| 11779 | yes |
| 11780 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11781 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11782 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11783 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11784 | ipv6type=$i; |
| 11785 | ipv6lib=inet6 |
| 11786 | ipv6libdir=/usr/local/v6/lib |
| 11787 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11788 | fi |
| 11789 | rm -f conftest* |
| 11790 | |
| 11791 | ;; |
| 11792 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11793 | cat >conftest.$ac_ext <<_ACEOF |
| 11794 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11795 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11796 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11797 | #include <features.h> |
| 11798 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 11799 | yes |
| 11800 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11801 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11802 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11803 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11804 | ipv6type=$i; |
| 11805 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11806 | fi |
| 11807 | rm -f conftest* |
| 11808 | |
| 11809 | ;; |
| 11810 | linux-inet6) |
| 11811 | if test -d /usr/inet6; then |
| 11812 | ipv6type=$i |
| 11813 | ipv6lib=inet6 |
| 11814 | ipv6libdir=/usr/inet6/lib |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 11815 | BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11816 | fi |
| 11817 | ;; |
| 11818 | solaris) |
| 11819 | if test -f /etc/netconfig; then |
| 11820 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 11821 | ipv6type=$i |
| 11822 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11823 | fi |
| 11824 | fi |
| 11825 | ;; |
| 11826 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11827 | cat >conftest.$ac_ext <<_ACEOF |
| 11828 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11829 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11830 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11831 | #include <sys/param.h> |
| 11832 | #ifdef _TOSHIBA_INET6 |
| 11833 | yes |
| 11834 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11835 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11836 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11837 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11838 | ipv6type=$i; |
| 11839 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11840 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11841 | fi |
| 11842 | rm -f conftest* |
| 11843 | |
| 11844 | ;; |
| 11845 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11846 | cat >conftest.$ac_ext <<_ACEOF |
| 11847 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11848 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11849 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11850 | #include </usr/local/v6/include/sys/v6config.h> |
| 11851 | #ifdef __V6D__ |
| 11852 | yes |
| 11853 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11854 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11855 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11856 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11857 | ipv6type=$i; |
| 11858 | ipv6lib=v6; |
| 11859 | ipv6libdir=/usr/local/v6/lib; |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 11860 | BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11861 | fi |
| 11862 | rm -f conftest* |
| 11863 | |
| 11864 | ;; |
| 11865 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11866 | cat >conftest.$ac_ext <<_ACEOF |
| 11867 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11868 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11869 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11870 | #include <sys/param.h> |
| 11871 | #ifdef _ZETA_MINAMI_INET6 |
| 11872 | yes |
| 11873 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11874 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11875 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 11876 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11877 | ipv6type=$i; |
| 11878 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11879 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11880 | fi |
| 11881 | rm -f conftest* |
| 11882 | |
| 11883 | ;; |
| 11884 | esac |
| 11885 | if test "$ipv6type" != "unknown"; then |
| 11886 | break |
| 11887 | fi |
| 11888 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11889 | echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 11890 | echo "${ECHO_T}$ipv6type" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11891 | fi |
| 11892 | |
| 11893 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 11894 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 11895 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 11896 | echo "using lib$ipv6lib" |
| 11897 | else |
| 11898 | if test $ipv6trylibc = "yes"; then |
| 11899 | echo "using libc" |
| 11900 | else |
| 11901 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 11902 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 11903 | echo 'ipv6 kit and compile beforehand.' |
| 11904 | exit 1 |
| 11905 | fi |
| 11906 | fi |
| 11907 | fi |
| 11908 | |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11909 | # Check for universal newline support |
Guido van Rossum | 402905e | 2002-08-15 13:56:35 +0000 | [diff] [blame] | 11910 | echo "$as_me:$LINENO: checking for --with-universal-newlines" >&5 |
| 11911 | echo $ECHO_N "checking for --with-universal-newlines... $ECHO_C" >&6 |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11912 | |
| 11913 | # Check whether --with-universal-newlines or --without-universal-newlines was given. |
| 11914 | if test "${with_universal_newlines+set}" = set; then |
| 11915 | withval="$with_universal_newlines" |
| 11916 | |
| 11917 | fi; |
| 11918 | |
| 11919 | if test -z "$with_universal_newlines" |
| 11920 | then with_universal_newlines="yes" |
| 11921 | fi |
Martin v. Löwis | 7e4cfcb | 2002-12-19 16:21:49 +0000 | [diff] [blame] | 11922 | if test "$with_universal_newlines" = "no" |
Martin v. Löwis | 03d00d5 | 2002-12-19 19:03:31 +0000 | [diff] [blame] | 11923 | then |
Martin v. Löwis | 7e4cfcb | 2002-12-19 16:21:49 +0000 | [diff] [blame] | 11924 | echo --without-universal-newlines is unsupported, see README |
| 11925 | exit 1 |
Martin v. Löwis | 03d00d5 | 2002-12-19 19:03:31 +0000 | [diff] [blame] | 11926 | else |
Martin v. Löwis | e8aea58 | 2002-04-16 05:51:02 +0000 | [diff] [blame] | 11927 | |
| 11928 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11929 | #define WITH_UNIVERSAL_NEWLINES 1 |
| 11930 | _ACEOF |
| 11931 | |
| 11932 | fi |
| 11933 | echo "$as_me:$LINENO: result: $with_universal_newlines" >&5 |
| 11934 | echo "${ECHO_T}$with_universal_newlines" >&6 |
| 11935 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11936 | # Check for --with-doc-strings |
| 11937 | echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 11938 | echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6 |
| 11939 | |
| 11940 | # Check whether --with-doc-strings or --without-doc-strings was given. |
| 11941 | if test "${with_doc_strings+set}" = set; then |
| 11942 | withval="$with_doc_strings" |
| 11943 | |
| 11944 | fi; |
| 11945 | |
| 11946 | if test -z "$with_doc_strings" |
| 11947 | then with_doc_strings="yes" |
| 11948 | fi |
| 11949 | if test "$with_doc_strings" != "no" |
| 11950 | then |
| 11951 | |
| 11952 | cat >>confdefs.h <<\_ACEOF |
| 11953 | #define WITH_DOC_STRINGS 1 |
| 11954 | _ACEOF |
| 11955 | |
| 11956 | fi |
| 11957 | echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 11958 | echo "${ECHO_T}$with_doc_strings" >&6 |
| 11959 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11960 | # Check for Python-specific malloc support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11961 | echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 11962 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6 |
| 11963 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11964 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 11965 | if test "${with_pymalloc+set}" = set; then |
| 11966 | withval="$with_pymalloc" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11967 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11968 | fi; |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11969 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11970 | if test -z "$with_pymalloc" |
| 11971 | then with_pymalloc="yes" |
| 11972 | fi |
| 11973 | if test "$with_pymalloc" != "no" |
| 11974 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11975 | |
| 11976 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11977 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11978 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11979 | |
| 11980 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11981 | echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 11982 | echo "${ECHO_T}$with_pymalloc" >&6 |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11983 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11984 | # Check for --with-wctype-functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11985 | echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 11986 | echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6 |
| 11987 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11988 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 11989 | if test "${with_wctype_functions+set}" = set; then |
| 11990 | withval="$with_wctype_functions" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11991 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11992 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11993 | then |
| 11994 | |
| 11995 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11996 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11997 | _ACEOF |
| 11998 | |
| 11999 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12000 | echo "${ECHO_T}yes" >&6 |
| 12001 | else echo "$as_me:$LINENO: result: no" >&5 |
| 12002 | echo "${ECHO_T}no" >&6 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12003 | fi |
| 12004 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12005 | echo "$as_me:$LINENO: result: no" >&5 |
| 12006 | echo "${ECHO_T}no" >&6 |
| 12007 | fi; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 12008 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12009 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12010 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 12011 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12012 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12013 | echo "$as_me:$LINENO: checking for --with-sgi-dl" >&5 |
| 12014 | echo $ECHO_N "checking for --with-sgi-dl... $ECHO_C" >&6 |
| 12015 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12016 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12017 | if test "${with_sgi_dl+set}" = set; then |
| 12018 | withval="$with_sgi_dl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12019 | |
| 12020 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 12021 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 9ef3376 | 2002-12-02 22:23:56 +0000 | [diff] [blame] | 12022 | echo --with-sgi-dl is unsupported, see README |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 12023 | exit 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12024 | |
| 12025 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12026 | #define WITH_SGI_DL 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12027 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12028 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12029 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12030 | dldir=$withval |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 12031 | if test ! -z "$dldir" -a -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 12032 | then LDFLAGS="$LDFLAGS -L$dldir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12033 | else { { echo "$as_me:$LINENO: error: proper usage is --with-sgi-dl=DIRECTORY" >&5 |
| 12034 | echo "$as_me: error: proper usage is --with-sgi-dl=DIRECTORY" >&2;} |
| 12035 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12036 | fi |
| 12037 | DLINCLDIR=${dldir} |
| 12038 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12039 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12040 | echo "$as_me:$LINENO: result: no" >&5 |
| 12041 | echo "${ECHO_T}no" >&6 |
| 12042 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12043 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12044 | echo "$as_me:$LINENO: checking for --with-dl-dld" >&5 |
| 12045 | echo $ECHO_N "checking for --with-dl-dld... $ECHO_C" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12046 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12047 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12048 | if test "${with_dl_dld+set}" = set; then |
| 12049 | withval="$with_dl_dld" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12050 | |
| 12051 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 12052 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 9ef3376 | 2002-12-02 22:23:56 +0000 | [diff] [blame] | 12053 | echo --with-dl-dld is unsupported, see README |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 12054 | exit 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12055 | |
| 12056 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12057 | #define WITH_DL_DLD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12058 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12059 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12060 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12061 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 12062 | dlddir=`echo "$withval" | sed 's/.*,//'` |
Barry Warsaw | 7d1219d | 2000-10-05 18:45:53 +0000 | [diff] [blame] | 12063 | if test ! -z "$dldir" -a -d "$dldir" -a ! -z "$dlddir" -a -d "$dlddir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 12064 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 12065 | else { { echo "$as_me:$LINENO: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&5 |
| 12066 | echo "$as_me: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&2;} |
| 12067 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12068 | fi |
| 12069 | DLINCLDIR=${dldir} |
| 12070 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12071 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12072 | echo "$as_me:$LINENO: result: no" >&5 |
| 12073 | echo "${ECHO_T}no" >&6 |
| 12074 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12075 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12076 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 12077 | # platforms, such as AIX, have dlopen(), but don't want to use it. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12078 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12079 | for ac_func in dlopen |
| 12080 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12081 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12082 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12083 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12084 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12086 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12087 | cat >conftest.$ac_ext <<_ACEOF |
| 12088 | #line $LINENO "configure" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12089 | #include "confdefs.h" |
| 12090 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12091 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12092 | #include <assert.h> |
| 12093 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12094 | #ifdef __cplusplus |
| 12095 | extern "C" |
| 12096 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12097 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12098 | builtin and then its argument prototype would still apply. */ |
| 12099 | char $ac_func (); |
| 12100 | char (*f) (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12101 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12102 | #ifdef F77_DUMMY_MAIN |
| 12103 | # ifdef __cplusplus |
| 12104 | extern "C" |
| 12105 | # endif |
| 12106 | int F77_DUMMY_MAIN() { return 1; } |
| 12107 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12108 | int |
| 12109 | main () |
| 12110 | { |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12111 | /* The GNU C library defines this for functions which it implements |
| 12112 | to always fail with ENOSYS. Some functions are actually named |
| 12113 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12114 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12115 | choke me |
| 12116 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12117 | f = $ac_func; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12118 | #endif |
| 12119 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12120 | ; |
| 12121 | return 0; |
| 12122 | } |
| 12123 | _ACEOF |
| 12124 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12125 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12126 | (eval $ac_link) 2>&5 |
| 12127 | ac_status=$? |
| 12128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12129 | (exit $ac_status); } && |
| 12130 | { ac_try='test -s conftest$ac_exeext' |
| 12131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12132 | (eval $ac_try) 2>&5 |
| 12133 | ac_status=$? |
| 12134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12135 | (exit $ac_status); }; }; then |
| 12136 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12137 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12138 | echo "$as_me: failed program was:" >&5 |
| 12139 | cat conftest.$ac_ext >&5 |
| 12140 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12141 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12142 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12143 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12144 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12145 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12146 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12147 | cat >>confdefs.h <<_ACEOF |
| 12148 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12149 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12150 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12151 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12152 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12153 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12154 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12155 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 12156 | # loading of modules. |
| 12157 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12158 | echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 12159 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12160 | if test -z "$DYNLOADFILE" |
| 12161 | then |
| 12162 | case $ac_sys_system/$ac_sys_release in |
| 12163 | AIX*) DYNLOADFILE="dynload_aix.o";; |
| 12164 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 12165 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12166 | Darwin/*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 12167 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12168 | *) |
| 12169 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 12170 | # out any dynamic loading |
| 12171 | if test "$ac_cv_func_dlopen" = yes |
| 12172 | then DYNLOADFILE="dynload_shlib.o" |
| 12173 | else DYNLOADFILE="dynload_stub.o" |
| 12174 | fi |
| 12175 | ;; |
| 12176 | esac |
| 12177 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12178 | echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 12179 | echo "${ECHO_T}$DYNLOADFILE" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12180 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 12181 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12182 | |
| 12183 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12184 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12185 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 12186 | |
| 12187 | fi |
| 12188 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 12189 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 12190 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12191 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12192 | echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 12193 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 12194 | if test -z "$MACHDEP_OBJS" |
| 12195 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 12196 | MACHDEP_OBJS=$extra_machdep_objs |
| 12197 | else |
| 12198 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 12199 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12200 | echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 12201 | echo "${ECHO_T}MACHDEP_OBJS" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 12202 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12203 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12204 | |
| 12205 | |
| 12206 | |
| 12207 | |
| 12208 | |
| 12209 | |
| 12210 | |
| 12211 | |
| 12212 | |
| 12213 | |
| 12214 | |
| 12215 | |
| 12216 | |
| 12217 | |
| 12218 | |
| 12219 | |
| 12220 | |
| 12221 | |
| 12222 | |
| 12223 | |
| 12224 | |
| 12225 | |
| 12226 | |
| 12227 | |
| 12228 | |
| 12229 | |
| 12230 | |
| 12231 | |
| 12232 | |
| 12233 | |
| 12234 | |
| 12235 | |
| 12236 | |
| 12237 | |
| 12238 | |
| 12239 | |
| 12240 | |
| 12241 | |
| 12242 | |
| 12243 | |
| 12244 | |
| 12245 | |
| 12246 | |
| 12247 | |
| 12248 | |
| 12249 | |
| 12250 | |
| 12251 | |
| 12252 | |
| 12253 | |
| 12254 | |
| 12255 | |
| 12256 | |
| 12257 | |
| 12258 | |
| 12259 | |
| 12260 | |
| 12261 | |
| 12262 | |
| 12263 | |
| 12264 | |
| 12265 | |
| 12266 | |
| 12267 | |
| 12268 | |
| 12269 | |
| 12270 | |
| 12271 | |
| 12272 | |
| 12273 | |
| 12274 | |
| 12275 | |
| 12276 | |
Martin v. Löwis | 9c36c29 | 2002-12-21 18:34:06 +0000 | [diff] [blame] | 12277 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12278 | for ac_func in alarm chown clock confstr ctermid execv \ |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12279 | fchdir fork fsync fdatasync fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 12280 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
| 12281 | getpriority getpwent getwd \ |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12282 | kill killpg lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 12283 | mremap nice pathconf pause plock poll pthread_init \ |
Guido van Rossum | 162e38c | 2003-02-19 15:25:10 +0000 | [diff] [blame] | 12284 | putenv readlink realpath \ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12285 | select setegid seteuid setgid \ |
Martin v. Löwis | 4daacb1 | 2003-03-28 18:37:01 +0000 | [diff] [blame] | 12286 | setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12287 | sigaction siginterrupt sigrelse strftime strptime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 12288 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 12289 | truncate uname unsetenv utimes waitpid wcscoll _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12290 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12291 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12292 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12293 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12294 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12295 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12296 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12297 | cat >conftest.$ac_ext <<_ACEOF |
| 12298 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12299 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12300 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12301 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12302 | #include <assert.h> |
| 12303 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12304 | #ifdef __cplusplus |
| 12305 | extern "C" |
| 12306 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12307 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12308 | builtin and then its argument prototype would still apply. */ |
| 12309 | char $ac_func (); |
| 12310 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12311 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12312 | #ifdef F77_DUMMY_MAIN |
| 12313 | # ifdef __cplusplus |
| 12314 | extern "C" |
| 12315 | # endif |
| 12316 | int F77_DUMMY_MAIN() { return 1; } |
| 12317 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12318 | int |
| 12319 | main () |
| 12320 | { |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12321 | /* The GNU C library defines this for functions which it implements |
| 12322 | to always fail with ENOSYS. Some functions are actually named |
| 12323 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12324 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12325 | choke me |
| 12326 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12327 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12328 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12329 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12330 | ; |
| 12331 | return 0; |
| 12332 | } |
| 12333 | _ACEOF |
| 12334 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12335 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12336 | (eval $ac_link) 2>&5 |
| 12337 | ac_status=$? |
| 12338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12339 | (exit $ac_status); } && |
| 12340 | { ac_try='test -s conftest$ac_exeext' |
| 12341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12342 | (eval $ac_try) 2>&5 |
| 12343 | ac_status=$? |
| 12344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12345 | (exit $ac_status); }; }; then |
| 12346 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12347 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12348 | echo "$as_me: failed program was:" >&5 |
| 12349 | cat conftest.$ac_ext >&5 |
| 12350 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12351 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12352 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12353 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12354 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12355 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12356 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12357 | cat >>confdefs.h <<_ACEOF |
| 12358 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12359 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12360 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12361 | fi |
| 12362 | done |
| 12363 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12364 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12365 | # For some functions, having a definition is not sufficient, since |
| 12366 | # we want to take their address. |
| 12367 | echo "$as_me:$LINENO: checking for chroot" >&5 |
| 12368 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6 |
| 12369 | cat >conftest.$ac_ext <<_ACEOF |
| 12370 | #line $LINENO "configure" |
| 12371 | #include "confdefs.h" |
| 12372 | #include <unistd.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12373 | #ifdef F77_DUMMY_MAIN |
| 12374 | # ifdef __cplusplus |
| 12375 | extern "C" |
| 12376 | # endif |
| 12377 | int F77_DUMMY_MAIN() { return 1; } |
| 12378 | #endif |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12379 | int |
| 12380 | main () |
| 12381 | { |
| 12382 | void *x=chroot |
| 12383 | ; |
| 12384 | return 0; |
| 12385 | } |
| 12386 | _ACEOF |
| 12387 | rm -f conftest.$ac_objext |
| 12388 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12389 | (eval $ac_compile) 2>&5 |
| 12390 | ac_status=$? |
| 12391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12392 | (exit $ac_status); } && |
| 12393 | { ac_try='test -s conftest.$ac_objext' |
| 12394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12395 | (eval $ac_try) 2>&5 |
| 12396 | ac_status=$? |
| 12397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12398 | (exit $ac_status); }; }; then |
| 12399 | |
| 12400 | cat >>confdefs.h <<\_ACEOF |
| 12401 | #define HAVE_CHROOT 1 |
| 12402 | _ACEOF |
| 12403 | |
| 12404 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12405 | echo "${ECHO_T}yes" >&6 |
| 12406 | else |
| 12407 | echo "$as_me: failed program was:" >&5 |
| 12408 | cat conftest.$ac_ext >&5 |
| 12409 | echo "$as_me:$LINENO: result: no" >&5 |
| 12410 | echo "${ECHO_T}no" >&6 |
| 12411 | |
| 12412 | fi |
| 12413 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12414 | echo "$as_me:$LINENO: checking for link" >&5 |
| 12415 | echo $ECHO_N "checking for link... $ECHO_C" >&6 |
| 12416 | cat >conftest.$ac_ext <<_ACEOF |
| 12417 | #line $LINENO "configure" |
| 12418 | #include "confdefs.h" |
| 12419 | #include <unistd.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12420 | #ifdef F77_DUMMY_MAIN |
| 12421 | # ifdef __cplusplus |
| 12422 | extern "C" |
| 12423 | # endif |
| 12424 | int F77_DUMMY_MAIN() { return 1; } |
| 12425 | #endif |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12426 | int |
| 12427 | main () |
| 12428 | { |
| 12429 | void *x=link |
| 12430 | ; |
| 12431 | return 0; |
| 12432 | } |
| 12433 | _ACEOF |
| 12434 | rm -f conftest.$ac_objext |
| 12435 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12436 | (eval $ac_compile) 2>&5 |
| 12437 | ac_status=$? |
| 12438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12439 | (exit $ac_status); } && |
| 12440 | { ac_try='test -s conftest.$ac_objext' |
| 12441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12442 | (eval $ac_try) 2>&5 |
| 12443 | ac_status=$? |
| 12444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12445 | (exit $ac_status); }; }; then |
| 12446 | |
| 12447 | cat >>confdefs.h <<\_ACEOF |
| 12448 | #define HAVE_LINK 1 |
| 12449 | _ACEOF |
| 12450 | |
| 12451 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12452 | echo "${ECHO_T}yes" >&6 |
| 12453 | else |
| 12454 | echo "$as_me: failed program was:" >&5 |
| 12455 | cat conftest.$ac_ext >&5 |
| 12456 | echo "$as_me:$LINENO: result: no" >&5 |
| 12457 | echo "${ECHO_T}no" >&6 |
| 12458 | |
| 12459 | fi |
| 12460 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12461 | echo "$as_me:$LINENO: checking for symlink" >&5 |
| 12462 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6 |
| 12463 | cat >conftest.$ac_ext <<_ACEOF |
| 12464 | #line $LINENO "configure" |
| 12465 | #include "confdefs.h" |
| 12466 | #include <unistd.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12467 | #ifdef F77_DUMMY_MAIN |
| 12468 | # ifdef __cplusplus |
| 12469 | extern "C" |
| 12470 | # endif |
| 12471 | int F77_DUMMY_MAIN() { return 1; } |
| 12472 | #endif |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12473 | int |
| 12474 | main () |
| 12475 | { |
| 12476 | void *x=symlink |
| 12477 | ; |
| 12478 | return 0; |
| 12479 | } |
| 12480 | _ACEOF |
| 12481 | rm -f conftest.$ac_objext |
| 12482 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12483 | (eval $ac_compile) 2>&5 |
| 12484 | ac_status=$? |
| 12485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12486 | (exit $ac_status); } && |
| 12487 | { ac_try='test -s conftest.$ac_objext' |
| 12488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12489 | (eval $ac_try) 2>&5 |
| 12490 | ac_status=$? |
| 12491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12492 | (exit $ac_status); }; }; then |
| 12493 | |
| 12494 | cat >>confdefs.h <<\_ACEOF |
| 12495 | #define HAVE_SYMLINK 1 |
| 12496 | _ACEOF |
| 12497 | |
| 12498 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12499 | echo "${ECHO_T}yes" >&6 |
| 12500 | else |
| 12501 | echo "$as_me: failed program was:" >&5 |
| 12502 | cat conftest.$ac_ext >&5 |
| 12503 | echo "$as_me:$LINENO: result: no" >&5 |
| 12504 | echo "${ECHO_T}no" >&6 |
| 12505 | |
| 12506 | fi |
| 12507 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12508 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12509 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 12510 | # functions ctermid_r, setgroups in the library, but no prototype |
| 12511 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 12512 | # address to avoid compiler warnings and potential miscompilations |
| 12513 | # because of the missing prototypes. |
| 12514 | |
| 12515 | echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 12516 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6 |
| 12517 | cat >conftest.$ac_ext <<_ACEOF |
| 12518 | #line $LINENO "configure" |
| 12519 | #include "confdefs.h" |
| 12520 | |
| 12521 | #include "confdefs.h" |
| 12522 | #include <stdio.h> |
| 12523 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 12524 | #ifdef F77_DUMMY_MAIN |
| 12525 | # ifdef __cplusplus |
| 12526 | extern "C" |
| 12527 | # endif |
| 12528 | int F77_DUMMY_MAIN() { return 1; } |
| 12529 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12530 | int |
| 12531 | main () |
| 12532 | { |
| 12533 | void* p = ctermid_r |
| 12534 | ; |
| 12535 | return 0; |
| 12536 | } |
| 12537 | _ACEOF |
| 12538 | rm -f conftest.$ac_objext |
| 12539 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12540 | (eval $ac_compile) 2>&5 |
| 12541 | ac_status=$? |
| 12542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12543 | (exit $ac_status); } && |
| 12544 | { ac_try='test -s conftest.$ac_objext' |
| 12545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12546 | (eval $ac_try) 2>&5 |
| 12547 | ac_status=$? |
| 12548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12549 | (exit $ac_status); }; }; then |
| 12550 | |
| 12551 | cat >>confdefs.h <<\_ACEOF |
| 12552 | #define HAVE_CTERMID_R 1 |
| 12553 | _ACEOF |
| 12554 | |
| 12555 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12556 | echo "${ECHO_T}yes" >&6 |
| 12557 | else |
| 12558 | echo "$as_me: failed program was:" >&5 |
| 12559 | cat conftest.$ac_ext >&5 |
| 12560 | echo "$as_me:$LINENO: result: no" >&5 |
| 12561 | echo "${ECHO_T}no" >&6 |
| 12562 | |
| 12563 | fi |
| 12564 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12565 | |
Martin v. Löwis | f26d63b | 2003-03-30 17:23:49 +0000 | [diff] [blame] | 12566 | echo "$as_me:$LINENO: checking for flock" >&5 |
| 12567 | echo $ECHO_N "checking for flock... $ECHO_C" >&6 |
| 12568 | cat >conftest.$ac_ext <<_ACEOF |
| 12569 | #line $LINENO "configure" |
| 12570 | #include "confdefs.h" |
| 12571 | |
| 12572 | #include "confdefs.h" |
| 12573 | #include <sys/file.h> |
| 12574 | |
| 12575 | #ifdef F77_DUMMY_MAIN |
| 12576 | # ifdef __cplusplus |
| 12577 | extern "C" |
| 12578 | # endif |
| 12579 | int F77_DUMMY_MAIN() { return 1; } |
| 12580 | #endif |
| 12581 | int |
| 12582 | main () |
| 12583 | { |
| 12584 | void* p = flock |
| 12585 | ; |
| 12586 | return 0; |
| 12587 | } |
| 12588 | _ACEOF |
| 12589 | rm -f conftest.$ac_objext |
| 12590 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12591 | (eval $ac_compile) 2>&5 |
| 12592 | ac_status=$? |
| 12593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12594 | (exit $ac_status); } && |
| 12595 | { ac_try='test -s conftest.$ac_objext' |
| 12596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12597 | (eval $ac_try) 2>&5 |
| 12598 | ac_status=$? |
| 12599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12600 | (exit $ac_status); }; }; then |
| 12601 | |
| 12602 | cat >>confdefs.h <<\_ACEOF |
| 12603 | #define HAVE_FLOCK 1 |
| 12604 | _ACEOF |
| 12605 | |
| 12606 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12607 | echo "${ECHO_T}yes" >&6 |
| 12608 | else |
| 12609 | echo "$as_me: failed program was:" >&5 |
| 12610 | cat conftest.$ac_ext >&5 |
| 12611 | echo "$as_me:$LINENO: result: no" >&5 |
| 12612 | echo "${ECHO_T}no" >&6 |
| 12613 | |
| 12614 | fi |
| 12615 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12616 | |
| 12617 | echo "$as_me:$LINENO: checking for getpagesize" >&5 |
| 12618 | echo $ECHO_N "checking for getpagesize... $ECHO_C" >&6 |
| 12619 | cat >conftest.$ac_ext <<_ACEOF |
| 12620 | #line $LINENO "configure" |
| 12621 | #include "confdefs.h" |
| 12622 | |
| 12623 | #include "confdefs.h" |
| 12624 | #include <unistd.h> |
| 12625 | |
| 12626 | #ifdef F77_DUMMY_MAIN |
| 12627 | # ifdef __cplusplus |
| 12628 | extern "C" |
| 12629 | # endif |
| 12630 | int F77_DUMMY_MAIN() { return 1; } |
| 12631 | #endif |
| 12632 | int |
| 12633 | main () |
| 12634 | { |
| 12635 | void* p = getpagesize |
| 12636 | ; |
| 12637 | return 0; |
| 12638 | } |
| 12639 | _ACEOF |
| 12640 | rm -f conftest.$ac_objext |
| 12641 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12642 | (eval $ac_compile) 2>&5 |
| 12643 | ac_status=$? |
| 12644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12645 | (exit $ac_status); } && |
| 12646 | { ac_try='test -s conftest.$ac_objext' |
| 12647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12648 | (eval $ac_try) 2>&5 |
| 12649 | ac_status=$? |
| 12650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12651 | (exit $ac_status); }; }; then |
| 12652 | |
| 12653 | cat >>confdefs.h <<\_ACEOF |
| 12654 | #define HAVE_GETPAGESIZE 1 |
| 12655 | _ACEOF |
| 12656 | |
| 12657 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12658 | echo "${ECHO_T}yes" >&6 |
| 12659 | else |
| 12660 | echo "$as_me: failed program was:" >&5 |
| 12661 | cat conftest.$ac_ext >&5 |
| 12662 | echo "$as_me:$LINENO: result: no" >&5 |
| 12663 | echo "${ECHO_T}no" >&6 |
| 12664 | |
| 12665 | fi |
| 12666 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12667 | |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12668 | for ac_prog in true |
| 12669 | do |
| 12670 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 12671 | set dummy $ac_prog; ac_word=$2 |
| 12672 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 12673 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 12674 | if test "${ac_cv_prog_TRUE+set}" = set; then |
| 12675 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12676 | else |
| 12677 | if test -n "$TRUE"; then |
| 12678 | ac_cv_prog_TRUE="$TRUE" # Let the user override the test. |
| 12679 | else |
| 12680 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12681 | for as_dir in $PATH |
| 12682 | do |
| 12683 | IFS=$as_save_IFS |
| 12684 | test -z "$as_dir" && as_dir=. |
| 12685 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12686 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12687 | ac_cv_prog_TRUE="$ac_prog" |
| 12688 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12689 | break 2 |
| 12690 | fi |
| 12691 | done |
| 12692 | done |
| 12693 | |
| 12694 | fi |
| 12695 | fi |
| 12696 | TRUE=$ac_cv_prog_TRUE |
| 12697 | if test -n "$TRUE"; then |
| 12698 | echo "$as_me:$LINENO: result: $TRUE" >&5 |
| 12699 | echo "${ECHO_T}$TRUE" >&6 |
| 12700 | else |
| 12701 | echo "$as_me:$LINENO: result: no" >&5 |
| 12702 | echo "${ECHO_T}no" >&6 |
| 12703 | fi |
| 12704 | |
| 12705 | test -n "$TRUE" && break |
| 12706 | done |
| 12707 | test -n "$TRUE" || TRUE="/bin/true" |
| 12708 | |
| 12709 | |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12710 | echo "$as_me:$LINENO: checking for inet_aton in -lc" >&5 |
| 12711 | echo $ECHO_N "checking for inet_aton in -lc... $ECHO_C" >&6 |
| 12712 | if test "${ac_cv_lib_c_inet_aton+set}" = set; then |
| 12713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12714 | else |
| 12715 | ac_check_lib_save_LIBS=$LIBS |
| 12716 | LIBS="-lc $LIBS" |
| 12717 | cat >conftest.$ac_ext <<_ACEOF |
| 12718 | #line $LINENO "configure" |
| 12719 | #include "confdefs.h" |
| 12720 | |
| 12721 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12722 | #ifdef __cplusplus |
| 12723 | extern "C" |
| 12724 | #endif |
| 12725 | /* We use char because int might match the return type of a gcc2 |
| 12726 | builtin and then its argument prototype would still apply. */ |
| 12727 | char inet_aton (); |
| 12728 | #ifdef F77_DUMMY_MAIN |
| 12729 | # ifdef __cplusplus |
| 12730 | extern "C" |
| 12731 | # endif |
| 12732 | int F77_DUMMY_MAIN() { return 1; } |
| 12733 | #endif |
| 12734 | int |
| 12735 | main () |
| 12736 | { |
| 12737 | inet_aton (); |
| 12738 | ; |
| 12739 | return 0; |
| 12740 | } |
| 12741 | _ACEOF |
| 12742 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12743 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12744 | (eval $ac_link) 2>&5 |
| 12745 | ac_status=$? |
| 12746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12747 | (exit $ac_status); } && |
| 12748 | { ac_try='test -s conftest$ac_exeext' |
| 12749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12750 | (eval $ac_try) 2>&5 |
| 12751 | ac_status=$? |
| 12752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12753 | (exit $ac_status); }; }; then |
| 12754 | ac_cv_lib_c_inet_aton=yes |
| 12755 | else |
| 12756 | echo "$as_me: failed program was:" >&5 |
| 12757 | cat conftest.$ac_ext >&5 |
| 12758 | ac_cv_lib_c_inet_aton=no |
| 12759 | fi |
| 12760 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12761 | LIBS=$ac_check_lib_save_LIBS |
| 12762 | fi |
| 12763 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_aton" >&5 |
| 12764 | echo "${ECHO_T}$ac_cv_lib_c_inet_aton" >&6 |
| 12765 | if test $ac_cv_lib_c_inet_aton = yes; then |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 12766 | $ac_cv_prog_TRUE |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12767 | else |
| 12768 | |
| 12769 | echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
| 12770 | echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6 |
| 12771 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
| 12772 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12773 | else |
| 12774 | ac_check_lib_save_LIBS=$LIBS |
| 12775 | LIBS="-lresolv $LIBS" |
| 12776 | cat >conftest.$ac_ext <<_ACEOF |
| 12777 | #line $LINENO "configure" |
| 12778 | #include "confdefs.h" |
| 12779 | |
| 12780 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 12781 | #ifdef __cplusplus |
| 12782 | extern "C" |
| 12783 | #endif |
| 12784 | /* We use char because int might match the return type of a gcc2 |
| 12785 | builtin and then its argument prototype would still apply. */ |
| 12786 | char inet_aton (); |
| 12787 | #ifdef F77_DUMMY_MAIN |
| 12788 | # ifdef __cplusplus |
| 12789 | extern "C" |
| 12790 | # endif |
| 12791 | int F77_DUMMY_MAIN() { return 1; } |
| 12792 | #endif |
| 12793 | int |
| 12794 | main () |
| 12795 | { |
| 12796 | inet_aton (); |
| 12797 | ; |
| 12798 | return 0; |
| 12799 | } |
| 12800 | _ACEOF |
| 12801 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12802 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12803 | (eval $ac_link) 2>&5 |
| 12804 | ac_status=$? |
| 12805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12806 | (exit $ac_status); } && |
| 12807 | { ac_try='test -s conftest$ac_exeext' |
| 12808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12809 | (eval $ac_try) 2>&5 |
| 12810 | ac_status=$? |
| 12811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12812 | (exit $ac_status); }; }; then |
| 12813 | ac_cv_lib_resolv_inet_aton=yes |
| 12814 | else |
| 12815 | echo "$as_me: failed program was:" >&5 |
| 12816 | cat conftest.$ac_ext >&5 |
| 12817 | ac_cv_lib_resolv_inet_aton=no |
| 12818 | fi |
| 12819 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12820 | LIBS=$ac_check_lib_save_LIBS |
| 12821 | fi |
| 12822 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
| 12823 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6 |
| 12824 | if test $ac_cv_lib_resolv_inet_aton = yes; then |
| 12825 | cat >>confdefs.h <<_ACEOF |
| 12826 | #define HAVE_LIBRESOLV 1 |
| 12827 | _ACEOF |
| 12828 | |
| 12829 | LIBS="-lresolv $LIBS" |
| 12830 | |
| 12831 | fi |
| 12832 | |
| 12833 | |
| 12834 | fi |
| 12835 | |
| 12836 | |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12837 | echo "$as_me:$LINENO: checking for hstrerror" >&5 |
| 12838 | echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6 |
| 12839 | cat >conftest.$ac_ext <<_ACEOF |
| 12840 | #line $LINENO "configure" |
| 12841 | #include "confdefs.h" |
| 12842 | |
| 12843 | #include "confdefs.h" |
| 12844 | #include <netdb.h> |
| 12845 | |
| 12846 | #ifdef F77_DUMMY_MAIN |
| 12847 | # ifdef __cplusplus |
| 12848 | extern "C" |
| 12849 | # endif |
| 12850 | int F77_DUMMY_MAIN() { return 1; } |
| 12851 | #endif |
| 12852 | int |
| 12853 | main () |
| 12854 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12855 | void* p = hstrerror; hstrerror(0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12856 | ; |
| 12857 | return 0; |
| 12858 | } |
| 12859 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12860 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12861 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12862 | (eval $ac_link) 2>&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12863 | ac_status=$? |
| 12864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12865 | (exit $ac_status); } && |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12866 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12868 | (eval $ac_try) 2>&5 |
| 12869 | ac_status=$? |
| 12870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12871 | (exit $ac_status); }; }; then |
| 12872 | |
| 12873 | cat >>confdefs.h <<\_ACEOF |
| 12874 | #define HAVE_HSTRERROR 1 |
| 12875 | _ACEOF |
| 12876 | |
| 12877 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12878 | echo "${ECHO_T}yes" >&6 |
| 12879 | else |
| 12880 | echo "$as_me: failed program was:" >&5 |
| 12881 | cat conftest.$ac_ext >&5 |
| 12882 | echo "$as_me:$LINENO: result: no" >&5 |
| 12883 | echo "${ECHO_T}no" >&6 |
| 12884 | |
| 12885 | fi |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12886 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12887 | |
| 12888 | echo "$as_me:$LINENO: checking for inet_aton" >&5 |
| 12889 | echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6 |
| 12890 | cat >conftest.$ac_ext <<_ACEOF |
| 12891 | #line $LINENO "configure" |
| 12892 | #include "confdefs.h" |
| 12893 | |
| 12894 | #include "confdefs.h" |
| 12895 | #include <sys/socket.h> |
| 12896 | #include <netinet/in.h> |
| 12897 | #include <arpa/inet.h> |
| 12898 | |
| 12899 | #ifdef F77_DUMMY_MAIN |
| 12900 | # ifdef __cplusplus |
| 12901 | extern "C" |
| 12902 | # endif |
| 12903 | int F77_DUMMY_MAIN() { return 1; } |
| 12904 | #endif |
| 12905 | int |
| 12906 | main () |
| 12907 | { |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12908 | void* p = inet_aton;inet_aton(0,0) |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12909 | ; |
| 12910 | return 0; |
| 12911 | } |
| 12912 | _ACEOF |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12913 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12914 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12915 | (eval $ac_link) 2>&5 |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12916 | ac_status=$? |
| 12917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12918 | (exit $ac_status); } && |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12919 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12921 | (eval $ac_try) 2>&5 |
| 12922 | ac_status=$? |
| 12923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12924 | (exit $ac_status); }; }; then |
| 12925 | |
| 12926 | cat >>confdefs.h <<\_ACEOF |
| 12927 | #define HAVE_INET_ATON 1 |
| 12928 | _ACEOF |
| 12929 | |
| 12930 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12931 | echo "${ECHO_T}yes" >&6 |
| 12932 | else |
| 12933 | echo "$as_me: failed program was:" >&5 |
| 12934 | cat conftest.$ac_ext >&5 |
| 12935 | echo "$as_me:$LINENO: result: no" >&5 |
| 12936 | echo "${ECHO_T}no" >&6 |
| 12937 | |
| 12938 | fi |
Martin v. Löwis | 95c419b | 2003-05-03 12:10:48 +0000 | [diff] [blame] | 12939 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12940 | |
| 12941 | echo "$as_me:$LINENO: checking for inet_pton" >&5 |
| 12942 | echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6 |
| 12943 | cat >conftest.$ac_ext <<_ACEOF |
| 12944 | #line $LINENO "configure" |
| 12945 | #include "confdefs.h" |
| 12946 | |
| 12947 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 12948 | #include <sys/types.h> |
Martin v. Löwis | e941617 | 2003-05-03 10:12:45 +0000 | [diff] [blame] | 12949 | #include <sys/socket.h> |
| 12950 | #include <netinet/in.h> |
| 12951 | #include <arpa/inet.h> |
| 12952 | |
| 12953 | #ifdef F77_DUMMY_MAIN |
| 12954 | # ifdef __cplusplus |
| 12955 | extern "C" |
| 12956 | # endif |
| 12957 | int F77_DUMMY_MAIN() { return 1; } |
| 12958 | #endif |
| 12959 | int |
| 12960 | main () |
| 12961 | { |
| 12962 | void* p = inet_pton |
| 12963 | ; |
| 12964 | return 0; |
| 12965 | } |
| 12966 | _ACEOF |
| 12967 | rm -f conftest.$ac_objext |
| 12968 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12969 | (eval $ac_compile) 2>&5 |
| 12970 | ac_status=$? |
| 12971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12972 | (exit $ac_status); } && |
| 12973 | { ac_try='test -s conftest.$ac_objext' |
| 12974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12975 | (eval $ac_try) 2>&5 |
| 12976 | ac_status=$? |
| 12977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12978 | (exit $ac_status); }; }; then |
| 12979 | |
| 12980 | cat >>confdefs.h <<\_ACEOF |
| 12981 | #define HAVE_INET_PTON 1 |
| 12982 | _ACEOF |
| 12983 | |
| 12984 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12985 | echo "${ECHO_T}yes" >&6 |
| 12986 | else |
| 12987 | echo "$as_me: failed program was:" >&5 |
| 12988 | cat conftest.$ac_ext >&5 |
| 12989 | echo "$as_me:$LINENO: result: no" >&5 |
| 12990 | echo "${ECHO_T}no" >&6 |
| 12991 | |
| 12992 | fi |
| 12993 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12994 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12995 | echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 12996 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6 |
| 12997 | cat >conftest.$ac_ext <<_ACEOF |
| 12998 | #line $LINENO "configure" |
| 12999 | #include "confdefs.h" |
| 13000 | |
| 13001 | #include "confdefs.h" |
Martin v. Löwis | f2e488d | 2003-05-05 22:00:11 +0000 | [diff] [blame] | 13002 | #include <unistd.h> |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13003 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13004 | #ifdef F77_DUMMY_MAIN |
| 13005 | # ifdef __cplusplus |
| 13006 | extern "C" |
| 13007 | # endif |
| 13008 | int F77_DUMMY_MAIN() { return 1; } |
| 13009 | #endif |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 13010 | int |
| 13011 | main () |
| 13012 | { |
| 13013 | void* p = setgroups |
| 13014 | ; |
| 13015 | return 0; |
| 13016 | } |
| 13017 | _ACEOF |
| 13018 | rm -f conftest.$ac_objext |
| 13019 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13020 | (eval $ac_compile) 2>&5 |
| 13021 | ac_status=$? |
| 13022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13023 | (exit $ac_status); } && |
| 13024 | { ac_try='test -s conftest.$ac_objext' |
| 13025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13026 | (eval $ac_try) 2>&5 |
| 13027 | ac_status=$? |
| 13028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13029 | (exit $ac_status); }; }; then |
| 13030 | |
| 13031 | cat >>confdefs.h <<\_ACEOF |
| 13032 | #define HAVE_SETGROUPS 1 |
| 13033 | _ACEOF |
| 13034 | |
| 13035 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13036 | echo "${ECHO_T}yes" >&6 |
| 13037 | else |
| 13038 | echo "$as_me: failed program was:" >&5 |
| 13039 | cat conftest.$ac_ext >&5 |
| 13040 | echo "$as_me:$LINENO: result: no" >&5 |
| 13041 | echo "${ECHO_T}no" >&6 |
| 13042 | |
| 13043 | fi |
| 13044 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13045 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13046 | # check for openpty and forkpty |
| 13047 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13048 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13049 | for ac_func in openpty |
| 13050 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13051 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13052 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13053 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13054 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13056 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13057 | cat >conftest.$ac_ext <<_ACEOF |
| 13058 | #line $LINENO "configure" |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13059 | #include "confdefs.h" |
| 13060 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13061 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13062 | #include <assert.h> |
| 13063 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13064 | #ifdef __cplusplus |
| 13065 | extern "C" |
| 13066 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13067 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13068 | builtin and then its argument prototype would still apply. */ |
| 13069 | char $ac_func (); |
| 13070 | char (*f) (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13071 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13072 | #ifdef F77_DUMMY_MAIN |
| 13073 | # ifdef __cplusplus |
| 13074 | extern "C" |
| 13075 | # endif |
| 13076 | int F77_DUMMY_MAIN() { return 1; } |
| 13077 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13078 | int |
| 13079 | main () |
| 13080 | { |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13081 | /* The GNU C library defines this for functions which it implements |
| 13082 | to always fail with ENOSYS. Some functions are actually named |
| 13083 | something starting with __ and the normal name is an alias. */ |
| 13084 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13085 | choke me |
| 13086 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13087 | f = $ac_func; |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13088 | #endif |
| 13089 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13090 | ; |
| 13091 | return 0; |
| 13092 | } |
| 13093 | _ACEOF |
| 13094 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13095 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13096 | (eval $ac_link) 2>&5 |
| 13097 | ac_status=$? |
| 13098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13099 | (exit $ac_status); } && |
| 13100 | { ac_try='test -s conftest$ac_exeext' |
| 13101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13102 | (eval $ac_try) 2>&5 |
| 13103 | ac_status=$? |
| 13104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13105 | (exit $ac_status); }; }; then |
| 13106 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13107 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13108 | echo "$as_me: failed program was:" >&5 |
| 13109 | cat conftest.$ac_ext >&5 |
| 13110 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13111 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13112 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13113 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13114 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13115 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13116 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13117 | cat >>confdefs.h <<_ACEOF |
| 13118 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13119 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13120 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 13121 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13122 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 13123 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
| 13124 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 13125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13126 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13127 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13128 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13129 | cat >conftest.$ac_ext <<_ACEOF |
| 13130 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13131 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13132 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13133 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13134 | #ifdef __cplusplus |
| 13135 | extern "C" |
| 13136 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13137 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13138 | builtin and then its argument prototype would still apply. */ |
| 13139 | char openpty (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13140 | #ifdef F77_DUMMY_MAIN |
| 13141 | # ifdef __cplusplus |
| 13142 | extern "C" |
| 13143 | # endif |
| 13144 | int F77_DUMMY_MAIN() { return 1; } |
| 13145 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13146 | int |
| 13147 | main () |
| 13148 | { |
| 13149 | openpty (); |
| 13150 | ; |
| 13151 | return 0; |
| 13152 | } |
| 13153 | _ACEOF |
| 13154 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13155 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13156 | (eval $ac_link) 2>&5 |
| 13157 | ac_status=$? |
| 13158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13159 | (exit $ac_status); } && |
| 13160 | { ac_try='test -s conftest$ac_exeext' |
| 13161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13162 | (eval $ac_try) 2>&5 |
| 13163 | ac_status=$? |
| 13164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13165 | (exit $ac_status); }; }; then |
| 13166 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13167 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13168 | echo "$as_me: failed program was:" >&5 |
| 13169 | cat conftest.$ac_ext >&5 |
| 13170 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13171 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13172 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 13173 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13174 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13175 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 13176 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
| 13177 | if test $ac_cv_lib_util_openpty = yes; then |
| 13178 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13179 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13180 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13181 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13182 | fi |
| 13183 | |
| 13184 | fi |
| 13185 | done |
| 13186 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13187 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13188 | for ac_func in forkpty |
| 13189 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13190 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13191 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13192 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13193 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13195 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13196 | cat >conftest.$ac_ext <<_ACEOF |
| 13197 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13198 | #include "confdefs.h" |
| 13199 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13200 | which can conflict with char $ac_func (); below. */ |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13201 | #include <assert.h> |
| 13202 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13203 | #ifdef __cplusplus |
| 13204 | extern "C" |
| 13205 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13206 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13207 | builtin and then its argument prototype would still apply. */ |
| 13208 | char $ac_func (); |
| 13209 | char (*f) (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13210 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13211 | #ifdef F77_DUMMY_MAIN |
| 13212 | # ifdef __cplusplus |
| 13213 | extern "C" |
| 13214 | # endif |
| 13215 | int F77_DUMMY_MAIN() { return 1; } |
| 13216 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13217 | int |
| 13218 | main () |
| 13219 | { |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13220 | /* The GNU C library defines this for functions which it implements |
| 13221 | to always fail with ENOSYS. Some functions are actually named |
| 13222 | something starting with __ and the normal name is an alias. */ |
| 13223 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13224 | choke me |
| 13225 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13226 | f = $ac_func; |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13227 | #endif |
| 13228 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13229 | ; |
| 13230 | return 0; |
| 13231 | } |
| 13232 | _ACEOF |
| 13233 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13234 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13235 | (eval $ac_link) 2>&5 |
| 13236 | ac_status=$? |
| 13237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13238 | (exit $ac_status); } && |
| 13239 | { ac_try='test -s conftest$ac_exeext' |
| 13240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13241 | (eval $ac_try) 2>&5 |
| 13242 | ac_status=$? |
| 13243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13244 | (exit $ac_status); }; }; then |
| 13245 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13246 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13247 | echo "$as_me: failed program was:" >&5 |
| 13248 | cat conftest.$ac_ext >&5 |
| 13249 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13250 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13251 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13252 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13253 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13254 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13255 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13256 | cat >>confdefs.h <<_ACEOF |
| 13257 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13258 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13259 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13260 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13261 | echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 13262 | echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6 |
| 13263 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 13264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13265 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13266 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13267 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13268 | cat >conftest.$ac_ext <<_ACEOF |
| 13269 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13270 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13271 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13272 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13273 | #ifdef __cplusplus |
| 13274 | extern "C" |
| 13275 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13276 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13277 | builtin and then its argument prototype would still apply. */ |
| 13278 | char forkpty (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13279 | #ifdef F77_DUMMY_MAIN |
| 13280 | # ifdef __cplusplus |
| 13281 | extern "C" |
| 13282 | # endif |
| 13283 | int F77_DUMMY_MAIN() { return 1; } |
| 13284 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13285 | int |
| 13286 | main () |
| 13287 | { |
| 13288 | forkpty (); |
| 13289 | ; |
| 13290 | return 0; |
| 13291 | } |
| 13292 | _ACEOF |
| 13293 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13294 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13295 | (eval $ac_link) 2>&5 |
| 13296 | ac_status=$? |
| 13297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13298 | (exit $ac_status); } && |
| 13299 | { ac_try='test -s conftest$ac_exeext' |
| 13300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13301 | (eval $ac_try) 2>&5 |
| 13302 | ac_status=$? |
| 13303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13304 | (exit $ac_status); }; }; then |
| 13305 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13306 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13307 | echo "$as_me: failed program was:" >&5 |
| 13308 | cat conftest.$ac_ext >&5 |
| 13309 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13310 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13311 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 13312 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13313 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13314 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 13315 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6 |
| 13316 | if test $ac_cv_lib_util_forkpty = yes; then |
| 13317 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13318 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13319 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13320 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13321 | fi |
| 13322 | |
| 13323 | fi |
| 13324 | done |
| 13325 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13326 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13327 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13328 | |
| 13329 | |
| 13330 | |
| 13331 | |
| 13332 | |
| 13333 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 13334 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 13335 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13336 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13337 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13338 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13339 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13341 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13342 | cat >conftest.$ac_ext <<_ACEOF |
| 13343 | #line $LINENO "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13344 | #include "confdefs.h" |
| 13345 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13346 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13347 | #include <assert.h> |
| 13348 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13349 | #ifdef __cplusplus |
| 13350 | extern "C" |
| 13351 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13352 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13353 | builtin and then its argument prototype would still apply. */ |
| 13354 | char $ac_func (); |
| 13355 | char (*f) (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13356 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13357 | #ifdef F77_DUMMY_MAIN |
| 13358 | # ifdef __cplusplus |
| 13359 | extern "C" |
| 13360 | # endif |
| 13361 | int F77_DUMMY_MAIN() { return 1; } |
| 13362 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13363 | int |
| 13364 | main () |
| 13365 | { |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13366 | /* The GNU C library defines this for functions which it implements |
| 13367 | to always fail with ENOSYS. Some functions are actually named |
| 13368 | something starting with __ and the normal name is an alias. */ |
| 13369 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13370 | choke me |
| 13371 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13372 | f = $ac_func; |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 13373 | #endif |
| 13374 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13375 | ; |
| 13376 | return 0; |
| 13377 | } |
| 13378 | _ACEOF |
| 13379 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13380 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13381 | (eval $ac_link) 2>&5 |
| 13382 | ac_status=$? |
| 13383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13384 | (exit $ac_status); } && |
| 13385 | { ac_try='test -s conftest$ac_exeext' |
| 13386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13387 | (eval $ac_try) 2>&5 |
| 13388 | ac_status=$? |
| 13389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13390 | (exit $ac_status); }; }; then |
| 13391 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13392 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13393 | echo "$as_me: failed program was:" >&5 |
| 13394 | cat conftest.$ac_ext >&5 |
| 13395 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13396 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13397 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13398 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13399 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13400 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13401 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13402 | cat >>confdefs.h <<_ACEOF |
| 13403 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13404 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13405 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13406 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13407 | done |
| 13408 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13409 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13410 | |
| 13411 | |
| 13412 | |
| 13413 | |
| 13414 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13415 | for ac_func in dup2 getcwd strdup strerror memmove |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13416 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13417 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13418 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13419 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13420 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13422 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13423 | cat >conftest.$ac_ext <<_ACEOF |
| 13424 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13425 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13426 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13427 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13428 | #include <assert.h> |
| 13429 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13430 | #ifdef __cplusplus |
| 13431 | extern "C" |
| 13432 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13433 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13434 | builtin and then its argument prototype would still apply. */ |
| 13435 | char $ac_func (); |
| 13436 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13437 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13438 | #ifdef F77_DUMMY_MAIN |
| 13439 | # ifdef __cplusplus |
| 13440 | extern "C" |
| 13441 | # endif |
| 13442 | int F77_DUMMY_MAIN() { return 1; } |
| 13443 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13444 | int |
| 13445 | main () |
| 13446 | { |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13447 | /* The GNU C library defines this for functions which it implements |
| 13448 | to always fail with ENOSYS. Some functions are actually named |
| 13449 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13450 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13451 | choke me |
| 13452 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13453 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13454 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13455 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13456 | ; |
| 13457 | return 0; |
| 13458 | } |
| 13459 | _ACEOF |
| 13460 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13461 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13462 | (eval $ac_link) 2>&5 |
| 13463 | ac_status=$? |
| 13464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13465 | (exit $ac_status); } && |
| 13466 | { ac_try='test -s conftest$ac_exeext' |
| 13467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13468 | (eval $ac_try) 2>&5 |
| 13469 | ac_status=$? |
| 13470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13471 | (exit $ac_status); }; }; then |
| 13472 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13473 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13474 | echo "$as_me: failed program was:" >&5 |
| 13475 | cat conftest.$ac_ext >&5 |
| 13476 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13477 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13478 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13479 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13480 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13481 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13482 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13483 | cat >>confdefs.h <<_ACEOF |
| 13484 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13485 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13486 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13487 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13488 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13489 | fi |
| 13490 | done |
| 13491 | |
| 13492 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13493 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13494 | for ac_func in getpgrp |
| 13495 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13496 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13497 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13498 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13499 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13501 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13502 | cat >conftest.$ac_ext <<_ACEOF |
| 13503 | #line $LINENO "configure" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13504 | #include "confdefs.h" |
| 13505 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13506 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13507 | #include <assert.h> |
| 13508 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13509 | #ifdef __cplusplus |
| 13510 | extern "C" |
| 13511 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13512 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13513 | builtin and then its argument prototype would still apply. */ |
| 13514 | char $ac_func (); |
| 13515 | char (*f) (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13516 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13517 | #ifdef F77_DUMMY_MAIN |
| 13518 | # ifdef __cplusplus |
| 13519 | extern "C" |
| 13520 | # endif |
| 13521 | int F77_DUMMY_MAIN() { return 1; } |
| 13522 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13523 | int |
| 13524 | main () |
| 13525 | { |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13526 | /* The GNU C library defines this for functions which it implements |
| 13527 | to always fail with ENOSYS. Some functions are actually named |
| 13528 | something starting with __ and the normal name is an alias. */ |
| 13529 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13530 | choke me |
| 13531 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13532 | f = $ac_func; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 13533 | #endif |
| 13534 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13535 | ; |
| 13536 | return 0; |
| 13537 | } |
| 13538 | _ACEOF |
| 13539 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13540 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13541 | (eval $ac_link) 2>&5 |
| 13542 | ac_status=$? |
| 13543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13544 | (exit $ac_status); } && |
| 13545 | { ac_try='test -s conftest$ac_exeext' |
| 13546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13547 | (eval $ac_try) 2>&5 |
| 13548 | ac_status=$? |
| 13549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13550 | (exit $ac_status); }; }; then |
| 13551 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13552 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13553 | echo "$as_me: failed program was:" >&5 |
| 13554 | cat conftest.$ac_ext >&5 |
| 13555 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13556 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13557 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13558 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13559 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13560 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13561 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13562 | cat >>confdefs.h <<_ACEOF |
| 13563 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13564 | _ACEOF |
| 13565 | cat >conftest.$ac_ext <<_ACEOF |
| 13566 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13567 | #include "confdefs.h" |
| 13568 | #include <unistd.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13569 | #ifdef F77_DUMMY_MAIN |
| 13570 | # ifdef __cplusplus |
| 13571 | extern "C" |
| 13572 | # endif |
| 13573 | int F77_DUMMY_MAIN() { return 1; } |
| 13574 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13575 | int |
| 13576 | main () |
| 13577 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13578 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13579 | ; |
| 13580 | return 0; |
| 13581 | } |
| 13582 | _ACEOF |
| 13583 | rm -f conftest.$ac_objext |
| 13584 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13585 | (eval $ac_compile) 2>&5 |
| 13586 | ac_status=$? |
| 13587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13588 | (exit $ac_status); } && |
| 13589 | { ac_try='test -s conftest.$ac_objext' |
| 13590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13591 | (eval $ac_try) 2>&5 |
| 13592 | ac_status=$? |
| 13593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13594 | (exit $ac_status); }; }; then |
| 13595 | |
| 13596 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13597 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13598 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13599 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13600 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13601 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13602 | echo "$as_me: failed program was:" >&5 |
| 13603 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13604 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13605 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13606 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13607 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13608 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13609 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13610 | |
| 13611 | for ac_func in setpgrp |
| 13612 | do |
| 13613 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13614 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13615 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13616 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13618 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13619 | cat >conftest.$ac_ext <<_ACEOF |
| 13620 | #line $LINENO "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 13621 | #include "confdefs.h" |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13622 | /* System header to define __stub macros and hopefully few prototypes, |
| 13623 | which can conflict with char $ac_func (); below. */ |
| 13624 | #include <assert.h> |
| 13625 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 13626 | #ifdef __cplusplus |
| 13627 | extern "C" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13628 | #endif |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13629 | /* We use char because int might match the return type of a gcc2 |
| 13630 | builtin and then its argument prototype would still apply. */ |
| 13631 | char $ac_func (); |
| 13632 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13633 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13634 | #ifdef F77_DUMMY_MAIN |
| 13635 | # ifdef __cplusplus |
| 13636 | extern "C" |
| 13637 | # endif |
| 13638 | int F77_DUMMY_MAIN() { return 1; } |
| 13639 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13640 | int |
| 13641 | main () |
| 13642 | { |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13643 | /* The GNU C library defines this for functions which it implements |
| 13644 | to always fail with ENOSYS. Some functions are actually named |
| 13645 | something starting with __ and the normal name is an alias. */ |
| 13646 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13647 | choke me |
| 13648 | #else |
| 13649 | f = $ac_func; |
| 13650 | #endif |
| 13651 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13652 | ; |
| 13653 | return 0; |
| 13654 | } |
| 13655 | _ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13656 | rm -f conftest.$ac_objext conftest$ac_exeext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13657 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13658 | (eval $ac_link) 2>&5 |
| 13659 | ac_status=$? |
| 13660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13661 | (exit $ac_status); } && |
| 13662 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13664 | (eval $ac_try) 2>&5 |
| 13665 | ac_status=$? |
| 13666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13667 | (exit $ac_status); }; }; then |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13668 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13669 | else |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13670 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13671 | cat conftest.$ac_ext >&5 |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13672 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13673 | fi |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13674 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13675 | fi |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13676 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13677 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13678 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13679 | cat >>confdefs.h <<_ACEOF |
| 13680 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13681 | _ACEOF |
| 13682 | cat >conftest.$ac_ext <<_ACEOF |
| 13683 | #line $LINENO "configure" |
| 13684 | #include "confdefs.h" |
| 13685 | #include <unistd.h> |
| 13686 | #ifdef F77_DUMMY_MAIN |
| 13687 | # ifdef __cplusplus |
| 13688 | extern "C" |
| 13689 | # endif |
| 13690 | int F77_DUMMY_MAIN() { return 1; } |
| 13691 | #endif |
| 13692 | int |
| 13693 | main () |
| 13694 | { |
| 13695 | setpgrp(0,0); |
| 13696 | ; |
| 13697 | return 0; |
| 13698 | } |
| 13699 | _ACEOF |
| 13700 | rm -f conftest.$ac_objext |
| 13701 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13702 | (eval $ac_compile) 2>&5 |
| 13703 | ac_status=$? |
| 13704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13705 | (exit $ac_status); } && |
| 13706 | { ac_try='test -s conftest.$ac_objext' |
| 13707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13708 | (eval $ac_try) 2>&5 |
| 13709 | ac_status=$? |
| 13710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13711 | (exit $ac_status); }; }; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13712 | |
| 13713 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13714 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13715 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 13716 | |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13717 | |
| 13718 | else |
| 13719 | echo "$as_me: failed program was:" >&5 |
| 13720 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 13721 | fi |
Jack Jansen | 150753c | 2003-03-29 22:07:47 +0000 | [diff] [blame] | 13722 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13723 | |
| 13724 | fi |
| 13725 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 13726 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13727 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13728 | for ac_func in gettimeofday |
| 13729 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13730 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13731 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13732 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13733 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13735 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13736 | cat >conftest.$ac_ext <<_ACEOF |
| 13737 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13738 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13739 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13740 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13741 | #include <assert.h> |
| 13742 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13743 | #ifdef __cplusplus |
| 13744 | extern "C" |
| 13745 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13746 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13747 | builtin and then its argument prototype would still apply. */ |
| 13748 | char $ac_func (); |
| 13749 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13750 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13751 | #ifdef F77_DUMMY_MAIN |
| 13752 | # ifdef __cplusplus |
| 13753 | extern "C" |
| 13754 | # endif |
| 13755 | int F77_DUMMY_MAIN() { return 1; } |
| 13756 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13757 | int |
| 13758 | main () |
| 13759 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13760 | /* The GNU C library defines this for functions which it implements |
| 13761 | to always fail with ENOSYS. Some functions are actually named |
| 13762 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13763 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13764 | choke me |
| 13765 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13766 | f = $ac_func; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13767 | #endif |
| 13768 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13769 | ; |
| 13770 | return 0; |
| 13771 | } |
| 13772 | _ACEOF |
| 13773 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13774 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13775 | (eval $ac_link) 2>&5 |
| 13776 | ac_status=$? |
| 13777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13778 | (exit $ac_status); } && |
| 13779 | { ac_try='test -s conftest$ac_exeext' |
| 13780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13781 | (eval $ac_try) 2>&5 |
| 13782 | ac_status=$? |
| 13783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13784 | (exit $ac_status); }; }; then |
| 13785 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13786 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13787 | echo "$as_me: failed program was:" >&5 |
| 13788 | cat conftest.$ac_ext >&5 |
| 13789 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13790 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13791 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13792 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13793 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13794 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13795 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13796 | cat >>confdefs.h <<_ACEOF |
| 13797 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13798 | _ACEOF |
| 13799 | cat >conftest.$ac_ext <<_ACEOF |
| 13800 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13801 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13802 | #include <sys/time.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13803 | #ifdef F77_DUMMY_MAIN |
| 13804 | # ifdef __cplusplus |
| 13805 | extern "C" |
| 13806 | # endif |
| 13807 | int F77_DUMMY_MAIN() { return 1; } |
| 13808 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13809 | int |
| 13810 | main () |
| 13811 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13812 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13813 | ; |
| 13814 | return 0; |
| 13815 | } |
| 13816 | _ACEOF |
| 13817 | rm -f conftest.$ac_objext |
| 13818 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13819 | (eval $ac_compile) 2>&5 |
| 13820 | ac_status=$? |
| 13821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13822 | (exit $ac_status); } && |
| 13823 | { ac_try='test -s conftest.$ac_objext' |
| 13824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13825 | (eval $ac_try) 2>&5 |
| 13826 | ac_status=$? |
| 13827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13828 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13829 | : |
| 13830 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13831 | echo "$as_me: failed program was:" >&5 |
| 13832 | cat conftest.$ac_ext >&5 |
| 13833 | |
| 13834 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13835 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13836 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13837 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13838 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13839 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13840 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13841 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13842 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13843 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13844 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13845 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13846 | echo "$as_me:$LINENO: checking for major" >&5 |
| 13847 | echo $ECHO_N "checking for major... $ECHO_C" >&6 |
| 13848 | cat >conftest.$ac_ext <<_ACEOF |
| 13849 | #line $LINENO "configure" |
| 13850 | #include "confdefs.h" |
| 13851 | |
Neal Norwitz | 6eb37f0 | 2003-02-23 23:28:15 +0000 | [diff] [blame] | 13852 | #if defined(MAJOR_IN_MKDEV) |
| 13853 | #include <sys/mkdev.h> |
| 13854 | #elif defined(MAJOR_IN_SYSMACROS) |
| 13855 | #include <sys/sysmacros.h> |
| 13856 | #else |
| 13857 | #include <sys/types.h> |
| 13858 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13859 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13860 | #ifdef F77_DUMMY_MAIN |
| 13861 | # ifdef __cplusplus |
| 13862 | extern "C" |
| 13863 | # endif |
| 13864 | int F77_DUMMY_MAIN() { return 1; } |
| 13865 | #endif |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13866 | int |
| 13867 | main () |
| 13868 | { |
| 13869 | |
| 13870 | makedev(major(0),minor(0)); |
| 13871 | |
| 13872 | ; |
| 13873 | return 0; |
| 13874 | } |
| 13875 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 13876 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13877 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13878 | (eval $ac_link) 2>&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13879 | ac_status=$? |
| 13880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13881 | (exit $ac_status); } && |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 13882 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13884 | (eval $ac_try) 2>&5 |
| 13885 | ac_status=$? |
| 13886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13887 | (exit $ac_status); }; }; then |
| 13888 | |
| 13889 | |
| 13890 | cat >>confdefs.h <<\_ACEOF |
| 13891 | #define HAVE_DEVICE_MACROS 1 |
| 13892 | _ACEOF |
| 13893 | |
| 13894 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13895 | echo "${ECHO_T}yes" >&6 |
| 13896 | |
| 13897 | else |
| 13898 | echo "$as_me: failed program was:" >&5 |
| 13899 | cat conftest.$ac_ext >&5 |
| 13900 | |
| 13901 | echo "$as_me:$LINENO: result: no" >&5 |
| 13902 | echo "${ECHO_T}no" >&6 |
| 13903 | |
| 13904 | fi |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 13905 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13906 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13907 | # On OSF/1 V5.1, getaddrinfo is available, but a define |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13908 | # for [no]getaddrinfo in netdb.h. |
| 13909 | echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 13910 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 |
| 13911 | cat >conftest.$ac_ext <<_ACEOF |
| 13912 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13913 | #include "confdefs.h" |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13914 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 13915 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13916 | #include <sys/socket.h> |
| 13917 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 13918 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13919 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 13920 | #ifdef F77_DUMMY_MAIN |
| 13921 | # ifdef __cplusplus |
| 13922 | extern "C" |
| 13923 | # endif |
| 13924 | int F77_DUMMY_MAIN() { return 1; } |
| 13925 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13926 | int |
| 13927 | main () |
| 13928 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13929 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13930 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13931 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13932 | ; |
| 13933 | return 0; |
| 13934 | } |
| 13935 | _ACEOF |
| 13936 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13937 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13938 | (eval $ac_link) 2>&5 |
| 13939 | ac_status=$? |
| 13940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13941 | (exit $ac_status); } && |
| 13942 | { ac_try='test -s conftest$ac_exeext' |
| 13943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13944 | (eval $ac_try) 2>&5 |
| 13945 | ac_status=$? |
| 13946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13947 | (exit $ac_status); }; }; then |
| 13948 | |
| 13949 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13950 | echo "${ECHO_T}yes" >&6 |
| 13951 | echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 13952 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13953 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13954 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 13955 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13956 | buggygetaddrinfo=yes |
| 13957 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13958 | cat >conftest.$ac_ext <<_ACEOF |
| 13959 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13960 | #include "confdefs.h" |
| 13961 | |
| 13962 | #include <sys/types.h> |
| 13963 | #include <netdb.h> |
| 13964 | #include <string.h> |
| 13965 | #include <sys/socket.h> |
| 13966 | #include <netinet/in.h> |
| 13967 | |
| 13968 | main() |
| 13969 | { |
| 13970 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 13971 | struct addrinfo hints, *ai, *aitop; |
| 13972 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 13973 | |
| 13974 | for (passive = 0; passive <= 1; passive++) { |
| 13975 | memset(&hints, 0, sizeof(hints)); |
| 13976 | hints.ai_family = AF_UNSPEC; |
| 13977 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 13978 | hints.ai_socktype = SOCK_STREAM; |
| 13979 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 13980 | (void)gai_strerror(gaierr); |
| 13981 | goto bad; |
| 13982 | } |
| 13983 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 13984 | if (ai->ai_addr == NULL || |
| 13985 | ai->ai_addrlen == 0 || |
| 13986 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 13987 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 13988 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 13989 | goto bad; |
| 13990 | } |
| 13991 | switch (ai->ai_family) { |
| 13992 | case AF_INET: |
| 13993 | if (strcmp(strport, "54321") != 0) { |
| 13994 | goto bad; |
| 13995 | } |
| 13996 | if (passive) { |
| 13997 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 13998 | goto bad; |
| 13999 | } |
| 14000 | } else { |
| 14001 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 14002 | goto bad; |
| 14003 | } |
| 14004 | } |
| 14005 | inet4++; |
| 14006 | break; |
| 14007 | case AF_INET6: |
| 14008 | if (strcmp(strport, "54321") != 0) { |
| 14009 | goto bad; |
| 14010 | } |
| 14011 | if (passive) { |
| 14012 | if (strcmp(straddr, "::") != 0) { |
| 14013 | goto bad; |
| 14014 | } |
| 14015 | } else { |
| 14016 | if (strcmp(straddr, "::1") != 0) { |
| 14017 | goto bad; |
| 14018 | } |
| 14019 | } |
| 14020 | inet6++; |
| 14021 | break; |
| 14022 | case AF_UNSPEC: |
| 14023 | goto bad; |
| 14024 | break; |
| 14025 | default: |
| 14026 | /* another family support? */ |
| 14027 | break; |
| 14028 | } |
| 14029 | } |
| 14030 | } |
| 14031 | |
| 14032 | if (!(inet4 == 0 || inet4 == 2)) |
| 14033 | goto bad; |
| 14034 | if (!(inet6 == 0 || inet6 == 2)) |
| 14035 | goto bad; |
| 14036 | |
| 14037 | if (aitop) |
| 14038 | freeaddrinfo(aitop); |
| 14039 | exit(0); |
| 14040 | |
| 14041 | bad: |
| 14042 | if (aitop) |
| 14043 | freeaddrinfo(aitop); |
| 14044 | exit(1); |
| 14045 | } |
| 14046 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14047 | _ACEOF |
| 14048 | rm -f conftest$ac_exeext |
| 14049 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14050 | (eval $ac_link) 2>&5 |
| 14051 | ac_status=$? |
| 14052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14053 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 14054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14055 | (eval $ac_try) 2>&5 |
| 14056 | ac_status=$? |
| 14057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14058 | (exit $ac_status); }; }; then |
| 14059 | echo "$as_me:$LINENO: result: good" >&5 |
| 14060 | echo "${ECHO_T}good" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14061 | buggygetaddrinfo=no |
| 14062 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14063 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14064 | echo "$as_me: failed program was:" >&5 |
| 14065 | cat conftest.$ac_ext >&5 |
| 14066 | ( exit $ac_status ) |
| 14067 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 14068 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14069 | buggygetaddrinfo=yes |
| 14070 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14071 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14072 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14073 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14074 | echo "$as_me: failed program was:" >&5 |
| 14075 | cat conftest.$ac_ext >&5 |
| 14076 | |
| 14077 | echo "$as_me:$LINENO: result: no" >&5 |
| 14078 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14079 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14080 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14081 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14082 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14083 | |
| 14084 | if test "$buggygetaddrinfo" = "yes"; then |
| 14085 | if test "$ipv6" = "yes"; then |
| 14086 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 14087 | echo ' or you can specify "--disable-ipv6"'. |
| 14088 | exit 1 |
| 14089 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14090 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14091 | |
| 14092 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14093 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14094 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 14095 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14096 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14097 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 14098 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14099 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14100 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14101 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14102 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14103 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14105 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14106 | cat >conftest.$ac_ext <<_ACEOF |
| 14107 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14108 | #include "confdefs.h" |
| 14109 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14110 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14111 | #include <assert.h> |
| 14112 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14113 | #ifdef __cplusplus |
| 14114 | extern "C" |
| 14115 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14116 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14117 | builtin and then its argument prototype would still apply. */ |
| 14118 | char $ac_func (); |
| 14119 | char (*f) (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14120 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14121 | #ifdef F77_DUMMY_MAIN |
| 14122 | # ifdef __cplusplus |
| 14123 | extern "C" |
| 14124 | # endif |
| 14125 | int F77_DUMMY_MAIN() { return 1; } |
| 14126 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14127 | int |
| 14128 | main () |
| 14129 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14130 | /* The GNU C library defines this for functions which it implements |
| 14131 | to always fail with ENOSYS. Some functions are actually named |
| 14132 | something starting with __ and the normal name is an alias. */ |
| 14133 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14134 | choke me |
| 14135 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14136 | f = $ac_func; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14137 | #endif |
| 14138 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14139 | ; |
| 14140 | return 0; |
| 14141 | } |
| 14142 | _ACEOF |
| 14143 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14144 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14145 | (eval $ac_link) 2>&5 |
| 14146 | ac_status=$? |
| 14147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14148 | (exit $ac_status); } && |
| 14149 | { ac_try='test -s conftest$ac_exeext' |
| 14150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14151 | (eval $ac_try) 2>&5 |
| 14152 | ac_status=$? |
| 14153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14154 | (exit $ac_status); }; }; then |
| 14155 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14156 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14157 | echo "$as_me: failed program was:" >&5 |
| 14158 | cat conftest.$ac_ext >&5 |
| 14159 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14160 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14161 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14162 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14163 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14164 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14165 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14166 | cat >>confdefs.h <<_ACEOF |
| 14167 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14168 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14169 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14170 | fi |
| 14171 | done |
| 14172 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14173 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14174 | # checks for structures |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14175 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 14176 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 14177 | if test "${ac_cv_header_time+set}" = set; then |
| 14178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14179 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14180 | cat >conftest.$ac_ext <<_ACEOF |
| 14181 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14182 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14183 | #include <sys/types.h> |
| 14184 | #include <sys/time.h> |
| 14185 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14186 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14187 | #ifdef F77_DUMMY_MAIN |
| 14188 | # ifdef __cplusplus |
| 14189 | extern "C" |
| 14190 | # endif |
| 14191 | int F77_DUMMY_MAIN() { return 1; } |
| 14192 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14193 | int |
| 14194 | main () |
| 14195 | { |
| 14196 | if ((struct tm *) 0) |
| 14197 | return 0; |
| 14198 | ; |
| 14199 | return 0; |
| 14200 | } |
| 14201 | _ACEOF |
| 14202 | rm -f conftest.$ac_objext |
| 14203 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14204 | (eval $ac_compile) 2>&5 |
| 14205 | ac_status=$? |
| 14206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14207 | (exit $ac_status); } && |
| 14208 | { ac_try='test -s conftest.$ac_objext' |
| 14209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14210 | (eval $ac_try) 2>&5 |
| 14211 | ac_status=$? |
| 14212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14213 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14214 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14215 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14216 | echo "$as_me: failed program was:" >&5 |
| 14217 | cat conftest.$ac_ext >&5 |
| 14218 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14219 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14220 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14221 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14222 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 14223 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14224 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14225 | |
| 14226 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14227 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14228 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14229 | |
| 14230 | fi |
| 14231 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14232 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 14233 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 14234 | if test "${ac_cv_struct_tm+set}" = set; then |
| 14235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14236 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14237 | cat >conftest.$ac_ext <<_ACEOF |
| 14238 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14239 | #include "confdefs.h" |
| 14240 | #include <sys/types.h> |
| 14241 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14242 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14243 | #ifdef F77_DUMMY_MAIN |
| 14244 | # ifdef __cplusplus |
| 14245 | extern "C" |
| 14246 | # endif |
| 14247 | int F77_DUMMY_MAIN() { return 1; } |
| 14248 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14249 | int |
| 14250 | main () |
| 14251 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14252 | struct tm *tp; tp->tm_sec; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14253 | ; |
| 14254 | return 0; |
| 14255 | } |
| 14256 | _ACEOF |
| 14257 | rm -f conftest.$ac_objext |
| 14258 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14259 | (eval $ac_compile) 2>&5 |
| 14260 | ac_status=$? |
| 14261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14262 | (exit $ac_status); } && |
| 14263 | { ac_try='test -s conftest.$ac_objext' |
| 14264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14265 | (eval $ac_try) 2>&5 |
| 14266 | ac_status=$? |
| 14267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14268 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14269 | ac_cv_struct_tm=time.h |
| 14270 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14271 | echo "$as_me: failed program was:" >&5 |
| 14272 | cat conftest.$ac_ext >&5 |
| 14273 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14274 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14275 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14276 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14277 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 14278 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14279 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14280 | |
| 14281 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14282 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14283 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14284 | |
| 14285 | fi |
| 14286 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14287 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 14288 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 14289 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 14290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14291 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14292 | cat >conftest.$ac_ext <<_ACEOF |
| 14293 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14294 | #include "confdefs.h" |
| 14295 | #include <sys/types.h> |
| 14296 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14297 | |
| 14298 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14299 | #ifdef F77_DUMMY_MAIN |
| 14300 | # ifdef __cplusplus |
| 14301 | extern "C" |
| 14302 | # endif |
| 14303 | int F77_DUMMY_MAIN() { return 1; } |
| 14304 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14305 | int |
| 14306 | main () |
| 14307 | { |
| 14308 | static struct tm ac_aggr; |
| 14309 | if (ac_aggr.tm_zone) |
| 14310 | return 0; |
| 14311 | ; |
| 14312 | return 0; |
| 14313 | } |
| 14314 | _ACEOF |
| 14315 | rm -f conftest.$ac_objext |
| 14316 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14317 | (eval $ac_compile) 2>&5 |
| 14318 | ac_status=$? |
| 14319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14320 | (exit $ac_status); } && |
| 14321 | { ac_try='test -s conftest.$ac_objext' |
| 14322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14323 | (eval $ac_try) 2>&5 |
| 14324 | ac_status=$? |
| 14325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14326 | (exit $ac_status); }; }; then |
| 14327 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14328 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14329 | echo "$as_me: failed program was:" >&5 |
| 14330 | cat conftest.$ac_ext >&5 |
| 14331 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14332 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14333 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14334 | fi |
| 14335 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 14336 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 14337 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 14338 | |
| 14339 | cat >>confdefs.h <<_ACEOF |
| 14340 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 14341 | _ACEOF |
| 14342 | |
| 14343 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14344 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14345 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14346 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 14347 | |
| 14348 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14349 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14350 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14351 | |
| 14352 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14353 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 14354 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 14355 | if test "${ac_cv_var_tzname+set}" = set; then |
| 14356 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14357 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14358 | cat >conftest.$ac_ext <<_ACEOF |
| 14359 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14360 | #include "confdefs.h" |
| 14361 | #include <time.h> |
| 14362 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14363 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14364 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14365 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14366 | #ifdef F77_DUMMY_MAIN |
| 14367 | # ifdef __cplusplus |
| 14368 | extern "C" |
| 14369 | # endif |
| 14370 | int F77_DUMMY_MAIN() { return 1; } |
| 14371 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14372 | int |
| 14373 | main () |
| 14374 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14375 | atoi(*tzname); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14376 | ; |
| 14377 | return 0; |
| 14378 | } |
| 14379 | _ACEOF |
| 14380 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14381 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14382 | (eval $ac_link) 2>&5 |
| 14383 | ac_status=$? |
| 14384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14385 | (exit $ac_status); } && |
| 14386 | { ac_try='test -s conftest$ac_exeext' |
| 14387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14388 | (eval $ac_try) 2>&5 |
| 14389 | ac_status=$? |
| 14390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14391 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14392 | ac_cv_var_tzname=yes |
| 14393 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14394 | echo "$as_me: failed program was:" >&5 |
| 14395 | cat conftest.$ac_ext >&5 |
| 14396 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14397 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14398 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14399 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14400 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 14401 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14402 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14403 | |
| 14404 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14405 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14406 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14407 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14408 | fi |
| 14409 | fi |
| 14410 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14411 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 14412 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 |
| 14413 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 14414 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14415 | else |
| 14416 | cat >conftest.$ac_ext <<_ACEOF |
| 14417 | #line $LINENO "configure" |
| 14418 | #include "confdefs.h" |
| 14419 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14420 | #ifdef F77_DUMMY_MAIN |
| 14421 | # ifdef __cplusplus |
| 14422 | extern "C" |
| 14423 | # endif |
| 14424 | int F77_DUMMY_MAIN() { return 1; } |
| 14425 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14426 | int |
| 14427 | main () |
| 14428 | { |
| 14429 | static struct stat ac_aggr; |
| 14430 | if (ac_aggr.st_rdev) |
| 14431 | return 0; |
| 14432 | ; |
| 14433 | return 0; |
| 14434 | } |
| 14435 | _ACEOF |
| 14436 | rm -f conftest.$ac_objext |
| 14437 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14438 | (eval $ac_compile) 2>&5 |
| 14439 | ac_status=$? |
| 14440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14441 | (exit $ac_status); } && |
| 14442 | { ac_try='test -s conftest.$ac_objext' |
| 14443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14444 | (eval $ac_try) 2>&5 |
| 14445 | ac_status=$? |
| 14446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14447 | (exit $ac_status); }; }; then |
| 14448 | ac_cv_member_struct_stat_st_rdev=yes |
| 14449 | else |
| 14450 | echo "$as_me: failed program was:" >&5 |
| 14451 | cat conftest.$ac_ext >&5 |
| 14452 | ac_cv_member_struct_stat_st_rdev=no |
| 14453 | fi |
| 14454 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14455 | fi |
| 14456 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 14457 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 |
| 14458 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 14459 | |
| 14460 | cat >>confdefs.h <<_ACEOF |
| 14461 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 14462 | _ACEOF |
| 14463 | |
| 14464 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14465 | fi |
| 14466 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14467 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 14468 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| 14469 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 14470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14471 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14472 | cat >conftest.$ac_ext <<_ACEOF |
| 14473 | #line $LINENO "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14474 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14475 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14476 | #ifdef F77_DUMMY_MAIN |
| 14477 | # ifdef __cplusplus |
| 14478 | extern "C" |
| 14479 | # endif |
| 14480 | int F77_DUMMY_MAIN() { return 1; } |
| 14481 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14482 | int |
| 14483 | main () |
| 14484 | { |
| 14485 | static struct stat ac_aggr; |
| 14486 | if (ac_aggr.st_blksize) |
| 14487 | return 0; |
| 14488 | ; |
| 14489 | return 0; |
| 14490 | } |
| 14491 | _ACEOF |
| 14492 | rm -f conftest.$ac_objext |
| 14493 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14494 | (eval $ac_compile) 2>&5 |
| 14495 | ac_status=$? |
| 14496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14497 | (exit $ac_status); } && |
| 14498 | { ac_try='test -s conftest.$ac_objext' |
| 14499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14500 | (eval $ac_try) 2>&5 |
| 14501 | ac_status=$? |
| 14502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14503 | (exit $ac_status); }; }; then |
| 14504 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14505 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14506 | echo "$as_me: failed program was:" >&5 |
| 14507 | cat conftest.$ac_ext >&5 |
| 14508 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14509 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14510 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14511 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14512 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 14513 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| 14514 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14515 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14516 | cat >>confdefs.h <<_ACEOF |
| 14517 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 14518 | _ACEOF |
| 14519 | |
| 14520 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14521 | fi |
| 14522 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14523 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 14524 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 14525 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 14526 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14527 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14528 | cat >conftest.$ac_ext <<_ACEOF |
| 14529 | #line $LINENO "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14530 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14531 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14532 | #ifdef F77_DUMMY_MAIN |
| 14533 | # ifdef __cplusplus |
| 14534 | extern "C" |
| 14535 | # endif |
| 14536 | int F77_DUMMY_MAIN() { return 1; } |
| 14537 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14538 | int |
| 14539 | main () |
| 14540 | { |
| 14541 | static struct stat ac_aggr; |
| 14542 | if (ac_aggr.st_blocks) |
| 14543 | return 0; |
| 14544 | ; |
| 14545 | return 0; |
| 14546 | } |
| 14547 | _ACEOF |
| 14548 | rm -f conftest.$ac_objext |
| 14549 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14550 | (eval $ac_compile) 2>&5 |
| 14551 | ac_status=$? |
| 14552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14553 | (exit $ac_status); } && |
| 14554 | { ac_try='test -s conftest.$ac_objext' |
| 14555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14556 | (eval $ac_try) 2>&5 |
| 14557 | ac_status=$? |
| 14558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14559 | (exit $ac_status); }; }; then |
| 14560 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14561 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14562 | echo "$as_me: failed program was:" >&5 |
| 14563 | cat conftest.$ac_ext >&5 |
| 14564 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14565 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14566 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14567 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14568 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 14569 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 14570 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14571 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14572 | cat >>confdefs.h <<_ACEOF |
| 14573 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 14574 | _ACEOF |
| 14575 | |
| 14576 | |
| 14577 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14578 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14579 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14580 | |
| 14581 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14582 | LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 14583 | fi |
| 14584 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14585 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14586 | |
| 14587 | echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 14588 | echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6 |
| 14589 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 14590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14591 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14592 | cat >conftest.$ac_ext <<_ACEOF |
| 14593 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14594 | #include "confdefs.h" |
| 14595 | #include <time.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14596 | #ifdef F77_DUMMY_MAIN |
| 14597 | # ifdef __cplusplus |
| 14598 | extern "C" |
| 14599 | # endif |
| 14600 | int F77_DUMMY_MAIN() { return 1; } |
| 14601 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14602 | int |
| 14603 | main () |
| 14604 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14605 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14606 | ; |
| 14607 | return 0; |
| 14608 | } |
| 14609 | _ACEOF |
| 14610 | rm -f conftest.$ac_objext |
| 14611 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14612 | (eval $ac_compile) 2>&5 |
| 14613 | ac_status=$? |
| 14614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14615 | (exit $ac_status); } && |
| 14616 | { ac_try='test -s conftest.$ac_objext' |
| 14617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14618 | (eval $ac_try) 2>&5 |
| 14619 | ac_status=$? |
| 14620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14621 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14622 | ac_cv_header_time_altzone=yes |
| 14623 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14624 | echo "$as_me: failed program was:" >&5 |
| 14625 | cat conftest.$ac_ext >&5 |
| 14626 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14627 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14628 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14629 | fi |
| 14630 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14631 | echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 14632 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14633 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14634 | |
| 14635 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14636 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14637 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14638 | |
| 14639 | fi |
| 14640 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14641 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14642 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 14643 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 14644 | cat >conftest.$ac_ext <<_ACEOF |
| 14645 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14646 | #include "confdefs.h" |
| 14647 | |
| 14648 | #include <sys/types.h> |
| 14649 | #include <sys/select.h> |
| 14650 | #include <sys/time.h> |
| 14651 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14652 | #ifdef F77_DUMMY_MAIN |
| 14653 | # ifdef __cplusplus |
| 14654 | extern "C" |
| 14655 | # endif |
| 14656 | int F77_DUMMY_MAIN() { return 1; } |
| 14657 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14658 | int |
| 14659 | main () |
| 14660 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14661 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14662 | ; |
| 14663 | return 0; |
| 14664 | } |
| 14665 | _ACEOF |
| 14666 | rm -f conftest.$ac_objext |
| 14667 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14668 | (eval $ac_compile) 2>&5 |
| 14669 | ac_status=$? |
| 14670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14671 | (exit $ac_status); } && |
| 14672 | { ac_try='test -s conftest.$ac_objext' |
| 14673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14674 | (eval $ac_try) 2>&5 |
| 14675 | ac_status=$? |
| 14676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14677 | (exit $ac_status); }; }; then |
| 14678 | |
| 14679 | |
| 14680 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14681 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14682 | _ACEOF |
| 14683 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14684 | was_it_defined=yes |
| 14685 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14686 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14687 | echo "$as_me: failed program was:" >&5 |
| 14688 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14689 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14690 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14691 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 14692 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14693 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14694 | echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 14695 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6 |
| 14696 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 14697 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14698 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14699 | cat >conftest.$ac_ext <<_ACEOF |
| 14700 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14701 | #include "confdefs.h" |
| 14702 | |
| 14703 | # include <netdb.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14704 | #ifdef F77_DUMMY_MAIN |
| 14705 | # ifdef __cplusplus |
| 14706 | extern "C" |
| 14707 | # endif |
| 14708 | int F77_DUMMY_MAIN() { return 1; } |
| 14709 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14710 | int |
| 14711 | main () |
| 14712 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14713 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14714 | ; |
| 14715 | return 0; |
| 14716 | } |
| 14717 | _ACEOF |
| 14718 | rm -f conftest.$ac_objext |
| 14719 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14720 | (eval $ac_compile) 2>&5 |
| 14721 | ac_status=$? |
| 14722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14723 | (exit $ac_status); } && |
| 14724 | { ac_try='test -s conftest.$ac_objext' |
| 14725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14726 | (eval $ac_try) 2>&5 |
| 14727 | ac_status=$? |
| 14728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14729 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14730 | ac_cv_struct_addrinfo=yes |
| 14731 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14732 | echo "$as_me: failed program was:" >&5 |
| 14733 | cat conftest.$ac_ext >&5 |
| 14734 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14735 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14736 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14737 | fi |
| 14738 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14739 | echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 14740 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14741 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14742 | |
| 14743 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14744 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14745 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14746 | |
| 14747 | fi |
| 14748 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14749 | echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 14750 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 |
| 14751 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 14752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14753 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14754 | cat >conftest.$ac_ext <<_ACEOF |
| 14755 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14756 | #include "confdefs.h" |
| 14757 | |
| 14758 | # include <sys/types.h> |
| 14759 | # include <sys/socket.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14760 | #ifdef F77_DUMMY_MAIN |
| 14761 | # ifdef __cplusplus |
| 14762 | extern "C" |
| 14763 | # endif |
| 14764 | int F77_DUMMY_MAIN() { return 1; } |
| 14765 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14766 | int |
| 14767 | main () |
| 14768 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14769 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14770 | ; |
| 14771 | return 0; |
| 14772 | } |
| 14773 | _ACEOF |
| 14774 | rm -f conftest.$ac_objext |
| 14775 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14776 | (eval $ac_compile) 2>&5 |
| 14777 | ac_status=$? |
| 14778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14779 | (exit $ac_status); } && |
| 14780 | { ac_try='test -s conftest.$ac_objext' |
| 14781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14782 | (eval $ac_try) 2>&5 |
| 14783 | ac_status=$? |
| 14784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14785 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14786 | ac_cv_struct_sockaddr_storage=yes |
| 14787 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14788 | echo "$as_me: failed program was:" >&5 |
| 14789 | cat conftest.$ac_ext >&5 |
| 14790 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14791 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14792 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14793 | fi |
| 14794 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14795 | echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 14796 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14797 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14798 | |
| 14799 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14800 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14801 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14802 | |
| 14803 | fi |
| 14804 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14805 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14806 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14807 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14808 | echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 14809 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
| 14810 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 14811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14812 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14813 | cat >conftest.$ac_ext <<_ACEOF |
| 14814 | #line $LINENO "configure" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14815 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14816 | $ac_includes_default |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14817 | #ifdef F77_DUMMY_MAIN |
| 14818 | # ifdef __cplusplus |
| 14819 | extern "C" |
| 14820 | # endif |
| 14821 | int F77_DUMMY_MAIN() { return 1; } |
| 14822 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14823 | int |
| 14824 | main () |
| 14825 | { |
| 14826 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 14827 | test_array [0] = 0 |
| 14828 | |
| 14829 | ; |
| 14830 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14831 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14832 | _ACEOF |
| 14833 | rm -f conftest.$ac_objext |
| 14834 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14835 | (eval $ac_compile) 2>&5 |
| 14836 | ac_status=$? |
| 14837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14838 | (exit $ac_status); } && |
| 14839 | { ac_try='test -s conftest.$ac_objext' |
| 14840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14841 | (eval $ac_try) 2>&5 |
| 14842 | ac_status=$? |
| 14843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14844 | (exit $ac_status); }; }; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14845 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14846 | else |
| 14847 | echo "$as_me: failed program was:" >&5 |
| 14848 | cat conftest.$ac_ext >&5 |
| 14849 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14850 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14851 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14852 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14853 | echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 14854 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14855 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14856 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14857 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14858 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14859 | |
| 14860 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14861 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14862 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 14863 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 14864 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 14865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14866 | else |
| 14867 | ac_cv_prog_cc_stdc=no |
| 14868 | ac_save_CC=$CC |
| 14869 | cat >conftest.$ac_ext <<_ACEOF |
| 14870 | #line $LINENO "configure" |
| 14871 | #include "confdefs.h" |
| 14872 | #include <stdarg.h> |
| 14873 | #include <stdio.h> |
| 14874 | #include <sys/types.h> |
| 14875 | #include <sys/stat.h> |
| 14876 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 14877 | struct buf { int x; }; |
| 14878 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 14879 | static char *e (p, i) |
| 14880 | char **p; |
| 14881 | int i; |
| 14882 | { |
| 14883 | return p[i]; |
| 14884 | } |
| 14885 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 14886 | { |
| 14887 | char *s; |
| 14888 | va_list v; |
| 14889 | va_start (v,p); |
| 14890 | s = g (p, va_arg (v,int)); |
| 14891 | va_end (v); |
| 14892 | return s; |
| 14893 | } |
| 14894 | int test (int i, double x); |
| 14895 | struct s1 {int (*f) (int a);}; |
| 14896 | struct s2 {int (*f) (double a);}; |
| 14897 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 14898 | int argc; |
| 14899 | char **argv; |
| 14900 | #ifdef F77_DUMMY_MAIN |
| 14901 | # ifdef __cplusplus |
| 14902 | extern "C" |
| 14903 | # endif |
| 14904 | int F77_DUMMY_MAIN() { return 1; } |
| 14905 | #endif |
| 14906 | int |
| 14907 | main () |
| 14908 | { |
| 14909 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 14910 | ; |
| 14911 | return 0; |
| 14912 | } |
| 14913 | _ACEOF |
| 14914 | # Don't try gcc -ansi; that turns off useful extensions and |
| 14915 | # breaks some systems' header files. |
| 14916 | # AIX -qlanglvl=ansi |
| 14917 | # Ultrix and OSF/1 -std1 |
| 14918 | # HP-UX 10.20 and later -Ae |
| 14919 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 14920 | # SVR4 -Xc -D__EXTENSIONS__ |
| 14921 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 14922 | do |
| 14923 | CC="$ac_save_CC $ac_arg" |
| 14924 | rm -f conftest.$ac_objext |
| 14925 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14926 | (eval $ac_compile) 2>&5 |
| 14927 | ac_status=$? |
| 14928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14929 | (exit $ac_status); } && |
| 14930 | { ac_try='test -s conftest.$ac_objext' |
| 14931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14932 | (eval $ac_try) 2>&5 |
| 14933 | ac_status=$? |
| 14934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14935 | (exit $ac_status); }; }; then |
| 14936 | ac_cv_prog_cc_stdc=$ac_arg |
| 14937 | break |
| 14938 | else |
| 14939 | echo "$as_me: failed program was:" >&5 |
| 14940 | cat conftest.$ac_ext >&5 |
| 14941 | fi |
| 14942 | rm -f conftest.$ac_objext |
| 14943 | done |
| 14944 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 14945 | CC=$ac_save_CC |
| 14946 | |
| 14947 | fi |
| 14948 | |
| 14949 | case "x$ac_cv_prog_cc_stdc" in |
| 14950 | x|xno) |
| 14951 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 14952 | echo "${ECHO_T}none needed" >&6 ;; |
| 14953 | *) |
| 14954 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 14955 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 14956 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 14957 | esac |
| 14958 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14959 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 14960 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 14961 | if test "${ac_cv_c_const+set}" = set; then |
| 14962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14963 | else |
| 14964 | cat >conftest.$ac_ext <<_ACEOF |
| 14965 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14966 | #include "confdefs.h" |
| 14967 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 14968 | #ifdef F77_DUMMY_MAIN |
| 14969 | # ifdef __cplusplus |
| 14970 | extern "C" |
| 14971 | # endif |
| 14972 | int F77_DUMMY_MAIN() { return 1; } |
| 14973 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14974 | int |
| 14975 | main () |
| 14976 | { |
| 14977 | /* FIXME: Include the comments suggested by Paul. */ |
| 14978 | #ifndef __cplusplus |
| 14979 | /* Ultrix mips cc rejects this. */ |
| 14980 | typedef int charset[2]; |
| 14981 | const charset x; |
| 14982 | /* SunOS 4.1.1 cc rejects this. */ |
| 14983 | char const *const *ccp; |
| 14984 | char **p; |
| 14985 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 14986 | struct point {int x, y;}; |
| 14987 | static struct point const zero = {0,0}; |
| 14988 | /* AIX XL C 1.02.0.0 rejects this. |
| 14989 | It does not let you subtract one const X* pointer from another in |
| 14990 | an arm of an if-expression whose if-part is not a constant |
| 14991 | expression */ |
| 14992 | const char *g = "string"; |
| 14993 | ccp = &g + (g ? g-g : 0); |
| 14994 | /* HPUX 7.0 cc rejects these. */ |
| 14995 | ++ccp; |
| 14996 | p = (char**) ccp; |
| 14997 | ccp = (char const *const *) p; |
| 14998 | { /* SCO 3.2v4 cc rejects this. */ |
| 14999 | char *t; |
| 15000 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15001 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15002 | *t++ = 0; |
| 15003 | } |
| 15004 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 15005 | int x[] = {25, 17}; |
| 15006 | const int *foo = &x[0]; |
| 15007 | ++foo; |
| 15008 | } |
| 15009 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 15010 | typedef const int *iptr; |
| 15011 | iptr p = 0; |
| 15012 | ++p; |
| 15013 | } |
| 15014 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 15015 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 15016 | struct s { int j; const int *ap[3]; }; |
| 15017 | struct s *b; b->j = 5; |
| 15018 | } |
| 15019 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 15020 | const int foo = 10; |
| 15021 | } |
| 15022 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15023 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15024 | ; |
| 15025 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15026 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15027 | _ACEOF |
| 15028 | rm -f conftest.$ac_objext |
| 15029 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15030 | (eval $ac_compile) 2>&5 |
| 15031 | ac_status=$? |
| 15032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15033 | (exit $ac_status); } && |
| 15034 | { ac_try='test -s conftest.$ac_objext' |
| 15035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15036 | (eval $ac_try) 2>&5 |
| 15037 | ac_status=$? |
| 15038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15039 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15040 | ac_cv_c_const=yes |
| 15041 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15042 | echo "$as_me: failed program was:" >&5 |
| 15043 | cat conftest.$ac_ext >&5 |
| 15044 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15045 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15046 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15047 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15048 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 15049 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15050 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15051 | |
| 15052 | cat >>confdefs.h <<\_ACEOF |
| 15053 | #define const |
| 15054 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15055 | |
| 15056 | fi |
| 15057 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15058 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15059 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15060 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 15061 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| 15062 | cat >conftest.$ac_ext <<_ACEOF |
| 15063 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15064 | #include "confdefs.h" |
| 15065 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15066 | #ifdef F77_DUMMY_MAIN |
| 15067 | # ifdef __cplusplus |
| 15068 | extern "C" |
| 15069 | # endif |
| 15070 | int F77_DUMMY_MAIN() { return 1; } |
| 15071 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15072 | int |
| 15073 | main () |
| 15074 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15075 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15076 | ; |
| 15077 | return 0; |
| 15078 | } |
| 15079 | _ACEOF |
| 15080 | rm -f conftest.$ac_objext |
| 15081 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15082 | (eval $ac_compile) 2>&5 |
| 15083 | ac_status=$? |
| 15084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15085 | (exit $ac_status); } && |
| 15086 | { ac_try='test -s conftest.$ac_objext' |
| 15087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15088 | (eval $ac_try) 2>&5 |
| 15089 | ac_status=$? |
| 15090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15091 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15092 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15093 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15094 | echo "$as_me: failed program was:" >&5 |
| 15095 | cat conftest.$ac_ext >&5 |
| 15096 | |
| 15097 | cat >>confdefs.h <<\_ACEOF |
| 15098 | #define volatile |
| 15099 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15100 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15101 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15102 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15103 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15104 | echo "$as_me:$LINENO: result: $works" >&5 |
| 15105 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15106 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15107 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15108 | echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 15109 | echo $ECHO_N "checking for working signed char... $ECHO_C" >&6 |
| 15110 | cat >conftest.$ac_ext <<_ACEOF |
| 15111 | #line $LINENO "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 15112 | #include "confdefs.h" |
| 15113 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15114 | #ifdef F77_DUMMY_MAIN |
| 15115 | # ifdef __cplusplus |
| 15116 | extern "C" |
| 15117 | # endif |
| 15118 | int F77_DUMMY_MAIN() { return 1; } |
| 15119 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15120 | int |
| 15121 | main () |
| 15122 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15123 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15124 | ; |
| 15125 | return 0; |
| 15126 | } |
| 15127 | _ACEOF |
| 15128 | rm -f conftest.$ac_objext |
| 15129 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15130 | (eval $ac_compile) 2>&5 |
| 15131 | ac_status=$? |
| 15132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15133 | (exit $ac_status); } && |
| 15134 | { ac_try='test -s conftest.$ac_objext' |
| 15135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15136 | (eval $ac_try) 2>&5 |
| 15137 | ac_status=$? |
| 15138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15139 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15140 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 15141 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15142 | echo "$as_me: failed program was:" >&5 |
| 15143 | cat conftest.$ac_ext >&5 |
| 15144 | |
| 15145 | cat >>confdefs.h <<\_ACEOF |
| 15146 | #define signed |
| 15147 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15148 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15149 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15150 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15151 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15152 | echo "$as_me:$LINENO: result: $works" >&5 |
| 15153 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15154 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15155 | have_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15156 | echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 15157 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6 |
| 15158 | cat >conftest.$ac_ext <<_ACEOF |
| 15159 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15160 | #include "confdefs.h" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15161 | int foo(int x) { return 0; } |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15162 | #ifdef F77_DUMMY_MAIN |
| 15163 | # ifdef __cplusplus |
| 15164 | extern "C" |
| 15165 | # endif |
| 15166 | int F77_DUMMY_MAIN() { return 1; } |
| 15167 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15168 | int |
| 15169 | main () |
| 15170 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15171 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15172 | ; |
| 15173 | return 0; |
| 15174 | } |
| 15175 | _ACEOF |
| 15176 | rm -f conftest.$ac_objext |
| 15177 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15178 | (eval $ac_compile) 2>&5 |
| 15179 | ac_status=$? |
| 15180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15181 | (exit $ac_status); } && |
| 15182 | { ac_try='test -s conftest.$ac_objext' |
| 15183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15184 | (eval $ac_try) 2>&5 |
| 15185 | ac_status=$? |
| 15186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15187 | (exit $ac_status); }; }; then |
| 15188 | |
| 15189 | |
| 15190 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15191 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15192 | _ACEOF |
| 15193 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15194 | have_prototypes=yes |
| 15195 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15196 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15197 | echo "$as_me: failed program was:" >&5 |
| 15198 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15199 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15200 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15201 | echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 15202 | echo "${ECHO_T}$have_prototypes" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15203 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15204 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15205 | echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 15206 | echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6 |
| 15207 | cat >conftest.$ac_ext <<_ACEOF |
| 15208 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15209 | #include "confdefs.h" |
| 15210 | |
| 15211 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 15212 | int foo(int x, ...) { |
| 15213 | va_list va; |
| 15214 | va_start(va, x); |
| 15215 | va_arg(va, int); |
| 15216 | va_arg(va, char *); |
| 15217 | va_arg(va, double); |
| 15218 | return 0; |
| 15219 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15220 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15221 | #ifdef F77_DUMMY_MAIN |
| 15222 | # ifdef __cplusplus |
| 15223 | extern "C" |
| 15224 | # endif |
| 15225 | int F77_DUMMY_MAIN() { return 1; } |
| 15226 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15227 | int |
| 15228 | main () |
| 15229 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 15230 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15231 | ; |
| 15232 | return 0; |
| 15233 | } |
| 15234 | _ACEOF |
| 15235 | rm -f conftest.$ac_objext |
| 15236 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15237 | (eval $ac_compile) 2>&5 |
| 15238 | ac_status=$? |
| 15239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15240 | (exit $ac_status); } && |
| 15241 | { ac_try='test -s conftest.$ac_objext' |
| 15242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15243 | (eval $ac_try) 2>&5 |
| 15244 | ac_status=$? |
| 15245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15246 | (exit $ac_status); }; }; then |
| 15247 | |
| 15248 | |
| 15249 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15250 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15251 | _ACEOF |
| 15252 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15253 | works=yes |
| 15254 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15255 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15256 | echo "$as_me: failed program was:" >&5 |
| 15257 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15258 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15259 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15260 | echo "$as_me:$LINENO: result: $works" >&5 |
| 15261 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15262 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15263 | if test "$have_prototypes" = yes; then |
| 15264 | bad_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15265 | echo "$as_me:$LINENO: checking for bad exec* prototypes" >&5 |
| 15266 | echo $ECHO_N "checking for bad exec* prototypes... $ECHO_C" >&6 |
| 15267 | cat >conftest.$ac_ext <<_ACEOF |
| 15268 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15269 | #include "confdefs.h" |
| 15270 | #include <unistd.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15271 | #ifdef F77_DUMMY_MAIN |
| 15272 | # ifdef __cplusplus |
| 15273 | extern "C" |
| 15274 | # endif |
| 15275 | int F77_DUMMY_MAIN() { return 1; } |
| 15276 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15277 | int |
| 15278 | main () |
| 15279 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15280 | char **t;execve("@",t,t); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15281 | ; |
| 15282 | return 0; |
| 15283 | } |
| 15284 | _ACEOF |
| 15285 | rm -f conftest.$ac_objext |
| 15286 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15287 | (eval $ac_compile) 2>&5 |
| 15288 | ac_status=$? |
| 15289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15290 | (exit $ac_status); } && |
| 15291 | { ac_try='test -s conftest.$ac_objext' |
| 15292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15293 | (eval $ac_try) 2>&5 |
| 15294 | ac_status=$? |
| 15295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15296 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15297 | : |
| 15298 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15299 | echo "$as_me: failed program was:" >&5 |
| 15300 | cat conftest.$ac_ext >&5 |
| 15301 | |
| 15302 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15303 | #define BAD_EXEC_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15304 | _ACEOF |
| 15305 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15306 | bad_prototypes=yes |
| 15307 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15308 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15309 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15310 | echo "$as_me:$LINENO: result: $bad_prototypes" >&5 |
| 15311 | echo "${ECHO_T}$bad_prototypes" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15312 | fi |
| 15313 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15314 | # check if sockaddr has sa_len member |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15315 | echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 15316 | echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6 |
| 15317 | cat >conftest.$ac_ext <<_ACEOF |
| 15318 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15319 | #include "confdefs.h" |
| 15320 | #include <sys/types.h> |
| 15321 | #include <sys/socket.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15322 | #ifdef F77_DUMMY_MAIN |
| 15323 | # ifdef __cplusplus |
| 15324 | extern "C" |
| 15325 | # endif |
| 15326 | int F77_DUMMY_MAIN() { return 1; } |
| 15327 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15328 | int |
| 15329 | main () |
| 15330 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15331 | struct sockaddr x; |
| 15332 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15333 | ; |
| 15334 | return 0; |
| 15335 | } |
| 15336 | _ACEOF |
| 15337 | rm -f conftest.$ac_objext |
| 15338 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15339 | (eval $ac_compile) 2>&5 |
| 15340 | ac_status=$? |
| 15341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15342 | (exit $ac_status); } && |
| 15343 | { ac_try='test -s conftest.$ac_objext' |
| 15344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15345 | (eval $ac_try) 2>&5 |
| 15346 | ac_status=$? |
| 15347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15348 | (exit $ac_status); }; }; then |
| 15349 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15350 | echo "${ECHO_T}yes" >&6 |
| 15351 | |
| 15352 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15353 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15354 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15355 | |
| 15356 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15357 | echo "$as_me: failed program was:" >&5 |
| 15358 | cat conftest.$ac_ext >&5 |
| 15359 | echo "$as_me:$LINENO: result: no" >&5 |
| 15360 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15361 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15362 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 15363 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15364 | va_list_is_array=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15365 | echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 15366 | echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6 |
| 15367 | cat >conftest.$ac_ext <<_ACEOF |
| 15368 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15369 | #include "confdefs.h" |
| 15370 | |
| 15371 | #ifdef HAVE_STDARG_PROTOTYPES |
| 15372 | #include <stdarg.h> |
| 15373 | #else |
| 15374 | #include <varargs.h> |
| 15375 | #endif |
| 15376 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15377 | #ifdef F77_DUMMY_MAIN |
| 15378 | # ifdef __cplusplus |
| 15379 | extern "C" |
| 15380 | # endif |
| 15381 | int F77_DUMMY_MAIN() { return 1; } |
| 15382 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15383 | int |
| 15384 | main () |
| 15385 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15386 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15387 | ; |
| 15388 | return 0; |
| 15389 | } |
| 15390 | _ACEOF |
| 15391 | rm -f conftest.$ac_objext |
| 15392 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15393 | (eval $ac_compile) 2>&5 |
| 15394 | ac_status=$? |
| 15395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15396 | (exit $ac_status); } && |
| 15397 | { ac_try='test -s conftest.$ac_objext' |
| 15398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15399 | (eval $ac_try) 2>&5 |
| 15400 | ac_status=$? |
| 15401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15402 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15403 | : |
| 15404 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15405 | echo "$as_me: failed program was:" >&5 |
| 15406 | cat conftest.$ac_ext >&5 |
| 15407 | |
| 15408 | |
| 15409 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15410 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15411 | _ACEOF |
| 15412 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 15413 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15414 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15415 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15416 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15417 | echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 15418 | echo "${ECHO_T}$va_list_is_array" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15419 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15420 | # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-( |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15421 | |
| 15422 | |
| 15423 | |
| 15424 | echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 15425 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6 |
| 15426 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 15427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15428 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15429 | cat >conftest.$ac_ext <<_ACEOF |
| 15430 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15431 | #include "confdefs.h" |
| 15432 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15433 | which can conflict with char gethostbyname_r (); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15434 | #include <assert.h> |
| 15435 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15436 | #ifdef __cplusplus |
| 15437 | extern "C" |
| 15438 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15439 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15440 | builtin and then its argument prototype would still apply. */ |
| 15441 | char gethostbyname_r (); |
| 15442 | char (*f) (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15443 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15444 | #ifdef F77_DUMMY_MAIN |
| 15445 | # ifdef __cplusplus |
| 15446 | extern "C" |
| 15447 | # endif |
| 15448 | int F77_DUMMY_MAIN() { return 1; } |
| 15449 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15450 | int |
| 15451 | main () |
| 15452 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15453 | /* The GNU C library defines this for functions which it implements |
| 15454 | to always fail with ENOSYS. Some functions are actually named |
| 15455 | something starting with __ and the normal name is an alias. */ |
| 15456 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 15457 | choke me |
| 15458 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15459 | f = gethostbyname_r; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15460 | #endif |
| 15461 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15462 | ; |
| 15463 | return 0; |
| 15464 | } |
| 15465 | _ACEOF |
| 15466 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15467 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15468 | (eval $ac_link) 2>&5 |
| 15469 | ac_status=$? |
| 15470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15471 | (exit $ac_status); } && |
| 15472 | { ac_try='test -s conftest$ac_exeext' |
| 15473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15474 | (eval $ac_try) 2>&5 |
| 15475 | ac_status=$? |
| 15476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15477 | (exit $ac_status); }; }; then |
| 15478 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15479 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15480 | echo "$as_me: failed program was:" >&5 |
| 15481 | cat conftest.$ac_ext >&5 |
| 15482 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15483 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15484 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15485 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15486 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 15487 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6 |
| 15488 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15489 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15490 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15491 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15492 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15493 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15494 | echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 15495 | echo $ECHO_N "checking gethostbyname_r with 6 args... $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15496 | OLD_CFLAGS=$CFLAGS |
| 15497 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15498 | cat >conftest.$ac_ext <<_ACEOF |
| 15499 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15500 | #include "confdefs.h" |
| 15501 | |
| 15502 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15503 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15504 | #ifdef F77_DUMMY_MAIN |
| 15505 | # ifdef __cplusplus |
| 15506 | extern "C" |
| 15507 | # endif |
| 15508 | int F77_DUMMY_MAIN() { return 1; } |
| 15509 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15510 | int |
| 15511 | main () |
| 15512 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15513 | |
| 15514 | char *name; |
| 15515 | struct hostent *he, *res; |
| 15516 | char buffer[2048]; |
| 15517 | int buflen = 2048; |
| 15518 | int h_errnop; |
| 15519 | |
| 15520 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15521 | |
| 15522 | ; |
| 15523 | return 0; |
| 15524 | } |
| 15525 | _ACEOF |
| 15526 | rm -f conftest.$ac_objext |
| 15527 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15528 | (eval $ac_compile) 2>&5 |
| 15529 | ac_status=$? |
| 15530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15531 | (exit $ac_status); } && |
| 15532 | { ac_try='test -s conftest.$ac_objext' |
| 15533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15534 | (eval $ac_try) 2>&5 |
| 15535 | ac_status=$? |
| 15536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15537 | (exit $ac_status); }; }; then |
| 15538 | |
| 15539 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 15540 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15541 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 15542 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15543 | |
| 15544 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15545 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15546 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15547 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15548 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15549 | echo "${ECHO_T}yes" >&6 |
| 15550 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15551 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15552 | echo "$as_me: failed program was:" >&5 |
| 15553 | cat conftest.$ac_ext >&5 |
| 15554 | |
| 15555 | echo "$as_me:$LINENO: result: no" >&5 |
| 15556 | echo "${ECHO_T}no" >&6 |
| 15557 | echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 15558 | echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6 |
| 15559 | cat >conftest.$ac_ext <<_ACEOF |
| 15560 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15561 | #include "confdefs.h" |
| 15562 | |
| 15563 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15564 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15565 | #ifdef F77_DUMMY_MAIN |
| 15566 | # ifdef __cplusplus |
| 15567 | extern "C" |
| 15568 | # endif |
| 15569 | int F77_DUMMY_MAIN() { return 1; } |
| 15570 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15571 | int |
| 15572 | main () |
| 15573 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15574 | |
| 15575 | char *name; |
| 15576 | struct hostent *he; |
| 15577 | char buffer[2048]; |
| 15578 | int buflen = 2048; |
| 15579 | int h_errnop; |
| 15580 | |
| 15581 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15582 | |
| 15583 | ; |
| 15584 | return 0; |
| 15585 | } |
| 15586 | _ACEOF |
| 15587 | rm -f conftest.$ac_objext |
| 15588 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15589 | (eval $ac_compile) 2>&5 |
| 15590 | ac_status=$? |
| 15591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15592 | (exit $ac_status); } && |
| 15593 | { ac_try='test -s conftest.$ac_objext' |
| 15594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15595 | (eval $ac_try) 2>&5 |
| 15596 | ac_status=$? |
| 15597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15598 | (exit $ac_status); }; }; then |
| 15599 | |
| 15600 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 15601 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15602 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 15603 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15604 | |
| 15605 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15606 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15607 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15608 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15609 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15610 | echo "${ECHO_T}yes" >&6 |
| 15611 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15612 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15613 | echo "$as_me: failed program was:" >&5 |
| 15614 | cat conftest.$ac_ext >&5 |
| 15615 | |
| 15616 | echo "$as_me:$LINENO: result: no" >&5 |
| 15617 | echo "${ECHO_T}no" >&6 |
| 15618 | echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 15619 | echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6 |
| 15620 | cat >conftest.$ac_ext <<_ACEOF |
| 15621 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15622 | #include "confdefs.h" |
| 15623 | |
| 15624 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15625 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15626 | #ifdef F77_DUMMY_MAIN |
| 15627 | # ifdef __cplusplus |
| 15628 | extern "C" |
| 15629 | # endif |
| 15630 | int F77_DUMMY_MAIN() { return 1; } |
| 15631 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15632 | int |
| 15633 | main () |
| 15634 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15635 | |
| 15636 | char *name; |
| 15637 | struct hostent *he; |
| 15638 | struct hostent_data data; |
| 15639 | |
| 15640 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15641 | |
| 15642 | ; |
| 15643 | return 0; |
| 15644 | } |
| 15645 | _ACEOF |
| 15646 | rm -f conftest.$ac_objext |
| 15647 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15648 | (eval $ac_compile) 2>&5 |
| 15649 | ac_status=$? |
| 15650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15651 | (exit $ac_status); } && |
| 15652 | { ac_try='test -s conftest.$ac_objext' |
| 15653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15654 | (eval $ac_try) 2>&5 |
| 15655 | ac_status=$? |
| 15656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15657 | (exit $ac_status); }; }; then |
| 15658 | |
| 15659 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 15660 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15661 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 15662 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15663 | |
| 15664 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15665 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15666 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15667 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15668 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15669 | echo "${ECHO_T}yes" >&6 |
| 15670 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15671 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15672 | echo "$as_me: failed program was:" >&5 |
| 15673 | cat conftest.$ac_ext >&5 |
| 15674 | |
| 15675 | echo "$as_me:$LINENO: result: no" >&5 |
| 15676 | echo "${ECHO_T}no" >&6 |
| 15677 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15678 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15679 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15680 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15681 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15682 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15683 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15684 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15685 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15686 | CFLAGS=$OLD_CFLAGS |
| 15687 | |
| 15688 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15689 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15690 | |
| 15691 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15692 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15693 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15694 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15695 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15696 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15697 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15698 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15699 | cat >conftest.$ac_ext <<_ACEOF |
| 15700 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15701 | #include "confdefs.h" |
| 15702 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15703 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15704 | #include <assert.h> |
| 15705 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15706 | #ifdef __cplusplus |
| 15707 | extern "C" |
| 15708 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15709 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15710 | builtin and then its argument prototype would still apply. */ |
| 15711 | char $ac_func (); |
| 15712 | char (*f) (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15713 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15714 | #ifdef F77_DUMMY_MAIN |
| 15715 | # ifdef __cplusplus |
| 15716 | extern "C" |
| 15717 | # endif |
| 15718 | int F77_DUMMY_MAIN() { return 1; } |
| 15719 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15720 | int |
| 15721 | main () |
| 15722 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15723 | /* The GNU C library defines this for functions which it implements |
| 15724 | to always fail with ENOSYS. Some functions are actually named |
| 15725 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15726 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15727 | choke me |
| 15728 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15729 | f = $ac_func; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15730 | #endif |
| 15731 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15732 | ; |
| 15733 | return 0; |
| 15734 | } |
| 15735 | _ACEOF |
| 15736 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15737 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15738 | (eval $ac_link) 2>&5 |
| 15739 | ac_status=$? |
| 15740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15741 | (exit $ac_status); } && |
| 15742 | { ac_try='test -s conftest$ac_exeext' |
| 15743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15744 | (eval $ac_try) 2>&5 |
| 15745 | ac_status=$? |
| 15746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15747 | (exit $ac_status); }; }; then |
| 15748 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15749 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15750 | echo "$as_me: failed program was:" >&5 |
| 15751 | cat conftest.$ac_ext >&5 |
| 15752 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15753 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15754 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15755 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15756 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15757 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15758 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15759 | cat >>confdefs.h <<_ACEOF |
| 15760 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15761 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15762 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15763 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15764 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15765 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15766 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15767 | fi |
| 15768 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15769 | |
| 15770 | |
| 15771 | |
| 15772 | |
| 15773 | |
| 15774 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15775 | # checks for system services |
| 15776 | # (none yet) |
| 15777 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15778 | # Linux requires this for correct f.p. operations |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15779 | echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 15780 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6 |
| 15781 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 15782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15783 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15784 | cat >conftest.$ac_ext <<_ACEOF |
| 15785 | #line $LINENO "configure" |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15786 | #include "confdefs.h" |
| 15787 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15788 | which can conflict with char __fpu_control (); below. */ |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15789 | #include <assert.h> |
| 15790 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15791 | #ifdef __cplusplus |
| 15792 | extern "C" |
| 15793 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15794 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15795 | builtin and then its argument prototype would still apply. */ |
| 15796 | char __fpu_control (); |
| 15797 | char (*f) (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15798 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15799 | #ifdef F77_DUMMY_MAIN |
| 15800 | # ifdef __cplusplus |
| 15801 | extern "C" |
| 15802 | # endif |
| 15803 | int F77_DUMMY_MAIN() { return 1; } |
| 15804 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15805 | int |
| 15806 | main () |
| 15807 | { |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15808 | /* The GNU C library defines this for functions which it implements |
| 15809 | to always fail with ENOSYS. Some functions are actually named |
| 15810 | something starting with __ and the normal name is an alias. */ |
| 15811 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 15812 | choke me |
| 15813 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15814 | f = __fpu_control; |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15815 | #endif |
| 15816 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15817 | ; |
| 15818 | return 0; |
| 15819 | } |
| 15820 | _ACEOF |
| 15821 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15822 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15823 | (eval $ac_link) 2>&5 |
| 15824 | ac_status=$? |
| 15825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15826 | (exit $ac_status); } && |
| 15827 | { ac_try='test -s conftest$ac_exeext' |
| 15828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15829 | (eval $ac_try) 2>&5 |
| 15830 | ac_status=$? |
| 15831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15832 | (exit $ac_status); }; }; then |
| 15833 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15834 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15835 | echo "$as_me: failed program was:" >&5 |
| 15836 | cat conftest.$ac_ext >&5 |
| 15837 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15838 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15839 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15840 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15841 | echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 15842 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6 |
| 15843 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15844 | : |
| 15845 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15846 | |
| 15847 | echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 15848 | echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6 |
| 15849 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 15850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15851 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15852 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15853 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15854 | cat >conftest.$ac_ext <<_ACEOF |
| 15855 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15856 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15857 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15858 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15859 | #ifdef __cplusplus |
| 15860 | extern "C" |
| 15861 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15862 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15863 | builtin and then its argument prototype would still apply. */ |
| 15864 | char __fpu_control (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 15865 | #ifdef F77_DUMMY_MAIN |
| 15866 | # ifdef __cplusplus |
| 15867 | extern "C" |
| 15868 | # endif |
| 15869 | int F77_DUMMY_MAIN() { return 1; } |
| 15870 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15871 | int |
| 15872 | main () |
| 15873 | { |
| 15874 | __fpu_control (); |
| 15875 | ; |
| 15876 | return 0; |
| 15877 | } |
| 15878 | _ACEOF |
| 15879 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15880 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15881 | (eval $ac_link) 2>&5 |
| 15882 | ac_status=$? |
| 15883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15884 | (exit $ac_status); } && |
| 15885 | { ac_try='test -s conftest$ac_exeext' |
| 15886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15887 | (eval $ac_try) 2>&5 |
| 15888 | ac_status=$? |
| 15889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15890 | (exit $ac_status); }; }; then |
| 15891 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15892 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15893 | echo "$as_me: failed program was:" >&5 |
| 15894 | cat conftest.$ac_ext >&5 |
| 15895 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15896 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15897 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 15898 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15899 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15900 | echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 15901 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6 |
| 15902 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 15903 | cat >>confdefs.h <<_ACEOF |
| 15904 | #define HAVE_LIBIEEE 1 |
| 15905 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15906 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15907 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15908 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15909 | fi |
| 15910 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15911 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15912 | fi |
| 15913 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15914 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15915 | # Check for --with-fpectl |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15916 | echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 15917 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6 |
| 15918 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15919 | # Check whether --with-fpectl or --without-fpectl was given. |
| 15920 | if test "${with_fpectl+set}" = set; then |
| 15921 | withval="$with_fpectl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15922 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15923 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15924 | then |
| 15925 | |
| 15926 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15927 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15928 | _ACEOF |
| 15929 | |
| 15930 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15931 | echo "${ECHO_T}yes" >&6 |
| 15932 | else echo "$as_me:$LINENO: result: no" >&5 |
| 15933 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15934 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15935 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15936 | echo "$as_me:$LINENO: result: no" >&5 |
| 15937 | echo "${ECHO_T}no" >&6 |
| 15938 | fi; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15939 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15940 | # check for --with-libm=... |
| 15941 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 15942 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 15943 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15944 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 15945 | *) LIBM=-lm |
| 15946 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15947 | echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 15948 | echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6 |
| 15949 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15950 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15951 | if test "${with_libm+set}" = set; then |
| 15952 | withval="$with_libm" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15953 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15954 | if test "$withval" = no |
| 15955 | then LIBM= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15956 | echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 15957 | echo "${ECHO_T}force LIBM empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15958 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15959 | then LIBM=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15960 | echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 15961 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6 |
| 15962 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 15963 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 15964 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15965 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15966 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15967 | echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 15968 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6 |
| 15969 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15970 | |
| 15971 | # check for --with-libc=... |
| 15972 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15973 | echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 15974 | echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6 |
| 15975 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15976 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15977 | if test "${with_libc+set}" = set; then |
| 15978 | withval="$with_libc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15979 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15980 | if test "$withval" = no |
| 15981 | then LIBC= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15982 | echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 15983 | echo "${ECHO_T}force LIBC empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15984 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15985 | then LIBC=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15986 | echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 15987 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6 |
| 15988 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 15989 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 15990 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15991 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15992 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15993 | echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 15994 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6 |
| 15995 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15996 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15997 | # check for hypot() in math library |
| 15998 | LIBS_SAVE=$LIBS |
| 15999 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16000 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 16001 | for ac_func in hypot |
| 16002 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16003 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16004 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 16005 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 16006 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 16007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 16008 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16009 | cat >conftest.$ac_ext <<_ACEOF |
| 16010 | #line $LINENO "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 16011 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16012 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16013 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16014 | #include <assert.h> |
| 16015 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16016 | #ifdef __cplusplus |
| 16017 | extern "C" |
| 16018 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 16019 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16020 | builtin and then its argument prototype would still apply. */ |
| 16021 | char $ac_func (); |
| 16022 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16023 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16024 | #ifdef F77_DUMMY_MAIN |
| 16025 | # ifdef __cplusplus |
| 16026 | extern "C" |
| 16027 | # endif |
| 16028 | int F77_DUMMY_MAIN() { return 1; } |
| 16029 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16030 | int |
| 16031 | main () |
| 16032 | { |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 16033 | /* The GNU C library defines this for functions which it implements |
| 16034 | to always fail with ENOSYS. Some functions are actually named |
| 16035 | something starting with __ and the normal name is an alias. */ |
| 16036 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 16037 | choke me |
| 16038 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16039 | f = $ac_func; |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 16040 | #endif |
| 16041 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16042 | ; |
| 16043 | return 0; |
| 16044 | } |
| 16045 | _ACEOF |
| 16046 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16047 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16048 | (eval $ac_link) 2>&5 |
| 16049 | ac_status=$? |
| 16050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16051 | (exit $ac_status); } && |
| 16052 | { ac_try='test -s conftest$ac_exeext' |
| 16053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16054 | (eval $ac_try) 2>&5 |
| 16055 | ac_status=$? |
| 16056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16057 | (exit $ac_status); }; }; then |
| 16058 | eval "$as_ac_var=yes" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 16059 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16060 | echo "$as_me: failed program was:" >&5 |
| 16061 | cat conftest.$ac_ext >&5 |
| 16062 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16063 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16064 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16065 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16066 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 16067 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 16068 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 16069 | cat >>confdefs.h <<_ACEOF |
| 16070 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 16071 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16072 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16073 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16074 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 16075 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 16076 | done |
| 16077 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16078 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 16079 | LIBS=$LIBS_SAVE |
| 16080 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16081 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16082 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 16083 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 16084 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 16085 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 16086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16087 | fi |
| 16088 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 16089 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16090 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16091 | # Is the header compilable? |
| 16092 | echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 16093 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 |
| 16094 | cat >conftest.$ac_ext <<_ACEOF |
| 16095 | #line $LINENO "configure" |
| 16096 | #include "confdefs.h" |
| 16097 | $ac_includes_default |
| 16098 | #include <wchar.h> |
| 16099 | _ACEOF |
| 16100 | rm -f conftest.$ac_objext |
| 16101 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16102 | (eval $ac_compile) 2>&5 |
| 16103 | ac_status=$? |
| 16104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16105 | (exit $ac_status); } && |
| 16106 | { ac_try='test -s conftest.$ac_objext' |
| 16107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16108 | (eval $ac_try) 2>&5 |
| 16109 | ac_status=$? |
| 16110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16111 | (exit $ac_status); }; }; then |
| 16112 | ac_header_compiler=yes |
| 16113 | else |
| 16114 | echo "$as_me: failed program was:" >&5 |
| 16115 | cat conftest.$ac_ext >&5 |
| 16116 | ac_header_compiler=no |
| 16117 | fi |
| 16118 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16119 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 16120 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 16121 | |
| 16122 | # Is the header present? |
| 16123 | echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 16124 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 |
| 16125 | cat >conftest.$ac_ext <<_ACEOF |
| 16126 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16127 | #include "confdefs.h" |
| 16128 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16129 | _ACEOF |
| 16130 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 16131 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 16132 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16133 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16134 | rm -f conftest.er1 |
| 16135 | cat conftest.err >&5 |
| 16136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16137 | (exit $ac_status); } >/dev/null; then |
| 16138 | if test -s conftest.err; then |
| 16139 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16140 | else |
| 16141 | ac_cpp_err= |
| 16142 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16143 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16144 | ac_cpp_err=yes |
| 16145 | fi |
| 16146 | if test -z "$ac_cpp_err"; then |
| 16147 | ac_header_preproc=yes |
| 16148 | else |
| 16149 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16150 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16151 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16152 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16153 | rm -f conftest.err conftest.$ac_ext |
| 16154 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 16155 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 16156 | |
| 16157 | # So? What about this header? |
| 16158 | case $ac_header_compiler:$ac_header_preproc in |
| 16159 | yes:no ) |
| 16160 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 16161 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 16162 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 16163 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};; |
| 16164 | no:yes ) |
| 16165 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 16166 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 16167 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 16168 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 16169 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 16170 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};; |
| 16171 | esac |
| 16172 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 16173 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 16174 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 16175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16176 | else |
| 16177 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16178 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16179 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 16180 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
| 16181 | |
| 16182 | fi |
| 16183 | if test $ac_cv_header_wchar_h = yes; then |
| 16184 | |
| 16185 | |
| 16186 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16187 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16188 | _ACEOF |
| 16189 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 16190 | wchar_h="yes" |
| 16191 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16192 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16193 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16194 | |
| 16195 | fi |
| 16196 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16197 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16198 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16199 | # determine wchar_t size |
| 16200 | if test "$wchar_h" = yes |
| 16201 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16202 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 16203 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 |
| 16204 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 16205 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16206 | else |
| 16207 | cat >conftest.$ac_ext <<_ACEOF |
| 16208 | #line $LINENO "configure" |
| 16209 | #include "confdefs.h" |
| 16210 | #include <wchar.h> |
| 16211 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16212 | #ifdef F77_DUMMY_MAIN |
| 16213 | # ifdef __cplusplus |
| 16214 | extern "C" |
| 16215 | # endif |
| 16216 | int F77_DUMMY_MAIN() { return 1; } |
| 16217 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16218 | int |
| 16219 | main () |
| 16220 | { |
| 16221 | if ((wchar_t *) 0) |
| 16222 | return 0; |
| 16223 | if (sizeof (wchar_t)) |
| 16224 | return 0; |
| 16225 | ; |
| 16226 | return 0; |
| 16227 | } |
| 16228 | _ACEOF |
| 16229 | rm -f conftest.$ac_objext |
| 16230 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16231 | (eval $ac_compile) 2>&5 |
| 16232 | ac_status=$? |
| 16233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16234 | (exit $ac_status); } && |
| 16235 | { ac_try='test -s conftest.$ac_objext' |
| 16236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16237 | (eval $ac_try) 2>&5 |
| 16238 | ac_status=$? |
| 16239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16240 | (exit $ac_status); }; }; then |
| 16241 | ac_cv_type_wchar_t=yes |
| 16242 | else |
| 16243 | echo "$as_me: failed program was:" >&5 |
| 16244 | cat conftest.$ac_ext >&5 |
| 16245 | ac_cv_type_wchar_t=no |
| 16246 | fi |
| 16247 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16248 | fi |
| 16249 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 16250 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 |
| 16251 | |
| 16252 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 16253 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 |
| 16254 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 16255 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16256 | else |
| 16257 | if test "$ac_cv_type_wchar_t" = yes; then |
| 16258 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 16259 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 16260 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 16261 | # This bug is HP SR number 8606223364. |
| 16262 | if test "$cross_compiling" = yes; then |
| 16263 | # Depending upon the size, compute the lo and hi bounds. |
| 16264 | cat >conftest.$ac_ext <<_ACEOF |
| 16265 | #line $LINENO "configure" |
| 16266 | #include "confdefs.h" |
| 16267 | #include <wchar.h> |
| 16268 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16269 | #ifdef F77_DUMMY_MAIN |
| 16270 | # ifdef __cplusplus |
| 16271 | extern "C" |
| 16272 | # endif |
| 16273 | int F77_DUMMY_MAIN() { return 1; } |
| 16274 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16275 | int |
| 16276 | main () |
| 16277 | { |
| 16278 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; |
| 16279 | test_array [0] = 0 |
| 16280 | |
| 16281 | ; |
| 16282 | return 0; |
| 16283 | } |
| 16284 | _ACEOF |
| 16285 | rm -f conftest.$ac_objext |
| 16286 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16287 | (eval $ac_compile) 2>&5 |
| 16288 | ac_status=$? |
| 16289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16290 | (exit $ac_status); } && |
| 16291 | { ac_try='test -s conftest.$ac_objext' |
| 16292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16293 | (eval $ac_try) 2>&5 |
| 16294 | ac_status=$? |
| 16295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16296 | (exit $ac_status); }; }; then |
| 16297 | ac_lo=0 ac_mid=0 |
| 16298 | while :; do |
| 16299 | cat >conftest.$ac_ext <<_ACEOF |
| 16300 | #line $LINENO "configure" |
| 16301 | #include "confdefs.h" |
| 16302 | #include <wchar.h> |
| 16303 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16304 | #ifdef F77_DUMMY_MAIN |
| 16305 | # ifdef __cplusplus |
| 16306 | extern "C" |
| 16307 | # endif |
| 16308 | int F77_DUMMY_MAIN() { return 1; } |
| 16309 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16310 | int |
| 16311 | main () |
| 16312 | { |
| 16313 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 16314 | test_array [0] = 0 |
| 16315 | |
| 16316 | ; |
| 16317 | return 0; |
| 16318 | } |
| 16319 | _ACEOF |
| 16320 | rm -f conftest.$ac_objext |
| 16321 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16322 | (eval $ac_compile) 2>&5 |
| 16323 | ac_status=$? |
| 16324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16325 | (exit $ac_status); } && |
| 16326 | { ac_try='test -s conftest.$ac_objext' |
| 16327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16328 | (eval $ac_try) 2>&5 |
| 16329 | ac_status=$? |
| 16330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16331 | (exit $ac_status); }; }; then |
| 16332 | ac_hi=$ac_mid; break |
| 16333 | else |
| 16334 | echo "$as_me: failed program was:" >&5 |
| 16335 | cat conftest.$ac_ext >&5 |
| 16336 | ac_lo=`expr $ac_mid + 1` |
| 16337 | if test $ac_lo -le $ac_mid; then |
| 16338 | ac_lo= ac_hi= |
| 16339 | break |
| 16340 | fi |
| 16341 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 16342 | fi |
| 16343 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16344 | done |
| 16345 | else |
| 16346 | echo "$as_me: failed program was:" >&5 |
| 16347 | cat conftest.$ac_ext >&5 |
| 16348 | cat >conftest.$ac_ext <<_ACEOF |
| 16349 | #line $LINENO "configure" |
| 16350 | #include "confdefs.h" |
| 16351 | #include <wchar.h> |
| 16352 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16353 | #ifdef F77_DUMMY_MAIN |
| 16354 | # ifdef __cplusplus |
| 16355 | extern "C" |
| 16356 | # endif |
| 16357 | int F77_DUMMY_MAIN() { return 1; } |
| 16358 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16359 | int |
| 16360 | main () |
| 16361 | { |
| 16362 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; |
| 16363 | test_array [0] = 0 |
| 16364 | |
| 16365 | ; |
| 16366 | return 0; |
| 16367 | } |
| 16368 | _ACEOF |
| 16369 | rm -f conftest.$ac_objext |
| 16370 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16371 | (eval $ac_compile) 2>&5 |
| 16372 | ac_status=$? |
| 16373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16374 | (exit $ac_status); } && |
| 16375 | { ac_try='test -s conftest.$ac_objext' |
| 16376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16377 | (eval $ac_try) 2>&5 |
| 16378 | ac_status=$? |
| 16379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16380 | (exit $ac_status); }; }; then |
| 16381 | ac_hi=-1 ac_mid=-1 |
| 16382 | while :; do |
| 16383 | cat >conftest.$ac_ext <<_ACEOF |
| 16384 | #line $LINENO "configure" |
| 16385 | #include "confdefs.h" |
| 16386 | #include <wchar.h> |
| 16387 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16388 | #ifdef F77_DUMMY_MAIN |
| 16389 | # ifdef __cplusplus |
| 16390 | extern "C" |
| 16391 | # endif |
| 16392 | int F77_DUMMY_MAIN() { return 1; } |
| 16393 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16394 | int |
| 16395 | main () |
| 16396 | { |
| 16397 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; |
| 16398 | test_array [0] = 0 |
| 16399 | |
| 16400 | ; |
| 16401 | return 0; |
| 16402 | } |
| 16403 | _ACEOF |
| 16404 | rm -f conftest.$ac_objext |
| 16405 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16406 | (eval $ac_compile) 2>&5 |
| 16407 | ac_status=$? |
| 16408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16409 | (exit $ac_status); } && |
| 16410 | { ac_try='test -s conftest.$ac_objext' |
| 16411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16412 | (eval $ac_try) 2>&5 |
| 16413 | ac_status=$? |
| 16414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16415 | (exit $ac_status); }; }; then |
| 16416 | ac_lo=$ac_mid; break |
| 16417 | else |
| 16418 | echo "$as_me: failed program was:" >&5 |
| 16419 | cat conftest.$ac_ext >&5 |
| 16420 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 16421 | if test $ac_mid -le $ac_hi; then |
| 16422 | ac_lo= ac_hi= |
| 16423 | break |
| 16424 | fi |
| 16425 | ac_mid=`expr 2 '*' $ac_mid` |
| 16426 | fi |
| 16427 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16428 | done |
| 16429 | else |
| 16430 | echo "$as_me: failed program was:" >&5 |
| 16431 | cat conftest.$ac_ext >&5 |
| 16432 | ac_lo= ac_hi= |
| 16433 | fi |
| 16434 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16435 | fi |
| 16436 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16437 | # Binary search between lo and hi bounds. |
| 16438 | while test "x$ac_lo" != "x$ac_hi"; do |
| 16439 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 16440 | cat >conftest.$ac_ext <<_ACEOF |
| 16441 | #line $LINENO "configure" |
| 16442 | #include "confdefs.h" |
| 16443 | #include <wchar.h> |
| 16444 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16445 | #ifdef F77_DUMMY_MAIN |
| 16446 | # ifdef __cplusplus |
| 16447 | extern "C" |
| 16448 | # endif |
| 16449 | int F77_DUMMY_MAIN() { return 1; } |
| 16450 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16451 | int |
| 16452 | main () |
| 16453 | { |
| 16454 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 16455 | test_array [0] = 0 |
| 16456 | |
| 16457 | ; |
| 16458 | return 0; |
| 16459 | } |
| 16460 | _ACEOF |
| 16461 | rm -f conftest.$ac_objext |
| 16462 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16463 | (eval $ac_compile) 2>&5 |
| 16464 | ac_status=$? |
| 16465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16466 | (exit $ac_status); } && |
| 16467 | { ac_try='test -s conftest.$ac_objext' |
| 16468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16469 | (eval $ac_try) 2>&5 |
| 16470 | ac_status=$? |
| 16471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16472 | (exit $ac_status); }; }; then |
| 16473 | ac_hi=$ac_mid |
| 16474 | else |
| 16475 | echo "$as_me: failed program was:" >&5 |
| 16476 | cat conftest.$ac_ext >&5 |
| 16477 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 16478 | fi |
| 16479 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16480 | done |
| 16481 | case $ac_lo in |
| 16482 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
| 16483 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5 |
| 16484 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;} |
| 16485 | { (exit 1); exit 1; }; } ;; |
| 16486 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16487 | else |
| 16488 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16489 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 16490 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 16491 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16492 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16493 | cat >conftest.$ac_ext <<_ACEOF |
| 16494 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16495 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16496 | #include <wchar.h> |
| 16497 | |
| 16498 | long longval () { return (long) (sizeof (wchar_t)); } |
| 16499 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16500 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16501 | #include <stdlib.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16502 | #ifdef F77_DUMMY_MAIN |
| 16503 | # ifdef __cplusplus |
| 16504 | extern "C" |
| 16505 | # endif |
| 16506 | int F77_DUMMY_MAIN() { return 1; } |
| 16507 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16508 | int |
| 16509 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16510 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16511 | |
| 16512 | FILE *f = fopen ("conftest.val", "w"); |
| 16513 | if (! f) |
| 16514 | exit (1); |
| 16515 | if (((long) (sizeof (wchar_t))) < 0) |
| 16516 | { |
| 16517 | long i = longval (); |
| 16518 | if (i != ((long) (sizeof (wchar_t)))) |
| 16519 | exit (1); |
| 16520 | fprintf (f, "%ld\n", i); |
| 16521 | } |
| 16522 | else |
| 16523 | { |
| 16524 | unsigned long i = ulongval (); |
| 16525 | if (i != ((long) (sizeof (wchar_t)))) |
| 16526 | exit (1); |
| 16527 | fprintf (f, "%lu\n", i); |
| 16528 | } |
| 16529 | exit (ferror (f) || fclose (f) != 0); |
| 16530 | |
| 16531 | ; |
| 16532 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16533 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16534 | _ACEOF |
| 16535 | rm -f conftest$ac_exeext |
| 16536 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16537 | (eval $ac_link) 2>&5 |
| 16538 | ac_status=$? |
| 16539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16540 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16542 | (eval $ac_try) 2>&5 |
| 16543 | ac_status=$? |
| 16544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16545 | (exit $ac_status); }; }; then |
| 16546 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16547 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16548 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16549 | echo "$as_me: failed program was:" >&5 |
| 16550 | cat conftest.$ac_ext >&5 |
| 16551 | ( exit $ac_status ) |
| 16552 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5 |
| 16553 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;} |
| 16554 | { (exit 1); exit 1; }; } |
| 16555 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16556 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16557 | fi |
| 16558 | fi |
| 16559 | rm -f conftest.val |
| 16560 | else |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16561 | ac_cv_sizeof_wchar_t=0 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16562 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16563 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16564 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 16565 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 |
| 16566 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16567 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16568 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16569 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16570 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16571 | fi |
| 16572 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16573 | echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 16574 | echo $ECHO_N "checking what type to use for unicode... $ECHO_C" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16575 | # Check whether --enable-unicode or --disable-unicode was given. |
| 16576 | if test "${enable_unicode+set}" = set; then |
| 16577 | enableval="$enable_unicode" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16578 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16579 | else |
| 16580 | enable_unicode=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16581 | fi; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16582 | |
| 16583 | if test $enable_unicode = yes |
| 16584 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 16585 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
| 16586 | enable_unicode="ucs2" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16587 | fi |
| 16588 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 16589 | |
| 16590 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16591 | case "$enable_unicode" in |
| 16592 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16593 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16594 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16595 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16596 | |
| 16597 | ;; |
| 16598 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16599 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16600 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16601 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16602 | |
| 16603 | ;; |
| 16604 | esac |
| 16605 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16606 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16607 | |
| 16608 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 16609 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16610 | if test "$enable_unicode" = "no" |
| 16611 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 16612 | UNICODE_OBJS="" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16613 | echo "$as_me:$LINENO: result: not used" >&5 |
| 16614 | echo "${ECHO_T}not used" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16615 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 16616 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16617 | |
| 16618 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16619 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16620 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16621 | |
| 16622 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" |
| 16623 | then |
| 16624 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16625 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16626 | cat >>confdefs.h <<\_ACEOF |
| 16627 | #define HAVE_USABLE_WCHAR_T 1 |
| 16628 | _ACEOF |
| 16629 | |
| 16630 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16631 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16632 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16633 | |
| 16634 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 16635 | then |
| 16636 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16637 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16638 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16639 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16640 | |
| 16641 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 16642 | then |
| 16643 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16644 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16645 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16646 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16647 | |
| 16648 | else |
| 16649 | PY_UNICODE_TYPE="no type found" |
| 16650 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16651 | echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 16652 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 16653 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16654 | |
| 16655 | # check for endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16656 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 16657 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 16658 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 16659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16660 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16661 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 16662 | cat >conftest.$ac_ext <<_ACEOF |
| 16663 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16664 | #include "confdefs.h" |
| 16665 | #include <sys/types.h> |
| 16666 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16667 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16668 | #ifdef F77_DUMMY_MAIN |
| 16669 | # ifdef __cplusplus |
| 16670 | extern "C" |
| 16671 | # endif |
| 16672 | int F77_DUMMY_MAIN() { return 1; } |
| 16673 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16674 | int |
| 16675 | main () |
| 16676 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16677 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 16678 | bogus endian macros |
| 16679 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16680 | |
| 16681 | ; |
| 16682 | return 0; |
| 16683 | } |
| 16684 | _ACEOF |
| 16685 | rm -f conftest.$ac_objext |
| 16686 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16687 | (eval $ac_compile) 2>&5 |
| 16688 | ac_status=$? |
| 16689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16690 | (exit $ac_status); } && |
| 16691 | { ac_try='test -s conftest.$ac_objext' |
| 16692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16693 | (eval $ac_try) 2>&5 |
| 16694 | ac_status=$? |
| 16695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16696 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16697 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16698 | cat >conftest.$ac_ext <<_ACEOF |
| 16699 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16700 | #include "confdefs.h" |
| 16701 | #include <sys/types.h> |
| 16702 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16703 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16704 | #ifdef F77_DUMMY_MAIN |
| 16705 | # ifdef __cplusplus |
| 16706 | extern "C" |
| 16707 | # endif |
| 16708 | int F77_DUMMY_MAIN() { return 1; } |
| 16709 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16710 | int |
| 16711 | main () |
| 16712 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16713 | #if BYTE_ORDER != BIG_ENDIAN |
| 16714 | not big endian |
| 16715 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16716 | |
| 16717 | ; |
| 16718 | return 0; |
| 16719 | } |
| 16720 | _ACEOF |
| 16721 | rm -f conftest.$ac_objext |
| 16722 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16723 | (eval $ac_compile) 2>&5 |
| 16724 | ac_status=$? |
| 16725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16726 | (exit $ac_status); } && |
| 16727 | { ac_try='test -s conftest.$ac_objext' |
| 16728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16729 | (eval $ac_try) 2>&5 |
| 16730 | ac_status=$? |
| 16731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16732 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16733 | ac_cv_c_bigendian=yes |
| 16734 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16735 | echo "$as_me: failed program was:" >&5 |
| 16736 | cat conftest.$ac_ext >&5 |
| 16737 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16738 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16739 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16740 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16741 | echo "$as_me: failed program was:" >&5 |
| 16742 | cat conftest.$ac_ext >&5 |
| 16743 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16744 | if test "$cross_compiling" = yes; then |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16745 | # try to guess the endianess by grep'ing values into an object file |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16746 | ac_cv_c_bigendian=unknown |
| 16747 | cat >conftest.$ac_ext <<_ACEOF |
| 16748 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16749 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16750 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 16751 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 16752 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 16753 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 16754 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 16755 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16756 | #ifdef F77_DUMMY_MAIN |
| 16757 | # ifdef __cplusplus |
| 16758 | extern "C" |
| 16759 | # endif |
| 16760 | int F77_DUMMY_MAIN() { return 1; } |
| 16761 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16762 | int |
| 16763 | main () |
| 16764 | { |
| 16765 | _ascii (); _ebcdic (); |
| 16766 | ; |
| 16767 | return 0; |
| 16768 | } |
| 16769 | _ACEOF |
| 16770 | rm -f conftest.$ac_objext |
| 16771 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16772 | (eval $ac_compile) 2>&5 |
| 16773 | ac_status=$? |
| 16774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16775 | (exit $ac_status); } && |
| 16776 | { ac_try='test -s conftest.$ac_objext' |
| 16777 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16778 | (eval $ac_try) 2>&5 |
| 16779 | ac_status=$? |
| 16780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16781 | (exit $ac_status); }; }; then |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16782 | if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16783 | ac_cv_c_bigendian=yes |
| 16784 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16785 | if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16786 | if test "$ac_cv_c_bigendian" = unknown; then |
| 16787 | ac_cv_c_bigendian=no |
| 16788 | else |
| 16789 | # finding both strings is unlikely to happen, but who knows? |
| 16790 | ac_cv_c_bigendian=unknown |
| 16791 | fi |
| 16792 | fi |
| 16793 | else |
| 16794 | echo "$as_me: failed program was:" >&5 |
| 16795 | cat conftest.$ac_ext >&5 |
| 16796 | fi |
| 16797 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16798 | else |
| 16799 | cat >conftest.$ac_ext <<_ACEOF |
| 16800 | #line $LINENO "configure" |
| 16801 | #include "confdefs.h" |
| 16802 | int |
| 16803 | main () |
| 16804 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16805 | /* Are we little or big endian? From Harbison&Steele. */ |
| 16806 | union |
| 16807 | { |
| 16808 | long l; |
| 16809 | char c[sizeof (long)]; |
| 16810 | } u; |
| 16811 | u.l = 1; |
| 16812 | exit (u.c[sizeof (long) - 1] == 1); |
| 16813 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16814 | _ACEOF |
| 16815 | rm -f conftest$ac_exeext |
| 16816 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16817 | (eval $ac_link) 2>&5 |
| 16818 | ac_status=$? |
| 16819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16820 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16822 | (eval $ac_try) 2>&5 |
| 16823 | ac_status=$? |
| 16824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16825 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16826 | ac_cv_c_bigendian=no |
| 16827 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16828 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16829 | echo "$as_me: failed program was:" >&5 |
| 16830 | cat conftest.$ac_ext >&5 |
| 16831 | ( exit $ac_status ) |
| 16832 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16833 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16834 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16835 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16836 | fi |
| 16837 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16838 | fi |
| 16839 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 16840 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 16841 | case $ac_cv_c_bigendian in |
| 16842 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16843 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16844 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16845 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16846 | _ACEOF |
| 16847 | ;; |
| 16848 | no) |
| 16849 | ;; |
| 16850 | *) |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16851 | { { echo "$as_me:$LINENO: error: unknown endianess |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16852 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16853 | echo "$as_me: error: unknown endianess |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16854 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 16855 | { (exit 1); exit 1; }; } ;; |
| 16856 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16857 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16858 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16859 | # Check whether right shifting a negative integer extends the sign bit |
| 16860 | # or fills with zeros (like the Cray J90, according to Tim Peters). |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16861 | echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 16862 | echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6 |
| 16863 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 16864 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16865 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16866 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16867 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 16868 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16869 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16870 | cat >conftest.$ac_ext <<_ACEOF |
| 16871 | #line $LINENO "configure" |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16872 | #include "confdefs.h" |
| 16873 | |
| 16874 | int main() |
| 16875 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16876 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16877 | } |
| 16878 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16879 | _ACEOF |
| 16880 | rm -f conftest$ac_exeext |
| 16881 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16882 | (eval $ac_link) 2>&5 |
| 16883 | ac_status=$? |
| 16884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16885 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16887 | (eval $ac_try) 2>&5 |
| 16888 | ac_status=$? |
| 16889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16890 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16891 | ac_cv_rshift_extends_sign=yes |
| 16892 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16893 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16894 | echo "$as_me: failed program was:" >&5 |
| 16895 | cat conftest.$ac_ext >&5 |
| 16896 | ( exit $ac_status ) |
| 16897 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16898 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16899 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16900 | fi |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16901 | fi |
| 16902 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16903 | echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 16904 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16905 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16906 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16907 | |
| 16908 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16909 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16910 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16911 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16912 | fi |
| 16913 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16914 | # check for getc_unlocked and related locking functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16915 | echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 16916 | echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6 |
| 16917 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 16918 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16919 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16920 | |
| 16921 | cat >conftest.$ac_ext <<_ACEOF |
| 16922 | #line $LINENO "configure" |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16923 | #include "confdefs.h" |
| 16924 | #include <stdio.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16925 | #ifdef F77_DUMMY_MAIN |
| 16926 | # ifdef __cplusplus |
| 16927 | extern "C" |
| 16928 | # endif |
| 16929 | int F77_DUMMY_MAIN() { return 1; } |
| 16930 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16931 | int |
| 16932 | main () |
| 16933 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16934 | |
| 16935 | FILE *f = fopen("/dev/null", "r"); |
| 16936 | flockfile(f); |
| 16937 | getc_unlocked(f); |
| 16938 | funlockfile(f); |
| 16939 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16940 | ; |
| 16941 | return 0; |
| 16942 | } |
| 16943 | _ACEOF |
| 16944 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16945 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16946 | (eval $ac_link) 2>&5 |
| 16947 | ac_status=$? |
| 16948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16949 | (exit $ac_status); } && |
| 16950 | { ac_try='test -s conftest$ac_exeext' |
| 16951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16952 | (eval $ac_try) 2>&5 |
| 16953 | ac_status=$? |
| 16954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16955 | (exit $ac_status); }; }; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16956 | ac_cv_have_getc_unlocked=yes |
| 16957 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16958 | echo "$as_me: failed program was:" >&5 |
| 16959 | cat conftest.$ac_ext >&5 |
| 16960 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16961 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16962 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16963 | fi |
| 16964 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16965 | echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 16966 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16967 | if test "$ac_cv_have_getc_unlocked" = yes |
| 16968 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16969 | |
| 16970 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16971 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16972 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16973 | |
| 16974 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16975 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 16976 | # check for readline 2.2 |
| 16977 | cat >conftest.$ac_ext <<_ACEOF |
| 16978 | #line $LINENO "configure" |
| 16979 | #include "confdefs.h" |
| 16980 | #include <readline/readline.h> |
| 16981 | _ACEOF |
| 16982 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 16983 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 16984 | ac_status=$? |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 16985 | egrep -v '^ *\+' conftest.er1 >conftest.err |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 16986 | rm -f conftest.er1 |
| 16987 | cat conftest.err >&5 |
| 16988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16989 | (exit $ac_status); } >/dev/null; then |
| 16990 | if test -s conftest.err; then |
| 16991 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16992 | else |
| 16993 | ac_cpp_err= |
| 16994 | fi |
| 16995 | else |
| 16996 | ac_cpp_err=yes |
| 16997 | fi |
| 16998 | if test -z "$ac_cpp_err"; then |
| 16999 | have_readline=yes |
| 17000 | else |
| 17001 | echo "$as_me: failed program was:" >&5 |
| 17002 | cat conftest.$ac_ext >&5 |
| 17003 | have_readline=no |
| 17004 | fi |
| 17005 | rm -f conftest.err conftest.$ac_ext |
| 17006 | if test $have_readline = yes |
| 17007 | then |
| 17008 | cat >conftest.$ac_ext <<_ACEOF |
| 17009 | #line $LINENO "configure" |
| 17010 | #include "confdefs.h" |
| 17011 | #include <readline/readline.h> |
| 17012 | |
| 17013 | _ACEOF |
| 17014 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17015 | egrep "extern int rl_completion_append_character;" >/dev/null 2>&1; then |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 17016 | |
| 17017 | cat >>confdefs.h <<\_ACEOF |
| 17018 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 17019 | _ACEOF |
| 17020 | |
| 17021 | fi |
| 17022 | rm -f conftest* |
| 17023 | |
| 17024 | fi |
| 17025 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17026 | # check for readline 4.0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17027 | echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 17028 | echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6 |
| 17029 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 17030 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17031 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17032 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17033 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17034 | cat >conftest.$ac_ext <<_ACEOF |
| 17035 | #line $LINENO "configure" |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17036 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17037 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17038 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17039 | #ifdef __cplusplus |
| 17040 | extern "C" |
| 17041 | #endif |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17042 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17043 | builtin and then its argument prototype would still apply. */ |
| 17044 | char rl_pre_input_hook (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17045 | #ifdef F77_DUMMY_MAIN |
| 17046 | # ifdef __cplusplus |
| 17047 | extern "C" |
| 17048 | # endif |
| 17049 | int F77_DUMMY_MAIN() { return 1; } |
| 17050 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17051 | int |
| 17052 | main () |
| 17053 | { |
| 17054 | rl_pre_input_hook (); |
| 17055 | ; |
| 17056 | return 0; |
| 17057 | } |
| 17058 | _ACEOF |
| 17059 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17060 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17061 | (eval $ac_link) 2>&5 |
| 17062 | ac_status=$? |
| 17063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17064 | (exit $ac_status); } && |
| 17065 | { ac_try='test -s conftest$ac_exeext' |
| 17066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17067 | (eval $ac_try) 2>&5 |
| 17068 | ac_status=$? |
| 17069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17070 | (exit $ac_status); }; }; then |
| 17071 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17072 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17073 | echo "$as_me: failed program was:" >&5 |
| 17074 | cat conftest.$ac_ext >&5 |
| 17075 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17076 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17077 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 17078 | LIBS=$ac_check_lib_save_LIBS |
| 17079 | fi |
| 17080 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 17081 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6 |
| 17082 | if test $ac_cv_lib_readline_rl_pre_input_hook = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17083 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17084 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17085 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17086 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17087 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17088 | fi |
| 17089 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17090 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17091 | # check for readline 4.2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17092 | echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 17093 | echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6 |
| 17094 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 17095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17096 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17097 | ac_check_lib_save_LIBS=$LIBS |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17098 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17099 | cat >conftest.$ac_ext <<_ACEOF |
| 17100 | #line $LINENO "configure" |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17101 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17102 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17103 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17104 | #ifdef __cplusplus |
| 17105 | extern "C" |
| 17106 | #endif |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 17107 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17108 | builtin and then its argument prototype would still apply. */ |
| 17109 | char rl_completion_matches (); |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17110 | #ifdef F77_DUMMY_MAIN |
| 17111 | # ifdef __cplusplus |
| 17112 | extern "C" |
| 17113 | # endif |
| 17114 | int F77_DUMMY_MAIN() { return 1; } |
| 17115 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17116 | int |
| 17117 | main () |
| 17118 | { |
| 17119 | rl_completion_matches (); |
| 17120 | ; |
| 17121 | return 0; |
| 17122 | } |
| 17123 | _ACEOF |
| 17124 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 17125 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17126 | (eval $ac_link) 2>&5 |
| 17127 | ac_status=$? |
| 17128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17129 | (exit $ac_status); } && |
| 17130 | { ac_try='test -s conftest$ac_exeext' |
| 17131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17132 | (eval $ac_try) 2>&5 |
| 17133 | ac_status=$? |
| 17134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17135 | (exit $ac_status); }; }; then |
| 17136 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17137 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17138 | echo "$as_me: failed program was:" >&5 |
| 17139 | cat conftest.$ac_ext >&5 |
| 17140 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17141 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17142 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 17143 | LIBS=$ac_check_lib_save_LIBS |
| 17144 | fi |
| 17145 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 17146 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6 |
| 17147 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17148 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17149 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17150 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17151 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17152 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 17153 | fi |
| 17154 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17155 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17156 | echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 17157 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6 |
| 17158 | if test "${ac_cv_broken_nice+set}" = set; then |
| 17159 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17160 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17161 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17162 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 17163 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17164 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17165 | cat >conftest.$ac_ext <<_ACEOF |
| 17166 | #line $LINENO "configure" |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17167 | #include "confdefs.h" |
| 17168 | |
| 17169 | int main() |
| 17170 | { |
| 17171 | int val1 = nice(1); |
| 17172 | if (val1 != -1 && val1 == nice(2)) |
| 17173 | exit(0); |
| 17174 | exit(1); |
| 17175 | } |
| 17176 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17177 | _ACEOF |
| 17178 | rm -f conftest$ac_exeext |
| 17179 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17180 | (eval $ac_link) 2>&5 |
| 17181 | ac_status=$? |
| 17182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17183 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17185 | (eval $ac_try) 2>&5 |
| 17186 | ac_status=$? |
| 17187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17188 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17189 | ac_cv_broken_nice=yes |
| 17190 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17191 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17192 | echo "$as_me: failed program was:" >&5 |
| 17193 | cat conftest.$ac_ext >&5 |
| 17194 | ( exit $ac_status ) |
| 17195 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17196 | fi |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17197 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17198 | fi |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17199 | fi |
| 17200 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17201 | echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 17202 | echo "${ECHO_T}$ac_cv_broken_nice" >&6 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17203 | if test "$ac_cv_broken_nice" = yes |
| 17204 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17205 | |
| 17206 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17207 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17208 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 17209 | |
| 17210 | fi |
| 17211 | |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 17212 | # tzset(3) exists and works like we expect it to |
| 17213 | echo "$as_me:$LINENO: checking for working tzset()" >&5 |
| 17214 | echo $ECHO_N "checking for working tzset()... $ECHO_C" >&6 |
| 17215 | if test "${ac_cv_working_tzset+set}" = set; then |
| 17216 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17217 | else |
| 17218 | |
| 17219 | if test "$cross_compiling" = yes; then |
| 17220 | ac_cv_working_tzset=no |
| 17221 | else |
| 17222 | cat >conftest.$ac_ext <<_ACEOF |
| 17223 | #line $LINENO "configure" |
| 17224 | #include "confdefs.h" |
| 17225 | |
| 17226 | #include <stdlib.h> |
| 17227 | #include <time.h> |
| 17228 | int main() |
| 17229 | { |
| 17230 | int gmt_hour; |
| 17231 | int eastern_hour; |
| 17232 | time_t now; |
| 17233 | now = time((time_t*)NULL); |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 17234 | putenv("TZ=UTC+0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 17235 | tzset(); |
| 17236 | gmt_hour = localtime(&now)->tm_hour; |
Neal Norwitz | 7f2588c | 2003-04-11 15:35:53 +0000 | [diff] [blame] | 17237 | putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); |
Guido van Rossum | d11b62e | 2003-03-14 21:51:36 +0000 | [diff] [blame] | 17238 | tzset(); |
| 17239 | eastern_hour = localtime(&now)->tm_hour; |
| 17240 | if (eastern_hour == gmt_hour) |
| 17241 | exit(1); |
| 17242 | exit(0); |
| 17243 | } |
| 17244 | |
| 17245 | _ACEOF |
| 17246 | rm -f conftest$ac_exeext |
| 17247 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 17248 | (eval $ac_link) 2>&5 |
| 17249 | ac_status=$? |
| 17250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17251 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 17252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17253 | (eval $ac_try) 2>&5 |
| 17254 | ac_status=$? |
| 17255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17256 | (exit $ac_status); }; }; then |
| 17257 | ac_cv_working_tzset=yes |
| 17258 | else |
| 17259 | echo "$as_me: program exited with status $ac_status" >&5 |
| 17260 | echo "$as_me: failed program was:" >&5 |
| 17261 | cat conftest.$ac_ext >&5 |
| 17262 | ( exit $ac_status ) |
| 17263 | ac_cv_working_tzset=no |
| 17264 | fi |
| 17265 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 17266 | fi |
| 17267 | fi |
| 17268 | |
| 17269 | echo "$as_me:$LINENO: result: $ac_cv_working_tzset" >&5 |
| 17270 | echo "${ECHO_T}$ac_cv_working_tzset" >&6 |
| 17271 | if test "$ac_cv_working_tzset" = yes |
| 17272 | then |
| 17273 | |
| 17274 | cat >>confdefs.h <<\_ACEOF |
| 17275 | #define HAVE_WORKING_TZSET 1 |
| 17276 | _ACEOF |
| 17277 | |
| 17278 | fi |
| 17279 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 17280 | # Look for subsecond timestamps in struct stat |
| 17281 | echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 17282 | echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6 |
| 17283 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
| 17284 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 17285 | else |
| 17286 | cat >conftest.$ac_ext <<_ACEOF |
| 17287 | #line $LINENO "configure" |
| 17288 | #include "confdefs.h" |
| 17289 | #include <sys/stat.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17290 | #ifdef F77_DUMMY_MAIN |
| 17291 | # ifdef __cplusplus |
| 17292 | extern "C" |
| 17293 | # endif |
| 17294 | int F77_DUMMY_MAIN() { return 1; } |
| 17295 | #endif |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 17296 | int |
| 17297 | main () |
| 17298 | { |
| 17299 | |
| 17300 | struct stat st; |
| 17301 | st.st_mtim.tv_nsec = 1; |
| 17302 | |
| 17303 | ; |
| 17304 | return 0; |
| 17305 | } |
| 17306 | _ACEOF |
| 17307 | rm -f conftest.$ac_objext |
| 17308 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17309 | (eval $ac_compile) 2>&5 |
| 17310 | ac_status=$? |
| 17311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17312 | (exit $ac_status); } && |
| 17313 | { ac_try='test -s conftest.$ac_objext' |
| 17314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17315 | (eval $ac_try) 2>&5 |
| 17316 | ac_status=$? |
| 17317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17318 | (exit $ac_status); }; }; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 17319 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 17320 | else |
| 17321 | echo "$as_me: failed program was:" >&5 |
| 17322 | cat conftest.$ac_ext >&5 |
| 17323 | ac_cv_stat_tv_nsec=no |
| 17324 | fi |
| 17325 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17326 | fi |
| 17327 | |
| 17328 | echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 17329 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6 |
| 17330 | if test "$ac_cv_stat_tv_nsec" = yes |
| 17331 | then |
| 17332 | |
| 17333 | cat >>confdefs.h <<\_ACEOF |
| 17334 | #define HAVE_STAT_TV_NSEC 1 |
| 17335 | _ACEOF |
| 17336 | |
| 17337 | fi |
| 17338 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17339 | # On HP/UX 11.0, mvwdelch is a block with a return statement |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17340 | echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 17341 | echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6 |
| 17342 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 17343 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17344 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17345 | cat >conftest.$ac_ext <<_ACEOF |
| 17346 | #line $LINENO "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17347 | #include "confdefs.h" |
| 17348 | #include <curses.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17349 | #ifdef F77_DUMMY_MAIN |
| 17350 | # ifdef __cplusplus |
| 17351 | extern "C" |
| 17352 | # endif |
| 17353 | int F77_DUMMY_MAIN() { return 1; } |
| 17354 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17355 | int |
| 17356 | main () |
| 17357 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17358 | |
| 17359 | int rtn; |
| 17360 | rtn = mvwdelch(0,0,0); |
| 17361 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17362 | ; |
| 17363 | return 0; |
| 17364 | } |
| 17365 | _ACEOF |
| 17366 | rm -f conftest.$ac_objext |
| 17367 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17368 | (eval $ac_compile) 2>&5 |
| 17369 | ac_status=$? |
| 17370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17371 | (exit $ac_status); } && |
| 17372 | { ac_try='test -s conftest.$ac_objext' |
| 17373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17374 | (eval $ac_try) 2>&5 |
| 17375 | ac_status=$? |
| 17376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17377 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17378 | ac_cv_mvwdelch_is_expression=yes |
| 17379 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17380 | echo "$as_me: failed program was:" >&5 |
| 17381 | cat conftest.$ac_ext >&5 |
| 17382 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17383 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17384 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17385 | fi |
| 17386 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17387 | echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 17388 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17389 | |
| 17390 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 17391 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17392 | |
| 17393 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17394 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17395 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17396 | |
| 17397 | fi |
| 17398 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17399 | echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 17400 | echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6 |
| 17401 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 17402 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17403 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17404 | cat >conftest.$ac_ext <<_ACEOF |
| 17405 | #line $LINENO "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17406 | #include "confdefs.h" |
| 17407 | #include <curses.h> |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17408 | #ifdef F77_DUMMY_MAIN |
| 17409 | # ifdef __cplusplus |
| 17410 | extern "C" |
| 17411 | # endif |
| 17412 | int F77_DUMMY_MAIN() { return 1; } |
| 17413 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17414 | int |
| 17415 | main () |
| 17416 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17417 | |
| 17418 | WINDOW *w; |
| 17419 | w->_flags = 0; |
| 17420 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17421 | ; |
| 17422 | return 0; |
| 17423 | } |
| 17424 | _ACEOF |
| 17425 | rm -f conftest.$ac_objext |
| 17426 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17427 | (eval $ac_compile) 2>&5 |
| 17428 | ac_status=$? |
| 17429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17430 | (exit $ac_status); } && |
| 17431 | { ac_try='test -s conftest.$ac_objext' |
| 17432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17433 | (eval $ac_try) 2>&5 |
| 17434 | ac_status=$? |
| 17435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17436 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17437 | ac_cv_window_has_flags=yes |
| 17438 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17439 | echo "$as_me: failed program was:" >&5 |
| 17440 | cat conftest.$ac_ext >&5 |
| 17441 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17442 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17443 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17444 | fi |
| 17445 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17446 | echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 17447 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17448 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17449 | |
| 17450 | if test "$ac_cv_window_has_flags" = yes |
| 17451 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17452 | |
| 17453 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17454 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17455 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 17456 | |
| 17457 | fi |
| 17458 | |
Martin v. Löwis | 24a880b | 2002-12-31 12:55:15 +0000 | [diff] [blame] | 17459 | echo "$as_me:$LINENO: checking for /dev/ptmx" >&5 |
| 17460 | echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6 |
| 17461 | |
| 17462 | if test -e /dev/ptmx |
| 17463 | then |
| 17464 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17465 | echo "${ECHO_T}yes" >&6 |
| 17466 | |
| 17467 | cat >>confdefs.h <<\_ACEOF |
| 17468 | #define HAVE_DEV_PTMX 1 |
| 17469 | _ACEOF |
| 17470 | |
| 17471 | else |
| 17472 | echo "$as_me:$LINENO: result: no" >&5 |
| 17473 | echo "${ECHO_T}no" >&6 |
| 17474 | fi |
| 17475 | |
Neal Norwitz | 865400f | 2003-03-21 01:42:58 +0000 | [diff] [blame] | 17476 | echo "$as_me:$LINENO: checking for /dev/ptc" >&5 |
| 17477 | echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 |
| 17478 | |
| 17479 | if test -e /dev/ptc |
| 17480 | then |
| 17481 | echo "$as_me:$LINENO: result: yes" >&5 |
| 17482 | echo "${ECHO_T}yes" >&6 |
| 17483 | |
| 17484 | cat >>confdefs.h <<\_ACEOF |
| 17485 | #define HAVE_DEV_PTC 1 |
| 17486 | _ACEOF |
| 17487 | |
| 17488 | else |
| 17489 | echo "$as_me:$LINENO: result: no" >&5 |
| 17490 | echo "${ECHO_T}no" >&6 |
| 17491 | fi |
| 17492 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17493 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 17494 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 17495 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 17496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 17497 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17498 | cat >conftest.$ac_ext <<_ACEOF |
| 17499 | #line $LINENO "configure" |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 17500 | #include "confdefs.h" |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 17501 | |
| 17502 | #ifdef HAVE_SYS_TYPES_H |
| 17503 | #include <sys/types.h> |
| 17504 | #endif |
| 17505 | #ifdef HAVE_SYS_SOCKET_H |
| 17506 | #include <sys/socket.h> |
| 17507 | #endif |
| 17508 | |
| 17509 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17510 | #ifdef F77_DUMMY_MAIN |
| 17511 | # ifdef __cplusplus |
| 17512 | extern "C" |
| 17513 | # endif |
| 17514 | int F77_DUMMY_MAIN() { return 1; } |
| 17515 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17516 | int |
| 17517 | main () |
| 17518 | { |
| 17519 | if ((socklen_t *) 0) |
| 17520 | return 0; |
| 17521 | if (sizeof (socklen_t)) |
| 17522 | return 0; |
| 17523 | ; |
| 17524 | return 0; |
| 17525 | } |
| 17526 | _ACEOF |
| 17527 | rm -f conftest.$ac_objext |
| 17528 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 17529 | (eval $ac_compile) 2>&5 |
| 17530 | ac_status=$? |
| 17531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17532 | (exit $ac_status); } && |
| 17533 | { ac_try='test -s conftest.$ac_objext' |
| 17534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 17535 | (eval $ac_try) 2>&5 |
| 17536 | ac_status=$? |
| 17537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17538 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 17539 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 17540 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17541 | echo "$as_me: failed program was:" >&5 |
| 17542 | cat conftest.$ac_ext >&5 |
| 17543 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 17544 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17545 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 17546 | fi |
| 17547 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 17548 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| 17549 | if test $ac_cv_type_socklen_t = yes; then |
| 17550 | : |
| 17551 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 17552 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 17553 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 17554 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17555 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 17556 | |
| 17557 | fi |
| 17558 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17559 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17560 | |
| 17561 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 17562 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 17563 | do |
| 17564 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 17565 | done |
| 17566 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17567 | |
Jack Jansen | 0b06be7 | 2002-06-21 14:48:38 +0000 | [diff] [blame] | 17568 | SRCDIRS="Parser Grammar Objects Python Modules Mac Mac/Python" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17569 | echo "$as_me:$LINENO: checking for build directories" >&5 |
| 17570 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 17571 | for dir in $SRCDIRS; do |
| 17572 | if test ! -d $dir; then |
| 17573 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 17574 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 17575 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17576 | echo "$as_me:$LINENO: result: done" >&5 |
| 17577 | echo "${ECHO_T}done" >&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 17578 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17579 | # generate output files |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17580 | ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config" |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 17581 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17582 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17583 | # This file is a shell script that caches the results of configure |
| 17584 | # tests run on this system so they can be shared between configure |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17585 | # scripts and configure runs, see configure's option --config-cache. |
| 17586 | # It is not useful on other systems. If it contains results you don't |
| 17587 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17588 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17589 | # config.status only pays attention to the cache file if you give it |
| 17590 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17591 | # |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17592 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17593 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 17594 | # following values. |
| 17595 | |
| 17596 | _ACEOF |
| 17597 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 17598 | # The following way of writing the cache mishandles newlines in values, |
| 17599 | # but we know of no workaround that is simple, portable, and efficient. |
| 17600 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17601 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 17602 | # and sets the high bit in the cache file unless we assign to the vars. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17603 | { |
| 17604 | (set) 2>&1 | |
| 17605 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 17606 | *ac_space=\ *) |
| 17607 | # `set' does not quote correctly, so add quotes (double-quote |
| 17608 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 17609 | sed -n \ |
| 17610 | "s/'/'\\\\''/g; |
| 17611 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 17612 | ;; |
| 17613 | *) |
| 17614 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 17615 | sed -n \ |
| 17616 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 17617 | ;; |
| 17618 | esac; |
| 17619 | } | |
| 17620 | sed ' |
| 17621 | t clear |
| 17622 | : clear |
| 17623 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 17624 | t end |
| 17625 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 17626 | : end' >>confcache |
| 17627 | if cmp -s $cache_file confcache; then :; else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17628 | if test -w $cache_file; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17629 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 17630 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17631 | else |
| 17632 | echo "not updating unwritable cache $cache_file" |
| 17633 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17634 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 17635 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 17636 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17637 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 17638 | # Let make expand exec_prefix. |
| 17639 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 17640 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17641 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 17642 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 17643 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 17644 | # (actually we leave an empty line to preserve line numbers). |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17645 | if test "x$srcdir" = x.; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17646 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 17647 | s/:*\$(srcdir):*/:/; |
| 17648 | s/:*\${srcdir}:*/:/; |
| 17649 | s/:*@srcdir@:*/:/; |
| 17650 | s/^\([^=]*=[ ]*\):*/\1/; |
| 17651 | s/:*$//; |
| 17652 | s/^[^=]*=[ ]*$//; |
| 17653 | }' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17654 | fi |
| 17655 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17656 | DEFS=-DHAVE_CONFIG_H |
| 17657 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17658 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17659 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17660 | ac_clean_files_save=$ac_clean_files |
| 17661 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 17662 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 17663 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 17664 | cat >$CONFIG_STATUS <<_ACEOF |
| 17665 | #! $SHELL |
| 17666 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17667 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17668 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17669 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17670 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17671 | debug=false |
| 17672 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 17673 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17674 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17675 | cat >>$CONFIG_STATUS <<\_ACEOF |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17676 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17677 | ## --------------------- ## |
| 17678 | ## M4sh Initialization. ## |
| 17679 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17680 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17681 | # Be Bourne compatible |
| 17682 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 17683 | emulate sh |
| 17684 | NULLCMD=: |
| 17685 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 17686 | set -o posix |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17687 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17688 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17689 | # NLS nuisances. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17690 | # Support unset when possible. |
| 17691 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 17692 | as_unset=unset |
| 17693 | else |
| 17694 | as_unset=false |
| 17695 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17696 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17697 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && |
| 17698 | { $as_unset LANG || test "${LANG+set}" != set; } || |
| 17699 | { LANG=C; export LANG; } |
| 17700 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && |
| 17701 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || |
| 17702 | { LC_ALL=C; export LC_ALL; } |
| 17703 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && |
| 17704 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || |
| 17705 | { LC_TIME=C; export LC_TIME; } |
| 17706 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && |
| 17707 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || |
| 17708 | { LC_CTYPE=C; export LC_CTYPE; } |
| 17709 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && |
| 17710 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || |
| 17711 | { LANGUAGE=C; export LANGUAGE; } |
| 17712 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && |
| 17713 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || |
| 17714 | { LC_COLLATE=C; export LC_COLLATE; } |
| 17715 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && |
| 17716 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || |
| 17717 | { LC_NUMERIC=C; export LC_NUMERIC; } |
| 17718 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && |
| 17719 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || |
| 17720 | { LC_MESSAGES=C; export LC_MESSAGES; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17721 | |
| 17722 | |
| 17723 | # Name of the executable. |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17724 | as_me=`(basename "$0") 2>/dev/null || |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17725 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 17726 | X"$0" : 'X\(//\)$' \| \ |
| 17727 | X"$0" : 'X\(/\)$' \| \ |
| 17728 | . : '\(.\)' 2>/dev/null || |
| 17729 | echo X/"$0" | |
| 17730 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 17731 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 17732 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 17733 | s/.*/./; q'` |
| 17734 | |
| 17735 | # PATH needs CR, and LINENO needs CR and PATH. |
| 17736 | # Avoid depending upon Character Ranges. |
| 17737 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 17738 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 17739 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 17740 | as_cr_digits='0123456789' |
| 17741 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 17742 | |
| 17743 | # The user is always right. |
| 17744 | if test "${PATH_SEPARATOR+set}" != set; then |
| 17745 | echo "#! /bin/sh" >conftest.sh |
| 17746 | echo "exit 0" >>conftest.sh |
| 17747 | chmod +x conftest.sh |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17748 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17749 | PATH_SEPARATOR=';' |
| 17750 | else |
| 17751 | PATH_SEPARATOR=: |
| 17752 | fi |
| 17753 | rm -f conftest.sh |
| 17754 | fi |
| 17755 | |
| 17756 | |
| 17757 | as_lineno_1=$LINENO |
| 17758 | as_lineno_2=$LINENO |
| 17759 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 17760 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 17761 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 17762 | # Find who we are. Look in the path if we contain no path at all |
| 17763 | # relative or not. |
| 17764 | case $0 in |
| 17765 | *[\\/]* ) as_myself=$0 ;; |
| 17766 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17767 | for as_dir in $PATH |
| 17768 | do |
| 17769 | IFS=$as_save_IFS |
| 17770 | test -z "$as_dir" && as_dir=. |
| 17771 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 17772 | done |
| 17773 | |
| 17774 | ;; |
| 17775 | esac |
| 17776 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 17777 | # in which case we are not to be found in the path. |
| 17778 | if test "x$as_myself" = x; then |
| 17779 | as_myself=$0 |
| 17780 | fi |
| 17781 | if test ! -f "$as_myself"; then |
| 17782 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 17783 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 17784 | { (exit 1); exit 1; }; } |
| 17785 | fi |
| 17786 | case $CONFIG_SHELL in |
| 17787 | '') |
| 17788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17789 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 17790 | do |
| 17791 | IFS=$as_save_IFS |
| 17792 | test -z "$as_dir" && as_dir=. |
| 17793 | for as_base in sh bash ksh sh5; do |
| 17794 | case $as_dir in |
| 17795 | /*) |
| 17796 | if ("$as_dir/$as_base" -c ' |
| 17797 | as_lineno_1=$LINENO |
| 17798 | as_lineno_2=$LINENO |
| 17799 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 17800 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 17801 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 17802 | CONFIG_SHELL=$as_dir/$as_base |
| 17803 | export CONFIG_SHELL |
| 17804 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 17805 | fi;; |
| 17806 | esac |
| 17807 | done |
| 17808 | done |
| 17809 | ;; |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17810 | esac |
| 17811 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17812 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 17813 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 17814 | # line-number line before each line; the second 'sed' does the real |
| 17815 | # work. The second script uses 'N' to pair each line-number line |
| 17816 | # with the numbered line, and appends trailing '-' during |
| 17817 | # substitution so that $LINENO is not a special case at line end. |
| 17818 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 17819 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 17820 | sed '=' <$as_myself | |
| 17821 | sed ' |
| 17822 | N |
| 17823 | s,$,-, |
| 17824 | : loop |
| 17825 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 17826 | t loop |
| 17827 | s,-$,, |
| 17828 | s,^['$as_cr_digits']*\n,, |
| 17829 | ' >$as_me.lineno && |
| 17830 | chmod +x $as_me.lineno || |
| 17831 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 17832 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 17833 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17834 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17835 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 17836 | # (the dirname of $[0] is not the place where we might find the |
| 17837 | # original and so on. Autoconf is especially sensible to this). |
| 17838 | . ./$as_me.lineno |
| 17839 | # Exit status is that of the last command. |
| 17840 | exit |
| 17841 | } |
| 17842 | |
| 17843 | |
| 17844 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 17845 | *c*,-n*) ECHO_N= ECHO_C=' |
| 17846 | ' ECHO_T=' ' ;; |
| 17847 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 17848 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 17849 | esac |
| 17850 | |
| 17851 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 17852 | as_expr=expr |
| 17853 | else |
| 17854 | as_expr=false |
| 17855 | fi |
| 17856 | |
| 17857 | rm -f conf$$ conf$$.exe conf$$.file |
| 17858 | echo >conf$$.file |
| 17859 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 17860 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 17861 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 17862 | if test -f conf$$.exe; then |
| 17863 | # Don't use ln at all; we don't have any links |
| 17864 | as_ln_s='cp -p' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17865 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17866 | as_ln_s='ln -s' |
| 17867 | fi |
| 17868 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 17869 | as_ln_s=ln |
| 17870 | else |
| 17871 | as_ln_s='cp -p' |
| 17872 | fi |
| 17873 | rm -f conf$$ conf$$.exe conf$$.file |
| 17874 | |
| 17875 | as_executable_p="test -f" |
| 17876 | |
| 17877 | # Sed expression to map a string onto a valid CPP name. |
| 17878 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 17879 | |
| 17880 | # Sed expression to map a string onto a valid variable name. |
| 17881 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 17882 | |
| 17883 | |
| 17884 | # IFS |
| 17885 | # We need space, tab and new line, in precisely that order. |
| 17886 | as_nl=' |
| 17887 | ' |
| 17888 | IFS=" $as_nl" |
| 17889 | |
| 17890 | # CDPATH. |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17891 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17892 | |
| 17893 | exec 6>&1 |
| 17894 | |
| 17895 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 17896 | # report actual input values of CONFIG_FILES etc. instead of their |
| 17897 | # values after options handling. Logging --version etc. is OK. |
| 17898 | exec 5>>config.log |
| 17899 | { |
| 17900 | echo |
| 17901 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 17902 | ## Running $as_me. ## |
| 17903 | _ASBOX |
| 17904 | } >&5 |
| 17905 | cat >&5 <<_CSEOF |
| 17906 | |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 17907 | This file was extended by python $as_me 2.3, which was |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17908 | generated by GNU Autoconf 2.53. Invocation command line was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17909 | |
| 17910 | CONFIG_FILES = $CONFIG_FILES |
| 17911 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 17912 | CONFIG_LINKS = $CONFIG_LINKS |
| 17913 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 17914 | $ $0 $@ |
| 17915 | |
| 17916 | _CSEOF |
| 17917 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 17918 | echo >&5 |
| 17919 | _ACEOF |
| 17920 | |
| 17921 | # Files that config.status was made for. |
| 17922 | if test -n "$ac_config_files"; then |
| 17923 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 17924 | fi |
| 17925 | |
| 17926 | if test -n "$ac_config_headers"; then |
| 17927 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 17928 | fi |
| 17929 | |
| 17930 | if test -n "$ac_config_links"; then |
| 17931 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 17932 | fi |
| 17933 | |
| 17934 | if test -n "$ac_config_commands"; then |
| 17935 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 17936 | fi |
| 17937 | |
| 17938 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17939 | |
| 17940 | ac_cs_usage="\ |
| 17941 | \`$as_me' instantiates files from templates according to the |
| 17942 | current configuration. |
| 17943 | |
| 17944 | Usage: $0 [OPTIONS] [FILE]... |
| 17945 | |
| 17946 | -h, --help print this help, then exit |
| 17947 | -V, --version print version number, then exit |
| 17948 | -d, --debug don't remove temporary files |
| 17949 | --recheck update $as_me by reconfiguring in the same conditions |
| 17950 | --file=FILE[:TEMPLATE] |
| 17951 | instantiate the configuration file FILE |
| 17952 | --header=FILE[:TEMPLATE] |
| 17953 | instantiate the configuration header FILE |
| 17954 | |
| 17955 | Configuration files: |
| 17956 | $config_files |
| 17957 | |
| 17958 | Configuration headers: |
| 17959 | $config_headers |
| 17960 | |
| 17961 | Report bugs to <bug-autoconf@gnu.org>." |
| 17962 | _ACEOF |
| 17963 | |
| 17964 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17965 | ac_cs_version="\\ |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 17966 | python config.status 2.3 |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17967 | configured by $0, generated by GNU Autoconf 2.53, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17968 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 17969 | |
| 17970 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 17971 | Free Software Foundation, Inc. |
| 17972 | This config.status script is free software; the Free Software Foundation |
| 17973 | gives unlimited permission to copy, distribute and modify it." |
| 17974 | srcdir=$srcdir |
| 17975 | INSTALL="$INSTALL" |
| 17976 | _ACEOF |
| 17977 | |
| 17978 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17979 | # If no file are specified by the user, then we need to provide default |
| 17980 | # value. By we need to know if files were specified by the user. |
| 17981 | ac_need_defaults=: |
| 17982 | while test $# != 0 |
| 17983 | do |
| 17984 | case $1 in |
| 17985 | --*=*) |
| 17986 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 17987 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17988 | shift |
| 17989 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} |
| 17990 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17991 | ;; |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17992 | -*);; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17993 | *) # This is not an option, so the user has probably given explicit |
| 17994 | # arguments. |
| 17995 | ac_need_defaults=false;; |
| 17996 | esac |
| 17997 | |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 17998 | case $1 in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17999 | # Handling of the options. |
| 18000 | _ACEOF |
| 18001 | cat >>$CONFIG_STATUS <<_ACEOF |
| 18002 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 18003 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
| 18004 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; |
| 18005 | _ACEOF |
| 18006 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 18007 | --version | --vers* | -V ) |
| 18008 | echo "$ac_cs_version"; exit 0 ;; |
| 18009 | --he | --h) |
| 18010 | # Conflict between --help and --header |
| 18011 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 18012 | Try \`$0 --help' for more information." >&5 |
| 18013 | echo "$as_me: error: ambiguous option: $1 |
| 18014 | Try \`$0 --help' for more information." >&2;} |
| 18015 | { (exit 1); exit 1; }; };; |
| 18016 | --help | --hel | -h ) |
| 18017 | echo "$ac_cs_usage"; exit 0 ;; |
| 18018 | --debug | --d* | -d ) |
| 18019 | debug=: ;; |
| 18020 | --file | --fil | --fi | --f ) |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 18021 | shift |
| 18022 | CONFIG_FILES="$CONFIG_FILES $1" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18023 | ac_need_defaults=false;; |
| 18024 | --header | --heade | --head | --hea ) |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 18025 | shift |
| 18026 | CONFIG_HEADERS="$CONFIG_HEADERS $1" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18027 | ac_need_defaults=false;; |
| 18028 | |
| 18029 | # This is an error. |
| 18030 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 18031 | Try \`$0 --help' for more information." >&5 |
| 18032 | echo "$as_me: error: unrecognized option: $1 |
| 18033 | Try \`$0 --help' for more information." >&2;} |
| 18034 | { (exit 1); exit 1; }; } ;; |
| 18035 | |
| 18036 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 18037 | |
| 18038 | esac |
| 18039 | shift |
| 18040 | done |
| 18041 | |
| 18042 | _ACEOF |
| 18043 | |
| 18044 | |
| 18045 | |
| 18046 | |
| 18047 | |
| 18048 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 18049 | for ac_config_target in $ac_config_targets |
| 18050 | do |
| 18051 | case "$ac_config_target" in |
| 18052 | # Handling of arguments. |
| 18053 | "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 18054 | "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 18055 | "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 18056 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 18057 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 18058 | { (exit 1); exit 1; }; };; |
| 18059 | esac |
| 18060 | done |
| 18061 | |
| 18062 | # If the user did not use the arguments to specify the items to instantiate, |
| 18063 | # then the envvar interface is used. Set only those that are not. |
| 18064 | # We use the long form for the default assignment because of an extremely |
| 18065 | # bizarre bug on SunOS 4.1.3. |
| 18066 | if $ac_need_defaults; then |
| 18067 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 18068 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 18069 | fi |
| 18070 | |
| 18071 | # Create a temporary directory, and hook for its removal unless debugging. |
| 18072 | $debug || |
| 18073 | { |
| 18074 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 18075 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 18076 | } |
| 18077 | |
| 18078 | # Create a (secure) tmp directory for tmp files. |
| 18079 | : ${TMPDIR=/tmp} |
| 18080 | { |
| 18081 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && |
| 18082 | test -n "$tmp" && test -d "$tmp" |
| 18083 | } || |
| 18084 | { |
| 18085 | tmp=$TMPDIR/cs$$-$RANDOM |
| 18086 | (umask 077 && mkdir $tmp) |
| 18087 | } || |
| 18088 | { |
| 18089 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
| 18090 | { (exit 1); exit 1; } |
| 18091 | } |
| 18092 | |
| 18093 | _ACEOF |
| 18094 | |
| 18095 | cat >>$CONFIG_STATUS <<_ACEOF |
| 18096 | |
| 18097 | # |
| 18098 | # CONFIG_FILES section. |
| 18099 | # |
| 18100 | |
| 18101 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 18102 | # This happens for instance when ./config.status config.h |
| 18103 | if test -n "\$CONFIG_FILES"; then |
| 18104 | # Protect against being on the right side of a sed subst in config.status. |
| 18105 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 18106 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 18107 | s,@SHELL@,$SHELL,;t t |
| 18108 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 18109 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 18110 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 18111 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 18112 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 18113 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 18114 | s,@exec_prefix@,$exec_prefix,;t t |
| 18115 | s,@prefix@,$prefix,;t t |
| 18116 | s,@program_transform_name@,$program_transform_name,;t t |
| 18117 | s,@bindir@,$bindir,;t t |
| 18118 | s,@sbindir@,$sbindir,;t t |
| 18119 | s,@libexecdir@,$libexecdir,;t t |
| 18120 | s,@datadir@,$datadir,;t t |
| 18121 | s,@sysconfdir@,$sysconfdir,;t t |
| 18122 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 18123 | s,@localstatedir@,$localstatedir,;t t |
| 18124 | s,@libdir@,$libdir,;t t |
| 18125 | s,@includedir@,$includedir,;t t |
| 18126 | s,@oldincludedir@,$oldincludedir,;t t |
| 18127 | s,@infodir@,$infodir,;t t |
| 18128 | s,@mandir@,$mandir,;t t |
| 18129 | s,@build_alias@,$build_alias,;t t |
| 18130 | s,@host_alias@,$host_alias,;t t |
| 18131 | s,@target_alias@,$target_alias,;t t |
| 18132 | s,@DEFS@,$DEFS,;t t |
| 18133 | s,@ECHO_C@,$ECHO_C,;t t |
| 18134 | s,@ECHO_N@,$ECHO_N,;t t |
| 18135 | s,@ECHO_T@,$ECHO_T,;t t |
| 18136 | s,@LIBS@,$LIBS,;t t |
| 18137 | s,@VERSION@,$VERSION,;t t |
| 18138 | s,@SOVERSION@,$SOVERSION,;t t |
| 18139 | s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t |
| 18140 | s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t |
| 18141 | s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t |
| 18142 | s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t |
| 18143 | s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t |
| 18144 | s,@MACHDEP@,$MACHDEP,;t t |
| 18145 | s,@SGI_ABI@,$SGI_ABI,;t t |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame] | 18146 | s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t |
Jack Jansen | 7b59b42 | 2003-03-17 15:44:10 +0000 | [diff] [blame] | 18147 | s,@EXTRAMACHDEPPATH@,$EXTRAMACHDEPPATH,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18148 | s,@CXX@,$CXX,;t t |
| 18149 | s,@MAINOBJ@,$MAINOBJ,;t t |
| 18150 | s,@EXEEXT@,$EXEEXT,;t t |
| 18151 | s,@CC@,$CC,;t t |
| 18152 | s,@CFLAGS@,$CFLAGS,;t t |
| 18153 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 18154 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 18155 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 18156 | s,@OBJEXT@,$OBJEXT,;t t |
| 18157 | s,@CPP@,$CPP,;t t |
| 18158 | s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t |
| 18159 | s,@LIBRARY@,$LIBRARY,;t t |
| 18160 | s,@LDLIBRARY@,$LDLIBRARY,;t t |
| 18161 | s,@DLLLIBRARY@,$DLLLIBRARY,;t t |
| 18162 | s,@BLDLIBRARY@,$BLDLIBRARY,;t t |
| 18163 | s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t |
| 18164 | s,@INSTSONAME@,$INSTSONAME,;t t |
| 18165 | s,@RUNSHARED@,$RUNSHARED,;t t |
| 18166 | s,@LINKCC@,$LINKCC,;t t |
| 18167 | s,@RANLIB@,$RANLIB,;t t |
| 18168 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 18169 | s,@AR@,$AR,;t t |
| 18170 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 18171 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 18172 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 18173 | s,@LN@,$LN,;t t |
| 18174 | s,@OPT@,$OPT,;t t |
Skip Montanaro | decc6a4 | 2003-01-01 20:07:49 +0000 | [diff] [blame] | 18175 | s,@BASECFLAGS@,$BASECFLAGS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18176 | s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t |
| 18177 | s,@SO@,$SO,;t t |
| 18178 | s,@LDSHARED@,$LDSHARED,;t t |
| 18179 | s,@BLDSHARED@,$BLDSHARED,;t t |
| 18180 | s,@CCSHARED@,$CCSHARED,;t t |
| 18181 | s,@LINKFORSHARED@,$LINKFORSHARED,;t t |
| 18182 | s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 18183 | s,@SHLIBS@,$SHLIBS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18184 | s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t |
| 18185 | s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t |
| 18186 | s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t |
| 18187 | s,@LDLAST@,$LDLAST,;t t |
| 18188 | s,@THREADOBJ@,$THREADOBJ,;t t |
| 18189 | s,@DLINCLDIR@,$DLINCLDIR,;t t |
| 18190 | s,@DYNLOADFILE@,$DYNLOADFILE,;t t |
| 18191 | s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t |
Martin v. Löwis | 4ee6eef | 2003-05-26 05:37:51 +0000 | [diff] [blame] | 18192 | s,@TRUE@,$TRUE,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18193 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 18194 | s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t |
| 18195 | s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t |
| 18196 | s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t |
| 18197 | s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t |
| 18198 | s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t |
| 18199 | s,@LIBM@,$LIBM,;t t |
| 18200 | s,@LIBC@,$LIBC,;t t |
| 18201 | s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t |
| 18202 | s,@THREADHEADERS@,$THREADHEADERS,;t t |
| 18203 | s,@SRCDIRS@,$SRCDIRS,;t t |
| 18204 | CEOF |
| 18205 | |
| 18206 | _ACEOF |
| 18207 | |
| 18208 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 18209 | # Split the substitutions into bite-sized pieces for seds with |
| 18210 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 18211 | ac_max_sed_lines=48 |
| 18212 | ac_sed_frag=1 # Number of current file. |
| 18213 | ac_beg=1 # First line for current file. |
| 18214 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 18215 | ac_more_lines=: |
| 18216 | ac_sed_cmds= |
| 18217 | while $ac_more_lines; do |
| 18218 | if test $ac_beg -gt 1; then |
| 18219 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 18220 | else |
| 18221 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 18222 | fi |
| 18223 | if test ! -s $tmp/subs.frag; then |
| 18224 | ac_more_lines=false |
| 18225 | else |
| 18226 | # The purpose of the label and of the branching condition is to |
| 18227 | # speed up the sed processing (if there are no `@' at all, there |
| 18228 | # is no need to browse any of the substitutions). |
| 18229 | # These are the two extra sed commands mentioned above. |
| 18230 | (echo ':t |
| 18231 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 18232 | if test -z "$ac_sed_cmds"; then |
| 18233 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 18234 | else |
| 18235 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 18236 | fi |
| 18237 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 18238 | ac_beg=$ac_end |
| 18239 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 18240 | fi |
| 18241 | done |
| 18242 | if test -z "$ac_sed_cmds"; then |
| 18243 | ac_sed_cmds=cat |
| 18244 | fi |
| 18245 | fi # test -n "$CONFIG_FILES" |
| 18246 | |
| 18247 | _ACEOF |
| 18248 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 18249 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 18250 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 18251 | case $ac_file in |
| 18252 | - | *:- | *:-:* ) # input from stdin |
| 18253 | cat >$tmp/stdin |
| 18254 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 18255 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 18256 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 18257 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 18258 | * ) ac_file_in=$ac_file.in ;; |
| 18259 | esac |
| 18260 | |
| 18261 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 18262 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 18263 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 18264 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 18265 | X"$ac_file" : 'X\(//\)$' \| \ |
| 18266 | X"$ac_file" : 'X\(/\)' \| \ |
| 18267 | . : '\(.\)' 2>/dev/null || |
| 18268 | echo X"$ac_file" | |
| 18269 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 18270 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 18271 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 18272 | /^X\(\/\).*/{ s//\1/; q; } |
| 18273 | s/.*/./; q'` |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 18274 | { case "$ac_dir" in |
| 18275 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 18276 | *) as_incr_dir=.;; |
| 18277 | esac |
| 18278 | as_dummy="$ac_dir" |
| 18279 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 18280 | case $as_mkdir_dir in |
| 18281 | # Skip DOS drivespec |
| 18282 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 18283 | *) |
| 18284 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 18285 | test -d "$as_incr_dir" || |
| 18286 | mkdir "$as_incr_dir" || |
| 18287 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 18288 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 18289 | { (exit 1); exit 1; }; } |
| 18290 | ;; |
| 18291 | esac |
| 18292 | done; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18293 | |
| 18294 | ac_builddir=. |
| 18295 | |
| 18296 | if test "$ac_dir" != .; then |
| 18297 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 18298 | # A "../" for each directory in $ac_dir_suffix. |
| 18299 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 18300 | else |
| 18301 | ac_dir_suffix= ac_top_builddir= |
| 18302 | fi |
| 18303 | |
| 18304 | case $srcdir in |
| 18305 | .) # No --srcdir option. We are building in place. |
| 18306 | ac_srcdir=. |
| 18307 | if test -z "$ac_top_builddir"; then |
| 18308 | ac_top_srcdir=. |
| 18309 | else |
| 18310 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 18311 | fi ;; |
| 18312 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 18313 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 18314 | ac_top_srcdir=$srcdir ;; |
| 18315 | *) # Relative path. |
| 18316 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 18317 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 18318 | esac |
| 18319 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 18320 | # absolute. |
| 18321 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
Martin v. Löwis | 858f817 | 2003-05-24 12:35:47 +0000 | [diff] [blame] | 18322 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18323 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 18324 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 18325 | |
| 18326 | |
| 18327 | case $INSTALL in |
| 18328 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 18329 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 18330 | esac |
| 18331 | |
| 18332 | if test x"$ac_file" != x-; then |
| 18333 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 18334 | echo "$as_me: creating $ac_file" >&6;} |
| 18335 | rm -f "$ac_file" |
| 18336 | fi |
| 18337 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 18338 | # use $as_me), people would be surprised to read: |
| 18339 | # /* config.h. Generated by config.status. */ |
| 18340 | if test x"$ac_file" = x-; then |
| 18341 | configure_input= |
| 18342 | else |
| 18343 | configure_input="$ac_file. " |
| 18344 | fi |
| 18345 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 18346 | sed 's,.*/,,'` by configure." |
| 18347 | |
| 18348 | # First look for the input files in the build tree, otherwise in the |
| 18349 | # src tree. |
| 18350 | ac_file_inputs=`IFS=: |
| 18351 | for f in $ac_file_in; do |
| 18352 | case $f in |
| 18353 | -) echo $tmp/stdin ;; |
| 18354 | [\\/$]*) |
| 18355 | # Absolute (can't be DOS-style, as IFS=:) |
| 18356 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 18357 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 18358 | { (exit 1); exit 1; }; } |
| 18359 | echo $f;; |
| 18360 | *) # Relative |
| 18361 | if test -f "$f"; then |
| 18362 | # Build tree |
| 18363 | echo $f |
| 18364 | elif test -f "$srcdir/$f"; then |
| 18365 | # Source tree |
| 18366 | echo $srcdir/$f |
| 18367 | else |
| 18368 | # /dev/null tree |
| 18369 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 18370 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 18371 | { (exit 1); exit 1; }; } |
| 18372 | fi;; |
| 18373 | esac |
| 18374 | done` || { (exit 1); exit 1; } |
| 18375 | _ACEOF |
| 18376 | cat >>$CONFIG_STATUS <<_ACEOF |
| 18377 | sed "$ac_vpsub |
| 18378 | $extrasub |
| 18379 | _ACEOF |
| 18380 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 18381 | :t |
| 18382 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 18383 | s,@configure_input@,$configure_input,;t t |
| 18384 | s,@srcdir@,$ac_srcdir,;t t |
| 18385 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 18386 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 18387 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 18388 | s,@builddir@,$ac_builddir,;t t |
| 18389 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 18390 | s,@top_builddir@,$ac_top_builddir,;t t |
| 18391 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 18392 | s,@INSTALL@,$ac_INSTALL,;t t |
| 18393 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 18394 | rm -f $tmp/stdin |
| 18395 | if test x"$ac_file" != x-; then |
| 18396 | mv $tmp/out $ac_file |
| 18397 | else |
| 18398 | cat $tmp/out |
| 18399 | rm -f $tmp/out |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18400 | fi |
| 18401 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18402 | done |
| 18403 | _ACEOF |
| 18404 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18405 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18406 | # |
| 18407 | # CONFIG_HEADER section. |
| 18408 | # |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18409 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18410 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 18411 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18412 | # |
| 18413 | # ac_d sets the value in "#define NAME VALUE" lines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18414 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 18415 | ac_dB='[ ].*$,\1#\2' |
| 18416 | ac_dC=' ' |
| 18417 | ac_dD=',;t' |
| 18418 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 18419 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 18420 | ac_uB='$,\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18421 | ac_uC=' ' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18422 | ac_uD=',;t' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18423 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18424 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 18425 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18426 | case $ac_file in |
| 18427 | - | *:- | *:-:* ) # input from stdin |
| 18428 | cat >$tmp/stdin |
| 18429 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 18430 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 18431 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 18432 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 18433 | * ) ac_file_in=$ac_file.in ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18434 | esac |
| 18435 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18436 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 18437 | echo "$as_me: creating $ac_file" >&6;} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18438 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18439 | # First look for the input files in the build tree, otherwise in the |
| 18440 | # src tree. |
| 18441 | ac_file_inputs=`IFS=: |
| 18442 | for f in $ac_file_in; do |
| 18443 | case $f in |
| 18444 | -) echo $tmp/stdin ;; |
| 18445 | [\\/$]*) |
| 18446 | # Absolute (can't be DOS-style, as IFS=:) |
| 18447 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 18448 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 18449 | { (exit 1); exit 1; }; } |
| 18450 | echo $f;; |
| 18451 | *) # Relative |
| 18452 | if test -f "$f"; then |
| 18453 | # Build tree |
| 18454 | echo $f |
| 18455 | elif test -f "$srcdir/$f"; then |
| 18456 | # Source tree |
| 18457 | echo $srcdir/$f |
| 18458 | else |
| 18459 | # /dev/null tree |
| 18460 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 18461 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 18462 | { (exit 1); exit 1; }; } |
| 18463 | fi;; |
| 18464 | esac |
| 18465 | done` || { (exit 1); exit 1; } |
| 18466 | # Remove the trailing spaces. |
| 18467 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18468 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18469 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18470 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18471 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 18472 | # `conftest.undefs', that substitutes the proper values into |
| 18473 | # config.h.in to produce config.h. The first handles `#define' |
| 18474 | # templates, and the second `#undef' templates. |
| 18475 | # And first: Protect against being on the right side of a sed subst in |
| 18476 | # config.status. Protect against being in an unquoted here document |
| 18477 | # in config.status. |
| 18478 | rm -f conftest.defines conftest.undefs |
| 18479 | # Using a here document instead of a string reduces the quoting nightmare. |
| 18480 | # Putting comments in sed scripts is not portable. |
| 18481 | # |
| 18482 | # `end' is used to avoid that the second main sed command (meant for |
| 18483 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 18484 | # See the Autoconf documentation for `clear'. |
| 18485 | cat >confdef2sed.sed <<\_ACEOF |
| 18486 | s/[\\&,]/\\&/g |
| 18487 | s,[\\$`],\\&,g |
| 18488 | t clear |
| 18489 | : clear |
| 18490 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 18491 | t end |
| 18492 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 18493 | : end |
| 18494 | _ACEOF |
| 18495 | # If some macros were called several times there might be several times |
| 18496 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 18497 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 18498 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 18499 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 18500 | rm -f confdef2sed.sed |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18501 | |
| 18502 | # This sed command replaces #undef with comments. This is necessary, for |
| 18503 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 18504 | # on some systems where configure will not decide to define it. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18505 | cat >>conftest.undefs <<\_ACEOF |
| 18506 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 18507 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18508 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18509 | # Break up conftest.defines because some shells have a limit on the size |
| 18510 | # of here documents, and old seds have small limits too (100 cmds). |
| 18511 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 18512 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18513 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 18514 | echo ' :' >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18515 | rm -f conftest.tail |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18516 | while grep . conftest.defines >/dev/null |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18517 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18518 | # Write a limited-size here document to $tmp/defines.sed. |
| 18519 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 18520 | # Speed up: don't consider the non `#define' lines. |
| 18521 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 18522 | # Work around the forget-to-reset-the-flag bug. |
| 18523 | echo 't clr' >>$CONFIG_STATUS |
| 18524 | echo ': clr' >>$CONFIG_STATUS |
| 18525 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18526 | echo 'CEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18527 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 18528 | rm -f $tmp/in |
| 18529 | mv $tmp/out $tmp/in |
| 18530 | ' >>$CONFIG_STATUS |
| 18531 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 18532 | rm -f conftest.defines |
| 18533 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18534 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18535 | rm -f conftest.defines |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 18536 | echo ' fi # egrep' >>$CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18537 | echo >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18538 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18539 | # Break up conftest.undefs because some shells have a limit on the size |
| 18540 | # of here documents, and old seds have small limits too (100 cmds). |
| 18541 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 18542 | rm -f conftest.tail |
| 18543 | while grep . conftest.undefs >/dev/null |
| 18544 | do |
| 18545 | # Write a limited-size here document to $tmp/undefs.sed. |
| 18546 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 18547 | # Speed up: don't consider the non `#undef' |
| 18548 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 18549 | # Work around the forget-to-reset-the-flag bug. |
| 18550 | echo 't clr' >>$CONFIG_STATUS |
| 18551 | echo ': clr' >>$CONFIG_STATUS |
| 18552 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 18553 | echo 'CEOF |
| 18554 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 18555 | rm -f $tmp/in |
| 18556 | mv $tmp/out $tmp/in |
| 18557 | ' >>$CONFIG_STATUS |
| 18558 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 18559 | rm -f conftest.undefs |
| 18560 | mv conftest.tail conftest.undefs |
| 18561 | done |
| 18562 | rm -f conftest.undefs |
| 18563 | |
| 18564 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 18565 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 18566 | # use $as_me), people would be surprised to read: |
| 18567 | # /* config.h. Generated by config.status. */ |
| 18568 | if test x"$ac_file" = x-; then |
| 18569 | echo "/* Generated by configure. */" >$tmp/config.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18570 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18571 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 18572 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18573 | cat $tmp/in >>$tmp/config.h |
| 18574 | rm -f $tmp/in |
| 18575 | if test x"$ac_file" != x-; then |
| 18576 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then |
| 18577 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 18578 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 18579 | else |
| 18580 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 18581 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 18582 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 18583 | X"$ac_file" : 'X\(//\)$' \| \ |
| 18584 | X"$ac_file" : 'X\(/\)' \| \ |
| 18585 | . : '\(.\)' 2>/dev/null || |
| 18586 | echo X"$ac_file" | |
| 18587 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 18588 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 18589 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 18590 | /^X\(\/\).*/{ s//\1/; q; } |
| 18591 | s/.*/./; q'` |
Barry Warsaw | fe33b79 | 2003-01-07 22:42:49 +0000 | [diff] [blame] | 18592 | { case "$ac_dir" in |
| 18593 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 18594 | *) as_incr_dir=.;; |
| 18595 | esac |
| 18596 | as_dummy="$ac_dir" |
| 18597 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 18598 | case $as_mkdir_dir in |
| 18599 | # Skip DOS drivespec |
| 18600 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 18601 | *) |
| 18602 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 18603 | test -d "$as_incr_dir" || |
| 18604 | mkdir "$as_incr_dir" || |
| 18605 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 18606 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 18607 | { (exit 1); exit 1; }; } |
| 18608 | ;; |
| 18609 | esac |
| 18610 | done; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 18611 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18612 | rm -f $ac_file |
| 18613 | mv $tmp/config.h $ac_file |
| 18614 | fi |
| 18615 | else |
| 18616 | cat $tmp/config.h |
| 18617 | rm -f $tmp/config.h |
| 18618 | fi |
| 18619 | done |
| 18620 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 18621 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18622 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18623 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18624 | { (exit 0); exit 0; } |
| 18625 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 18626 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 18627 | ac_clean_files=$ac_clean_files_save |
| 18628 | |
| 18629 | |
| 18630 | # configure is writing to config.log, and then calls config.status. |
| 18631 | # config.status does its own redirection, appending to config.log. |
| 18632 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 18633 | # by configure, so config.status won't be able to write to it; its |
| 18634 | # output is simply discarded. So we exec the FD to /dev/null, |
| 18635 | # effectively closing config.log, so it can be properly (re)opened and |
| 18636 | # appended to by config.status. When coming back to configure, we |
| 18637 | # need to make the FD available again. |
| 18638 | if test "$no_create" != yes; then |
| 18639 | ac_cs_success=: |
| 18640 | exec 5>/dev/null |
| 18641 | $SHELL $CONFIG_STATUS || ac_cs_success=false |
| 18642 | exec 5>>config.log |
| 18643 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 18644 | # would make configure fail if this is the last instruction. |
| 18645 | $ac_cs_success || { (exit 1); exit 1; } |
| 18646 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 18647 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 18648 | |
| 18649 | echo "creating Setup" |
| 18650 | if test ! -f Modules/Setup |
| 18651 | then |
| 18652 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 18653 | fi |
| 18654 | |
| 18655 | echo "creating Setup.local" |
| 18656 | if test ! -f Modules/Setup.local |
| 18657 | then |
| 18658 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 18659 | fi |
| 18660 | |
| 18661 | echo "creating Makefile" |
| 18662 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 18663 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 18664 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 18665 | mv config.c Modules |