Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 2 | # From configure.in Revision: 1.311 . |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.53. |
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. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 12 | as_expr=expr |
| 13 | else |
| 14 | as_expr=false |
| 15 | fi |
| 16 | |
| 17 | |
| 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 | |
| 30 | # NLS nuisances. |
| 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 | |
| 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; } |
| 62 | |
| 63 | |
| 64 | # Name of the executable. |
| 65 | as_me=`(basename "$0") 2>/dev/null || |
| 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 |
| 89 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
| 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. |
| 230 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
| 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. |
| 256 | PACKAGE_NAME= |
| 257 | PACKAGE_TARNAME= |
| 258 | PACKAGE_VERSION= |
| 259 | PACKAGE_STRING= |
| 260 | PACKAGE_BUGREPORT= |
| 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 |
| 764 | \`configure' configures this package to adapt to many kinds of systems. |
| 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 |
| 820 | |
| 821 | cat <<\_ACEOF |
| 822 | |
| 823 | Optional Features: |
| 824 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 825 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 826 | --enable-framework=INSTALLDIR Build (MacOSX|Darwin) framework |
| 827 | --enable-shared disable/enable building shared python library |
| 828 | --enable-toolbox-glue disable/enable MacOSX glue code for extensions |
| 829 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 830 | --disable-ipv6 Disable ipv6 support |
| 831 | --enable-unicode=ucs2,ucs4 Enable Unicode strings (default is yes) |
| 832 | |
| 833 | Optional Packages: |
| 834 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 835 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 836 | --without-gcc never use gcc |
| 837 | --with-cxx=<compiler> enable C++ support |
| 838 | --with-suffix=.exe set executable suffix |
| 839 | --with-pydebug build with Py_DEBUG defined |
| 840 | --with-libs='lib1 ...' link against additional libs |
| 841 | --with-signal-module disable/enable signal module |
| 842 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 843 | --with(out)-threads=DIRECTORY disable/enable thread support |
| 844 | --with(out)-thread=DIRECTORY deprecated; use --with(out)-threads |
| 845 | --with-pth use GNU pth threading libraries |
| 846 | --with(out)-cycle-gc disable/enable garbage collection |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 847 | --with(out)-universal-newlines disable/enable foreign newlines |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 848 | --with(out)-pymalloc disable/enable specialized mallocs |
| 849 | --with-wctype-functions use wctype.h functions |
| 850 | --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking |
| 851 | --with-dl-dld=DL_DIR,DLD_DIR GNU dynamic linking |
| 852 | --with-fpectl enable SIGFPE catching |
| 853 | --with-libm=STRING math library |
| 854 | --with-libc=STRING C library |
| 855 | |
| 856 | Some influential environment variables: |
| 857 | CC C compiler command |
| 858 | CFLAGS C compiler flags |
| 859 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 860 | nonstandard directory <lib dir> |
| 861 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 862 | headers in a nonstandard directory <include dir> |
| 863 | CPP C preprocessor |
| 864 | |
| 865 | Use these variables to override the choices made by `configure' or to help |
| 866 | it to find libraries and programs with nonstandard names/locations. |
| 867 | |
| 868 | _ACEOF |
| 869 | fi |
| 870 | |
| 871 | if test "$ac_init_help" = "recursive"; then |
| 872 | # If there are subdirs, report their specific --help. |
| 873 | ac_popdir=`pwd` |
| 874 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 875 | test -d $ac_dir || continue |
| 876 | ac_builddir=. |
| 877 | |
| 878 | if test "$ac_dir" != .; then |
| 879 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 880 | # A "../" for each directory in $ac_dir_suffix. |
| 881 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 882 | else |
| 883 | ac_dir_suffix= ac_top_builddir= |
| 884 | fi |
| 885 | |
| 886 | case $srcdir in |
| 887 | .) # No --srcdir option. We are building in place. |
| 888 | ac_srcdir=. |
| 889 | if test -z "$ac_top_builddir"; then |
| 890 | ac_top_srcdir=. |
| 891 | else |
| 892 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 893 | fi ;; |
| 894 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 895 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 896 | ac_top_srcdir=$srcdir ;; |
| 897 | *) # Relative path. |
| 898 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 899 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 900 | esac |
| 901 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 902 | # absolute. |
| 903 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 904 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` |
| 905 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 906 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 907 | |
| 908 | cd $ac_dir |
| 909 | # Check for guested configure; otherwise get Cygnus style configure. |
| 910 | if test -f $ac_srcdir/configure.gnu; then |
| 911 | echo |
| 912 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 913 | elif test -f $ac_srcdir/configure; then |
| 914 | echo |
| 915 | $SHELL $ac_srcdir/configure --help=recursive |
| 916 | elif test -f $ac_srcdir/configure.ac || |
| 917 | test -f $ac_srcdir/configure.in; then |
| 918 | echo |
| 919 | $ac_configure --help |
| 920 | else |
| 921 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 922 | fi |
| 923 | cd $ac_popdir |
| 924 | done |
| 925 | fi |
| 926 | |
| 927 | test -n "$ac_init_help" && exit 0 |
| 928 | if $ac_init_version; then |
| 929 | cat <<\_ACEOF |
| 930 | |
| 931 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 932 | Free Software Foundation, Inc. |
| 933 | This configure script is free software; the Free Software Foundation |
| 934 | gives unlimited permission to copy, distribute and modify it. |
| 935 | _ACEOF |
| 936 | exit 0 |
| 937 | fi |
| 938 | exec 5>config.log |
| 939 | cat >&5 <<_ACEOF |
| 940 | This file contains any messages produced by compilers while |
| 941 | running configure, to aid debugging if configure makes a mistake. |
| 942 | |
| 943 | It was created by $as_me, which was |
| 944 | generated by GNU Autoconf 2.53. Invocation command line was |
| 945 | |
| 946 | $ $0 $@ |
| 947 | |
| 948 | _ACEOF |
| 949 | { |
| 950 | cat <<_ASUNAME |
| 951 | ## --------- ## |
| 952 | ## Platform. ## |
| 953 | ## --------- ## |
| 954 | |
| 955 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 956 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 957 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 958 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 959 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 960 | |
| 961 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 962 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 963 | |
| 964 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 965 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 966 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 967 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 968 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 969 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 970 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 971 | |
| 972 | _ASUNAME |
| 973 | |
| 974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 975 | for as_dir in $PATH |
| 976 | do |
| 977 | IFS=$as_save_IFS |
| 978 | test -z "$as_dir" && as_dir=. |
| 979 | echo "PATH: $as_dir" |
| 980 | done |
| 981 | |
| 982 | } >&5 |
| 983 | |
| 984 | cat >&5 <<_ACEOF |
| 985 | |
| 986 | |
| 987 | ## ----------- ## |
| 988 | ## Core tests. ## |
| 989 | ## ----------- ## |
| 990 | |
| 991 | _ACEOF |
| 992 | |
| 993 | |
| 994 | # Keep a trace of the command line. |
| 995 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 996 | # Also quote any args containing shell meta-characters. |
| 997 | ac_configure_args= |
| 998 | ac_sep= |
| 999 | for ac_arg |
| 1000 | do |
| 1001 | case $ac_arg in |
| 1002 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1003 | | --no-cr | --no-c | -n ) continue ;; |
| 1004 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1005 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1006 | continue ;; |
| 1007 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1008 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1009 | esac |
| 1010 | case " $ac_configure_args " in |
| 1011 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1012 | *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1013 | ac_sep=" " ;; |
| 1014 | esac |
| 1015 | # Get rid of the leading space. |
| 1016 | done |
| 1017 | |
| 1018 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1019 | # config.log. We remove comments because anyway the quotes in there |
| 1020 | # would cause problems or look ugly. |
| 1021 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1022 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1023 | trap 'exit_status=$? |
| 1024 | # Save into config.log some information that might help in debugging. |
| 1025 | { |
| 1026 | echo |
| 1027 | cat <<\_ASBOX |
| 1028 | ## ---------------- ## |
| 1029 | ## Cache variables. ## |
| 1030 | ## ---------------- ## |
| 1031 | _ASBOX |
| 1032 | echo |
| 1033 | # The following way of writing the cache mishandles newlines in values, |
| 1034 | { |
| 1035 | (set) 2>&1 | |
| 1036 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1037 | *ac_space=\ *) |
| 1038 | sed -n \ |
| 1039 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1040 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1041 | ;; |
| 1042 | *) |
| 1043 | sed -n \ |
| 1044 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1045 | ;; |
| 1046 | esac; |
| 1047 | } |
| 1048 | echo |
| 1049 | if test -s confdefs.h; then |
| 1050 | cat <<\_ASBOX |
| 1051 | ## ----------- ## |
| 1052 | ## confdefs.h. ## |
| 1053 | ## ----------- ## |
| 1054 | _ASBOX |
| 1055 | echo |
| 1056 | sed "/^$/d" confdefs.h |
| 1057 | echo |
| 1058 | fi |
| 1059 | test "$ac_signal" != 0 && |
| 1060 | echo "$as_me: caught signal $ac_signal" |
| 1061 | echo "$as_me: exit $exit_status" |
| 1062 | } >&5 |
| 1063 | rm -f core core.* *.core && |
| 1064 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1065 | exit $exit_status |
| 1066 | ' 0 |
| 1067 | for ac_signal in 1 2 13 15; do |
| 1068 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1069 | done |
| 1070 | ac_signal=0 |
| 1071 | |
| 1072 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1073 | rm -rf conftest* confdefs.h |
| 1074 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1075 | echo >confdefs.h |
| 1076 | |
| 1077 | # Predefined preprocessor variables. |
| 1078 | |
| 1079 | cat >>confdefs.h <<_ACEOF |
| 1080 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1081 | _ACEOF |
| 1082 | |
| 1083 | |
| 1084 | cat >>confdefs.h <<_ACEOF |
| 1085 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1086 | _ACEOF |
| 1087 | |
| 1088 | |
| 1089 | cat >>confdefs.h <<_ACEOF |
| 1090 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1091 | _ACEOF |
| 1092 | |
| 1093 | |
| 1094 | cat >>confdefs.h <<_ACEOF |
| 1095 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1096 | _ACEOF |
| 1097 | |
| 1098 | |
| 1099 | cat >>confdefs.h <<_ACEOF |
| 1100 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1101 | _ACEOF |
| 1102 | |
| 1103 | |
| 1104 | # 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] | 1105 | # Prefer explicitly selected file to automatically selected ones. |
| 1106 | if test -z "$CONFIG_SITE"; then |
| 1107 | if test "x$prefix" != xNONE; then |
| 1108 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1109 | else |
| 1110 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1111 | fi |
| 1112 | fi |
| 1113 | for ac_site_file in $CONFIG_SITE; do |
| 1114 | if test -r "$ac_site_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1115 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1116 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1117 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1118 | . "$ac_site_file" |
| 1119 | fi |
| 1120 | done |
| 1121 | |
| 1122 | if test -r "$cache_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1123 | # Some versions of bash will fail to source /dev/null (special |
| 1124 | # files actually), so we avoid doing that. |
| 1125 | if test -f "$cache_file"; then |
| 1126 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1127 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1128 | case $cache_file in |
| 1129 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1130 | *) . ./$cache_file;; |
| 1131 | esac |
| 1132 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1133 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1134 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1135 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1136 | >$cache_file |
| 1137 | fi |
| 1138 | |
| 1139 | # Check that the precious variables saved in the cache have kept the same |
| 1140 | # value. |
| 1141 | ac_cache_corrupted=false |
| 1142 | for ac_var in `(set) 2>&1 | |
| 1143 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1144 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1145 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1146 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1147 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1148 | case $ac_old_set,$ac_new_set in |
| 1149 | set,) |
| 1150 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1151 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1152 | ac_cache_corrupted=: ;; |
| 1153 | ,set) |
| 1154 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1155 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1156 | ac_cache_corrupted=: ;; |
| 1157 | ,);; |
| 1158 | *) |
| 1159 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1160 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1161 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1162 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1163 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1164 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1165 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1166 | ac_cache_corrupted=: |
| 1167 | fi;; |
| 1168 | esac |
| 1169 | # Pass precious variables to config.status. |
| 1170 | if test "$ac_new_set" = set; then |
| 1171 | case $ac_new_val in |
| 1172 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1173 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1174 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1175 | esac |
| 1176 | case " $ac_configure_args " in |
| 1177 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1178 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1179 | esac |
| 1180 | fi |
| 1181 | done |
| 1182 | if $ac_cache_corrupted; then |
| 1183 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1184 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1185 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1186 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1187 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1188 | fi |
| 1189 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1190 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1191 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1192 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1193 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1194 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1195 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1196 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1197 | |
| 1198 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1199 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1200 | |
| 1201 | |
| 1202 | |
| 1203 | |
| 1204 | |
| 1205 | |
| 1206 | |
| 1207 | |
| 1208 | |
| 1209 | |
| 1210 | |
| 1211 | |
| 1212 | |
| 1213 | ac_config_headers="$ac_config_headers pyconfig.h" |
| 1214 | |
| 1215 | |
| 1216 | # This is for stuff that absolutely must end up in pyconfig.h. |
| 1217 | # Please use pyport.h instead, if possible. |
| 1218 | |
| 1219 | |
| 1220 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1221 | # Set VERSION so we only need to edit in one place (i.e., here) |
| 1222 | |
Andrew M. Kuchling | f2f219d | 2002-02-11 16:31:10 +0000 | [diff] [blame] | 1223 | VERSION=2.3 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1224 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1225 | |
| 1226 | SOVERSION=1.0 |
| 1227 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1228 | # Arguments passed to configure. |
| 1229 | |
| 1230 | CONFIG_ARGS="$ac_configure_args" |
| 1231 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1232 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1233 | # Check whether --enable-framework or --disable-framework was given. |
| 1234 | if test "${enable_framework+set}" = set; then |
| 1235 | enableval="$enable_framework" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1236 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1237 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1238 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1239 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1240 | esac |
| 1241 | case $enableval in |
| 1242 | no) |
| 1243 | PYTHONFRAMEWORK= |
| 1244 | PYTHONFRAMEWORKDIR=no-framework |
| 1245 | PYTHONFRAMEWORKPREFIX= |
| 1246 | PYTHONFRAMEWORKINSTALLDIR= |
| 1247 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1248 | ;; |
| 1249 | *) |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1250 | PYTHONFRAMEWORK=Python |
| 1251 | PYTHONFRAMEWORKDIR=Python.framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1252 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1253 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
| 1254 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1255 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1256 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1257 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1258 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1259 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1260 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1261 | PYTHONFRAMEWORKPREFIX= |
| 1262 | PYTHONFRAMEWORKINSTALLDIR= |
| 1263 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1264 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1265 | fi; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1266 | |
| 1267 | |
| 1268 | |
| 1269 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1270 | |
| 1271 | ##AC_ARG_WITH(dyld, |
| 1272 | ##[ --with-dyld Use (OpenStep|Rhapsody) dynamic linker],,) |
| 1273 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1274 | # Set name for machine-dependent library files |
| 1275 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1276 | echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 1277 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1278 | if test -z "$MACHDEP" |
| 1279 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1280 | ac_sys_system=`uname -s` |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1281 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1282 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1283 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1284 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1285 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1286 | ac_md_system=`echo $ac_sys_system | |
| 1287 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 1288 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 1289 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1290 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1291 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 1292 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 1293 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 1294 | darwin*) MACHDEP="darwin";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1295 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1296 | esac |
| 1297 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1298 | |
| 1299 | # |
| 1300 | # SGI compilers allow the specification of the both the ABI and the |
| 1301 | # ISA on the command line. Depending on the values of these switches, |
| 1302 | # different and often incompatable code will be generated. |
| 1303 | # |
| 1304 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 1305 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 1306 | # variable is also adjusted. |
| 1307 | # |
| 1308 | |
| 1309 | if test ! -z "$SGI_ABI" |
| 1310 | then |
| 1311 | CC="cc $SGI_ABI" |
| 1312 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 1313 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 1314 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1315 | echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 1316 | echo "${ECHO_T}$MACHDEP" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1317 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1318 | # checks for alternative programs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1319 | echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 1320 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6 |
| 1321 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1322 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1323 | if test "${with_gcc+set}" = set; then |
| 1324 | withval="$with_gcc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1325 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1326 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1327 | no) CC=cc |
| 1328 | without_gcc=yes;; |
| 1329 | yes) CC=gcc |
| 1330 | without_gcc=no;; |
| 1331 | *) CC=$withval |
| 1332 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1333 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1334 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1335 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1336 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1337 | AIX*) CC=cc_r |
| 1338 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1339 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1340 | case $BE_HOST_CPU in |
| 1341 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1342 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1343 | without_gcc=yes |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1344 | OPT="-O -D'DL_EXPORT(RTYPE)=__declspec(dllexport) RTYPE' -D'DL_IMPORT(RTYPE)=__declspec(dllexport) RTYPE' -export pragma" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1345 | CCSHARED="-UDL_IMPORT -D'DL_IMPORT(RTYPE)=__declspec(dllimport) RTYPE'" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1346 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1347 | ;; |
| 1348 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1349 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1350 | without_gcc=no |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1351 | OPT=-O |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1352 | ;; |
| 1353 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1354 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 1355 | echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
| 1356 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1357 | ;; |
| 1358 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1359 | AR="\$(srcdir)/Modules/ar_beos" |
| 1360 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1361 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1362 | Monterey*) |
| 1363 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1364 | without_gcc=;; |
| 1365 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1366 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1367 | fi; |
| 1368 | echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 1369 | echo "${ECHO_T}$without_gcc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1370 | |
| 1371 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1372 | |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1373 | MAINOBJ=python.o |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1374 | echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5 |
| 1375 | echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6 |
| 1376 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1377 | # Check whether --with-cxx or --without-cxx was given. |
| 1378 | if test "${with_cxx+set}" = set; then |
| 1379 | withval="$with_cxx" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1380 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1381 | check_cxx=no |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1382 | case $withval in |
| 1383 | no) CXX= |
| 1384 | with_cxx=no;; |
| 1385 | *) CXX=$withval |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1386 | MAINOBJ=ccpython.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1387 | with_cxx=$withval;; |
| 1388 | esac |
| 1389 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1390 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1391 | with_cxx=no |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1392 | check_cxx=yes |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1393 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1394 | fi; |
| 1395 | echo "$as_me:$LINENO: result: $with_cxx" >&5 |
| 1396 | echo "${ECHO_T}$with_cxx" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1397 | |
| 1398 | if test "$with_cxx" = "yes" |
| 1399 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1400 | { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5 |
| 1401 | echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;} |
| 1402 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1403 | fi |
| 1404 | |
| 1405 | |
| 1406 | |
| 1407 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1408 | if test "$check_cxx" = "yes" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1409 | then |
| 1410 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 1411 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1412 | # 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] | 1413 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1414 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1415 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1416 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 1417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1418 | else |
| 1419 | if test -n "$CXX"; then |
| 1420 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 1421 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1423 | for as_dir in $PATH |
| 1424 | do |
| 1425 | IFS=$as_save_IFS |
| 1426 | test -z "$as_dir" && as_dir=. |
| 1427 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1428 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1429 | ac_cv_prog_CXX="$ac_prog" |
| 1430 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1431 | break 2 |
| 1432 | fi |
| 1433 | done |
| 1434 | done |
| 1435 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1436 | fi |
| 1437 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1438 | CXX=$ac_cv_prog_CXX |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1439 | if test -n "$CXX"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1440 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 1441 | echo "${ECHO_T}$CXX" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1442 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1443 | echo "$as_me:$LINENO: result: no" >&5 |
| 1444 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1445 | fi |
| 1446 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1447 | test -n "$CXX" && break |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1448 | done |
| 1449 | test -n "$CXX" || CXX="notfound" |
| 1450 | |
| 1451 | if test "$CXX" = "notfound" |
| 1452 | then |
| 1453 | CXX= |
| 1454 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1455 | ac_ext=cc |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1456 | ac_cpp='$CXXCPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1457 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1458 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1459 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 1460 | cat >conftest.$ac_ext <<_ACEOF |
| 1461 | #line $LINENO "configure" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1462 | #include "confdefs.h" |
| 1463 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1464 | #ifdef F77_DUMMY_MAIN |
| 1465 | # ifdef __cplusplus |
| 1466 | extern "C" |
| 1467 | # endif |
| 1468 | int F77_DUMMY_MAIN() { return 1; } |
| 1469 | #endif |
| 1470 | int |
| 1471 | main () |
| 1472 | { |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1473 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1474 | ; |
| 1475 | return 0; |
| 1476 | } |
| 1477 | _ACEOF |
| 1478 | ac_clean_files_save=$ac_clean_files |
| 1479 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 1480 | # Try to create an executable without -o first, disregard a.out. |
| 1481 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1482 | # of exeext. |
| 1483 | echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 |
| 1484 | echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 |
| 1485 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1486 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1487 | (eval $ac_link_default) 2>&5 |
| 1488 | ac_status=$? |
| 1489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1490 | (exit $ac_status); }; then |
| 1491 | # Find the output, starting from the most likely. This scheme is |
| 1492 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1493 | # resort. |
| 1494 | |
| 1495 | # Be careful to initialize this variable, since it used to be cached. |
| 1496 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1497 | ac_cv_exeext= |
| 1498 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; |
| 1499 | ls a.out conftest 2>/dev/null; |
| 1500 | ls a.* conftest.* 2>/dev/null`; do |
| 1501 | case $ac_file in |
| 1502 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
| 1503 | a.out ) # We found the default executable, but exeext='' is most |
| 1504 | # certainly right. |
| 1505 | break;; |
| 1506 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1507 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 1508 | export ac_cv_exeext |
| 1509 | break;; |
| 1510 | * ) break;; |
| 1511 | esac |
| 1512 | done |
| 1513 | else |
| 1514 | echo "$as_me: failed program was:" >&5 |
| 1515 | cat conftest.$ac_ext >&5 |
| 1516 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables" >&5 |
| 1517 | echo "$as_me: error: C++ compiler cannot create executables" >&2;} |
| 1518 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1519 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1520 | |
| 1521 | ac_exeext=$ac_cv_exeext |
| 1522 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1523 | echo "${ECHO_T}$ac_file" >&6 |
| 1524 | |
| 1525 | # Check the compiler produces executables we can run. If not, either |
| 1526 | # the compiler is broken, or we cross compile. |
| 1527 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
| 1528 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
| 1529 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1530 | # If not cross compiling, check that we can run a simple program. |
| 1531 | if test "$cross_compiling" != yes; then |
| 1532 | if { ac_try='./$ac_file' |
| 1533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1534 | (eval $ac_try) 2>&5 |
| 1535 | ac_status=$? |
| 1536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1537 | (exit $ac_status); }; }; then |
| 1538 | cross_compiling=no |
| 1539 | else |
| 1540 | if test "$cross_compiling" = maybe; then |
| 1541 | cross_compiling=yes |
| 1542 | else |
| 1543 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
| 1544 | If you meant to cross compile, use \`--host'." >&5 |
| 1545 | echo "$as_me: error: cannot run C++ compiled programs. |
| 1546 | If you meant to cross compile, use \`--host'." >&2;} |
| 1547 | { (exit 1); exit 1; }; } |
| 1548 | fi |
| 1549 | fi |
| 1550 | fi |
| 1551 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1552 | echo "${ECHO_T}yes" >&6 |
| 1553 | |
| 1554 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 1555 | ac_clean_files=$ac_clean_files_save |
| 1556 | # Check the compiler produces executables we can run. If not, either |
| 1557 | # the compiler is broken, or we cross compile. |
| 1558 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1559 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1560 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1561 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1562 | |
| 1563 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1564 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1565 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1566 | (eval $ac_link) 2>&5 |
| 1567 | ac_status=$? |
| 1568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1569 | (exit $ac_status); }; then |
| 1570 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1571 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1572 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1573 | # `rm'. |
| 1574 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
| 1575 | case $ac_file in |
| 1576 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 1577 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1578 | export ac_cv_exeext |
| 1579 | break;; |
| 1580 | * ) break;; |
| 1581 | esac |
| 1582 | done |
| 1583 | else |
| 1584 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 1585 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
| 1586 | { (exit 1); exit 1; }; } |
| 1587 | fi |
| 1588 | |
| 1589 | rm -f conftest$ac_cv_exeext |
| 1590 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1591 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1592 | |
| 1593 | rm -f conftest.$ac_ext |
| 1594 | EXEEXT=$ac_cv_exeext |
| 1595 | ac_exeext=$EXEEXT |
| 1596 | |
| 1597 | ac_ext=c |
| 1598 | ac_cpp='$CPP $CPPFLAGS' |
| 1599 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1600 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1601 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1602 | |
| 1603 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1604 | |
| 1605 | fi |
| 1606 | fi |
| 1607 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1608 | # If the user switches compilers, we can't believe the cache |
| 1609 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 1610 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1611 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
| 1612 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
| 1613 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
| 1614 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 1615 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1616 | fi |
| 1617 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1618 | ac_ext=c |
| 1619 | ac_cpp='$CPP $CPPFLAGS' |
| 1620 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1621 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1622 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1623 | if test -n "$ac_tool_prefix"; then |
| 1624 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1625 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1626 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1627 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1628 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1630 | else |
| 1631 | if test -n "$CC"; then |
| 1632 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1633 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1635 | for as_dir in $PATH |
| 1636 | do |
| 1637 | IFS=$as_save_IFS |
| 1638 | test -z "$as_dir" && as_dir=. |
| 1639 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1640 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1641 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1642 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1643 | break 2 |
| 1644 | fi |
| 1645 | done |
| 1646 | done |
| 1647 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1648 | fi |
| 1649 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1650 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1651 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1652 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1653 | echo "${ECHO_T}$CC" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1654 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1655 | echo "$as_me:$LINENO: result: no" >&5 |
| 1656 | echo "${ECHO_T}no" >&6 |
| 1657 | fi |
| 1658 | |
| 1659 | fi |
| 1660 | if test -z "$ac_cv_prog_CC"; then |
| 1661 | ac_ct_CC=$CC |
| 1662 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1663 | set dummy gcc; ac_word=$2 |
| 1664 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1665 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1666 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1668 | else |
| 1669 | if test -n "$ac_ct_CC"; then |
| 1670 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1671 | else |
| 1672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1673 | for as_dir in $PATH |
| 1674 | do |
| 1675 | IFS=$as_save_IFS |
| 1676 | test -z "$as_dir" && as_dir=. |
| 1677 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1678 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1679 | ac_cv_prog_ac_ct_CC="gcc" |
| 1680 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1681 | break 2 |
| 1682 | fi |
| 1683 | done |
| 1684 | done |
| 1685 | |
| 1686 | fi |
| 1687 | fi |
| 1688 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1689 | if test -n "$ac_ct_CC"; then |
| 1690 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1691 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1692 | else |
| 1693 | echo "$as_me:$LINENO: result: no" >&5 |
| 1694 | echo "${ECHO_T}no" >&6 |
| 1695 | fi |
| 1696 | |
| 1697 | CC=$ac_ct_CC |
| 1698 | else |
| 1699 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1700 | fi |
| 1701 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1702 | if test -z "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1703 | if test -n "$ac_tool_prefix"; then |
| 1704 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1705 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1706 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1707 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1708 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1710 | else |
| 1711 | if test -n "$CC"; then |
| 1712 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1713 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1714 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1715 | for as_dir in $PATH |
| 1716 | do |
| 1717 | IFS=$as_save_IFS |
| 1718 | test -z "$as_dir" && as_dir=. |
| 1719 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1720 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1721 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1722 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1723 | break 2 |
| 1724 | fi |
| 1725 | done |
| 1726 | done |
| 1727 | |
| 1728 | fi |
| 1729 | fi |
| 1730 | CC=$ac_cv_prog_CC |
| 1731 | if test -n "$CC"; then |
| 1732 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1733 | echo "${ECHO_T}$CC" >&6 |
| 1734 | else |
| 1735 | echo "$as_me:$LINENO: result: no" >&5 |
| 1736 | echo "${ECHO_T}no" >&6 |
| 1737 | fi |
| 1738 | |
| 1739 | fi |
| 1740 | if test -z "$ac_cv_prog_CC"; then |
| 1741 | ac_ct_CC=$CC |
| 1742 | # Extract the first word of "cc", so it can be a program name with args. |
| 1743 | set dummy cc; ac_word=$2 |
| 1744 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1745 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1746 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1748 | else |
| 1749 | if test -n "$ac_ct_CC"; then |
| 1750 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1751 | else |
| 1752 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1753 | for as_dir in $PATH |
| 1754 | do |
| 1755 | IFS=$as_save_IFS |
| 1756 | test -z "$as_dir" && as_dir=. |
| 1757 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1758 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1759 | ac_cv_prog_ac_ct_CC="cc" |
| 1760 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1761 | break 2 |
| 1762 | fi |
| 1763 | done |
| 1764 | done |
| 1765 | |
| 1766 | fi |
| 1767 | fi |
| 1768 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1769 | if test -n "$ac_ct_CC"; then |
| 1770 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1771 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1772 | else |
| 1773 | echo "$as_me:$LINENO: result: no" >&5 |
| 1774 | echo "${ECHO_T}no" >&6 |
| 1775 | fi |
| 1776 | |
| 1777 | CC=$ac_ct_CC |
| 1778 | else |
| 1779 | CC="$ac_cv_prog_CC" |
| 1780 | fi |
| 1781 | |
| 1782 | fi |
| 1783 | if test -z "$CC"; then |
| 1784 | # Extract the first word of "cc", so it can be a program name with args. |
| 1785 | set dummy cc; ac_word=$2 |
| 1786 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1787 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1788 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1790 | else |
| 1791 | if test -n "$CC"; then |
| 1792 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1793 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1794 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1795 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1796 | for as_dir in $PATH |
| 1797 | do |
| 1798 | IFS=$as_save_IFS |
| 1799 | test -z "$as_dir" && as_dir=. |
| 1800 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1801 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1802 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1803 | ac_prog_rejected=yes |
| 1804 | continue |
| 1805 | fi |
| 1806 | ac_cv_prog_CC="cc" |
| 1807 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1808 | break 2 |
| 1809 | fi |
| 1810 | done |
| 1811 | done |
| 1812 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1813 | if test $ac_prog_rejected = yes; then |
| 1814 | # We found a bogon in the path, so make sure we never use it. |
| 1815 | set dummy $ac_cv_prog_CC |
| 1816 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1817 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1818 | # We chose a different compiler from the bogus one. |
| 1819 | # However, it has the same basename, so the bogon will be chosen |
| 1820 | # first if we set CC to just the basename; use the full file name. |
| 1821 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1822 | set dummy "$as_dir/$ac_word" ${1+"$@"} |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1823 | shift |
| 1824 | ac_cv_prog_CC="$@" |
| 1825 | fi |
| 1826 | fi |
| 1827 | fi |
| 1828 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1829 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1830 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1831 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1832 | echo "${ECHO_T}$CC" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1833 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1834 | echo "$as_me:$LINENO: result: no" >&5 |
| 1835 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1836 | fi |
| 1837 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1838 | fi |
| 1839 | if test -z "$CC"; then |
| 1840 | if test -n "$ac_tool_prefix"; then |
| 1841 | for ac_prog in cl |
| 1842 | do |
| 1843 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1844 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1845 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1846 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1847 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1849 | else |
| 1850 | if test -n "$CC"; then |
| 1851 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1852 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1853 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1854 | for as_dir in $PATH |
| 1855 | do |
| 1856 | IFS=$as_save_IFS |
| 1857 | test -z "$as_dir" && as_dir=. |
| 1858 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1859 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1860 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1861 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1862 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1863 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1864 | done |
| 1865 | done |
| 1866 | |
| 1867 | fi |
| 1868 | fi |
| 1869 | CC=$ac_cv_prog_CC |
| 1870 | if test -n "$CC"; then |
| 1871 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1872 | echo "${ECHO_T}$CC" >&6 |
| 1873 | else |
| 1874 | echo "$as_me:$LINENO: result: no" >&5 |
| 1875 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1876 | fi |
| 1877 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1878 | test -n "$CC" && break |
| 1879 | done |
| 1880 | fi |
| 1881 | if test -z "$CC"; then |
| 1882 | ac_ct_CC=$CC |
| 1883 | for ac_prog in cl |
| 1884 | do |
| 1885 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1886 | set dummy $ac_prog; ac_word=$2 |
| 1887 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1888 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1889 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1890 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1891 | else |
| 1892 | if test -n "$ac_ct_CC"; then |
| 1893 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1894 | else |
| 1895 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1896 | for as_dir in $PATH |
| 1897 | do |
| 1898 | IFS=$as_save_IFS |
| 1899 | test -z "$as_dir" && as_dir=. |
| 1900 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1901 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1902 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1903 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1904 | break 2 |
| 1905 | fi |
| 1906 | done |
| 1907 | done |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1908 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1909 | fi |
| 1910 | fi |
| 1911 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1912 | if test -n "$ac_ct_CC"; then |
| 1913 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1914 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1915 | else |
| 1916 | echo "$as_me:$LINENO: result: no" >&5 |
| 1917 | echo "${ECHO_T}no" >&6 |
| 1918 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1919 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1920 | test -n "$ac_ct_CC" && break |
| 1921 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1922 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1923 | CC=$ac_ct_CC |
| 1924 | fi |
| 1925 | |
| 1926 | fi |
| 1927 | |
| 1928 | |
| 1929 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 |
| 1930 | echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} |
| 1931 | { (exit 1); exit 1; }; } |
| 1932 | |
| 1933 | # Provide some information about the compiler. |
| 1934 | echo "$as_me:$LINENO:" \ |
| 1935 | "checking for C compiler version" >&5 |
| 1936 | ac_compiler=`set X $ac_compile; echo $2` |
| 1937 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1938 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1939 | ac_status=$? |
| 1940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1941 | (exit $ac_status); } |
| 1942 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1943 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1944 | ac_status=$? |
| 1945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1946 | (exit $ac_status); } |
| 1947 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 1948 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1949 | ac_status=$? |
| 1950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1951 | (exit $ac_status); } |
| 1952 | |
| 1953 | cat >conftest.$ac_ext <<_ACEOF |
| 1954 | #line $LINENO "configure" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1955 | #include "confdefs.h" |
| 1956 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1957 | #ifdef F77_DUMMY_MAIN |
| 1958 | # ifdef __cplusplus |
| 1959 | extern "C" |
| 1960 | # endif |
| 1961 | int F77_DUMMY_MAIN() { return 1; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1962 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1963 | int |
| 1964 | main () |
| 1965 | { |
| 1966 | |
| 1967 | ; |
| 1968 | return 0; |
| 1969 | } |
| 1970 | _ACEOF |
| 1971 | ac_clean_files_save=$ac_clean_files |
| 1972 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 1973 | # Try to create an executable without -o first, disregard a.out. |
| 1974 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1975 | # of exeext. |
| 1976 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
| 1977 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 1978 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1979 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1980 | (eval $ac_link_default) 2>&5 |
| 1981 | ac_status=$? |
| 1982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1983 | (exit $ac_status); }; then |
| 1984 | # Find the output, starting from the most likely. This scheme is |
| 1985 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1986 | # resort. |
| 1987 | |
| 1988 | # Be careful to initialize this variable, since it used to be cached. |
| 1989 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1990 | ac_cv_exeext= |
| 1991 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; |
| 1992 | ls a.out conftest 2>/dev/null; |
| 1993 | ls a.* conftest.* 2>/dev/null`; do |
| 1994 | case $ac_file in |
| 1995 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
| 1996 | a.out ) # We found the default executable, but exeext='' is most |
| 1997 | # certainly right. |
| 1998 | break;; |
| 1999 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2000 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 2001 | export ac_cv_exeext |
| 2002 | break;; |
| 2003 | * ) break;; |
| 2004 | esac |
| 2005 | done |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2006 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2007 | echo "$as_me: failed program was:" >&5 |
| 2008 | cat conftest.$ac_ext >&5 |
| 2009 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 |
| 2010 | echo "$as_me: error: C compiler cannot create executables" >&2;} |
| 2011 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2012 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2013 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2014 | ac_exeext=$ac_cv_exeext |
| 2015 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2016 | echo "${ECHO_T}$ac_file" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2017 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2018 | # Check the compiler produces executables we can run. If not, either |
| 2019 | # the compiler is broken, or we cross compile. |
| 2020 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2021 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2022 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2023 | # If not cross compiling, check that we can run a simple program. |
| 2024 | if test "$cross_compiling" != yes; then |
| 2025 | if { ac_try='./$ac_file' |
| 2026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2027 | (eval $ac_try) 2>&5 |
| 2028 | ac_status=$? |
| 2029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2030 | (exit $ac_status); }; }; then |
| 2031 | cross_compiling=no |
| 2032 | else |
| 2033 | if test "$cross_compiling" = maybe; then |
| 2034 | cross_compiling=yes |
| 2035 | else |
| 2036 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2037 | If you meant to cross compile, use \`--host'." >&5 |
| 2038 | echo "$as_me: error: cannot run C compiled programs. |
| 2039 | If you meant to cross compile, use \`--host'." >&2;} |
| 2040 | { (exit 1); exit 1; }; } |
| 2041 | fi |
| 2042 | fi |
| 2043 | fi |
| 2044 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2045 | echo "${ECHO_T}yes" >&6 |
| 2046 | |
| 2047 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 2048 | ac_clean_files=$ac_clean_files_save |
| 2049 | # Check the compiler produces executables we can run. If not, either |
| 2050 | # the compiler is broken, or we cross compile. |
| 2051 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2052 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2053 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2054 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2055 | |
| 2056 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2057 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2058 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2059 | (eval $ac_link) 2>&5 |
| 2060 | ac_status=$? |
| 2061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2062 | (exit $ac_status); }; then |
| 2063 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2064 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2065 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2066 | # `rm'. |
| 2067 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
| 2068 | case $ac_file in |
| 2069 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 2070 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2071 | export ac_cv_exeext |
| 2072 | break;; |
| 2073 | * ) break;; |
| 2074 | esac |
| 2075 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2076 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2077 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 2078 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
| 2079 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2080 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2081 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2082 | rm -f conftest$ac_cv_exeext |
| 2083 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2084 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2085 | |
| 2086 | rm -f conftest.$ac_ext |
| 2087 | EXEEXT=$ac_cv_exeext |
| 2088 | ac_exeext=$EXEEXT |
| 2089 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2090 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2091 | if test "${ac_cv_objext+set}" = set; then |
| 2092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2093 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2094 | cat >conftest.$ac_ext <<_ACEOF |
| 2095 | #line $LINENO "configure" |
| 2096 | #include "confdefs.h" |
| 2097 | |
| 2098 | #ifdef F77_DUMMY_MAIN |
| 2099 | # ifdef __cplusplus |
| 2100 | extern "C" |
| 2101 | # endif |
| 2102 | int F77_DUMMY_MAIN() { return 1; } |
| 2103 | #endif |
| 2104 | int |
| 2105 | main () |
| 2106 | { |
| 2107 | |
| 2108 | ; |
| 2109 | return 0; |
| 2110 | } |
| 2111 | _ACEOF |
| 2112 | rm -f conftest.o conftest.obj |
| 2113 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2114 | (eval $ac_compile) 2>&5 |
| 2115 | ac_status=$? |
| 2116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2117 | (exit $ac_status); }; then |
| 2118 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2119 | case $ac_file in |
| 2120 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 2121 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2122 | break;; |
| 2123 | esac |
| 2124 | done |
| 2125 | else |
| 2126 | echo "$as_me: failed program was:" >&5 |
| 2127 | cat conftest.$ac_ext >&5 |
| 2128 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 |
| 2129 | echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} |
| 2130 | { (exit 1); exit 1; }; } |
| 2131 | fi |
| 2132 | |
| 2133 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2134 | fi |
| 2135 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2136 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2137 | OBJEXT=$ac_cv_objext |
| 2138 | ac_objext=$OBJEXT |
| 2139 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2140 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2141 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2143 | else |
| 2144 | cat >conftest.$ac_ext <<_ACEOF |
| 2145 | #line $LINENO "configure" |
| 2146 | #include "confdefs.h" |
| 2147 | |
| 2148 | #ifdef F77_DUMMY_MAIN |
| 2149 | # ifdef __cplusplus |
| 2150 | extern "C" |
| 2151 | # endif |
| 2152 | int F77_DUMMY_MAIN() { return 1; } |
| 2153 | #endif |
| 2154 | int |
| 2155 | main () |
| 2156 | { |
| 2157 | #ifndef __GNUC__ |
| 2158 | choke me |
| 2159 | #endif |
| 2160 | |
| 2161 | ; |
| 2162 | return 0; |
| 2163 | } |
| 2164 | _ACEOF |
| 2165 | rm -f conftest.$ac_objext |
| 2166 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2167 | (eval $ac_compile) 2>&5 |
| 2168 | ac_status=$? |
| 2169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2170 | (exit $ac_status); } && |
| 2171 | { ac_try='test -s conftest.$ac_objext' |
| 2172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2173 | (eval $ac_try) 2>&5 |
| 2174 | ac_status=$? |
| 2175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2176 | (exit $ac_status); }; }; then |
| 2177 | ac_compiler_gnu=yes |
| 2178 | else |
| 2179 | echo "$as_me: failed program was:" >&5 |
| 2180 | cat conftest.$ac_ext >&5 |
| 2181 | ac_compiler_gnu=no |
| 2182 | fi |
| 2183 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2184 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2185 | |
| 2186 | fi |
| 2187 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2188 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2189 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2190 | ac_test_CFLAGS=${CFLAGS+set} |
| 2191 | ac_save_CFLAGS=$CFLAGS |
| 2192 | CFLAGS="-g" |
| 2193 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2194 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2195 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2197 | else |
| 2198 | cat >conftest.$ac_ext <<_ACEOF |
| 2199 | #line $LINENO "configure" |
| 2200 | #include "confdefs.h" |
| 2201 | |
| 2202 | #ifdef F77_DUMMY_MAIN |
| 2203 | # ifdef __cplusplus |
| 2204 | extern "C" |
| 2205 | # endif |
| 2206 | int F77_DUMMY_MAIN() { return 1; } |
| 2207 | #endif |
| 2208 | int |
| 2209 | main () |
| 2210 | { |
| 2211 | |
| 2212 | ; |
| 2213 | return 0; |
| 2214 | } |
| 2215 | _ACEOF |
| 2216 | rm -f conftest.$ac_objext |
| 2217 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2218 | (eval $ac_compile) 2>&5 |
| 2219 | ac_status=$? |
| 2220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2221 | (exit $ac_status); } && |
| 2222 | { ac_try='test -s conftest.$ac_objext' |
| 2223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2224 | (eval $ac_try) 2>&5 |
| 2225 | ac_status=$? |
| 2226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2227 | (exit $ac_status); }; }; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2228 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2229 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2230 | echo "$as_me: failed program was:" >&5 |
| 2231 | cat conftest.$ac_ext >&5 |
| 2232 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2233 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2234 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2235 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2236 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2237 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2238 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2239 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2240 | elif test $ac_cv_prog_cc_g = yes; then |
| 2241 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2242 | CFLAGS="-g -O2" |
| 2243 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2244 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2245 | fi |
| 2246 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2247 | if test "$GCC" = yes; then |
| 2248 | CFLAGS="-O2" |
| 2249 | else |
| 2250 | CFLAGS= |
| 2251 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2252 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2253 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2254 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2255 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2256 | # the declaration of exit, since it's the most demanding environment. |
| 2257 | cat >conftest.$ac_ext <<_ACEOF |
| 2258 | #ifndef __cplusplus |
| 2259 | choke me |
| 2260 | #endif |
| 2261 | _ACEOF |
| 2262 | rm -f conftest.$ac_objext |
| 2263 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2264 | (eval $ac_compile) 2>&5 |
| 2265 | ac_status=$? |
| 2266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2267 | (exit $ac_status); } && |
| 2268 | { ac_try='test -s conftest.$ac_objext' |
| 2269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2270 | (eval $ac_try) 2>&5 |
| 2271 | ac_status=$? |
| 2272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2273 | (exit $ac_status); }; }; then |
| 2274 | for ac_declaration in \ |
| 2275 | ''\ |
| 2276 | '#include <stdlib.h>' \ |
| 2277 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2278 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2279 | 'extern "C" void exit (int) throw ();' \ |
| 2280 | 'extern "C" void exit (int);' \ |
| 2281 | 'void exit (int);' |
| 2282 | do |
| 2283 | cat >conftest.$ac_ext <<_ACEOF |
| 2284 | #line $LINENO "configure" |
| 2285 | #include "confdefs.h" |
| 2286 | #include <stdlib.h> |
| 2287 | $ac_declaration |
| 2288 | #ifdef F77_DUMMY_MAIN |
| 2289 | # ifdef __cplusplus |
| 2290 | extern "C" |
| 2291 | # endif |
| 2292 | int F77_DUMMY_MAIN() { return 1; } |
| 2293 | #endif |
| 2294 | int |
| 2295 | main () |
| 2296 | { |
| 2297 | exit (42); |
| 2298 | ; |
| 2299 | return 0; |
| 2300 | } |
| 2301 | _ACEOF |
| 2302 | rm -f conftest.$ac_objext |
| 2303 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2304 | (eval $ac_compile) 2>&5 |
| 2305 | ac_status=$? |
| 2306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2307 | (exit $ac_status); } && |
| 2308 | { ac_try='test -s conftest.$ac_objext' |
| 2309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2310 | (eval $ac_try) 2>&5 |
| 2311 | ac_status=$? |
| 2312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2313 | (exit $ac_status); }; }; then |
| 2314 | : |
| 2315 | else |
| 2316 | echo "$as_me: failed program was:" >&5 |
| 2317 | cat conftest.$ac_ext >&5 |
| 2318 | continue |
| 2319 | fi |
| 2320 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2321 | cat >conftest.$ac_ext <<_ACEOF |
| 2322 | #line $LINENO "configure" |
| 2323 | #include "confdefs.h" |
| 2324 | $ac_declaration |
| 2325 | #ifdef F77_DUMMY_MAIN |
| 2326 | # ifdef __cplusplus |
| 2327 | extern "C" |
| 2328 | # endif |
| 2329 | int F77_DUMMY_MAIN() { return 1; } |
| 2330 | #endif |
| 2331 | int |
| 2332 | main () |
| 2333 | { |
| 2334 | exit (42); |
| 2335 | ; |
| 2336 | return 0; |
| 2337 | } |
| 2338 | _ACEOF |
| 2339 | rm -f conftest.$ac_objext |
| 2340 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2341 | (eval $ac_compile) 2>&5 |
| 2342 | ac_status=$? |
| 2343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2344 | (exit $ac_status); } && |
| 2345 | { ac_try='test -s conftest.$ac_objext' |
| 2346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2347 | (eval $ac_try) 2>&5 |
| 2348 | ac_status=$? |
| 2349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2350 | (exit $ac_status); }; }; then |
| 2351 | break |
| 2352 | else |
| 2353 | echo "$as_me: failed program was:" >&5 |
| 2354 | cat conftest.$ac_ext >&5 |
| 2355 | fi |
| 2356 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2357 | done |
| 2358 | rm -f conftest* |
| 2359 | if test -n "$ac_declaration"; then |
| 2360 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2361 | echo $ac_declaration >>confdefs.h |
| 2362 | echo '#endif' >>confdefs.h |
| 2363 | fi |
| 2364 | |
| 2365 | else |
| 2366 | echo "$as_me: failed program was:" >&5 |
| 2367 | cat conftest.$ac_ext >&5 |
| 2368 | fi |
| 2369 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2370 | ac_ext=c |
| 2371 | ac_cpp='$CPP $CPPFLAGS' |
| 2372 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2373 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2374 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2375 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2376 | |
| 2377 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2378 | |
| 2379 | ac_ext=c |
| 2380 | ac_cpp='$CPP $CPPFLAGS' |
| 2381 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2382 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2383 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2384 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2385 | 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] | 2386 | # On Suns, sometimes $CPP names a directory. |
| 2387 | if test -n "$CPP" && test -d "$CPP"; then |
| 2388 | CPP= |
| 2389 | fi |
| 2390 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2391 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2393 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2394 | # Double quotes because CPP needs to be expanded |
| 2395 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2396 | do |
| 2397 | ac_preproc_ok=false |
| 2398 | for ac_c_preproc_warn_flag in '' yes |
| 2399 | do |
| 2400 | # Use a header file that comes with gcc, so configuring glibc |
| 2401 | # with a fresh cross-compiler works. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2402 | # 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] | 2403 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2404 | cat >conftest.$ac_ext <<_ACEOF |
| 2405 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2406 | #include "confdefs.h" |
| 2407 | #include <assert.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2408 | Syntax error |
| 2409 | _ACEOF |
| 2410 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2411 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2412 | ac_status=$? |
| 2413 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2414 | rm -f conftest.er1 |
| 2415 | cat conftest.err >&5 |
| 2416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2417 | (exit $ac_status); } >/dev/null; then |
| 2418 | if test -s conftest.err; then |
| 2419 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2420 | else |
| 2421 | ac_cpp_err= |
| 2422 | fi |
| 2423 | else |
| 2424 | ac_cpp_err=yes |
| 2425 | fi |
| 2426 | if test -z "$ac_cpp_err"; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2427 | : |
| 2428 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2429 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2430 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2431 | # Broken: fails on valid input. |
| 2432 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2433 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2434 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2435 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2436 | # OK, works on sane cases. Now check whether non-existent headers |
| 2437 | # can be detected and how. |
| 2438 | cat >conftest.$ac_ext <<_ACEOF |
| 2439 | #line $LINENO "configure" |
| 2440 | #include "confdefs.h" |
| 2441 | #include <ac_nonexistent.h> |
| 2442 | _ACEOF |
| 2443 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2444 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2445 | ac_status=$? |
| 2446 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2447 | rm -f conftest.er1 |
| 2448 | cat conftest.err >&5 |
| 2449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2450 | (exit $ac_status); } >/dev/null; then |
| 2451 | if test -s conftest.err; then |
| 2452 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2453 | else |
| 2454 | ac_cpp_err= |
| 2455 | fi |
| 2456 | else |
| 2457 | ac_cpp_err=yes |
| 2458 | fi |
| 2459 | if test -z "$ac_cpp_err"; then |
| 2460 | # Broken: success on invalid input. |
| 2461 | continue |
| 2462 | else |
| 2463 | echo "$as_me: failed program was:" >&5 |
| 2464 | cat conftest.$ac_ext >&5 |
| 2465 | # Passes both tests. |
| 2466 | ac_preproc_ok=: |
| 2467 | break |
| 2468 | fi |
| 2469 | rm -f conftest.err conftest.$ac_ext |
| 2470 | |
| 2471 | done |
| 2472 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2473 | rm -f conftest.err conftest.$ac_ext |
| 2474 | if $ac_preproc_ok; then |
| 2475 | break |
| 2476 | fi |
| 2477 | |
| 2478 | done |
| 2479 | ac_cv_prog_CPP=$CPP |
| 2480 | |
| 2481 | fi |
| 2482 | CPP=$ac_cv_prog_CPP |
| 2483 | else |
| 2484 | ac_cv_prog_CPP=$CPP |
| 2485 | fi |
| 2486 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2487 | echo "${ECHO_T}$CPP" >&6 |
| 2488 | ac_preproc_ok=false |
| 2489 | for ac_c_preproc_warn_flag in '' yes |
| 2490 | do |
| 2491 | # Use a header file that comes with gcc, so configuring glibc |
| 2492 | # with a fresh cross-compiler works. |
| 2493 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2494 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2495 | cat >conftest.$ac_ext <<_ACEOF |
| 2496 | #line $LINENO "configure" |
| 2497 | #include "confdefs.h" |
| 2498 | #include <assert.h> |
| 2499 | Syntax error |
| 2500 | _ACEOF |
| 2501 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2502 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2503 | ac_status=$? |
| 2504 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2505 | rm -f conftest.er1 |
| 2506 | cat conftest.err >&5 |
| 2507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2508 | (exit $ac_status); } >/dev/null; then |
| 2509 | if test -s conftest.err; then |
| 2510 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2511 | else |
| 2512 | ac_cpp_err= |
| 2513 | fi |
| 2514 | else |
| 2515 | ac_cpp_err=yes |
| 2516 | fi |
| 2517 | if test -z "$ac_cpp_err"; then |
| 2518 | : |
| 2519 | else |
| 2520 | echo "$as_me: failed program was:" >&5 |
| 2521 | cat conftest.$ac_ext >&5 |
| 2522 | # Broken: fails on valid input. |
| 2523 | continue |
| 2524 | fi |
| 2525 | rm -f conftest.err conftest.$ac_ext |
| 2526 | |
| 2527 | # OK, works on sane cases. Now check whether non-existent headers |
| 2528 | # can be detected and how. |
| 2529 | cat >conftest.$ac_ext <<_ACEOF |
| 2530 | #line $LINENO "configure" |
| 2531 | #include "confdefs.h" |
| 2532 | #include <ac_nonexistent.h> |
| 2533 | _ACEOF |
| 2534 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2535 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2536 | ac_status=$? |
| 2537 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2538 | rm -f conftest.er1 |
| 2539 | cat conftest.err >&5 |
| 2540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2541 | (exit $ac_status); } >/dev/null; then |
| 2542 | if test -s conftest.err; then |
| 2543 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2544 | else |
| 2545 | ac_cpp_err= |
| 2546 | fi |
| 2547 | else |
| 2548 | ac_cpp_err=yes |
| 2549 | fi |
| 2550 | if test -z "$ac_cpp_err"; then |
| 2551 | # Broken: success on invalid input. |
| 2552 | continue |
| 2553 | else |
| 2554 | echo "$as_me: failed program was:" >&5 |
| 2555 | cat conftest.$ac_ext >&5 |
| 2556 | # Passes both tests. |
| 2557 | ac_preproc_ok=: |
| 2558 | break |
| 2559 | fi |
| 2560 | rm -f conftest.err conftest.$ac_ext |
| 2561 | |
| 2562 | done |
| 2563 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2564 | rm -f conftest.err conftest.$ac_ext |
| 2565 | if $ac_preproc_ok; then |
| 2566 | : |
| 2567 | else |
| 2568 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
| 2569 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
| 2570 | { (exit 1); exit 1; }; } |
| 2571 | fi |
| 2572 | |
| 2573 | ac_ext=c |
| 2574 | ac_cpp='$CPP $CPPFLAGS' |
| 2575 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2576 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2577 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2578 | |
| 2579 | |
| 2580 | |
| 2581 | echo "$as_me:$LINENO: checking for AIX" >&5 |
| 2582 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 2583 | cat >conftest.$ac_ext <<_ACEOF |
| 2584 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2585 | #include "confdefs.h" |
| 2586 | #ifdef _AIX |
| 2587 | yes |
| 2588 | #endif |
| 2589 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2590 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2591 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2592 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2593 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2594 | echo "${ECHO_T}yes" >&6 |
| 2595 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2596 | #define _ALL_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2597 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2598 | |
| 2599 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2600 | echo "$as_me:$LINENO: result: no" >&5 |
| 2601 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2602 | fi |
| 2603 | rm -f conftest* |
| 2604 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2605 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2606 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 2607 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 2608 | if test "${ac_cv_header_stdc+set}" = set; then |
| 2609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2610 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2611 | cat >conftest.$ac_ext <<_ACEOF |
| 2612 | #line $LINENO "configure" |
| 2613 | #include "confdefs.h" |
| 2614 | #include <stdlib.h> |
| 2615 | #include <stdarg.h> |
| 2616 | #include <string.h> |
| 2617 | #include <float.h> |
| 2618 | |
| 2619 | _ACEOF |
| 2620 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2621 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2622 | ac_status=$? |
| 2623 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2624 | rm -f conftest.er1 |
| 2625 | cat conftest.err >&5 |
| 2626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2627 | (exit $ac_status); } >/dev/null; then |
| 2628 | if test -s conftest.err; then |
| 2629 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2630 | else |
| 2631 | ac_cpp_err= |
| 2632 | fi |
| 2633 | else |
| 2634 | ac_cpp_err=yes |
| 2635 | fi |
| 2636 | if test -z "$ac_cpp_err"; then |
| 2637 | ac_cv_header_stdc=yes |
| 2638 | else |
| 2639 | echo "$as_me: failed program was:" >&5 |
| 2640 | cat conftest.$ac_ext >&5 |
| 2641 | ac_cv_header_stdc=no |
| 2642 | fi |
| 2643 | rm -f conftest.err conftest.$ac_ext |
| 2644 | |
| 2645 | if test $ac_cv_header_stdc = yes; then |
| 2646 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 2647 | cat >conftest.$ac_ext <<_ACEOF |
| 2648 | #line $LINENO "configure" |
| 2649 | #include "confdefs.h" |
| 2650 | #include <string.h> |
| 2651 | |
| 2652 | _ACEOF |
| 2653 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2654 | egrep "memchr" >/dev/null 2>&1; then |
| 2655 | : |
| 2656 | else |
| 2657 | ac_cv_header_stdc=no |
| 2658 | fi |
| 2659 | rm -f conftest* |
| 2660 | |
| 2661 | fi |
| 2662 | |
| 2663 | if test $ac_cv_header_stdc = yes; then |
| 2664 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 2665 | cat >conftest.$ac_ext <<_ACEOF |
| 2666 | #line $LINENO "configure" |
| 2667 | #include "confdefs.h" |
| 2668 | #include <stdlib.h> |
| 2669 | |
| 2670 | _ACEOF |
| 2671 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2672 | egrep "free" >/dev/null 2>&1; then |
| 2673 | : |
| 2674 | else |
| 2675 | ac_cv_header_stdc=no |
| 2676 | fi |
| 2677 | rm -f conftest* |
| 2678 | |
| 2679 | fi |
| 2680 | |
| 2681 | if test $ac_cv_header_stdc = yes; then |
| 2682 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 2683 | if test "$cross_compiling" = yes; then |
| 2684 | : |
| 2685 | else |
| 2686 | cat >conftest.$ac_ext <<_ACEOF |
| 2687 | #line $LINENO "configure" |
| 2688 | #include "confdefs.h" |
| 2689 | #include <ctype.h> |
| 2690 | #if ((' ' & 0x0FF) == 0x020) |
| 2691 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 2692 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 2693 | #else |
| 2694 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 2695 | || ('j' <= (c) && (c) <= 'r') \ |
| 2696 | || ('s' <= (c) && (c) <= 'z')) |
| 2697 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 2698 | #endif |
| 2699 | |
| 2700 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 2701 | int |
| 2702 | main () |
| 2703 | { |
| 2704 | int i; |
| 2705 | for (i = 0; i < 256; i++) |
| 2706 | if (XOR (islower (i), ISLOWER (i)) |
| 2707 | || toupper (i) != TOUPPER (i)) |
| 2708 | exit(2); |
| 2709 | exit (0); |
| 2710 | } |
| 2711 | _ACEOF |
| 2712 | rm -f conftest$ac_exeext |
| 2713 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2714 | (eval $ac_link) 2>&5 |
| 2715 | ac_status=$? |
| 2716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2717 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 2718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2719 | (eval $ac_try) 2>&5 |
| 2720 | ac_status=$? |
| 2721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2722 | (exit $ac_status); }; }; then |
| 2723 | : |
| 2724 | else |
| 2725 | echo "$as_me: program exited with status $ac_status" >&5 |
| 2726 | echo "$as_me: failed program was:" >&5 |
| 2727 | cat conftest.$ac_ext >&5 |
| 2728 | ( exit $ac_status ) |
| 2729 | ac_cv_header_stdc=no |
| 2730 | fi |
| 2731 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 2732 | fi |
| 2733 | fi |
| 2734 | fi |
| 2735 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 2736 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 2737 | if test $ac_cv_header_stdc = yes; then |
| 2738 | |
| 2739 | cat >>confdefs.h <<\_ACEOF |
| 2740 | #define STDC_HEADERS 1 |
| 2741 | _ACEOF |
| 2742 | |
| 2743 | fi |
| 2744 | |
| 2745 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 2746 | |
| 2747 | |
| 2748 | |
| 2749 | |
| 2750 | |
| 2751 | |
| 2752 | |
| 2753 | |
| 2754 | |
| 2755 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 2756 | inttypes.h stdint.h unistd.h |
| 2757 | do |
| 2758 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 2759 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 2760 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 2761 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 2762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2763 | else |
| 2764 | cat >conftest.$ac_ext <<_ACEOF |
| 2765 | #line $LINENO "configure" |
| 2766 | #include "confdefs.h" |
| 2767 | $ac_includes_default |
| 2768 | |
| 2769 | #include <$ac_header> |
| 2770 | _ACEOF |
| 2771 | rm -f conftest.$ac_objext |
| 2772 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2773 | (eval $ac_compile) 2>&5 |
| 2774 | ac_status=$? |
| 2775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2776 | (exit $ac_status); } && |
| 2777 | { ac_try='test -s conftest.$ac_objext' |
| 2778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2779 | (eval $ac_try) 2>&5 |
| 2780 | ac_status=$? |
| 2781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2782 | (exit $ac_status); }; }; then |
| 2783 | eval "$as_ac_Header=yes" |
| 2784 | else |
| 2785 | echo "$as_me: failed program was:" >&5 |
| 2786 | cat conftest.$ac_ext >&5 |
| 2787 | eval "$as_ac_Header=no" |
| 2788 | fi |
| 2789 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2790 | fi |
| 2791 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 2792 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 2793 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 2794 | cat >>confdefs.h <<_ACEOF |
| 2795 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 2796 | _ACEOF |
| 2797 | |
| 2798 | fi |
| 2799 | |
| 2800 | done |
| 2801 | |
| 2802 | |
| 2803 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2804 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 2805 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 2806 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2808 | fi |
| 2809 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 2810 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 2811 | else |
| 2812 | # Is the header compilable? |
| 2813 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5 |
| 2814 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 |
| 2815 | cat >conftest.$ac_ext <<_ACEOF |
| 2816 | #line $LINENO "configure" |
| 2817 | #include "confdefs.h" |
| 2818 | $ac_includes_default |
| 2819 | #include <minix/config.h> |
| 2820 | _ACEOF |
| 2821 | rm -f conftest.$ac_objext |
| 2822 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2823 | (eval $ac_compile) 2>&5 |
| 2824 | ac_status=$? |
| 2825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2826 | (exit $ac_status); } && |
| 2827 | { ac_try='test -s conftest.$ac_objext' |
| 2828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2829 | (eval $ac_try) 2>&5 |
| 2830 | ac_status=$? |
| 2831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2832 | (exit $ac_status); }; }; then |
| 2833 | ac_header_compiler=yes |
| 2834 | else |
| 2835 | echo "$as_me: failed program was:" >&5 |
| 2836 | cat conftest.$ac_ext >&5 |
| 2837 | ac_header_compiler=no |
| 2838 | fi |
| 2839 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2840 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 2841 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 2842 | |
| 2843 | # Is the header present? |
| 2844 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5 |
| 2845 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 |
| 2846 | cat >conftest.$ac_ext <<_ACEOF |
| 2847 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2848 | #include "confdefs.h" |
| 2849 | #include <minix/config.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2850 | _ACEOF |
| 2851 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2852 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2853 | ac_status=$? |
| 2854 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2855 | rm -f conftest.er1 |
| 2856 | cat conftest.err >&5 |
| 2857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2858 | (exit $ac_status); } >/dev/null; then |
| 2859 | if test -s conftest.err; then |
| 2860 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2861 | else |
| 2862 | ac_cpp_err= |
| 2863 | fi |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2864 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2865 | ac_cpp_err=yes |
| 2866 | fi |
| 2867 | if test -z "$ac_cpp_err"; then |
| 2868 | ac_header_preproc=yes |
| 2869 | else |
| 2870 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2871 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2872 | ac_header_preproc=no |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2873 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2874 | rm -f conftest.err conftest.$ac_ext |
| 2875 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 2876 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 2877 | |
| 2878 | # So? What about this header? |
| 2879 | case $ac_header_compiler:$ac_header_preproc in |
| 2880 | yes:no ) |
| 2881 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 2882 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 2883 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 2884 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};; |
| 2885 | no:yes ) |
| 2886 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 |
| 2887 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} |
| 2888 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 |
| 2889 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} |
| 2890 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 2891 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};; |
| 2892 | esac |
| 2893 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 2894 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 2895 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2896 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2897 | else |
| 2898 | ac_cv_header_minix_config_h=$ac_header_preproc |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2899 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2900 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 2901 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 2902 | |
| 2903 | fi |
| 2904 | if test $ac_cv_header_minix_config_h = yes; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2905 | MINIX=yes |
| 2906 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2907 | MINIX= |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2908 | fi |
| 2909 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2910 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2911 | if test "$MINIX" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2912 | |
| 2913 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2914 | #define _POSIX_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2915 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2916 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2917 | |
| 2918 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2919 | #define _POSIX_1_SOURCE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2920 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2921 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2922 | |
| 2923 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2924 | #define _MINIX 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2925 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2926 | |
| 2927 | fi |
| 2928 | |
| 2929 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2930 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2931 | echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 2932 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2933 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 2934 | # Check whether --with-suffix or --without-suffix was given. |
| 2935 | if test "${with_suffix+set}" = set; then |
| 2936 | withval="$with_suffix" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2937 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 2938 | case $withval in |
| 2939 | no) EXEEXT=;; |
| 2940 | yes) EXEEXT=.exe;; |
| 2941 | *) EXEEXT=$withval;; |
| 2942 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2943 | fi; |
| 2944 | echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 2945 | echo "${ECHO_T}$EXEEXT" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 2946 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 2947 | # Test whether we're running on a non-case-sensitive system, in which |
| 2948 | # case we give a warning if no ext is given |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 2949 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2950 | echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 2951 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 2952 | if test -d "python" |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 2953 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2954 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2955 | echo "${ECHO_T}yes" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 2956 | BUILDEXEEXT=.exe |
| 2957 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2958 | echo "$as_me:$LINENO: result: no" >&5 |
| 2959 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2960 | BUILDEXEEXT=$EXEEXT |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 2961 | fi |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 2962 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 2963 | case $MACHDEP in |
| 2964 | bsdos*) |
| 2965 | case $CC in |
| 2966 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 2967 | esac;; |
| 2968 | esac |
| 2969 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 2970 | case $ac_sys_system in |
| 2971 | hp*|HP*) |
| 2972 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 2973 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 2974 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 2975 | Monterey*) |
| 2976 | case $CC in |
| 2977 | cc) CC="$CC -Wl,-Bexport";; |
| 2978 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 2979 | SunOS*) |
| 2980 | # 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] | 2981 | |
| 2982 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 2983 | #define __EXTENSIONS__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2984 | _ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 2985 | |
| 2986 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 2987 | esac |
| 2988 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2989 | |
| 2990 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2991 | echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 2992 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2993 | if test -z "$LIBRARY" |
| 2994 | then |
| 2995 | LIBRARY='libpython$(VERSION).a' |
| 2996 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2997 | echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 2998 | echo "${ECHO_T}$LIBRARY" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 2999 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3000 | # 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] | 3001 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3002 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3003 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3004 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3005 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3006 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3007 | # DLLLIBRARY is the shared (i.e., DLL) library. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3008 | # |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3009 | # RUNSHARED is used to run shared python without installed libraries |
| 3010 | # |
| 3011 | # INSTSONAME is the name of the shared library that will be use to install |
| 3012 | # on the system - some systems like version suffix, others don't |
| 3013 | |
| 3014 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3015 | |
| 3016 | |
| 3017 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3018 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3019 | LDLIBRARY="$LIBRARY" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3020 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3021 | INSTSONMAE='$(LDLIBRARY)' |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 3022 | DLLLIBRARY='' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3023 | LDLIBRARYDIR='' |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3024 | RUNSHARED='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3025 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3026 | # 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] | 3027 | # If CXX is set, and if it is needed to link a main function that was |
| 3028 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3029 | # python might then depend on the C++ runtime |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3030 | # 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] | 3031 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3032 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3033 | echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3034 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3035 | if test -z "$LINKCC" |
| 3036 | then |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3037 | if test -z "$CXX"; then |
| 3038 | LINKCC="\$(PURIFY) \$(CC)" |
| 3039 | else |
| 3040 | echo 'int main(){return 0;}' > conftest.$ac_ext |
| 3041 | $CXX -c conftest.$ac_ext 2>&5 |
| 3042 | if $CC -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 3043 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 3044 | then |
| 3045 | LINKCC="\$(PURIFY) \$(CC)" |
| 3046 | else |
| 3047 | LINKCC="\$(PURIFY) \$(CXX)" |
| 3048 | fi |
| 3049 | rm -fr conftest* |
| 3050 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3051 | case $ac_sys_system in |
| 3052 | AIX*) |
Jack Jansen | 524a098 | 2002-03-12 15:25:52 +0000 | [diff] [blame] | 3053 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp \"\" \$(LIBRARY); $LINKCC";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 3054 | dgux*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3055 | LINKCC="LD_RUN_PATH=$libdir $LINKCC";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3056 | Monterey64*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3057 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3058 | esac |
| 3059 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3060 | echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3061 | echo "${ECHO_T}$LINKCC" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3062 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3063 | echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 3064 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3065 | # Check whether --enable-shared or --disable-shared was given. |
| 3066 | if test "${enable_shared+set}" = set; then |
| 3067 | enableval="$enable_shared" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3068 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3069 | fi; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3070 | |
| 3071 | if test -z "$enable_shared" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3072 | then |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3073 | enable_shared="no" |
| 3074 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3075 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 3076 | echo "${ECHO_T}$enable_shared" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3077 | |
| 3078 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3079 | echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 3080 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3081 | |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 3082 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 3083 | # library that we build, but we do not want to link against it (we |
| 3084 | # will find it with a -framework option). For this reason there is an |
| 3085 | # extra variable BLDLIBRARY against which Python and the extension |
| 3086 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 3087 | # LDLIBRARY, but empty for MacOSX framework builds. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3088 | if test "$enable_framework" |
| 3089 | then |
| 3090 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 3091 | LDLIBRARYDIR='$(PYTHONFRAMEWORKDIR)' |
| 3092 | BLDLIBRARY='' |
| 3093 | else |
| 3094 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3095 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3096 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3097 | # Other platforms follow |
| 3098 | if test $enable_shared = "yes"; then |
| 3099 | case $ac_sys_system in |
| 3100 | BeOS*) |
| 3101 | LDLIBRARY='libpython$(VERSION).so' |
| 3102 | ;; |
| 3103 | CYGWIN*) |
| 3104 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3105 | DLLLIBRARY='libpython$(VERSION).dll' |
| 3106 | ;; |
| 3107 | SunOS*) |
| 3108 | LDLIBRARY='libpython$(VERSION).so' |
| 3109 | BLDLIBRARY='-Wl,-rpath,$(LIBDIR) -L. -lpython$(VERSION)' |
| 3110 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3111 | ;; |
| 3112 | Linux*) |
| 3113 | LDLIBRARY='libpython$(VERSION).so' |
| 3114 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3115 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3116 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 3117 | ;; |
| 3118 | hp*|HP*) |
| 3119 | LDLIBRARY='libpython$(VERSION).sl' |
| 3120 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| 3121 | RUNSHARED=SHLIB_PATH=`pwd`:$SHLIB_PATH |
| 3122 | ;; |
| 3123 | OSF*) |
| 3124 | LDLIBRARY='libpython$(VERSION).so' |
| 3125 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| 3126 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3127 | ;; |
| 3128 | esac |
| 3129 | # DG/UX requires some fancy ld contortions to produce a .so from an .a |
| 3130 | case $MACHDEP in |
| 3131 | dguxR4) |
| 3132 | LDLIBRARY='libpython$(VERSION).so' |
| 3133 | OPT="$OPT -pic" |
| 3134 | ;; |
| 3135 | esac |
| 3136 | fi |
| 3137 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3138 | echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 3139 | echo "${ECHO_T}$LDLIBRARY" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3140 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3141 | if test -n "$ac_tool_prefix"; then |
| 3142 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3143 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3144 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3145 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3146 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3148 | else |
| 3149 | if test -n "$RANLIB"; then |
| 3150 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3151 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3152 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3153 | for as_dir in $PATH |
| 3154 | do |
| 3155 | IFS=$as_save_IFS |
| 3156 | test -z "$as_dir" && as_dir=. |
| 3157 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3158 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3159 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3160 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3161 | break 2 |
| 3162 | fi |
| 3163 | done |
| 3164 | done |
| 3165 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3166 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3167 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3168 | RANLIB=$ac_cv_prog_RANLIB |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3169 | if test -n "$RANLIB"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3170 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3171 | echo "${ECHO_T}$RANLIB" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3172 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3173 | echo "$as_me:$LINENO: result: no" >&5 |
| 3174 | echo "${ECHO_T}no" >&6 |
| 3175 | fi |
| 3176 | |
| 3177 | fi |
| 3178 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3179 | ac_ct_RANLIB=$RANLIB |
| 3180 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3181 | set dummy ranlib; ac_word=$2 |
| 3182 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3183 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3184 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3186 | else |
| 3187 | if test -n "$ac_ct_RANLIB"; then |
| 3188 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3189 | else |
| 3190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3191 | for as_dir in $PATH |
| 3192 | do |
| 3193 | IFS=$as_save_IFS |
| 3194 | test -z "$as_dir" && as_dir=. |
| 3195 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3196 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3197 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3198 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3199 | break 2 |
| 3200 | fi |
| 3201 | done |
| 3202 | done |
| 3203 | |
| 3204 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3205 | fi |
| 3206 | fi |
| 3207 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3208 | if test -n "$ac_ct_RANLIB"; then |
| 3209 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3210 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3211 | else |
| 3212 | echo "$as_me:$LINENO: result: no" >&5 |
| 3213 | echo "${ECHO_T}no" >&6 |
| 3214 | fi |
| 3215 | |
| 3216 | RANLIB=$ac_ct_RANLIB |
| 3217 | else |
| 3218 | RANLIB="$ac_cv_prog_RANLIB" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3219 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3220 | |
| 3221 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3222 | for ac_prog in ar aal |
| 3223 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3224 | # 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] | 3225 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3226 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3227 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3228 | if test "${ac_cv_prog_AR+set}" = set; then |
| 3229 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3230 | else |
| 3231 | if test -n "$AR"; then |
| 3232 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3233 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3235 | for as_dir in $PATH |
| 3236 | do |
| 3237 | IFS=$as_save_IFS |
| 3238 | test -z "$as_dir" && as_dir=. |
| 3239 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3240 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3241 | ac_cv_prog_AR="$ac_prog" |
| 3242 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3243 | break 2 |
| 3244 | fi |
| 3245 | done |
| 3246 | done |
| 3247 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3248 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3249 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3250 | AR=$ac_cv_prog_AR |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3251 | if test -n "$AR"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3252 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 3253 | echo "${ECHO_T}$AR" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3254 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3255 | echo "$as_me:$LINENO: result: no" >&5 |
| 3256 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3257 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3258 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3259 | test -n "$AR" && break |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3260 | done |
| 3261 | test -n "$AR" || AR="ar" |
| 3262 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3263 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3264 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 3265 | bsdos*|hp*|HP*) |
| 3266 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3267 | if test -z "$INSTALL" |
| 3268 | then |
| 3269 | INSTALL="${srcdir}/install-sh -c" |
| 3270 | fi |
| 3271 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3272 | ac_aux_dir= |
| 3273 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 3274 | if test -f $ac_dir/install-sh; then |
| 3275 | ac_aux_dir=$ac_dir |
| 3276 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3277 | break |
| 3278 | elif test -f $ac_dir/install.sh; then |
| 3279 | ac_aux_dir=$ac_dir |
| 3280 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3281 | break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3282 | elif test -f $ac_dir/shtool; then |
| 3283 | ac_aux_dir=$ac_dir |
| 3284 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3285 | break |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3286 | fi |
| 3287 | done |
| 3288 | if test -z "$ac_aux_dir"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3289 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 3290 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 3291 | { (exit 1); exit 1; }; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3292 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3293 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 3294 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 3295 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3296 | |
| 3297 | # Find a good install program. We prefer a C program (faster), |
| 3298 | # so one script is as good as another. But avoid the broken or |
| 3299 | # incompatible versions: |
| 3300 | # SysV /etc/install, /usr/sbin/install |
| 3301 | # SunOS /usr/etc/install |
| 3302 | # IRIX /sbin/install |
| 3303 | # AIX /bin/install |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3304 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3305 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3306 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3307 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3308 | # ./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] | 3309 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 3310 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3311 | if test -z "$INSTALL"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3312 | if test "${ac_cv_path_install+set}" = set; then |
| 3313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3314 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3316 | for as_dir in $PATH |
| 3317 | do |
| 3318 | IFS=$as_save_IFS |
| 3319 | test -z "$as_dir" && as_dir=. |
| 3320 | # Account for people who put trailing slashes in PATH elements. |
| 3321 | case $as_dir/ in |
| 3322 | ./ | .// | /cC/* | \ |
| 3323 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3324 | /usr/ucb/* ) ;; |
| 3325 | *) |
| 3326 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3327 | # Don't use installbsd from OSF since it installs stuff as root |
| 3328 | # by default. |
| 3329 | for ac_prog in ginstall scoinst install; do |
| 3330 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3331 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3332 | if test $ac_prog = install && |
| 3333 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3334 | # AIX install. It has an incompatible calling convention. |
| 3335 | : |
| 3336 | elif test $ac_prog = install && |
| 3337 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3338 | # program-specific install script used by HP pwplus--don't use. |
| 3339 | : |
| 3340 | else |
| 3341 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3342 | break 3 |
| 3343 | fi |
| 3344 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3345 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3346 | done |
| 3347 | ;; |
| 3348 | esac |
| 3349 | done |
| 3350 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3351 | |
| 3352 | fi |
| 3353 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3354 | INSTALL=$ac_cv_path_install |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3355 | else |
| 3356 | # As a last resort, use the slow shell script. We don't cache a |
| 3357 | # path for INSTALL within a source directory, because that will |
| 3358 | # break other packages using the cache if that directory is |
| 3359 | # removed, or if the path is relative. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3360 | INSTALL=$ac_install_sh |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3361 | fi |
| 3362 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3363 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 3364 | echo "${ECHO_T}$INSTALL" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3365 | |
| 3366 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3367 | # It thinks the first close brace ends the variable substitution. |
| 3368 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3369 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3370 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3371 | |
| 3372 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3373 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3374 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3375 | # Not every filesystem supports hard links |
| 3376 | |
| 3377 | if test -z "$LN" ; then |
| 3378 | case $ac_sys_system in |
| 3379 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3380 | CYGWIN*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3381 | *) LN=ln;; |
| 3382 | esac |
| 3383 | fi |
| 3384 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3385 | # Check for --with-pydebug |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3386 | echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 3387 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6 |
| 3388 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3389 | # Check whether --with-pydebug or --without-pydebug was given. |
| 3390 | if test "${with_pydebug+set}" = set; then |
| 3391 | withval="$with_pydebug" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3392 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3393 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3394 | then |
| 3395 | |
| 3396 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3397 | #define Py_DEBUG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3398 | _ACEOF |
| 3399 | |
| 3400 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3401 | echo "${ECHO_T}yes" >&6; |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 3402 | Py_DEBUG='true' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3403 | else echo "$as_me:$LINENO: result: no" >&5 |
| 3404 | echo "${ECHO_T}no" >&6; Py_DEBUG='false' |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3405 | fi |
| 3406 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3407 | echo "$as_me:$LINENO: result: no" >&5 |
| 3408 | echo "${ECHO_T}no" >&6 |
| 3409 | fi; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3410 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3411 | # Optimizer/debugger flags |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3412 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3413 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3414 | then |
Guido van Rossum | edca74a | 1997-07-18 23:29:40 +0000 | [diff] [blame] | 3415 | case $GCC in |
| 3416 | yes) |
| 3417 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3418 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3419 | if test "$Py_DEBUG" = 'true' ; then |
| 3420 | # Optimization messes up debuggers, so turn it off for |
| 3421 | # debug builds. |
| 3422 | OPT="-g -Wall -Wstrict-prototypes" |
| 3423 | else |
| 3424 | OPT="-g -O3 -Wall -Wstrict-prototypes" |
| 3425 | fi;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3426 | *) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3427 | OPT="-O3 -Wall -Wstrict-prototypes";; |
| 3428 | esac |
| 3429 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3430 | *) |
| 3431 | case $ac_sys_system in |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 3432 | OpenUNIX*|UnixWare*) |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3433 | OPT="-O -K pentium,host,inline,loop_unroll,alloca ";; |
| 3434 | *) |
| 3435 | OPT="-O";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3436 | esac |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3437 | esac |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3438 | case $ac_sys_system in |
| 3439 | Darwin*) |
Jack Jansen | 524a098 | 2002-03-12 15:25:52 +0000 | [diff] [blame] | 3440 | OPT="$OPT -Wno-long-double -no-cpp-precomp";; |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3441 | esac |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3442 | fi |
| 3443 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 3444 | if test "$Py_DEBUG" = 'true'; then |
| 3445 | : |
| 3446 | else |
| 3447 | OPT="-DNDEBUG $OPT" |
| 3448 | fi |
| 3449 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3450 | # The current (beta) Monterey compiler dies with optimizations |
| 3451 | case $ac_sys_system in |
| 3452 | Monterey*) OPT="";; |
| 3453 | esac |
| 3454 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3455 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3456 | then |
| 3457 | OPT="$OPT $ac_arch_flags" |
| 3458 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3459 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3460 | echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 3461 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6 |
| 3462 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 3463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3464 | else |
| 3465 | ac_save_cc="$CC" |
| 3466 | CC="$CC -OPT:Olimit=0" |
| 3467 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3468 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3469 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3470 | cat >conftest.$ac_ext <<_ACEOF |
| 3471 | #line $LINENO "configure" |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3472 | #include "confdefs.h" |
| 3473 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3474 | _ACEOF |
| 3475 | rm -f conftest$ac_exeext |
| 3476 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3477 | (eval $ac_link) 2>&5 |
| 3478 | ac_status=$? |
| 3479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3480 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3482 | (eval $ac_try) 2>&5 |
| 3483 | ac_status=$? |
| 3484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3485 | (exit $ac_status); }; }; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3486 | ac_cv_opt_olimit_ok=yes |
| 3487 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3488 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3489 | echo "$as_me: failed program was:" >&5 |
| 3490 | cat conftest.$ac_ext >&5 |
| 3491 | ( exit $ac_status ) |
| 3492 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3493 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3494 | 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] | 3495 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3496 | CC="$ac_save_cc" |
| 3497 | fi |
| 3498 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3499 | echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 3500 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 3501 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3502 | case $ac_sys_system in |
| 3503 | Darwin*) OPT="$OPT" ;; |
| 3504 | *) OPT="$OPT -OPT:Olimit=0";; |
| 3505 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3506 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3507 | echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 3508 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6 |
| 3509 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 3510 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3511 | else |
| 3512 | ac_save_cc="$CC" |
| 3513 | CC="$CC -Olimit 1500" |
| 3514 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3515 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3516 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3517 | cat >conftest.$ac_ext <<_ACEOF |
| 3518 | #line $LINENO "configure" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3519 | #include "confdefs.h" |
| 3520 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3521 | _ACEOF |
| 3522 | rm -f conftest$ac_exeext |
| 3523 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3524 | (eval $ac_link) 2>&5 |
| 3525 | ac_status=$? |
| 3526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3527 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3529 | (eval $ac_try) 2>&5 |
| 3530 | ac_status=$? |
| 3531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3532 | (exit $ac_status); }; }; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3533 | ac_cv_olimit_ok=yes |
| 3534 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3535 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3536 | echo "$as_me: failed program was:" >&5 |
| 3537 | cat conftest.$ac_ext >&5 |
| 3538 | ( exit $ac_status ) |
| 3539 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 3540 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3541 | 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] | 3542 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3543 | CC="$ac_save_cc" |
| 3544 | fi |
| 3545 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3546 | echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 3547 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3548 | if test $ac_cv_olimit_ok = yes; then |
| 3549 | OPT="$OPT -Olimit 1500" |
| 3550 | fi |
| 3551 | fi |
| 3552 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3553 | # On some compilers, pthreads are available without further options |
| 3554 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 3555 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 3556 | # So we have to see first whether pthreads are available without |
| 3557 | # options before we can check whether -Kpthread improves anything. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3558 | echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 3559 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6 |
| 3560 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 3561 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3562 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3563 | if test "$cross_compiling" = yes; then |
| 3564 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3565 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3566 | cat >conftest.$ac_ext <<_ACEOF |
| 3567 | #line $LINENO "configure" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3568 | #include "confdefs.h" |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3569 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3570 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3571 | |
| 3572 | void* routine(void* p){return NULL;} |
| 3573 | |
| 3574 | int main(){ |
| 3575 | pthread_t p; |
| 3576 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3577 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3578 | (void)pthread_detach(p); |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3579 | return 0; |
| 3580 | } |
| 3581 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3582 | _ACEOF |
| 3583 | rm -f conftest$ac_exeext |
| 3584 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3585 | (eval $ac_link) 2>&5 |
| 3586 | ac_status=$? |
| 3587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3588 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3590 | (eval $ac_try) 2>&5 |
| 3591 | ac_status=$? |
| 3592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3593 | (exit $ac_status); }; }; then |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3594 | ac_cv_pthread_is_default=yes |
| 3595 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3596 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3597 | echo "$as_me: failed program was:" >&5 |
| 3598 | cat conftest.$ac_ext >&5 |
| 3599 | ( exit $ac_status ) |
| 3600 | ac_cv_pthread_is_default=no |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3601 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3602 | 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] | 3603 | fi |
| 3604 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3605 | fi |
| 3606 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3607 | echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 3608 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3609 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3610 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3611 | if test $ac_cv_pthread_is_default = yes |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3612 | then |
| 3613 | ac_cv_kpthread=no |
| 3614 | else |
| 3615 | # -Kpthread, if available, provides the right #defines |
| 3616 | # and linker options to make pthread_create available |
| 3617 | # Some compilers won't report that they do not support -Kpthread, |
| 3618 | # so we need to run a program to see whether it really made the |
| 3619 | # function available. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3620 | echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 3621 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6 |
| 3622 | if test "${ac_cv_kpthread+set}" = set; then |
| 3623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3624 | else |
| 3625 | ac_save_cc="$CC" |
| 3626 | CC="$CC -Kpthread" |
| 3627 | if test "$cross_compiling" = yes; then |
| 3628 | ac_cv_kpthread=no |
| 3629 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3630 | cat >conftest.$ac_ext <<_ACEOF |
| 3631 | #line $LINENO "configure" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3632 | #include "confdefs.h" |
| 3633 | |
| 3634 | #include <pthread.h> |
| 3635 | |
| 3636 | void* routine(void* p){return NULL;} |
| 3637 | |
| 3638 | int main(){ |
| 3639 | pthread_t p; |
| 3640 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3641 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3642 | (void)pthread_detach(p); |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3643 | return 0; |
| 3644 | } |
| 3645 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3646 | _ACEOF |
| 3647 | rm -f conftest$ac_exeext |
| 3648 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3649 | (eval $ac_link) 2>&5 |
| 3650 | ac_status=$? |
| 3651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3652 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3654 | (eval $ac_try) 2>&5 |
| 3655 | ac_status=$? |
| 3656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3657 | (exit $ac_status); }; }; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3658 | ac_cv_kpthread=yes |
| 3659 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3660 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3661 | echo "$as_me: failed program was:" >&5 |
| 3662 | cat conftest.$ac_ext >&5 |
| 3663 | ( exit $ac_status ) |
| 3664 | ac_cv_kpthread=no |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3665 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3666 | 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] | 3667 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3668 | CC="$ac_save_cc" |
| 3669 | fi |
| 3670 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3671 | echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 3672 | echo "${ECHO_T}$ac_cv_kpthread" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3673 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3674 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3675 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3676 | # checks for header files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3677 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3678 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3679 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +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 | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3684 | #include "confdefs.h" |
| 3685 | #include <stdlib.h> |
| 3686 | #include <stdarg.h> |
| 3687 | #include <string.h> |
| 3688 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3689 | |
| 3690 | _ACEOF |
| 3691 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3692 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3693 | ac_status=$? |
| 3694 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 3695 | rm -f conftest.er1 |
| 3696 | cat conftest.err >&5 |
| 3697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3698 | (exit $ac_status); } >/dev/null; then |
| 3699 | if test -s conftest.err; then |
| 3700 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3701 | else |
| 3702 | ac_cpp_err= |
| 3703 | fi |
| 3704 | else |
| 3705 | ac_cpp_err=yes |
| 3706 | fi |
| 3707 | if test -z "$ac_cpp_err"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3708 | ac_cv_header_stdc=yes |
| 3709 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3710 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3711 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3712 | ac_cv_header_stdc=no |
| 3713 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3714 | rm -f conftest.err conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3715 | |
| 3716 | if test $ac_cv_header_stdc = yes; then |
| 3717 | # 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] | 3718 | cat >conftest.$ac_ext <<_ACEOF |
| 3719 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3720 | #include "confdefs.h" |
| 3721 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3722 | |
| 3723 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3724 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3725 | egrep "memchr" >/dev/null 2>&1; then |
| 3726 | : |
| 3727 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3728 | ac_cv_header_stdc=no |
| 3729 | fi |
| 3730 | rm -f conftest* |
| 3731 | |
| 3732 | fi |
| 3733 | |
| 3734 | if test $ac_cv_header_stdc = yes; then |
| 3735 | # 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] | 3736 | cat >conftest.$ac_ext <<_ACEOF |
| 3737 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3738 | #include "confdefs.h" |
| 3739 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3740 | |
| 3741 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3742 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3743 | egrep "free" >/dev/null 2>&1; then |
| 3744 | : |
| 3745 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3746 | ac_cv_header_stdc=no |
| 3747 | fi |
| 3748 | rm -f conftest* |
| 3749 | |
| 3750 | fi |
| 3751 | |
| 3752 | if test $ac_cv_header_stdc = yes; then |
| 3753 | # /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] | 3754 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3755 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3756 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3757 | cat >conftest.$ac_ext <<_ACEOF |
| 3758 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3759 | #include "confdefs.h" |
| 3760 | #include <ctype.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3761 | #if ((' ' & 0x0FF) == 0x020) |
| 3762 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3763 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3764 | #else |
| 3765 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 3766 | || ('j' <= (c) && (c) <= 'r') \ |
| 3767 | || ('s' <= (c) && (c) <= 'z')) |
| 3768 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3769 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3770 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3771 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3772 | int |
| 3773 | main () |
| 3774 | { |
| 3775 | int i; |
| 3776 | for (i = 0; i < 256; i++) |
| 3777 | if (XOR (islower (i), ISLOWER (i)) |
| 3778 | || toupper (i) != TOUPPER (i)) |
| 3779 | exit(2); |
| 3780 | exit (0); |
| 3781 | } |
| 3782 | _ACEOF |
| 3783 | rm -f conftest$ac_exeext |
| 3784 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3785 | (eval $ac_link) 2>&5 |
| 3786 | ac_status=$? |
| 3787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3788 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3790 | (eval $ac_try) 2>&5 |
| 3791 | ac_status=$? |
| 3792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3793 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3794 | : |
| 3795 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3796 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3797 | echo "$as_me: failed program was:" >&5 |
| 3798 | cat conftest.$ac_ext >&5 |
| 3799 | ( exit $ac_status ) |
| 3800 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3801 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3802 | 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] | 3803 | fi |
| 3804 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3805 | fi |
| 3806 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3807 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3808 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3809 | |
| 3810 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3811 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3812 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3813 | |
| 3814 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3815 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3816 | |
| 3817 | |
| 3818 | |
| 3819 | |
| 3820 | |
| 3821 | |
| 3822 | |
| 3823 | |
| 3824 | |
| 3825 | |
| 3826 | |
| 3827 | |
| 3828 | |
| 3829 | |
| 3830 | |
| 3831 | |
| 3832 | |
| 3833 | |
| 3834 | |
| 3835 | |
| 3836 | |
| 3837 | |
| 3838 | |
| 3839 | |
| 3840 | |
| 3841 | |
| 3842 | |
| 3843 | |
| 3844 | |
| 3845 | |
| 3846 | |
| 3847 | |
| 3848 | |
| 3849 | |
| 3850 | |
| 3851 | |
| 3852 | |
| 3853 | |
| 3854 | |
| 3855 | |
| 3856 | |
| 3857 | 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] | 3858 | libintl.h locale.h ncurses.h poll.h pthread.h \ |
Eric S. Raymond | d2d75d3 | 2001-01-16 15:26:34 +0000 | [diff] [blame] | 3859 | signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h termios.h \ |
Fred Drake | bbc3c5a | 2001-05-11 16:11:25 +0000 | [diff] [blame] | 3860 | sys/audioio.h sys/file.h sys/lock.h sys/modem.h db_185.h db.h \ |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3861 | sys/param.h sys/poll.h sys/select.h sys/socket.h sys/time.h sys/times.h \ |
Martin v. Löwis | 6953233 | 2001-10-13 09:12:41 +0000 | [diff] [blame] | 3862 | sys/un.h sys/utsname.h sys/wait.h pty.h term.h libutil.h \ |
Martin v. Löwis | f24b2f3 | 2001-08-10 20:29:40 +0000 | [diff] [blame] | 3863 | ndbm.h db1/ndbm.h gdbm/ndbm.h sys/resource.h netpacket/packet.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3864 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3865 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3866 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3867 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3868 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3869 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3871 | fi |
| 3872 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3873 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3874 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3875 | # Is the header compilable? |
| 3876 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 3877 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 3878 | cat >conftest.$ac_ext <<_ACEOF |
| 3879 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3880 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3881 | $ac_includes_default |
| 3882 | #include <$ac_header> |
| 3883 | _ACEOF |
| 3884 | rm -f conftest.$ac_objext |
| 3885 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3886 | (eval $ac_compile) 2>&5 |
| 3887 | ac_status=$? |
| 3888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3889 | (exit $ac_status); } && |
| 3890 | { ac_try='test -s conftest.$ac_objext' |
| 3891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3892 | (eval $ac_try) 2>&5 |
| 3893 | ac_status=$? |
| 3894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3895 | (exit $ac_status); }; }; then |
| 3896 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3897 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3898 | echo "$as_me: failed program was:" >&5 |
| 3899 | cat conftest.$ac_ext >&5 |
| 3900 | ac_header_compiler=no |
| 3901 | fi |
| 3902 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3903 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3904 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3905 | |
| 3906 | # Is the header present? |
| 3907 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 3908 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 3909 | cat >conftest.$ac_ext <<_ACEOF |
| 3910 | #line $LINENO "configure" |
| 3911 | #include "confdefs.h" |
| 3912 | #include <$ac_header> |
| 3913 | _ACEOF |
| 3914 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3915 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3916 | ac_status=$? |
| 3917 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 3918 | rm -f conftest.er1 |
| 3919 | cat conftest.err >&5 |
| 3920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3921 | (exit $ac_status); } >/dev/null; then |
| 3922 | if test -s conftest.err; then |
| 3923 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3924 | else |
| 3925 | ac_cpp_err= |
| 3926 | fi |
| 3927 | else |
| 3928 | ac_cpp_err=yes |
| 3929 | fi |
| 3930 | if test -z "$ac_cpp_err"; then |
| 3931 | ac_header_preproc=yes |
| 3932 | else |
| 3933 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3934 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3935 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3936 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3937 | rm -f conftest.err conftest.$ac_ext |
| 3938 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3939 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3940 | |
| 3941 | # So? What about this header? |
| 3942 | case $ac_header_compiler:$ac_header_preproc in |
| 3943 | yes:no ) |
| 3944 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3945 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3946 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3947 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 3948 | no:yes ) |
| 3949 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 3950 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 3951 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 3952 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 3953 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3954 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 3955 | esac |
| 3956 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3957 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3958 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3959 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3960 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3961 | eval "$as_ac_Header=$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3962 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3963 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3964 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3965 | |
| 3966 | fi |
| 3967 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3968 | cat >>confdefs.h <<_ACEOF |
| 3969 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3970 | _ACEOF |
| 3971 | |
| 3972 | fi |
| 3973 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3974 | done |
| 3975 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3976 | |
| 3977 | |
| 3978 | |
| 3979 | |
| 3980 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3981 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3982 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 3983 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 3984 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 3985 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 3986 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3987 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3988 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3989 | cat >conftest.$ac_ext <<_ACEOF |
| 3990 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3991 | #include "confdefs.h" |
| 3992 | #include <sys/types.h> |
| 3993 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3994 | |
| 3995 | #ifdef F77_DUMMY_MAIN |
| 3996 | # ifdef __cplusplus |
| 3997 | extern "C" |
| 3998 | # endif |
| 3999 | int F77_DUMMY_MAIN() { return 1; } |
| 4000 | #endif |
| 4001 | int |
| 4002 | main () |
| 4003 | { |
| 4004 | if ((DIR *) 0) |
| 4005 | return 0; |
| 4006 | ; |
| 4007 | return 0; |
| 4008 | } |
| 4009 | _ACEOF |
| 4010 | rm -f conftest.$ac_objext |
| 4011 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4012 | (eval $ac_compile) 2>&5 |
| 4013 | ac_status=$? |
| 4014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4015 | (exit $ac_status); } && |
| 4016 | { ac_try='test -s conftest.$ac_objext' |
| 4017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4018 | (eval $ac_try) 2>&5 |
| 4019 | ac_status=$? |
| 4020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4021 | (exit $ac_status); }; }; then |
| 4022 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4023 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4024 | echo "$as_me: failed program was:" >&5 |
| 4025 | cat conftest.$ac_ext >&5 |
| 4026 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4027 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4028 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4029 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4030 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4031 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4032 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4033 | cat >>confdefs.h <<_ACEOF |
| 4034 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 4035 | _ACEOF |
| 4036 | |
| 4037 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4038 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4039 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4040 | done |
| 4041 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 4042 | if test $ac_header_dirent = dirent.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4043 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4044 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4045 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4046 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4047 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4048 | ac_func_search_save_LIBS=$LIBS |
| 4049 | ac_cv_search_opendir=no |
| 4050 | cat >conftest.$ac_ext <<_ACEOF |
| 4051 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4052 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4053 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4054 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4055 | #ifdef __cplusplus |
| 4056 | extern "C" |
| 4057 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4058 | /* 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] | 4059 | builtin and then its argument prototype would still apply. */ |
| 4060 | char opendir (); |
| 4061 | #ifdef F77_DUMMY_MAIN |
| 4062 | # ifdef __cplusplus |
| 4063 | extern "C" |
| 4064 | # endif |
| 4065 | int F77_DUMMY_MAIN() { return 1; } |
| 4066 | #endif |
| 4067 | int |
| 4068 | main () |
| 4069 | { |
| 4070 | opendir (); |
| 4071 | ; |
| 4072 | return 0; |
| 4073 | } |
| 4074 | _ACEOF |
| 4075 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4076 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4077 | (eval $ac_link) 2>&5 |
| 4078 | ac_status=$? |
| 4079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4080 | (exit $ac_status); } && |
| 4081 | { ac_try='test -s conftest$ac_exeext' |
| 4082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4083 | (eval $ac_try) 2>&5 |
| 4084 | ac_status=$? |
| 4085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4086 | (exit $ac_status); }; }; then |
| 4087 | ac_cv_search_opendir="none required" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4088 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4089 | echo "$as_me: failed program was:" >&5 |
| 4090 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4091 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4092 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4093 | if test "$ac_cv_search_opendir" = no; then |
| 4094 | for ac_lib in dir; do |
| 4095 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4096 | cat >conftest.$ac_ext <<_ACEOF |
| 4097 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4098 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4099 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4100 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4101 | #ifdef __cplusplus |
| 4102 | extern "C" |
| 4103 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4104 | /* 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] | 4105 | builtin and then its argument prototype would still apply. */ |
| 4106 | char opendir (); |
| 4107 | #ifdef F77_DUMMY_MAIN |
| 4108 | # ifdef __cplusplus |
| 4109 | extern "C" |
| 4110 | # endif |
| 4111 | int F77_DUMMY_MAIN() { return 1; } |
| 4112 | #endif |
| 4113 | int |
| 4114 | main () |
| 4115 | { |
| 4116 | opendir (); |
| 4117 | ; |
| 4118 | return 0; |
| 4119 | } |
| 4120 | _ACEOF |
| 4121 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4122 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4123 | (eval $ac_link) 2>&5 |
| 4124 | ac_status=$? |
| 4125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4126 | (exit $ac_status); } && |
| 4127 | { ac_try='test -s conftest$ac_exeext' |
| 4128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4129 | (eval $ac_try) 2>&5 |
| 4130 | ac_status=$? |
| 4131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4132 | (exit $ac_status); }; }; then |
| 4133 | ac_cv_search_opendir="-l$ac_lib" |
| 4134 | break |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4135 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4136 | echo "$as_me: failed program was:" >&5 |
| 4137 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4138 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4139 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4140 | done |
| 4141 | fi |
| 4142 | LIBS=$ac_func_search_save_LIBS |
| 4143 | fi |
| 4144 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4145 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4146 | if test "$ac_cv_search_opendir" != no; then |
| 4147 | 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] | 4148 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4149 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4150 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4151 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4152 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4153 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4154 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4156 | else |
| 4157 | ac_func_search_save_LIBS=$LIBS |
| 4158 | ac_cv_search_opendir=no |
| 4159 | cat >conftest.$ac_ext <<_ACEOF |
| 4160 | #line $LINENO "configure" |
| 4161 | #include "confdefs.h" |
| 4162 | |
| 4163 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4164 | #ifdef __cplusplus |
| 4165 | extern "C" |
| 4166 | #endif |
| 4167 | /* We use char because int might match the return type of a gcc2 |
| 4168 | builtin and then its argument prototype would still apply. */ |
| 4169 | char opendir (); |
| 4170 | #ifdef F77_DUMMY_MAIN |
| 4171 | # ifdef __cplusplus |
| 4172 | extern "C" |
| 4173 | # endif |
| 4174 | int F77_DUMMY_MAIN() { return 1; } |
| 4175 | #endif |
| 4176 | int |
| 4177 | main () |
| 4178 | { |
| 4179 | opendir (); |
| 4180 | ; |
| 4181 | return 0; |
| 4182 | } |
| 4183 | _ACEOF |
| 4184 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4185 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4186 | (eval $ac_link) 2>&5 |
| 4187 | ac_status=$? |
| 4188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4189 | (exit $ac_status); } && |
| 4190 | { ac_try='test -s conftest$ac_exeext' |
| 4191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4192 | (eval $ac_try) 2>&5 |
| 4193 | ac_status=$? |
| 4194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4195 | (exit $ac_status); }; }; then |
| 4196 | ac_cv_search_opendir="none required" |
| 4197 | else |
| 4198 | echo "$as_me: failed program was:" >&5 |
| 4199 | cat conftest.$ac_ext >&5 |
| 4200 | fi |
| 4201 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4202 | if test "$ac_cv_search_opendir" = no; then |
| 4203 | for ac_lib in x; do |
| 4204 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4205 | cat >conftest.$ac_ext <<_ACEOF |
| 4206 | #line $LINENO "configure" |
| 4207 | #include "confdefs.h" |
| 4208 | |
| 4209 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4210 | #ifdef __cplusplus |
| 4211 | extern "C" |
| 4212 | #endif |
| 4213 | /* We use char because int might match the return type of a gcc2 |
| 4214 | builtin and then its argument prototype would still apply. */ |
| 4215 | char opendir (); |
| 4216 | #ifdef F77_DUMMY_MAIN |
| 4217 | # ifdef __cplusplus |
| 4218 | extern "C" |
| 4219 | # endif |
| 4220 | int F77_DUMMY_MAIN() { return 1; } |
| 4221 | #endif |
| 4222 | int |
| 4223 | main () |
| 4224 | { |
| 4225 | opendir (); |
| 4226 | ; |
| 4227 | return 0; |
| 4228 | } |
| 4229 | _ACEOF |
| 4230 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4231 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4232 | (eval $ac_link) 2>&5 |
| 4233 | ac_status=$? |
| 4234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4235 | (exit $ac_status); } && |
| 4236 | { ac_try='test -s conftest$ac_exeext' |
| 4237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4238 | (eval $ac_try) 2>&5 |
| 4239 | ac_status=$? |
| 4240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4241 | (exit $ac_status); }; }; then |
| 4242 | ac_cv_search_opendir="-l$ac_lib" |
| 4243 | break |
| 4244 | else |
| 4245 | echo "$as_me: failed program was:" >&5 |
| 4246 | cat conftest.$ac_ext >&5 |
| 4247 | fi |
| 4248 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4249 | done |
| 4250 | fi |
| 4251 | LIBS=$ac_func_search_save_LIBS |
| 4252 | fi |
| 4253 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4254 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4255 | if test "$ac_cv_search_opendir" != no; then |
| 4256 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 4257 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4258 | fi |
| 4259 | |
| 4260 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4261 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4262 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4263 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4264 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4265 | echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 4266 | echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6 |
| 4267 | cat >conftest.$ac_ext <<_ACEOF |
| 4268 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4269 | #include "confdefs.h" |
| 4270 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4271 | |
| 4272 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4273 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4274 | egrep "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4275 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4276 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4277 | |
| 4278 | |
| 4279 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4280 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4281 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4282 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 4283 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4284 | fi |
| 4285 | rm -f conftest* |
| 4286 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4287 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 4288 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4289 | |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4290 | # Two defines needed to enable largefile support on various platforms |
| 4291 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4292 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4293 | cat >>confdefs.h <<\_ACEOF |
| 4294 | #define _LARGEFILE_SOURCE 1 |
| 4295 | _ACEOF |
| 4296 | |
| 4297 | |
| 4298 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4299 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4300 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4301 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4302 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 4303 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 4304 | cat >> confdefs.h <<\EOF |
| 4305 | #if defined(SCO_DS) |
| 4306 | #undef _OFF_T |
| 4307 | #endif |
| 4308 | EOF |
| 4309 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4310 | # Type availability checks |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4311 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 4312 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 4313 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 4314 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4315 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4316 | cat >conftest.$ac_ext <<_ACEOF |
| 4317 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4318 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4319 | $ac_includes_default |
| 4320 | #ifdef F77_DUMMY_MAIN |
| 4321 | # ifdef __cplusplus |
| 4322 | extern "C" |
| 4323 | # endif |
| 4324 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4325 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4326 | int |
| 4327 | main () |
| 4328 | { |
| 4329 | if ((mode_t *) 0) |
| 4330 | return 0; |
| 4331 | if (sizeof (mode_t)) |
| 4332 | return 0; |
| 4333 | ; |
| 4334 | return 0; |
| 4335 | } |
| 4336 | _ACEOF |
| 4337 | rm -f conftest.$ac_objext |
| 4338 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4339 | (eval $ac_compile) 2>&5 |
| 4340 | ac_status=$? |
| 4341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4342 | (exit $ac_status); } && |
| 4343 | { ac_try='test -s conftest.$ac_objext' |
| 4344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4345 | (eval $ac_try) 2>&5 |
| 4346 | ac_status=$? |
| 4347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4348 | (exit $ac_status); }; }; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4349 | ac_cv_type_mode_t=yes |
| 4350 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4351 | echo "$as_me: failed program was:" >&5 |
| 4352 | cat conftest.$ac_ext >&5 |
| 4353 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4354 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4355 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4356 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4357 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 4358 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 4359 | if test $ac_cv_type_mode_t = yes; then |
| 4360 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4361 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4362 | |
| 4363 | cat >>confdefs.h <<_ACEOF |
| 4364 | #define mode_t int |
| 4365 | _ACEOF |
| 4366 | |
| 4367 | fi |
| 4368 | |
| 4369 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 4370 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 4371 | if test "${ac_cv_type_off_t+set}" = set; then |
| 4372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4373 | else |
| 4374 | cat >conftest.$ac_ext <<_ACEOF |
| 4375 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4376 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4377 | $ac_includes_default |
| 4378 | #ifdef F77_DUMMY_MAIN |
| 4379 | # ifdef __cplusplus |
| 4380 | extern "C" |
| 4381 | # endif |
| 4382 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4383 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4384 | int |
| 4385 | main () |
| 4386 | { |
| 4387 | if ((off_t *) 0) |
| 4388 | return 0; |
| 4389 | if (sizeof (off_t)) |
| 4390 | return 0; |
| 4391 | ; |
| 4392 | return 0; |
| 4393 | } |
| 4394 | _ACEOF |
| 4395 | rm -f conftest.$ac_objext |
| 4396 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4397 | (eval $ac_compile) 2>&5 |
| 4398 | ac_status=$? |
| 4399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4400 | (exit $ac_status); } && |
| 4401 | { ac_try='test -s conftest.$ac_objext' |
| 4402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4403 | (eval $ac_try) 2>&5 |
| 4404 | ac_status=$? |
| 4405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4406 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4407 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4408 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4409 | echo "$as_me: failed program was:" >&5 |
| 4410 | cat conftest.$ac_ext >&5 |
| 4411 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4412 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4413 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4414 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4415 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 4416 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 4417 | if test $ac_cv_type_off_t = yes; then |
| 4418 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4419 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4420 | |
| 4421 | cat >>confdefs.h <<_ACEOF |
| 4422 | #define off_t long |
| 4423 | _ACEOF |
| 4424 | |
| 4425 | fi |
| 4426 | |
| 4427 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 4428 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 4429 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 4430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4431 | else |
| 4432 | cat >conftest.$ac_ext <<_ACEOF |
| 4433 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4434 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4435 | $ac_includes_default |
| 4436 | #ifdef F77_DUMMY_MAIN |
| 4437 | # ifdef __cplusplus |
| 4438 | extern "C" |
| 4439 | # endif |
| 4440 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4441 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4442 | int |
| 4443 | main () |
| 4444 | { |
| 4445 | if ((pid_t *) 0) |
| 4446 | return 0; |
| 4447 | if (sizeof (pid_t)) |
| 4448 | return 0; |
| 4449 | ; |
| 4450 | return 0; |
| 4451 | } |
| 4452 | _ACEOF |
| 4453 | rm -f conftest.$ac_objext |
| 4454 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4455 | (eval $ac_compile) 2>&5 |
| 4456 | ac_status=$? |
| 4457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4458 | (exit $ac_status); } && |
| 4459 | { ac_try='test -s conftest.$ac_objext' |
| 4460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4461 | (eval $ac_try) 2>&5 |
| 4462 | ac_status=$? |
| 4463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4464 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4465 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4466 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4467 | echo "$as_me: failed program was:" >&5 |
| 4468 | cat conftest.$ac_ext >&5 |
| 4469 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4470 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4471 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4472 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4473 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 4474 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 4475 | if test $ac_cv_type_pid_t = yes; then |
| 4476 | : |
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 | |
| 4479 | cat >>confdefs.h <<_ACEOF |
| 4480 | #define pid_t int |
| 4481 | _ACEOF |
| 4482 | |
| 4483 | fi |
| 4484 | |
| 4485 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 4486 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 4487 | if test "${ac_cv_type_signal+set}" = set; then |
| 4488 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4489 | else |
| 4490 | cat >conftest.$ac_ext <<_ACEOF |
| 4491 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4492 | #include "confdefs.h" |
| 4493 | #include <sys/types.h> |
| 4494 | #include <signal.h> |
| 4495 | #ifdef signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4496 | # undef signal |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4497 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4498 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4499 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 4500 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4501 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4502 | #endif |
| 4503 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4504 | #ifdef F77_DUMMY_MAIN |
| 4505 | # ifdef __cplusplus |
| 4506 | extern "C" |
| 4507 | # endif |
| 4508 | int F77_DUMMY_MAIN() { return 1; } |
| 4509 | #endif |
| 4510 | int |
| 4511 | main () |
| 4512 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4513 | int i; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4514 | ; |
| 4515 | return 0; |
| 4516 | } |
| 4517 | _ACEOF |
| 4518 | rm -f conftest.$ac_objext |
| 4519 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4520 | (eval $ac_compile) 2>&5 |
| 4521 | ac_status=$? |
| 4522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4523 | (exit $ac_status); } && |
| 4524 | { ac_try='test -s conftest.$ac_objext' |
| 4525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4526 | (eval $ac_try) 2>&5 |
| 4527 | ac_status=$? |
| 4528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4529 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4530 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4531 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4532 | echo "$as_me: failed program was:" >&5 |
| 4533 | cat conftest.$ac_ext >&5 |
| 4534 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4535 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4536 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4537 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4538 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 4539 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4540 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4541 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4542 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4543 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4544 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4545 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4546 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 4547 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 4548 | if test "${ac_cv_type_size_t+set}" = set; then |
| 4549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4550 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4551 | cat >conftest.$ac_ext <<_ACEOF |
| 4552 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4553 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4554 | $ac_includes_default |
| 4555 | #ifdef F77_DUMMY_MAIN |
| 4556 | # ifdef __cplusplus |
| 4557 | extern "C" |
| 4558 | # endif |
| 4559 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4560 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4561 | int |
| 4562 | main () |
| 4563 | { |
| 4564 | if ((size_t *) 0) |
| 4565 | return 0; |
| 4566 | if (sizeof (size_t)) |
| 4567 | return 0; |
| 4568 | ; |
| 4569 | return 0; |
| 4570 | } |
| 4571 | _ACEOF |
| 4572 | rm -f conftest.$ac_objext |
| 4573 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4574 | (eval $ac_compile) 2>&5 |
| 4575 | ac_status=$? |
| 4576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4577 | (exit $ac_status); } && |
| 4578 | { ac_try='test -s conftest.$ac_objext' |
| 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 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4584 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4585 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4586 | echo "$as_me: failed program was:" >&5 |
| 4587 | cat conftest.$ac_ext >&5 |
| 4588 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4589 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4590 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4591 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4592 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 4593 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 4594 | if test $ac_cv_type_size_t = yes; then |
| 4595 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4596 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4597 | |
| 4598 | cat >>confdefs.h <<_ACEOF |
| 4599 | #define size_t unsigned |
| 4600 | _ACEOF |
| 4601 | |
| 4602 | fi |
| 4603 | |
| 4604 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 4605 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 4606 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 4607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4608 | else |
| 4609 | cat >conftest.$ac_ext <<_ACEOF |
| 4610 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4611 | #include "confdefs.h" |
| 4612 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4613 | |
| 4614 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4615 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4616 | egrep "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4617 | ac_cv_type_uid_t=yes |
| 4618 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4619 | ac_cv_type_uid_t=no |
| 4620 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4621 | rm -f conftest* |
| 4622 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4623 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4624 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 4625 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4626 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4627 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4628 | cat >>confdefs.h <<\_ACEOF |
| 4629 | #define uid_t int |
| 4630 | _ACEOF |
| 4631 | |
| 4632 | |
| 4633 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4634 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4635 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4636 | |
| 4637 | fi |
| 4638 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4639 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4640 | # Sizes of various common basic types |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4641 | echo "$as_me:$LINENO: checking for int" >&5 |
| 4642 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
| 4643 | if test "${ac_cv_type_int+set}" = set; then |
| 4644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4645 | else |
| 4646 | cat >conftest.$ac_ext <<_ACEOF |
| 4647 | #line $LINENO "configure" |
| 4648 | #include "confdefs.h" |
| 4649 | $ac_includes_default |
| 4650 | #ifdef F77_DUMMY_MAIN |
| 4651 | # ifdef __cplusplus |
| 4652 | extern "C" |
| 4653 | # endif |
| 4654 | int F77_DUMMY_MAIN() { return 1; } |
| 4655 | #endif |
| 4656 | int |
| 4657 | main () |
| 4658 | { |
| 4659 | if ((int *) 0) |
| 4660 | return 0; |
| 4661 | if (sizeof (int)) |
| 4662 | return 0; |
| 4663 | ; |
| 4664 | return 0; |
| 4665 | } |
| 4666 | _ACEOF |
| 4667 | rm -f conftest.$ac_objext |
| 4668 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4669 | (eval $ac_compile) 2>&5 |
| 4670 | ac_status=$? |
| 4671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4672 | (exit $ac_status); } && |
| 4673 | { ac_try='test -s conftest.$ac_objext' |
| 4674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4675 | (eval $ac_try) 2>&5 |
| 4676 | ac_status=$? |
| 4677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4678 | (exit $ac_status); }; }; then |
| 4679 | ac_cv_type_int=yes |
| 4680 | else |
| 4681 | echo "$as_me: failed program was:" >&5 |
| 4682 | cat conftest.$ac_ext >&5 |
| 4683 | ac_cv_type_int=no |
| 4684 | fi |
| 4685 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4686 | fi |
| 4687 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 4688 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
| 4689 | |
| 4690 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 4691 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 4692 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 4693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4694 | else |
| 4695 | if test "$ac_cv_type_int" = yes; then |
| 4696 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 4697 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 4698 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 4699 | # This bug is HP SR number 8606223364. |
| 4700 | if test "$cross_compiling" = yes; then |
| 4701 | # Depending upon the size, compute the lo and hi bounds. |
| 4702 | cat >conftest.$ac_ext <<_ACEOF |
| 4703 | #line $LINENO "configure" |
| 4704 | #include "confdefs.h" |
| 4705 | $ac_includes_default |
| 4706 | #ifdef F77_DUMMY_MAIN |
| 4707 | # ifdef __cplusplus |
| 4708 | extern "C" |
| 4709 | # endif |
| 4710 | int F77_DUMMY_MAIN() { return 1; } |
| 4711 | #endif |
| 4712 | int |
| 4713 | main () |
| 4714 | { |
| 4715 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
| 4716 | test_array [0] = 0 |
| 4717 | |
| 4718 | ; |
| 4719 | return 0; |
| 4720 | } |
| 4721 | _ACEOF |
| 4722 | rm -f conftest.$ac_objext |
| 4723 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4724 | (eval $ac_compile) 2>&5 |
| 4725 | ac_status=$? |
| 4726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4727 | (exit $ac_status); } && |
| 4728 | { ac_try='test -s conftest.$ac_objext' |
| 4729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4730 | (eval $ac_try) 2>&5 |
| 4731 | ac_status=$? |
| 4732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4733 | (exit $ac_status); }; }; then |
| 4734 | ac_lo=0 ac_mid=0 |
| 4735 | while :; do |
| 4736 | cat >conftest.$ac_ext <<_ACEOF |
| 4737 | #line $LINENO "configure" |
| 4738 | #include "confdefs.h" |
| 4739 | $ac_includes_default |
| 4740 | #ifdef F77_DUMMY_MAIN |
| 4741 | # ifdef __cplusplus |
| 4742 | extern "C" |
| 4743 | # endif |
| 4744 | int F77_DUMMY_MAIN() { return 1; } |
| 4745 | #endif |
| 4746 | int |
| 4747 | main () |
| 4748 | { |
| 4749 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 4750 | test_array [0] = 0 |
| 4751 | |
| 4752 | ; |
| 4753 | return 0; |
| 4754 | } |
| 4755 | _ACEOF |
| 4756 | rm -f conftest.$ac_objext |
| 4757 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4758 | (eval $ac_compile) 2>&5 |
| 4759 | ac_status=$? |
| 4760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4761 | (exit $ac_status); } && |
| 4762 | { ac_try='test -s conftest.$ac_objext' |
| 4763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4764 | (eval $ac_try) 2>&5 |
| 4765 | ac_status=$? |
| 4766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4767 | (exit $ac_status); }; }; then |
| 4768 | ac_hi=$ac_mid; break |
| 4769 | else |
| 4770 | echo "$as_me: failed program was:" >&5 |
| 4771 | cat conftest.$ac_ext >&5 |
| 4772 | ac_lo=`expr $ac_mid + 1` |
| 4773 | if test $ac_lo -le $ac_mid; then |
| 4774 | ac_lo= ac_hi= |
| 4775 | break |
| 4776 | fi |
| 4777 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 4778 | fi |
| 4779 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4780 | done |
| 4781 | else |
| 4782 | echo "$as_me: failed program was:" >&5 |
| 4783 | cat conftest.$ac_ext >&5 |
| 4784 | cat >conftest.$ac_ext <<_ACEOF |
| 4785 | #line $LINENO "configure" |
| 4786 | #include "confdefs.h" |
| 4787 | $ac_includes_default |
| 4788 | #ifdef F77_DUMMY_MAIN |
| 4789 | # ifdef __cplusplus |
| 4790 | extern "C" |
| 4791 | # endif |
| 4792 | int F77_DUMMY_MAIN() { return 1; } |
| 4793 | #endif |
| 4794 | int |
| 4795 | main () |
| 4796 | { |
| 4797 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
| 4798 | test_array [0] = 0 |
| 4799 | |
| 4800 | ; |
| 4801 | return 0; |
| 4802 | } |
| 4803 | _ACEOF |
| 4804 | rm -f conftest.$ac_objext |
| 4805 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4806 | (eval $ac_compile) 2>&5 |
| 4807 | ac_status=$? |
| 4808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4809 | (exit $ac_status); } && |
| 4810 | { ac_try='test -s conftest.$ac_objext' |
| 4811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4812 | (eval $ac_try) 2>&5 |
| 4813 | ac_status=$? |
| 4814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4815 | (exit $ac_status); }; }; then |
| 4816 | ac_hi=-1 ac_mid=-1 |
| 4817 | while :; do |
| 4818 | cat >conftest.$ac_ext <<_ACEOF |
| 4819 | #line $LINENO "configure" |
| 4820 | #include "confdefs.h" |
| 4821 | $ac_includes_default |
| 4822 | #ifdef F77_DUMMY_MAIN |
| 4823 | # ifdef __cplusplus |
| 4824 | extern "C" |
| 4825 | # endif |
| 4826 | int F77_DUMMY_MAIN() { return 1; } |
| 4827 | #endif |
| 4828 | int |
| 4829 | main () |
| 4830 | { |
| 4831 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
| 4832 | test_array [0] = 0 |
| 4833 | |
| 4834 | ; |
| 4835 | return 0; |
| 4836 | } |
| 4837 | _ACEOF |
| 4838 | rm -f conftest.$ac_objext |
| 4839 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4840 | (eval $ac_compile) 2>&5 |
| 4841 | ac_status=$? |
| 4842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4843 | (exit $ac_status); } && |
| 4844 | { ac_try='test -s conftest.$ac_objext' |
| 4845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4846 | (eval $ac_try) 2>&5 |
| 4847 | ac_status=$? |
| 4848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4849 | (exit $ac_status); }; }; then |
| 4850 | ac_lo=$ac_mid; break |
| 4851 | else |
| 4852 | echo "$as_me: failed program was:" >&5 |
| 4853 | cat conftest.$ac_ext >&5 |
| 4854 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 4855 | if test $ac_mid -le $ac_hi; then |
| 4856 | ac_lo= ac_hi= |
| 4857 | break |
| 4858 | fi |
| 4859 | ac_mid=`expr 2 '*' $ac_mid` |
| 4860 | fi |
| 4861 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4862 | done |
| 4863 | else |
| 4864 | echo "$as_me: failed program was:" >&5 |
| 4865 | cat conftest.$ac_ext >&5 |
| 4866 | ac_lo= ac_hi= |
| 4867 | fi |
| 4868 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4869 | fi |
| 4870 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4871 | # Binary search between lo and hi bounds. |
| 4872 | while test "x$ac_lo" != "x$ac_hi"; do |
| 4873 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 4874 | cat >conftest.$ac_ext <<_ACEOF |
| 4875 | #line $LINENO "configure" |
| 4876 | #include "confdefs.h" |
| 4877 | $ac_includes_default |
| 4878 | #ifdef F77_DUMMY_MAIN |
| 4879 | # ifdef __cplusplus |
| 4880 | extern "C" |
| 4881 | # endif |
| 4882 | int F77_DUMMY_MAIN() { return 1; } |
| 4883 | #endif |
| 4884 | int |
| 4885 | main () |
| 4886 | { |
| 4887 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 4888 | test_array [0] = 0 |
| 4889 | |
| 4890 | ; |
| 4891 | return 0; |
| 4892 | } |
| 4893 | _ACEOF |
| 4894 | rm -f conftest.$ac_objext |
| 4895 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4896 | (eval $ac_compile) 2>&5 |
| 4897 | ac_status=$? |
| 4898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4899 | (exit $ac_status); } && |
| 4900 | { ac_try='test -s conftest.$ac_objext' |
| 4901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4902 | (eval $ac_try) 2>&5 |
| 4903 | ac_status=$? |
| 4904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4905 | (exit $ac_status); }; }; then |
| 4906 | ac_hi=$ac_mid |
| 4907 | else |
| 4908 | echo "$as_me: failed program was:" >&5 |
| 4909 | cat conftest.$ac_ext >&5 |
| 4910 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 4911 | fi |
| 4912 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4913 | done |
| 4914 | case $ac_lo in |
| 4915 | ?*) ac_cv_sizeof_int=$ac_lo;; |
| 4916 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 |
| 4917 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} |
| 4918 | { (exit 1); exit 1; }; } ;; |
| 4919 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4920 | else |
| 4921 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4922 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 4923 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 4924 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4925 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4926 | cat >conftest.$ac_ext <<_ACEOF |
| 4927 | #line $LINENO "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4928 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4929 | $ac_includes_default |
| 4930 | long longval () { return (long) (sizeof (int)); } |
| 4931 | unsigned long ulongval () { return (long) (sizeof (int)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4932 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4933 | #include <stdlib.h> |
| 4934 | #ifdef F77_DUMMY_MAIN |
| 4935 | # ifdef __cplusplus |
| 4936 | extern "C" |
| 4937 | # endif |
| 4938 | int F77_DUMMY_MAIN() { return 1; } |
| 4939 | #endif |
| 4940 | int |
| 4941 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4942 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4943 | |
| 4944 | FILE *f = fopen ("conftest.val", "w"); |
| 4945 | if (! f) |
| 4946 | exit (1); |
| 4947 | if (((long) (sizeof (int))) < 0) |
| 4948 | { |
| 4949 | long i = longval (); |
| 4950 | if (i != ((long) (sizeof (int)))) |
| 4951 | exit (1); |
| 4952 | fprintf (f, "%ld\n", i); |
| 4953 | } |
| 4954 | else |
| 4955 | { |
| 4956 | unsigned long i = ulongval (); |
| 4957 | if (i != ((long) (sizeof (int)))) |
| 4958 | exit (1); |
| 4959 | fprintf (f, "%lu\n", i); |
| 4960 | } |
| 4961 | exit (ferror (f) || fclose (f) != 0); |
| 4962 | |
| 4963 | ; |
| 4964 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4965 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4966 | _ACEOF |
| 4967 | rm -f conftest$ac_exeext |
| 4968 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4969 | (eval $ac_link) 2>&5 |
| 4970 | ac_status=$? |
| 4971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4972 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4974 | (eval $ac_try) 2>&5 |
| 4975 | ac_status=$? |
| 4976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4977 | (exit $ac_status); }; }; then |
| 4978 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4979 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4980 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4981 | echo "$as_me: failed program was:" >&5 |
| 4982 | cat conftest.$ac_ext >&5 |
| 4983 | ( exit $ac_status ) |
| 4984 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 |
| 4985 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} |
| 4986 | { (exit 1); exit 1; }; } |
| 4987 | fi |
| 4988 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4989 | fi |
| 4990 | fi |
| 4991 | rm -f conftest.val |
| 4992 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4993 | ac_cv_sizeof_int=0 |
| 4994 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4995 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4996 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 4997 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 4998 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4999 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5000 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5001 | |
| 5002 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5003 | echo "$as_me:$LINENO: checking for long" >&5 |
| 5004 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 5005 | if test "${ac_cv_type_long+set}" = set; then |
| 5006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5007 | else |
| 5008 | cat >conftest.$ac_ext <<_ACEOF |
| 5009 | #line $LINENO "configure" |
| 5010 | #include "confdefs.h" |
| 5011 | $ac_includes_default |
| 5012 | #ifdef F77_DUMMY_MAIN |
| 5013 | # ifdef __cplusplus |
| 5014 | extern "C" |
| 5015 | # endif |
| 5016 | int F77_DUMMY_MAIN() { return 1; } |
| 5017 | #endif |
| 5018 | int |
| 5019 | main () |
| 5020 | { |
| 5021 | if ((long *) 0) |
| 5022 | return 0; |
| 5023 | if (sizeof (long)) |
| 5024 | return 0; |
| 5025 | ; |
| 5026 | return 0; |
| 5027 | } |
| 5028 | _ACEOF |
| 5029 | rm -f conftest.$ac_objext |
| 5030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5031 | (eval $ac_compile) 2>&5 |
| 5032 | ac_status=$? |
| 5033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5034 | (exit $ac_status); } && |
| 5035 | { ac_try='test -s conftest.$ac_objext' |
| 5036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5037 | (eval $ac_try) 2>&5 |
| 5038 | ac_status=$? |
| 5039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5040 | (exit $ac_status); }; }; then |
| 5041 | ac_cv_type_long=yes |
| 5042 | else |
| 5043 | echo "$as_me: failed program was:" >&5 |
| 5044 | cat conftest.$ac_ext >&5 |
| 5045 | ac_cv_type_long=no |
| 5046 | fi |
| 5047 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5048 | fi |
| 5049 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 5050 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 5051 | |
| 5052 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 5053 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 5054 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 5055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5056 | else |
| 5057 | if test "$ac_cv_type_long" = yes; then |
| 5058 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5059 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5060 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5061 | # This bug is HP SR number 8606223364. |
| 5062 | if test "$cross_compiling" = yes; then |
| 5063 | # Depending upon the size, compute the lo and hi bounds. |
| 5064 | cat >conftest.$ac_ext <<_ACEOF |
| 5065 | #line $LINENO "configure" |
| 5066 | #include "confdefs.h" |
| 5067 | $ac_includes_default |
| 5068 | #ifdef F77_DUMMY_MAIN |
| 5069 | # ifdef __cplusplus |
| 5070 | extern "C" |
| 5071 | # endif |
| 5072 | int F77_DUMMY_MAIN() { return 1; } |
| 5073 | #endif |
| 5074 | int |
| 5075 | main () |
| 5076 | { |
| 5077 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 5078 | test_array [0] = 0 |
| 5079 | |
| 5080 | ; |
| 5081 | return 0; |
| 5082 | } |
| 5083 | _ACEOF |
| 5084 | rm -f conftest.$ac_objext |
| 5085 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5086 | (eval $ac_compile) 2>&5 |
| 5087 | ac_status=$? |
| 5088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5089 | (exit $ac_status); } && |
| 5090 | { ac_try='test -s conftest.$ac_objext' |
| 5091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5092 | (eval $ac_try) 2>&5 |
| 5093 | ac_status=$? |
| 5094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5095 | (exit $ac_status); }; }; then |
| 5096 | ac_lo=0 ac_mid=0 |
| 5097 | while :; do |
| 5098 | cat >conftest.$ac_ext <<_ACEOF |
| 5099 | #line $LINENO "configure" |
| 5100 | #include "confdefs.h" |
| 5101 | $ac_includes_default |
| 5102 | #ifdef F77_DUMMY_MAIN |
| 5103 | # ifdef __cplusplus |
| 5104 | extern "C" |
| 5105 | # endif |
| 5106 | int F77_DUMMY_MAIN() { return 1; } |
| 5107 | #endif |
| 5108 | int |
| 5109 | main () |
| 5110 | { |
| 5111 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 5112 | test_array [0] = 0 |
| 5113 | |
| 5114 | ; |
| 5115 | return 0; |
| 5116 | } |
| 5117 | _ACEOF |
| 5118 | rm -f conftest.$ac_objext |
| 5119 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5120 | (eval $ac_compile) 2>&5 |
| 5121 | ac_status=$? |
| 5122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5123 | (exit $ac_status); } && |
| 5124 | { ac_try='test -s conftest.$ac_objext' |
| 5125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5126 | (eval $ac_try) 2>&5 |
| 5127 | ac_status=$? |
| 5128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5129 | (exit $ac_status); }; }; then |
| 5130 | ac_hi=$ac_mid; break |
| 5131 | else |
| 5132 | echo "$as_me: failed program was:" >&5 |
| 5133 | cat conftest.$ac_ext >&5 |
| 5134 | ac_lo=`expr $ac_mid + 1` |
| 5135 | if test $ac_lo -le $ac_mid; then |
| 5136 | ac_lo= ac_hi= |
| 5137 | break |
| 5138 | fi |
| 5139 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5140 | fi |
| 5141 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5142 | done |
| 5143 | else |
| 5144 | echo "$as_me: failed program was:" >&5 |
| 5145 | cat conftest.$ac_ext >&5 |
| 5146 | cat >conftest.$ac_ext <<_ACEOF |
| 5147 | #line $LINENO "configure" |
| 5148 | #include "confdefs.h" |
| 5149 | $ac_includes_default |
| 5150 | #ifdef F77_DUMMY_MAIN |
| 5151 | # ifdef __cplusplus |
| 5152 | extern "C" |
| 5153 | # endif |
| 5154 | int F77_DUMMY_MAIN() { return 1; } |
| 5155 | #endif |
| 5156 | int |
| 5157 | main () |
| 5158 | { |
| 5159 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 5160 | test_array [0] = 0 |
| 5161 | |
| 5162 | ; |
| 5163 | return 0; |
| 5164 | } |
| 5165 | _ACEOF |
| 5166 | rm -f conftest.$ac_objext |
| 5167 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5168 | (eval $ac_compile) 2>&5 |
| 5169 | ac_status=$? |
| 5170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5171 | (exit $ac_status); } && |
| 5172 | { ac_try='test -s conftest.$ac_objext' |
| 5173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5174 | (eval $ac_try) 2>&5 |
| 5175 | ac_status=$? |
| 5176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5177 | (exit $ac_status); }; }; then |
| 5178 | ac_hi=-1 ac_mid=-1 |
| 5179 | while :; do |
| 5180 | cat >conftest.$ac_ext <<_ACEOF |
| 5181 | #line $LINENO "configure" |
| 5182 | #include "confdefs.h" |
| 5183 | $ac_includes_default |
| 5184 | #ifdef F77_DUMMY_MAIN |
| 5185 | # ifdef __cplusplus |
| 5186 | extern "C" |
| 5187 | # endif |
| 5188 | int F77_DUMMY_MAIN() { return 1; } |
| 5189 | #endif |
| 5190 | int |
| 5191 | main () |
| 5192 | { |
| 5193 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 5194 | test_array [0] = 0 |
| 5195 | |
| 5196 | ; |
| 5197 | return 0; |
| 5198 | } |
| 5199 | _ACEOF |
| 5200 | rm -f conftest.$ac_objext |
| 5201 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5202 | (eval $ac_compile) 2>&5 |
| 5203 | ac_status=$? |
| 5204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5205 | (exit $ac_status); } && |
| 5206 | { ac_try='test -s conftest.$ac_objext' |
| 5207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5208 | (eval $ac_try) 2>&5 |
| 5209 | ac_status=$? |
| 5210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5211 | (exit $ac_status); }; }; then |
| 5212 | ac_lo=$ac_mid; break |
| 5213 | else |
| 5214 | echo "$as_me: failed program was:" >&5 |
| 5215 | cat conftest.$ac_ext >&5 |
| 5216 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5217 | if test $ac_mid -le $ac_hi; then |
| 5218 | ac_lo= ac_hi= |
| 5219 | break |
| 5220 | fi |
| 5221 | ac_mid=`expr 2 '*' $ac_mid` |
| 5222 | fi |
| 5223 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5224 | done |
| 5225 | else |
| 5226 | echo "$as_me: failed program was:" >&5 |
| 5227 | cat conftest.$ac_ext >&5 |
| 5228 | ac_lo= ac_hi= |
| 5229 | fi |
| 5230 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5231 | fi |
| 5232 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5233 | # Binary search between lo and hi bounds. |
| 5234 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5235 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5236 | cat >conftest.$ac_ext <<_ACEOF |
| 5237 | #line $LINENO "configure" |
| 5238 | #include "confdefs.h" |
| 5239 | $ac_includes_default |
| 5240 | #ifdef F77_DUMMY_MAIN |
| 5241 | # ifdef __cplusplus |
| 5242 | extern "C" |
| 5243 | # endif |
| 5244 | int F77_DUMMY_MAIN() { return 1; } |
| 5245 | #endif |
| 5246 | int |
| 5247 | main () |
| 5248 | { |
| 5249 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 5250 | test_array [0] = 0 |
| 5251 | |
| 5252 | ; |
| 5253 | return 0; |
| 5254 | } |
| 5255 | _ACEOF |
| 5256 | rm -f conftest.$ac_objext |
| 5257 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5258 | (eval $ac_compile) 2>&5 |
| 5259 | ac_status=$? |
| 5260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5261 | (exit $ac_status); } && |
| 5262 | { ac_try='test -s conftest.$ac_objext' |
| 5263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5264 | (eval $ac_try) 2>&5 |
| 5265 | ac_status=$? |
| 5266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5267 | (exit $ac_status); }; }; then |
| 5268 | ac_hi=$ac_mid |
| 5269 | else |
| 5270 | echo "$as_me: failed program was:" >&5 |
| 5271 | cat conftest.$ac_ext >&5 |
| 5272 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5273 | fi |
| 5274 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5275 | done |
| 5276 | case $ac_lo in |
| 5277 | ?*) ac_cv_sizeof_long=$ac_lo;; |
| 5278 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 |
| 5279 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} |
| 5280 | { (exit 1); exit 1; }; } ;; |
| 5281 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5282 | else |
| 5283 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5284 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 5285 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 5286 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5287 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5288 | cat >conftest.$ac_ext <<_ACEOF |
| 5289 | #line $LINENO "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5290 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5291 | $ac_includes_default |
| 5292 | long longval () { return (long) (sizeof (long)); } |
| 5293 | unsigned long ulongval () { return (long) (sizeof (long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5294 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5295 | #include <stdlib.h> |
| 5296 | #ifdef F77_DUMMY_MAIN |
| 5297 | # ifdef __cplusplus |
| 5298 | extern "C" |
| 5299 | # endif |
| 5300 | int F77_DUMMY_MAIN() { return 1; } |
| 5301 | #endif |
| 5302 | int |
| 5303 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5304 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5305 | |
| 5306 | FILE *f = fopen ("conftest.val", "w"); |
| 5307 | if (! f) |
| 5308 | exit (1); |
| 5309 | if (((long) (sizeof (long))) < 0) |
| 5310 | { |
| 5311 | long i = longval (); |
| 5312 | if (i != ((long) (sizeof (long)))) |
| 5313 | exit (1); |
| 5314 | fprintf (f, "%ld\n", i); |
| 5315 | } |
| 5316 | else |
| 5317 | { |
| 5318 | unsigned long i = ulongval (); |
| 5319 | if (i != ((long) (sizeof (long)))) |
| 5320 | exit (1); |
| 5321 | fprintf (f, "%lu\n", i); |
| 5322 | } |
| 5323 | exit (ferror (f) || fclose (f) != 0); |
| 5324 | |
| 5325 | ; |
| 5326 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5327 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5328 | _ACEOF |
| 5329 | rm -f conftest$ac_exeext |
| 5330 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5331 | (eval $ac_link) 2>&5 |
| 5332 | ac_status=$? |
| 5333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5334 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5336 | (eval $ac_try) 2>&5 |
| 5337 | ac_status=$? |
| 5338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5339 | (exit $ac_status); }; }; then |
| 5340 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5341 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5342 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5343 | echo "$as_me: failed program was:" >&5 |
| 5344 | cat conftest.$ac_ext >&5 |
| 5345 | ( exit $ac_status ) |
| 5346 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 |
| 5347 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} |
| 5348 | { (exit 1); exit 1; }; } |
| 5349 | fi |
| 5350 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5351 | fi |
| 5352 | fi |
| 5353 | rm -f conftest.val |
| 5354 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5355 | ac_cv_sizeof_long=0 |
| 5356 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5357 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5358 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 5359 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 5360 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5361 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5362 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5363 | |
| 5364 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5365 | echo "$as_me:$LINENO: checking for void *" >&5 |
| 5366 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
| 5367 | if test "${ac_cv_type_void_p+set}" = set; then |
| 5368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5369 | else |
| 5370 | cat >conftest.$ac_ext <<_ACEOF |
| 5371 | #line $LINENO "configure" |
| 5372 | #include "confdefs.h" |
| 5373 | $ac_includes_default |
| 5374 | #ifdef F77_DUMMY_MAIN |
| 5375 | # ifdef __cplusplus |
| 5376 | extern "C" |
| 5377 | # endif |
| 5378 | int F77_DUMMY_MAIN() { return 1; } |
| 5379 | #endif |
| 5380 | int |
| 5381 | main () |
| 5382 | { |
| 5383 | if ((void * *) 0) |
| 5384 | return 0; |
| 5385 | if (sizeof (void *)) |
| 5386 | return 0; |
| 5387 | ; |
| 5388 | return 0; |
| 5389 | } |
| 5390 | _ACEOF |
| 5391 | rm -f conftest.$ac_objext |
| 5392 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5393 | (eval $ac_compile) 2>&5 |
| 5394 | ac_status=$? |
| 5395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5396 | (exit $ac_status); } && |
| 5397 | { ac_try='test -s conftest.$ac_objext' |
| 5398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5399 | (eval $ac_try) 2>&5 |
| 5400 | ac_status=$? |
| 5401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5402 | (exit $ac_status); }; }; then |
| 5403 | ac_cv_type_void_p=yes |
| 5404 | else |
| 5405 | echo "$as_me: failed program was:" >&5 |
| 5406 | cat conftest.$ac_ext >&5 |
| 5407 | ac_cv_type_void_p=no |
| 5408 | fi |
| 5409 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5410 | fi |
| 5411 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 5412 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
| 5413 | |
| 5414 | echo "$as_me:$LINENO: checking size of void *" >&5 |
| 5415 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
| 5416 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 5417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5418 | else |
| 5419 | if test "$ac_cv_type_void_p" = yes; then |
| 5420 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5421 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5422 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5423 | # This bug is HP SR number 8606223364. |
| 5424 | if test "$cross_compiling" = yes; then |
| 5425 | # Depending upon the size, compute the lo and hi bounds. |
| 5426 | cat >conftest.$ac_ext <<_ACEOF |
| 5427 | #line $LINENO "configure" |
| 5428 | #include "confdefs.h" |
| 5429 | $ac_includes_default |
| 5430 | #ifdef F77_DUMMY_MAIN |
| 5431 | # ifdef __cplusplus |
| 5432 | extern "C" |
| 5433 | # endif |
| 5434 | int F77_DUMMY_MAIN() { return 1; } |
| 5435 | #endif |
| 5436 | int |
| 5437 | main () |
| 5438 | { |
| 5439 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
| 5440 | test_array [0] = 0 |
| 5441 | |
| 5442 | ; |
| 5443 | return 0; |
| 5444 | } |
| 5445 | _ACEOF |
| 5446 | rm -f conftest.$ac_objext |
| 5447 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5448 | (eval $ac_compile) 2>&5 |
| 5449 | ac_status=$? |
| 5450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5451 | (exit $ac_status); } && |
| 5452 | { ac_try='test -s conftest.$ac_objext' |
| 5453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5454 | (eval $ac_try) 2>&5 |
| 5455 | ac_status=$? |
| 5456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5457 | (exit $ac_status); }; }; then |
| 5458 | ac_lo=0 ac_mid=0 |
| 5459 | while :; do |
| 5460 | cat >conftest.$ac_ext <<_ACEOF |
| 5461 | #line $LINENO "configure" |
| 5462 | #include "confdefs.h" |
| 5463 | $ac_includes_default |
| 5464 | #ifdef F77_DUMMY_MAIN |
| 5465 | # ifdef __cplusplus |
| 5466 | extern "C" |
| 5467 | # endif |
| 5468 | int F77_DUMMY_MAIN() { return 1; } |
| 5469 | #endif |
| 5470 | int |
| 5471 | main () |
| 5472 | { |
| 5473 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 5474 | test_array [0] = 0 |
| 5475 | |
| 5476 | ; |
| 5477 | return 0; |
| 5478 | } |
| 5479 | _ACEOF |
| 5480 | rm -f conftest.$ac_objext |
| 5481 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5482 | (eval $ac_compile) 2>&5 |
| 5483 | ac_status=$? |
| 5484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5485 | (exit $ac_status); } && |
| 5486 | { ac_try='test -s conftest.$ac_objext' |
| 5487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5488 | (eval $ac_try) 2>&5 |
| 5489 | ac_status=$? |
| 5490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5491 | (exit $ac_status); }; }; then |
| 5492 | ac_hi=$ac_mid; break |
| 5493 | else |
| 5494 | echo "$as_me: failed program was:" >&5 |
| 5495 | cat conftest.$ac_ext >&5 |
| 5496 | ac_lo=`expr $ac_mid + 1` |
| 5497 | if test $ac_lo -le $ac_mid; then |
| 5498 | ac_lo= ac_hi= |
| 5499 | break |
| 5500 | fi |
| 5501 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5502 | fi |
| 5503 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5504 | done |
| 5505 | else |
| 5506 | echo "$as_me: failed program was:" >&5 |
| 5507 | cat conftest.$ac_ext >&5 |
| 5508 | cat >conftest.$ac_ext <<_ACEOF |
| 5509 | #line $LINENO "configure" |
| 5510 | #include "confdefs.h" |
| 5511 | $ac_includes_default |
| 5512 | #ifdef F77_DUMMY_MAIN |
| 5513 | # ifdef __cplusplus |
| 5514 | extern "C" |
| 5515 | # endif |
| 5516 | int F77_DUMMY_MAIN() { return 1; } |
| 5517 | #endif |
| 5518 | int |
| 5519 | main () |
| 5520 | { |
| 5521 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
| 5522 | test_array [0] = 0 |
| 5523 | |
| 5524 | ; |
| 5525 | return 0; |
| 5526 | } |
| 5527 | _ACEOF |
| 5528 | rm -f conftest.$ac_objext |
| 5529 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5530 | (eval $ac_compile) 2>&5 |
| 5531 | ac_status=$? |
| 5532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5533 | (exit $ac_status); } && |
| 5534 | { ac_try='test -s conftest.$ac_objext' |
| 5535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5536 | (eval $ac_try) 2>&5 |
| 5537 | ac_status=$? |
| 5538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5539 | (exit $ac_status); }; }; then |
| 5540 | ac_hi=-1 ac_mid=-1 |
| 5541 | while :; do |
| 5542 | cat >conftest.$ac_ext <<_ACEOF |
| 5543 | #line $LINENO "configure" |
| 5544 | #include "confdefs.h" |
| 5545 | $ac_includes_default |
| 5546 | #ifdef F77_DUMMY_MAIN |
| 5547 | # ifdef __cplusplus |
| 5548 | extern "C" |
| 5549 | # endif |
| 5550 | int F77_DUMMY_MAIN() { return 1; } |
| 5551 | #endif |
| 5552 | int |
| 5553 | main () |
| 5554 | { |
| 5555 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
| 5556 | test_array [0] = 0 |
| 5557 | |
| 5558 | ; |
| 5559 | return 0; |
| 5560 | } |
| 5561 | _ACEOF |
| 5562 | rm -f conftest.$ac_objext |
| 5563 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5564 | (eval $ac_compile) 2>&5 |
| 5565 | ac_status=$? |
| 5566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5567 | (exit $ac_status); } && |
| 5568 | { ac_try='test -s conftest.$ac_objext' |
| 5569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5570 | (eval $ac_try) 2>&5 |
| 5571 | ac_status=$? |
| 5572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5573 | (exit $ac_status); }; }; then |
| 5574 | ac_lo=$ac_mid; break |
| 5575 | else |
| 5576 | echo "$as_me: failed program was:" >&5 |
| 5577 | cat conftest.$ac_ext >&5 |
| 5578 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5579 | if test $ac_mid -le $ac_hi; then |
| 5580 | ac_lo= ac_hi= |
| 5581 | break |
| 5582 | fi |
| 5583 | ac_mid=`expr 2 '*' $ac_mid` |
| 5584 | fi |
| 5585 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5586 | done |
| 5587 | else |
| 5588 | echo "$as_me: failed program was:" >&5 |
| 5589 | cat conftest.$ac_ext >&5 |
| 5590 | ac_lo= ac_hi= |
| 5591 | fi |
| 5592 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5593 | fi |
| 5594 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5595 | # Binary search between lo and hi bounds. |
| 5596 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5597 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5598 | cat >conftest.$ac_ext <<_ACEOF |
| 5599 | #line $LINENO "configure" |
| 5600 | #include "confdefs.h" |
| 5601 | $ac_includes_default |
| 5602 | #ifdef F77_DUMMY_MAIN |
| 5603 | # ifdef __cplusplus |
| 5604 | extern "C" |
| 5605 | # endif |
| 5606 | int F77_DUMMY_MAIN() { return 1; } |
| 5607 | #endif |
| 5608 | int |
| 5609 | main () |
| 5610 | { |
| 5611 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 5612 | test_array [0] = 0 |
| 5613 | |
| 5614 | ; |
| 5615 | return 0; |
| 5616 | } |
| 5617 | _ACEOF |
| 5618 | rm -f conftest.$ac_objext |
| 5619 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5620 | (eval $ac_compile) 2>&5 |
| 5621 | ac_status=$? |
| 5622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5623 | (exit $ac_status); } && |
| 5624 | { ac_try='test -s conftest.$ac_objext' |
| 5625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5626 | (eval $ac_try) 2>&5 |
| 5627 | ac_status=$? |
| 5628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5629 | (exit $ac_status); }; }; then |
| 5630 | ac_hi=$ac_mid |
| 5631 | else |
| 5632 | echo "$as_me: failed program was:" >&5 |
| 5633 | cat conftest.$ac_ext >&5 |
| 5634 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5635 | fi |
| 5636 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5637 | done |
| 5638 | case $ac_lo in |
| 5639 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
| 5640 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 |
| 5641 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} |
| 5642 | { (exit 1); exit 1; }; } ;; |
| 5643 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5644 | else |
| 5645 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5646 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 5647 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 5648 | { (exit 1); exit 1; }; } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5649 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5650 | cat >conftest.$ac_ext <<_ACEOF |
| 5651 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5652 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5653 | $ac_includes_default |
| 5654 | long longval () { return (long) (sizeof (void *)); } |
| 5655 | unsigned long ulongval () { return (long) (sizeof (void *)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5656 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5657 | #include <stdlib.h> |
| 5658 | #ifdef F77_DUMMY_MAIN |
| 5659 | # ifdef __cplusplus |
| 5660 | extern "C" |
| 5661 | # endif |
| 5662 | int F77_DUMMY_MAIN() { return 1; } |
| 5663 | #endif |
| 5664 | int |
| 5665 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5666 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5667 | |
| 5668 | FILE *f = fopen ("conftest.val", "w"); |
| 5669 | if (! f) |
| 5670 | exit (1); |
| 5671 | if (((long) (sizeof (void *))) < 0) |
| 5672 | { |
| 5673 | long i = longval (); |
| 5674 | if (i != ((long) (sizeof (void *)))) |
| 5675 | exit (1); |
| 5676 | fprintf (f, "%ld\n", i); |
| 5677 | } |
| 5678 | else |
| 5679 | { |
| 5680 | unsigned long i = ulongval (); |
| 5681 | if (i != ((long) (sizeof (void *)))) |
| 5682 | exit (1); |
| 5683 | fprintf (f, "%lu\n", i); |
| 5684 | } |
| 5685 | exit (ferror (f) || fclose (f) != 0); |
| 5686 | |
| 5687 | ; |
| 5688 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5689 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5690 | _ACEOF |
| 5691 | rm -f conftest$ac_exeext |
| 5692 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5693 | (eval $ac_link) 2>&5 |
| 5694 | ac_status=$? |
| 5695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5696 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5698 | (eval $ac_try) 2>&5 |
| 5699 | ac_status=$? |
| 5700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5701 | (exit $ac_status); }; }; then |
| 5702 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5703 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5704 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5705 | echo "$as_me: failed program was:" >&5 |
| 5706 | cat conftest.$ac_ext >&5 |
| 5707 | ( exit $ac_status ) |
| 5708 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 |
| 5709 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} |
| 5710 | { (exit 1); exit 1; }; } |
| 5711 | fi |
| 5712 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5713 | fi |
| 5714 | fi |
| 5715 | rm -f conftest.val |
| 5716 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5717 | ac_cv_sizeof_void_p=0 |
| 5718 | fi |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5719 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5720 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 5721 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
| 5722 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5723 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5724 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5725 | |
| 5726 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5727 | echo "$as_me:$LINENO: checking for char" >&5 |
| 5728 | echo $ECHO_N "checking for char... $ECHO_C" >&6 |
| 5729 | if test "${ac_cv_type_char+set}" = set; then |
| 5730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5731 | else |
| 5732 | cat >conftest.$ac_ext <<_ACEOF |
| 5733 | #line $LINENO "configure" |
| 5734 | #include "confdefs.h" |
| 5735 | $ac_includes_default |
| 5736 | #ifdef F77_DUMMY_MAIN |
| 5737 | # ifdef __cplusplus |
| 5738 | extern "C" |
| 5739 | # endif |
| 5740 | int F77_DUMMY_MAIN() { return 1; } |
| 5741 | #endif |
| 5742 | int |
| 5743 | main () |
| 5744 | { |
| 5745 | if ((char *) 0) |
| 5746 | return 0; |
| 5747 | if (sizeof (char)) |
| 5748 | return 0; |
| 5749 | ; |
| 5750 | return 0; |
| 5751 | } |
| 5752 | _ACEOF |
| 5753 | rm -f conftest.$ac_objext |
| 5754 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5755 | (eval $ac_compile) 2>&5 |
| 5756 | ac_status=$? |
| 5757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5758 | (exit $ac_status); } && |
| 5759 | { ac_try='test -s conftest.$ac_objext' |
| 5760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5761 | (eval $ac_try) 2>&5 |
| 5762 | ac_status=$? |
| 5763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5764 | (exit $ac_status); }; }; then |
| 5765 | ac_cv_type_char=yes |
| 5766 | else |
| 5767 | echo "$as_me: failed program was:" >&5 |
| 5768 | cat conftest.$ac_ext >&5 |
| 5769 | ac_cv_type_char=no |
| 5770 | fi |
| 5771 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5772 | fi |
| 5773 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
| 5774 | echo "${ECHO_T}$ac_cv_type_char" >&6 |
| 5775 | |
| 5776 | echo "$as_me:$LINENO: checking size of char" >&5 |
| 5777 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 |
| 5778 | if test "${ac_cv_sizeof_char+set}" = set; then |
| 5779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5780 | else |
| 5781 | if test "$ac_cv_type_char" = yes; then |
| 5782 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5783 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5784 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5785 | # This bug is HP SR number 8606223364. |
| 5786 | if test "$cross_compiling" = yes; then |
| 5787 | # Depending upon the size, compute the lo and hi bounds. |
| 5788 | cat >conftest.$ac_ext <<_ACEOF |
| 5789 | #line $LINENO "configure" |
| 5790 | #include "confdefs.h" |
| 5791 | $ac_includes_default |
| 5792 | #ifdef F77_DUMMY_MAIN |
| 5793 | # ifdef __cplusplus |
| 5794 | extern "C" |
| 5795 | # endif |
| 5796 | int F77_DUMMY_MAIN() { return 1; } |
| 5797 | #endif |
| 5798 | int |
| 5799 | main () |
| 5800 | { |
| 5801 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
| 5802 | test_array [0] = 0 |
| 5803 | |
| 5804 | ; |
| 5805 | return 0; |
| 5806 | } |
| 5807 | _ACEOF |
| 5808 | rm -f conftest.$ac_objext |
| 5809 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5810 | (eval $ac_compile) 2>&5 |
| 5811 | ac_status=$? |
| 5812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5813 | (exit $ac_status); } && |
| 5814 | { ac_try='test -s conftest.$ac_objext' |
| 5815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5816 | (eval $ac_try) 2>&5 |
| 5817 | ac_status=$? |
| 5818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5819 | (exit $ac_status); }; }; then |
| 5820 | ac_lo=0 ac_mid=0 |
| 5821 | while :; do |
| 5822 | cat >conftest.$ac_ext <<_ACEOF |
| 5823 | #line $LINENO "configure" |
| 5824 | #include "confdefs.h" |
| 5825 | $ac_includes_default |
| 5826 | #ifdef F77_DUMMY_MAIN |
| 5827 | # ifdef __cplusplus |
| 5828 | extern "C" |
| 5829 | # endif |
| 5830 | int F77_DUMMY_MAIN() { return 1; } |
| 5831 | #endif |
| 5832 | int |
| 5833 | main () |
| 5834 | { |
| 5835 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 5836 | test_array [0] = 0 |
| 5837 | |
| 5838 | ; |
| 5839 | return 0; |
| 5840 | } |
| 5841 | _ACEOF |
| 5842 | rm -f conftest.$ac_objext |
| 5843 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5844 | (eval $ac_compile) 2>&5 |
| 5845 | ac_status=$? |
| 5846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5847 | (exit $ac_status); } && |
| 5848 | { ac_try='test -s conftest.$ac_objext' |
| 5849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5850 | (eval $ac_try) 2>&5 |
| 5851 | ac_status=$? |
| 5852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5853 | (exit $ac_status); }; }; then |
| 5854 | ac_hi=$ac_mid; break |
| 5855 | else |
| 5856 | echo "$as_me: failed program was:" >&5 |
| 5857 | cat conftest.$ac_ext >&5 |
| 5858 | ac_lo=`expr $ac_mid + 1` |
| 5859 | if test $ac_lo -le $ac_mid; then |
| 5860 | ac_lo= ac_hi= |
| 5861 | break |
| 5862 | fi |
| 5863 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5864 | fi |
| 5865 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5866 | done |
| 5867 | else |
| 5868 | echo "$as_me: failed program was:" >&5 |
| 5869 | cat conftest.$ac_ext >&5 |
| 5870 | cat >conftest.$ac_ext <<_ACEOF |
| 5871 | #line $LINENO "configure" |
| 5872 | #include "confdefs.h" |
| 5873 | $ac_includes_default |
| 5874 | #ifdef F77_DUMMY_MAIN |
| 5875 | # ifdef __cplusplus |
| 5876 | extern "C" |
| 5877 | # endif |
| 5878 | int F77_DUMMY_MAIN() { return 1; } |
| 5879 | #endif |
| 5880 | int |
| 5881 | main () |
| 5882 | { |
| 5883 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
| 5884 | test_array [0] = 0 |
| 5885 | |
| 5886 | ; |
| 5887 | return 0; |
| 5888 | } |
| 5889 | _ACEOF |
| 5890 | rm -f conftest.$ac_objext |
| 5891 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5892 | (eval $ac_compile) 2>&5 |
| 5893 | ac_status=$? |
| 5894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5895 | (exit $ac_status); } && |
| 5896 | { ac_try='test -s conftest.$ac_objext' |
| 5897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5898 | (eval $ac_try) 2>&5 |
| 5899 | ac_status=$? |
| 5900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5901 | (exit $ac_status); }; }; then |
| 5902 | ac_hi=-1 ac_mid=-1 |
| 5903 | while :; do |
| 5904 | cat >conftest.$ac_ext <<_ACEOF |
| 5905 | #line $LINENO "configure" |
| 5906 | #include "confdefs.h" |
| 5907 | $ac_includes_default |
| 5908 | #ifdef F77_DUMMY_MAIN |
| 5909 | # ifdef __cplusplus |
| 5910 | extern "C" |
| 5911 | # endif |
| 5912 | int F77_DUMMY_MAIN() { return 1; } |
| 5913 | #endif |
| 5914 | int |
| 5915 | main () |
| 5916 | { |
| 5917 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
| 5918 | test_array [0] = 0 |
| 5919 | |
| 5920 | ; |
| 5921 | return 0; |
| 5922 | } |
| 5923 | _ACEOF |
| 5924 | rm -f conftest.$ac_objext |
| 5925 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5926 | (eval $ac_compile) 2>&5 |
| 5927 | ac_status=$? |
| 5928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5929 | (exit $ac_status); } && |
| 5930 | { ac_try='test -s conftest.$ac_objext' |
| 5931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5932 | (eval $ac_try) 2>&5 |
| 5933 | ac_status=$? |
| 5934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5935 | (exit $ac_status); }; }; then |
| 5936 | ac_lo=$ac_mid; break |
| 5937 | else |
| 5938 | echo "$as_me: failed program was:" >&5 |
| 5939 | cat conftest.$ac_ext >&5 |
| 5940 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5941 | if test $ac_mid -le $ac_hi; then |
| 5942 | ac_lo= ac_hi= |
| 5943 | break |
| 5944 | fi |
| 5945 | ac_mid=`expr 2 '*' $ac_mid` |
| 5946 | fi |
| 5947 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5948 | done |
| 5949 | else |
| 5950 | echo "$as_me: failed program was:" >&5 |
| 5951 | cat conftest.$ac_ext >&5 |
| 5952 | ac_lo= ac_hi= |
| 5953 | fi |
| 5954 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5955 | fi |
| 5956 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5957 | # Binary search between lo and hi bounds. |
| 5958 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5959 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5960 | cat >conftest.$ac_ext <<_ACEOF |
| 5961 | #line $LINENO "configure" |
| 5962 | #include "confdefs.h" |
| 5963 | $ac_includes_default |
| 5964 | #ifdef F77_DUMMY_MAIN |
| 5965 | # ifdef __cplusplus |
| 5966 | extern "C" |
| 5967 | # endif |
| 5968 | int F77_DUMMY_MAIN() { return 1; } |
| 5969 | #endif |
| 5970 | int |
| 5971 | main () |
| 5972 | { |
| 5973 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 5974 | test_array [0] = 0 |
| 5975 | |
| 5976 | ; |
| 5977 | return 0; |
| 5978 | } |
| 5979 | _ACEOF |
| 5980 | rm -f conftest.$ac_objext |
| 5981 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5982 | (eval $ac_compile) 2>&5 |
| 5983 | ac_status=$? |
| 5984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5985 | (exit $ac_status); } && |
| 5986 | { ac_try='test -s conftest.$ac_objext' |
| 5987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5988 | (eval $ac_try) 2>&5 |
| 5989 | ac_status=$? |
| 5990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5991 | (exit $ac_status); }; }; then |
| 5992 | ac_hi=$ac_mid |
| 5993 | else |
| 5994 | echo "$as_me: failed program was:" >&5 |
| 5995 | cat conftest.$ac_ext >&5 |
| 5996 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5997 | fi |
| 5998 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5999 | done |
| 6000 | case $ac_lo in |
| 6001 | ?*) ac_cv_sizeof_char=$ac_lo;; |
| 6002 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 |
| 6003 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} |
| 6004 | { (exit 1); exit 1; }; } ;; |
| 6005 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6006 | else |
| 6007 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6008 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6009 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6010 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6011 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6012 | cat >conftest.$ac_ext <<_ACEOF |
| 6013 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6014 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6015 | $ac_includes_default |
| 6016 | long longval () { return (long) (sizeof (char)); } |
| 6017 | unsigned long ulongval () { return (long) (sizeof (char)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6018 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6019 | #include <stdlib.h> |
| 6020 | #ifdef F77_DUMMY_MAIN |
| 6021 | # ifdef __cplusplus |
| 6022 | extern "C" |
| 6023 | # endif |
| 6024 | int F77_DUMMY_MAIN() { return 1; } |
| 6025 | #endif |
| 6026 | int |
| 6027 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6028 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6029 | |
| 6030 | FILE *f = fopen ("conftest.val", "w"); |
| 6031 | if (! f) |
| 6032 | exit (1); |
| 6033 | if (((long) (sizeof (char))) < 0) |
| 6034 | { |
| 6035 | long i = longval (); |
| 6036 | if (i != ((long) (sizeof (char)))) |
| 6037 | exit (1); |
| 6038 | fprintf (f, "%ld\n", i); |
| 6039 | } |
| 6040 | else |
| 6041 | { |
| 6042 | unsigned long i = ulongval (); |
| 6043 | if (i != ((long) (sizeof (char)))) |
| 6044 | exit (1); |
| 6045 | fprintf (f, "%lu\n", i); |
| 6046 | } |
| 6047 | exit (ferror (f) || fclose (f) != 0); |
| 6048 | |
| 6049 | ; |
| 6050 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6051 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6052 | _ACEOF |
| 6053 | rm -f conftest$ac_exeext |
| 6054 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6055 | (eval $ac_link) 2>&5 |
| 6056 | ac_status=$? |
| 6057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6058 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6060 | (eval $ac_try) 2>&5 |
| 6061 | ac_status=$? |
| 6062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6063 | (exit $ac_status); }; }; then |
| 6064 | ac_cv_sizeof_char=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6065 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6066 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6067 | echo "$as_me: failed program was:" >&5 |
| 6068 | cat conftest.$ac_ext >&5 |
| 6069 | ( exit $ac_status ) |
| 6070 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 |
| 6071 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} |
| 6072 | { (exit 1); exit 1; }; } |
| 6073 | fi |
| 6074 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6075 | fi |
| 6076 | fi |
| 6077 | rm -f conftest.val |
| 6078 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6079 | ac_cv_sizeof_char=0 |
| 6080 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6081 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6082 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
| 6083 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 |
| 6084 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6085 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6086 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6087 | |
| 6088 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6089 | echo "$as_me:$LINENO: checking for short" >&5 |
| 6090 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
| 6091 | if test "${ac_cv_type_short+set}" = set; then |
| 6092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6093 | else |
| 6094 | cat >conftest.$ac_ext <<_ACEOF |
| 6095 | #line $LINENO "configure" |
| 6096 | #include "confdefs.h" |
| 6097 | $ac_includes_default |
| 6098 | #ifdef F77_DUMMY_MAIN |
| 6099 | # ifdef __cplusplus |
| 6100 | extern "C" |
| 6101 | # endif |
| 6102 | int F77_DUMMY_MAIN() { return 1; } |
| 6103 | #endif |
| 6104 | int |
| 6105 | main () |
| 6106 | { |
| 6107 | if ((short *) 0) |
| 6108 | return 0; |
| 6109 | if (sizeof (short)) |
| 6110 | return 0; |
| 6111 | ; |
| 6112 | return 0; |
| 6113 | } |
| 6114 | _ACEOF |
| 6115 | rm -f conftest.$ac_objext |
| 6116 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6117 | (eval $ac_compile) 2>&5 |
| 6118 | ac_status=$? |
| 6119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6120 | (exit $ac_status); } && |
| 6121 | { ac_try='test -s conftest.$ac_objext' |
| 6122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6123 | (eval $ac_try) 2>&5 |
| 6124 | ac_status=$? |
| 6125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6126 | (exit $ac_status); }; }; then |
| 6127 | ac_cv_type_short=yes |
| 6128 | else |
| 6129 | echo "$as_me: failed program was:" >&5 |
| 6130 | cat conftest.$ac_ext >&5 |
| 6131 | ac_cv_type_short=no |
| 6132 | fi |
| 6133 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6134 | fi |
| 6135 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 6136 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
| 6137 | |
| 6138 | echo "$as_me:$LINENO: checking size of short" >&5 |
| 6139 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
| 6140 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 6141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6142 | else |
| 6143 | if test "$ac_cv_type_short" = yes; then |
| 6144 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6145 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6146 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6147 | # This bug is HP SR number 8606223364. |
| 6148 | if test "$cross_compiling" = yes; then |
| 6149 | # Depending upon the size, compute the lo and hi bounds. |
| 6150 | cat >conftest.$ac_ext <<_ACEOF |
| 6151 | #line $LINENO "configure" |
| 6152 | #include "confdefs.h" |
| 6153 | $ac_includes_default |
| 6154 | #ifdef F77_DUMMY_MAIN |
| 6155 | # ifdef __cplusplus |
| 6156 | extern "C" |
| 6157 | # endif |
| 6158 | int F77_DUMMY_MAIN() { return 1; } |
| 6159 | #endif |
| 6160 | int |
| 6161 | main () |
| 6162 | { |
| 6163 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
| 6164 | test_array [0] = 0 |
| 6165 | |
| 6166 | ; |
| 6167 | return 0; |
| 6168 | } |
| 6169 | _ACEOF |
| 6170 | rm -f conftest.$ac_objext |
| 6171 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6172 | (eval $ac_compile) 2>&5 |
| 6173 | ac_status=$? |
| 6174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6175 | (exit $ac_status); } && |
| 6176 | { ac_try='test -s conftest.$ac_objext' |
| 6177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6178 | (eval $ac_try) 2>&5 |
| 6179 | ac_status=$? |
| 6180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6181 | (exit $ac_status); }; }; then |
| 6182 | ac_lo=0 ac_mid=0 |
| 6183 | while :; do |
| 6184 | cat >conftest.$ac_ext <<_ACEOF |
| 6185 | #line $LINENO "configure" |
| 6186 | #include "confdefs.h" |
| 6187 | $ac_includes_default |
| 6188 | #ifdef F77_DUMMY_MAIN |
| 6189 | # ifdef __cplusplus |
| 6190 | extern "C" |
| 6191 | # endif |
| 6192 | int F77_DUMMY_MAIN() { return 1; } |
| 6193 | #endif |
| 6194 | int |
| 6195 | main () |
| 6196 | { |
| 6197 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 6198 | test_array [0] = 0 |
| 6199 | |
| 6200 | ; |
| 6201 | return 0; |
| 6202 | } |
| 6203 | _ACEOF |
| 6204 | rm -f conftest.$ac_objext |
| 6205 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6206 | (eval $ac_compile) 2>&5 |
| 6207 | ac_status=$? |
| 6208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6209 | (exit $ac_status); } && |
| 6210 | { ac_try='test -s conftest.$ac_objext' |
| 6211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6212 | (eval $ac_try) 2>&5 |
| 6213 | ac_status=$? |
| 6214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6215 | (exit $ac_status); }; }; then |
| 6216 | ac_hi=$ac_mid; break |
| 6217 | else |
| 6218 | echo "$as_me: failed program was:" >&5 |
| 6219 | cat conftest.$ac_ext >&5 |
| 6220 | ac_lo=`expr $ac_mid + 1` |
| 6221 | if test $ac_lo -le $ac_mid; then |
| 6222 | ac_lo= ac_hi= |
| 6223 | break |
| 6224 | fi |
| 6225 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6226 | fi |
| 6227 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6228 | done |
| 6229 | else |
| 6230 | echo "$as_me: failed program was:" >&5 |
| 6231 | cat conftest.$ac_ext >&5 |
| 6232 | cat >conftest.$ac_ext <<_ACEOF |
| 6233 | #line $LINENO "configure" |
| 6234 | #include "confdefs.h" |
| 6235 | $ac_includes_default |
| 6236 | #ifdef F77_DUMMY_MAIN |
| 6237 | # ifdef __cplusplus |
| 6238 | extern "C" |
| 6239 | # endif |
| 6240 | int F77_DUMMY_MAIN() { return 1; } |
| 6241 | #endif |
| 6242 | int |
| 6243 | main () |
| 6244 | { |
| 6245 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
| 6246 | test_array [0] = 0 |
| 6247 | |
| 6248 | ; |
| 6249 | return 0; |
| 6250 | } |
| 6251 | _ACEOF |
| 6252 | rm -f conftest.$ac_objext |
| 6253 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6254 | (eval $ac_compile) 2>&5 |
| 6255 | ac_status=$? |
| 6256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6257 | (exit $ac_status); } && |
| 6258 | { ac_try='test -s conftest.$ac_objext' |
| 6259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6260 | (eval $ac_try) 2>&5 |
| 6261 | ac_status=$? |
| 6262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6263 | (exit $ac_status); }; }; then |
| 6264 | ac_hi=-1 ac_mid=-1 |
| 6265 | while :; do |
| 6266 | cat >conftest.$ac_ext <<_ACEOF |
| 6267 | #line $LINENO "configure" |
| 6268 | #include "confdefs.h" |
| 6269 | $ac_includes_default |
| 6270 | #ifdef F77_DUMMY_MAIN |
| 6271 | # ifdef __cplusplus |
| 6272 | extern "C" |
| 6273 | # endif |
| 6274 | int F77_DUMMY_MAIN() { return 1; } |
| 6275 | #endif |
| 6276 | int |
| 6277 | main () |
| 6278 | { |
| 6279 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
| 6280 | test_array [0] = 0 |
| 6281 | |
| 6282 | ; |
| 6283 | return 0; |
| 6284 | } |
| 6285 | _ACEOF |
| 6286 | rm -f conftest.$ac_objext |
| 6287 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6288 | (eval $ac_compile) 2>&5 |
| 6289 | ac_status=$? |
| 6290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6291 | (exit $ac_status); } && |
| 6292 | { ac_try='test -s conftest.$ac_objext' |
| 6293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6294 | (eval $ac_try) 2>&5 |
| 6295 | ac_status=$? |
| 6296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6297 | (exit $ac_status); }; }; then |
| 6298 | ac_lo=$ac_mid; break |
| 6299 | else |
| 6300 | echo "$as_me: failed program was:" >&5 |
| 6301 | cat conftest.$ac_ext >&5 |
| 6302 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6303 | if test $ac_mid -le $ac_hi; then |
| 6304 | ac_lo= ac_hi= |
| 6305 | break |
| 6306 | fi |
| 6307 | ac_mid=`expr 2 '*' $ac_mid` |
| 6308 | fi |
| 6309 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6310 | done |
| 6311 | else |
| 6312 | echo "$as_me: failed program was:" >&5 |
| 6313 | cat conftest.$ac_ext >&5 |
| 6314 | ac_lo= ac_hi= |
| 6315 | fi |
| 6316 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6317 | fi |
| 6318 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6319 | # Binary search between lo and hi bounds. |
| 6320 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6321 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6322 | cat >conftest.$ac_ext <<_ACEOF |
| 6323 | #line $LINENO "configure" |
| 6324 | #include "confdefs.h" |
| 6325 | $ac_includes_default |
| 6326 | #ifdef F77_DUMMY_MAIN |
| 6327 | # ifdef __cplusplus |
| 6328 | extern "C" |
| 6329 | # endif |
| 6330 | int F77_DUMMY_MAIN() { return 1; } |
| 6331 | #endif |
| 6332 | int |
| 6333 | main () |
| 6334 | { |
| 6335 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 6336 | test_array [0] = 0 |
| 6337 | |
| 6338 | ; |
| 6339 | return 0; |
| 6340 | } |
| 6341 | _ACEOF |
| 6342 | rm -f conftest.$ac_objext |
| 6343 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6344 | (eval $ac_compile) 2>&5 |
| 6345 | ac_status=$? |
| 6346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6347 | (exit $ac_status); } && |
| 6348 | { ac_try='test -s conftest.$ac_objext' |
| 6349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6350 | (eval $ac_try) 2>&5 |
| 6351 | ac_status=$? |
| 6352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6353 | (exit $ac_status); }; }; then |
| 6354 | ac_hi=$ac_mid |
| 6355 | else |
| 6356 | echo "$as_me: failed program was:" >&5 |
| 6357 | cat conftest.$ac_ext >&5 |
| 6358 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6359 | fi |
| 6360 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6361 | done |
| 6362 | case $ac_lo in |
| 6363 | ?*) ac_cv_sizeof_short=$ac_lo;; |
| 6364 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 |
| 6365 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} |
| 6366 | { (exit 1); exit 1; }; } ;; |
| 6367 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6368 | else |
| 6369 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6370 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6371 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6372 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6373 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6374 | cat >conftest.$ac_ext <<_ACEOF |
| 6375 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6376 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6377 | $ac_includes_default |
| 6378 | long longval () { return (long) (sizeof (short)); } |
| 6379 | unsigned long ulongval () { return (long) (sizeof (short)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6380 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6381 | #include <stdlib.h> |
| 6382 | #ifdef F77_DUMMY_MAIN |
| 6383 | # ifdef __cplusplus |
| 6384 | extern "C" |
| 6385 | # endif |
| 6386 | int F77_DUMMY_MAIN() { return 1; } |
| 6387 | #endif |
| 6388 | int |
| 6389 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6390 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6391 | |
| 6392 | FILE *f = fopen ("conftest.val", "w"); |
| 6393 | if (! f) |
| 6394 | exit (1); |
| 6395 | if (((long) (sizeof (short))) < 0) |
| 6396 | { |
| 6397 | long i = longval (); |
| 6398 | if (i != ((long) (sizeof (short)))) |
| 6399 | exit (1); |
| 6400 | fprintf (f, "%ld\n", i); |
| 6401 | } |
| 6402 | else |
| 6403 | { |
| 6404 | unsigned long i = ulongval (); |
| 6405 | if (i != ((long) (sizeof (short)))) |
| 6406 | exit (1); |
| 6407 | fprintf (f, "%lu\n", i); |
| 6408 | } |
| 6409 | exit (ferror (f) || fclose (f) != 0); |
| 6410 | |
| 6411 | ; |
| 6412 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6413 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6414 | _ACEOF |
| 6415 | rm -f conftest$ac_exeext |
| 6416 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6417 | (eval $ac_link) 2>&5 |
| 6418 | ac_status=$? |
| 6419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6420 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6422 | (eval $ac_try) 2>&5 |
| 6423 | ac_status=$? |
| 6424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6425 | (exit $ac_status); }; }; then |
| 6426 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6427 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6428 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6429 | echo "$as_me: failed program was:" >&5 |
| 6430 | cat conftest.$ac_ext >&5 |
| 6431 | ( exit $ac_status ) |
| 6432 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 |
| 6433 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} |
| 6434 | { (exit 1); exit 1; }; } |
| 6435 | fi |
| 6436 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6437 | fi |
| 6438 | fi |
| 6439 | rm -f conftest.val |
| 6440 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6441 | ac_cv_sizeof_short=0 |
| 6442 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6443 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6444 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 6445 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
| 6446 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6447 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6448 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6449 | |
| 6450 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6451 | echo "$as_me:$LINENO: checking for float" >&5 |
| 6452 | echo $ECHO_N "checking for float... $ECHO_C" >&6 |
| 6453 | if test "${ac_cv_type_float+set}" = set; then |
| 6454 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6455 | else |
| 6456 | cat >conftest.$ac_ext <<_ACEOF |
| 6457 | #line $LINENO "configure" |
| 6458 | #include "confdefs.h" |
| 6459 | $ac_includes_default |
| 6460 | #ifdef F77_DUMMY_MAIN |
| 6461 | # ifdef __cplusplus |
| 6462 | extern "C" |
| 6463 | # endif |
| 6464 | int F77_DUMMY_MAIN() { return 1; } |
| 6465 | #endif |
| 6466 | int |
| 6467 | main () |
| 6468 | { |
| 6469 | if ((float *) 0) |
| 6470 | return 0; |
| 6471 | if (sizeof (float)) |
| 6472 | return 0; |
| 6473 | ; |
| 6474 | return 0; |
| 6475 | } |
| 6476 | _ACEOF |
| 6477 | rm -f conftest.$ac_objext |
| 6478 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6479 | (eval $ac_compile) 2>&5 |
| 6480 | ac_status=$? |
| 6481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6482 | (exit $ac_status); } && |
| 6483 | { ac_try='test -s conftest.$ac_objext' |
| 6484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6485 | (eval $ac_try) 2>&5 |
| 6486 | ac_status=$? |
| 6487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6488 | (exit $ac_status); }; }; then |
| 6489 | ac_cv_type_float=yes |
| 6490 | else |
| 6491 | echo "$as_me: failed program was:" >&5 |
| 6492 | cat conftest.$ac_ext >&5 |
| 6493 | ac_cv_type_float=no |
| 6494 | fi |
| 6495 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6496 | fi |
| 6497 | echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 6498 | echo "${ECHO_T}$ac_cv_type_float" >&6 |
| 6499 | |
| 6500 | echo "$as_me:$LINENO: checking size of float" >&5 |
| 6501 | echo $ECHO_N "checking size of float... $ECHO_C" >&6 |
| 6502 | if test "${ac_cv_sizeof_float+set}" = set; then |
| 6503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6504 | else |
| 6505 | if test "$ac_cv_type_float" = yes; then |
| 6506 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6507 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6508 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6509 | # This bug is HP SR number 8606223364. |
| 6510 | if test "$cross_compiling" = yes; then |
| 6511 | # Depending upon the size, compute the lo and hi bounds. |
| 6512 | cat >conftest.$ac_ext <<_ACEOF |
| 6513 | #line $LINENO "configure" |
| 6514 | #include "confdefs.h" |
| 6515 | $ac_includes_default |
| 6516 | #ifdef F77_DUMMY_MAIN |
| 6517 | # ifdef __cplusplus |
| 6518 | extern "C" |
| 6519 | # endif |
| 6520 | int F77_DUMMY_MAIN() { return 1; } |
| 6521 | #endif |
| 6522 | int |
| 6523 | main () |
| 6524 | { |
| 6525 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)]; |
| 6526 | test_array [0] = 0 |
| 6527 | |
| 6528 | ; |
| 6529 | return 0; |
| 6530 | } |
| 6531 | _ACEOF |
| 6532 | rm -f conftest.$ac_objext |
| 6533 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6534 | (eval $ac_compile) 2>&5 |
| 6535 | ac_status=$? |
| 6536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6537 | (exit $ac_status); } && |
| 6538 | { ac_try='test -s conftest.$ac_objext' |
| 6539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6540 | (eval $ac_try) 2>&5 |
| 6541 | ac_status=$? |
| 6542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6543 | (exit $ac_status); }; }; then |
| 6544 | ac_lo=0 ac_mid=0 |
| 6545 | while :; do |
| 6546 | cat >conftest.$ac_ext <<_ACEOF |
| 6547 | #line $LINENO "configure" |
| 6548 | #include "confdefs.h" |
| 6549 | $ac_includes_default |
| 6550 | #ifdef F77_DUMMY_MAIN |
| 6551 | # ifdef __cplusplus |
| 6552 | extern "C" |
| 6553 | # endif |
| 6554 | int F77_DUMMY_MAIN() { return 1; } |
| 6555 | #endif |
| 6556 | int |
| 6557 | main () |
| 6558 | { |
| 6559 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 6560 | test_array [0] = 0 |
| 6561 | |
| 6562 | ; |
| 6563 | return 0; |
| 6564 | } |
| 6565 | _ACEOF |
| 6566 | rm -f conftest.$ac_objext |
| 6567 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6568 | (eval $ac_compile) 2>&5 |
| 6569 | ac_status=$? |
| 6570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6571 | (exit $ac_status); } && |
| 6572 | { ac_try='test -s conftest.$ac_objext' |
| 6573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6574 | (eval $ac_try) 2>&5 |
| 6575 | ac_status=$? |
| 6576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6577 | (exit $ac_status); }; }; then |
| 6578 | ac_hi=$ac_mid; break |
| 6579 | else |
| 6580 | echo "$as_me: failed program was:" >&5 |
| 6581 | cat conftest.$ac_ext >&5 |
| 6582 | ac_lo=`expr $ac_mid + 1` |
| 6583 | if test $ac_lo -le $ac_mid; then |
| 6584 | ac_lo= ac_hi= |
| 6585 | break |
| 6586 | fi |
| 6587 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6588 | fi |
| 6589 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6590 | done |
| 6591 | else |
| 6592 | echo "$as_me: failed program was:" >&5 |
| 6593 | cat conftest.$ac_ext >&5 |
| 6594 | cat >conftest.$ac_ext <<_ACEOF |
| 6595 | #line $LINENO "configure" |
| 6596 | #include "confdefs.h" |
| 6597 | $ac_includes_default |
| 6598 | #ifdef F77_DUMMY_MAIN |
| 6599 | # ifdef __cplusplus |
| 6600 | extern "C" |
| 6601 | # endif |
| 6602 | int F77_DUMMY_MAIN() { return 1; } |
| 6603 | #endif |
| 6604 | int |
| 6605 | main () |
| 6606 | { |
| 6607 | static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)]; |
| 6608 | test_array [0] = 0 |
| 6609 | |
| 6610 | ; |
| 6611 | return 0; |
| 6612 | } |
| 6613 | _ACEOF |
| 6614 | rm -f conftest.$ac_objext |
| 6615 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6616 | (eval $ac_compile) 2>&5 |
| 6617 | ac_status=$? |
| 6618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6619 | (exit $ac_status); } && |
| 6620 | { ac_try='test -s conftest.$ac_objext' |
| 6621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6622 | (eval $ac_try) 2>&5 |
| 6623 | ac_status=$? |
| 6624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6625 | (exit $ac_status); }; }; then |
| 6626 | ac_hi=-1 ac_mid=-1 |
| 6627 | while :; do |
| 6628 | cat >conftest.$ac_ext <<_ACEOF |
| 6629 | #line $LINENO "configure" |
| 6630 | #include "confdefs.h" |
| 6631 | $ac_includes_default |
| 6632 | #ifdef F77_DUMMY_MAIN |
| 6633 | # ifdef __cplusplus |
| 6634 | extern "C" |
| 6635 | # endif |
| 6636 | int F77_DUMMY_MAIN() { return 1; } |
| 6637 | #endif |
| 6638 | int |
| 6639 | main () |
| 6640 | { |
| 6641 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)]; |
| 6642 | test_array [0] = 0 |
| 6643 | |
| 6644 | ; |
| 6645 | return 0; |
| 6646 | } |
| 6647 | _ACEOF |
| 6648 | rm -f conftest.$ac_objext |
| 6649 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6650 | (eval $ac_compile) 2>&5 |
| 6651 | ac_status=$? |
| 6652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6653 | (exit $ac_status); } && |
| 6654 | { ac_try='test -s conftest.$ac_objext' |
| 6655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6656 | (eval $ac_try) 2>&5 |
| 6657 | ac_status=$? |
| 6658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6659 | (exit $ac_status); }; }; then |
| 6660 | ac_lo=$ac_mid; break |
| 6661 | else |
| 6662 | echo "$as_me: failed program was:" >&5 |
| 6663 | cat conftest.$ac_ext >&5 |
| 6664 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6665 | if test $ac_mid -le $ac_hi; then |
| 6666 | ac_lo= ac_hi= |
| 6667 | break |
| 6668 | fi |
| 6669 | ac_mid=`expr 2 '*' $ac_mid` |
| 6670 | fi |
| 6671 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6672 | done |
| 6673 | else |
| 6674 | echo "$as_me: failed program was:" >&5 |
| 6675 | cat conftest.$ac_ext >&5 |
| 6676 | ac_lo= ac_hi= |
| 6677 | fi |
| 6678 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6679 | fi |
| 6680 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6681 | # Binary search between lo and hi bounds. |
| 6682 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6683 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6684 | cat >conftest.$ac_ext <<_ACEOF |
| 6685 | #line $LINENO "configure" |
| 6686 | #include "confdefs.h" |
| 6687 | $ac_includes_default |
| 6688 | #ifdef F77_DUMMY_MAIN |
| 6689 | # ifdef __cplusplus |
| 6690 | extern "C" |
| 6691 | # endif |
| 6692 | int F77_DUMMY_MAIN() { return 1; } |
| 6693 | #endif |
| 6694 | int |
| 6695 | main () |
| 6696 | { |
| 6697 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 6698 | test_array [0] = 0 |
| 6699 | |
| 6700 | ; |
| 6701 | return 0; |
| 6702 | } |
| 6703 | _ACEOF |
| 6704 | rm -f conftest.$ac_objext |
| 6705 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6706 | (eval $ac_compile) 2>&5 |
| 6707 | ac_status=$? |
| 6708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6709 | (exit $ac_status); } && |
| 6710 | { ac_try='test -s conftest.$ac_objext' |
| 6711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6712 | (eval $ac_try) 2>&5 |
| 6713 | ac_status=$? |
| 6714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6715 | (exit $ac_status); }; }; then |
| 6716 | ac_hi=$ac_mid |
| 6717 | else |
| 6718 | echo "$as_me: failed program was:" >&5 |
| 6719 | cat conftest.$ac_ext >&5 |
| 6720 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6721 | fi |
| 6722 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6723 | done |
| 6724 | case $ac_lo in |
| 6725 | ?*) ac_cv_sizeof_float=$ac_lo;; |
| 6726 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5 |
| 6727 | echo "$as_me: error: cannot compute sizeof (float), 77" >&2;} |
| 6728 | { (exit 1); exit 1; }; } ;; |
| 6729 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6730 | else |
| 6731 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6732 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6733 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6734 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6735 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6736 | cat >conftest.$ac_ext <<_ACEOF |
| 6737 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6738 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6739 | $ac_includes_default |
| 6740 | long longval () { return (long) (sizeof (float)); } |
| 6741 | unsigned long ulongval () { return (long) (sizeof (float)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6742 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6743 | #include <stdlib.h> |
| 6744 | #ifdef F77_DUMMY_MAIN |
| 6745 | # ifdef __cplusplus |
| 6746 | extern "C" |
| 6747 | # endif |
| 6748 | int F77_DUMMY_MAIN() { return 1; } |
| 6749 | #endif |
| 6750 | int |
| 6751 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6752 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6753 | |
| 6754 | FILE *f = fopen ("conftest.val", "w"); |
| 6755 | if (! f) |
| 6756 | exit (1); |
| 6757 | if (((long) (sizeof (float))) < 0) |
| 6758 | { |
| 6759 | long i = longval (); |
| 6760 | if (i != ((long) (sizeof (float)))) |
| 6761 | exit (1); |
| 6762 | fprintf (f, "%ld\n", i); |
| 6763 | } |
| 6764 | else |
| 6765 | { |
| 6766 | unsigned long i = ulongval (); |
| 6767 | if (i != ((long) (sizeof (float)))) |
| 6768 | exit (1); |
| 6769 | fprintf (f, "%lu\n", i); |
| 6770 | } |
| 6771 | exit (ferror (f) || fclose (f) != 0); |
| 6772 | |
| 6773 | ; |
| 6774 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6775 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6776 | _ACEOF |
| 6777 | rm -f conftest$ac_exeext |
| 6778 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6779 | (eval $ac_link) 2>&5 |
| 6780 | ac_status=$? |
| 6781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6782 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6784 | (eval $ac_try) 2>&5 |
| 6785 | ac_status=$? |
| 6786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6787 | (exit $ac_status); }; }; then |
| 6788 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6789 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6790 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6791 | echo "$as_me: failed program was:" >&5 |
| 6792 | cat conftest.$ac_ext >&5 |
| 6793 | ( exit $ac_status ) |
| 6794 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5 |
| 6795 | echo "$as_me: error: cannot compute sizeof (float), 77" >&2;} |
| 6796 | { (exit 1); exit 1; }; } |
| 6797 | fi |
| 6798 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6799 | fi |
| 6800 | fi |
| 6801 | rm -f conftest.val |
| 6802 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6803 | ac_cv_sizeof_float=0 |
| 6804 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6805 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6806 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 6807 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6 |
| 6808 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6809 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6810 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6811 | |
| 6812 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6813 | echo "$as_me:$LINENO: checking for double" >&5 |
| 6814 | echo $ECHO_N "checking for double... $ECHO_C" >&6 |
| 6815 | if test "${ac_cv_type_double+set}" = set; then |
| 6816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6817 | else |
| 6818 | cat >conftest.$ac_ext <<_ACEOF |
| 6819 | #line $LINENO "configure" |
| 6820 | #include "confdefs.h" |
| 6821 | $ac_includes_default |
| 6822 | #ifdef F77_DUMMY_MAIN |
| 6823 | # ifdef __cplusplus |
| 6824 | extern "C" |
| 6825 | # endif |
| 6826 | int F77_DUMMY_MAIN() { return 1; } |
| 6827 | #endif |
| 6828 | int |
| 6829 | main () |
| 6830 | { |
| 6831 | if ((double *) 0) |
| 6832 | return 0; |
| 6833 | if (sizeof (double)) |
| 6834 | return 0; |
| 6835 | ; |
| 6836 | return 0; |
| 6837 | } |
| 6838 | _ACEOF |
| 6839 | rm -f conftest.$ac_objext |
| 6840 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6841 | (eval $ac_compile) 2>&5 |
| 6842 | ac_status=$? |
| 6843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6844 | (exit $ac_status); } && |
| 6845 | { ac_try='test -s conftest.$ac_objext' |
| 6846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6847 | (eval $ac_try) 2>&5 |
| 6848 | ac_status=$? |
| 6849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6850 | (exit $ac_status); }; }; then |
| 6851 | ac_cv_type_double=yes |
| 6852 | else |
| 6853 | echo "$as_me: failed program was:" >&5 |
| 6854 | cat conftest.$ac_ext >&5 |
| 6855 | ac_cv_type_double=no |
| 6856 | fi |
| 6857 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6858 | fi |
| 6859 | echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 6860 | echo "${ECHO_T}$ac_cv_type_double" >&6 |
| 6861 | |
| 6862 | echo "$as_me:$LINENO: checking size of double" >&5 |
| 6863 | echo $ECHO_N "checking size of double... $ECHO_C" >&6 |
| 6864 | if test "${ac_cv_sizeof_double+set}" = set; then |
| 6865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6866 | else |
| 6867 | if test "$ac_cv_type_double" = yes; then |
| 6868 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6869 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6870 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6871 | # This bug is HP SR number 8606223364. |
| 6872 | if test "$cross_compiling" = yes; then |
| 6873 | # Depending upon the size, compute the lo and hi bounds. |
| 6874 | cat >conftest.$ac_ext <<_ACEOF |
| 6875 | #line $LINENO "configure" |
| 6876 | #include "confdefs.h" |
| 6877 | $ac_includes_default |
| 6878 | #ifdef F77_DUMMY_MAIN |
| 6879 | # ifdef __cplusplus |
| 6880 | extern "C" |
| 6881 | # endif |
| 6882 | int F77_DUMMY_MAIN() { return 1; } |
| 6883 | #endif |
| 6884 | int |
| 6885 | main () |
| 6886 | { |
| 6887 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)]; |
| 6888 | test_array [0] = 0 |
| 6889 | |
| 6890 | ; |
| 6891 | return 0; |
| 6892 | } |
| 6893 | _ACEOF |
| 6894 | rm -f conftest.$ac_objext |
| 6895 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6896 | (eval $ac_compile) 2>&5 |
| 6897 | ac_status=$? |
| 6898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6899 | (exit $ac_status); } && |
| 6900 | { ac_try='test -s conftest.$ac_objext' |
| 6901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6902 | (eval $ac_try) 2>&5 |
| 6903 | ac_status=$? |
| 6904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6905 | (exit $ac_status); }; }; then |
| 6906 | ac_lo=0 ac_mid=0 |
| 6907 | while :; do |
| 6908 | cat >conftest.$ac_ext <<_ACEOF |
| 6909 | #line $LINENO "configure" |
| 6910 | #include "confdefs.h" |
| 6911 | $ac_includes_default |
| 6912 | #ifdef F77_DUMMY_MAIN |
| 6913 | # ifdef __cplusplus |
| 6914 | extern "C" |
| 6915 | # endif |
| 6916 | int F77_DUMMY_MAIN() { return 1; } |
| 6917 | #endif |
| 6918 | int |
| 6919 | main () |
| 6920 | { |
| 6921 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 6922 | test_array [0] = 0 |
| 6923 | |
| 6924 | ; |
| 6925 | return 0; |
| 6926 | } |
| 6927 | _ACEOF |
| 6928 | rm -f conftest.$ac_objext |
| 6929 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6930 | (eval $ac_compile) 2>&5 |
| 6931 | ac_status=$? |
| 6932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6933 | (exit $ac_status); } && |
| 6934 | { ac_try='test -s conftest.$ac_objext' |
| 6935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6936 | (eval $ac_try) 2>&5 |
| 6937 | ac_status=$? |
| 6938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6939 | (exit $ac_status); }; }; then |
| 6940 | ac_hi=$ac_mid; break |
| 6941 | else |
| 6942 | echo "$as_me: failed program was:" >&5 |
| 6943 | cat conftest.$ac_ext >&5 |
| 6944 | ac_lo=`expr $ac_mid + 1` |
| 6945 | if test $ac_lo -le $ac_mid; then |
| 6946 | ac_lo= ac_hi= |
| 6947 | break |
| 6948 | fi |
| 6949 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6950 | fi |
| 6951 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6952 | done |
| 6953 | else |
| 6954 | echo "$as_me: failed program was:" >&5 |
| 6955 | cat conftest.$ac_ext >&5 |
| 6956 | cat >conftest.$ac_ext <<_ACEOF |
| 6957 | #line $LINENO "configure" |
| 6958 | #include "confdefs.h" |
| 6959 | $ac_includes_default |
| 6960 | #ifdef F77_DUMMY_MAIN |
| 6961 | # ifdef __cplusplus |
| 6962 | extern "C" |
| 6963 | # endif |
| 6964 | int F77_DUMMY_MAIN() { return 1; } |
| 6965 | #endif |
| 6966 | int |
| 6967 | main () |
| 6968 | { |
| 6969 | static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)]; |
| 6970 | test_array [0] = 0 |
| 6971 | |
| 6972 | ; |
| 6973 | return 0; |
| 6974 | } |
| 6975 | _ACEOF |
| 6976 | rm -f conftest.$ac_objext |
| 6977 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6978 | (eval $ac_compile) 2>&5 |
| 6979 | ac_status=$? |
| 6980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6981 | (exit $ac_status); } && |
| 6982 | { ac_try='test -s conftest.$ac_objext' |
| 6983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6984 | (eval $ac_try) 2>&5 |
| 6985 | ac_status=$? |
| 6986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6987 | (exit $ac_status); }; }; then |
| 6988 | ac_hi=-1 ac_mid=-1 |
| 6989 | while :; do |
| 6990 | cat >conftest.$ac_ext <<_ACEOF |
| 6991 | #line $LINENO "configure" |
| 6992 | #include "confdefs.h" |
| 6993 | $ac_includes_default |
| 6994 | #ifdef F77_DUMMY_MAIN |
| 6995 | # ifdef __cplusplus |
| 6996 | extern "C" |
| 6997 | # endif |
| 6998 | int F77_DUMMY_MAIN() { return 1; } |
| 6999 | #endif |
| 7000 | int |
| 7001 | main () |
| 7002 | { |
| 7003 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)]; |
| 7004 | test_array [0] = 0 |
| 7005 | |
| 7006 | ; |
| 7007 | return 0; |
| 7008 | } |
| 7009 | _ACEOF |
| 7010 | rm -f conftest.$ac_objext |
| 7011 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7012 | (eval $ac_compile) 2>&5 |
| 7013 | ac_status=$? |
| 7014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7015 | (exit $ac_status); } && |
| 7016 | { ac_try='test -s conftest.$ac_objext' |
| 7017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7018 | (eval $ac_try) 2>&5 |
| 7019 | ac_status=$? |
| 7020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7021 | (exit $ac_status); }; }; then |
| 7022 | ac_lo=$ac_mid; break |
| 7023 | else |
| 7024 | echo "$as_me: failed program was:" >&5 |
| 7025 | cat conftest.$ac_ext >&5 |
| 7026 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7027 | if test $ac_mid -le $ac_hi; then |
| 7028 | ac_lo= ac_hi= |
| 7029 | break |
| 7030 | fi |
| 7031 | ac_mid=`expr 2 '*' $ac_mid` |
| 7032 | fi |
| 7033 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7034 | done |
| 7035 | else |
| 7036 | echo "$as_me: failed program was:" >&5 |
| 7037 | cat conftest.$ac_ext >&5 |
| 7038 | ac_lo= ac_hi= |
| 7039 | fi |
| 7040 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7041 | fi |
| 7042 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7043 | # Binary search between lo and hi bounds. |
| 7044 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7045 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7046 | cat >conftest.$ac_ext <<_ACEOF |
| 7047 | #line $LINENO "configure" |
| 7048 | #include "confdefs.h" |
| 7049 | $ac_includes_default |
| 7050 | #ifdef F77_DUMMY_MAIN |
| 7051 | # ifdef __cplusplus |
| 7052 | extern "C" |
| 7053 | # endif |
| 7054 | int F77_DUMMY_MAIN() { return 1; } |
| 7055 | #endif |
| 7056 | int |
| 7057 | main () |
| 7058 | { |
| 7059 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 7060 | test_array [0] = 0 |
| 7061 | |
| 7062 | ; |
| 7063 | return 0; |
| 7064 | } |
| 7065 | _ACEOF |
| 7066 | rm -f conftest.$ac_objext |
| 7067 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7068 | (eval $ac_compile) 2>&5 |
| 7069 | ac_status=$? |
| 7070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7071 | (exit $ac_status); } && |
| 7072 | { ac_try='test -s conftest.$ac_objext' |
| 7073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7074 | (eval $ac_try) 2>&5 |
| 7075 | ac_status=$? |
| 7076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7077 | (exit $ac_status); }; }; then |
| 7078 | ac_hi=$ac_mid |
| 7079 | else |
| 7080 | echo "$as_me: failed program was:" >&5 |
| 7081 | cat conftest.$ac_ext >&5 |
| 7082 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7083 | fi |
| 7084 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7085 | done |
| 7086 | case $ac_lo in |
| 7087 | ?*) ac_cv_sizeof_double=$ac_lo;; |
| 7088 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5 |
| 7089 | echo "$as_me: error: cannot compute sizeof (double), 77" >&2;} |
| 7090 | { (exit 1); exit 1; }; } ;; |
| 7091 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7092 | else |
| 7093 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7094 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7095 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7096 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7097 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7098 | cat >conftest.$ac_ext <<_ACEOF |
| 7099 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7100 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7101 | $ac_includes_default |
| 7102 | long longval () { return (long) (sizeof (double)); } |
| 7103 | unsigned long ulongval () { return (long) (sizeof (double)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7104 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7105 | #include <stdlib.h> |
| 7106 | #ifdef F77_DUMMY_MAIN |
| 7107 | # ifdef __cplusplus |
| 7108 | extern "C" |
| 7109 | # endif |
| 7110 | int F77_DUMMY_MAIN() { return 1; } |
| 7111 | #endif |
| 7112 | int |
| 7113 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7114 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7115 | |
| 7116 | FILE *f = fopen ("conftest.val", "w"); |
| 7117 | if (! f) |
| 7118 | exit (1); |
| 7119 | if (((long) (sizeof (double))) < 0) |
| 7120 | { |
| 7121 | long i = longval (); |
| 7122 | if (i != ((long) (sizeof (double)))) |
| 7123 | exit (1); |
| 7124 | fprintf (f, "%ld\n", i); |
| 7125 | } |
| 7126 | else |
| 7127 | { |
| 7128 | unsigned long i = ulongval (); |
| 7129 | if (i != ((long) (sizeof (double)))) |
| 7130 | exit (1); |
| 7131 | fprintf (f, "%lu\n", i); |
| 7132 | } |
| 7133 | exit (ferror (f) || fclose (f) != 0); |
| 7134 | |
| 7135 | ; |
| 7136 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7137 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7138 | _ACEOF |
| 7139 | rm -f conftest$ac_exeext |
| 7140 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7141 | (eval $ac_link) 2>&5 |
| 7142 | ac_status=$? |
| 7143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7144 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7146 | (eval $ac_try) 2>&5 |
| 7147 | ac_status=$? |
| 7148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7149 | (exit $ac_status); }; }; then |
| 7150 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7151 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7152 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7153 | echo "$as_me: failed program was:" >&5 |
| 7154 | cat conftest.$ac_ext >&5 |
| 7155 | ( exit $ac_status ) |
| 7156 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5 |
| 7157 | echo "$as_me: error: cannot compute sizeof (double), 77" >&2;} |
| 7158 | { (exit 1); exit 1; }; } |
| 7159 | fi |
| 7160 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7161 | fi |
| 7162 | fi |
| 7163 | rm -f conftest.val |
| 7164 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7165 | ac_cv_sizeof_double=0 |
| 7166 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7167 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7168 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 7169 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6 |
| 7170 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7171 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7172 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7173 | |
| 7174 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7175 | echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 7176 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6 |
| 7177 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 7178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7179 | else |
| 7180 | cat >conftest.$ac_ext <<_ACEOF |
| 7181 | #line $LINENO "configure" |
| 7182 | #include "confdefs.h" |
| 7183 | $ac_includes_default |
| 7184 | #ifdef F77_DUMMY_MAIN |
| 7185 | # ifdef __cplusplus |
| 7186 | extern "C" |
| 7187 | # endif |
| 7188 | int F77_DUMMY_MAIN() { return 1; } |
| 7189 | #endif |
| 7190 | int |
| 7191 | main () |
| 7192 | { |
| 7193 | if ((fpos_t *) 0) |
| 7194 | return 0; |
| 7195 | if (sizeof (fpos_t)) |
| 7196 | return 0; |
| 7197 | ; |
| 7198 | return 0; |
| 7199 | } |
| 7200 | _ACEOF |
| 7201 | rm -f conftest.$ac_objext |
| 7202 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7203 | (eval $ac_compile) 2>&5 |
| 7204 | ac_status=$? |
| 7205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7206 | (exit $ac_status); } && |
| 7207 | { ac_try='test -s conftest.$ac_objext' |
| 7208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7209 | (eval $ac_try) 2>&5 |
| 7210 | ac_status=$? |
| 7211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7212 | (exit $ac_status); }; }; then |
| 7213 | ac_cv_type_fpos_t=yes |
| 7214 | else |
| 7215 | echo "$as_me: failed program was:" >&5 |
| 7216 | cat conftest.$ac_ext >&5 |
| 7217 | ac_cv_type_fpos_t=no |
| 7218 | fi |
| 7219 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7220 | fi |
| 7221 | echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 7222 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6 |
| 7223 | |
| 7224 | echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 7225 | echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6 |
| 7226 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| 7227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7228 | else |
| 7229 | if test "$ac_cv_type_fpos_t" = yes; then |
| 7230 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7231 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7232 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7233 | # This bug is HP SR number 8606223364. |
| 7234 | if test "$cross_compiling" = yes; then |
| 7235 | # Depending upon the size, compute the lo and hi bounds. |
| 7236 | cat >conftest.$ac_ext <<_ACEOF |
| 7237 | #line $LINENO "configure" |
| 7238 | #include "confdefs.h" |
| 7239 | $ac_includes_default |
| 7240 | #ifdef F77_DUMMY_MAIN |
| 7241 | # ifdef __cplusplus |
| 7242 | extern "C" |
| 7243 | # endif |
| 7244 | int F77_DUMMY_MAIN() { return 1; } |
| 7245 | #endif |
| 7246 | int |
| 7247 | main () |
| 7248 | { |
| 7249 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)]; |
| 7250 | test_array [0] = 0 |
| 7251 | |
| 7252 | ; |
| 7253 | return 0; |
| 7254 | } |
| 7255 | _ACEOF |
| 7256 | rm -f conftest.$ac_objext |
| 7257 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7258 | (eval $ac_compile) 2>&5 |
| 7259 | ac_status=$? |
| 7260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7261 | (exit $ac_status); } && |
| 7262 | { ac_try='test -s conftest.$ac_objext' |
| 7263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7264 | (eval $ac_try) 2>&5 |
| 7265 | ac_status=$? |
| 7266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7267 | (exit $ac_status); }; }; then |
| 7268 | ac_lo=0 ac_mid=0 |
| 7269 | while :; do |
| 7270 | cat >conftest.$ac_ext <<_ACEOF |
| 7271 | #line $LINENO "configure" |
| 7272 | #include "confdefs.h" |
| 7273 | $ac_includes_default |
| 7274 | #ifdef F77_DUMMY_MAIN |
| 7275 | # ifdef __cplusplus |
| 7276 | extern "C" |
| 7277 | # endif |
| 7278 | int F77_DUMMY_MAIN() { return 1; } |
| 7279 | #endif |
| 7280 | int |
| 7281 | main () |
| 7282 | { |
| 7283 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 7284 | test_array [0] = 0 |
| 7285 | |
| 7286 | ; |
| 7287 | return 0; |
| 7288 | } |
| 7289 | _ACEOF |
| 7290 | rm -f conftest.$ac_objext |
| 7291 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7292 | (eval $ac_compile) 2>&5 |
| 7293 | ac_status=$? |
| 7294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7295 | (exit $ac_status); } && |
| 7296 | { ac_try='test -s conftest.$ac_objext' |
| 7297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7298 | (eval $ac_try) 2>&5 |
| 7299 | ac_status=$? |
| 7300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7301 | (exit $ac_status); }; }; then |
| 7302 | ac_hi=$ac_mid; break |
| 7303 | else |
| 7304 | echo "$as_me: failed program was:" >&5 |
| 7305 | cat conftest.$ac_ext >&5 |
| 7306 | ac_lo=`expr $ac_mid + 1` |
| 7307 | if test $ac_lo -le $ac_mid; then |
| 7308 | ac_lo= ac_hi= |
| 7309 | break |
| 7310 | fi |
| 7311 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7312 | fi |
| 7313 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7314 | done |
| 7315 | else |
| 7316 | echo "$as_me: failed program was:" >&5 |
| 7317 | cat conftest.$ac_ext >&5 |
| 7318 | cat >conftest.$ac_ext <<_ACEOF |
| 7319 | #line $LINENO "configure" |
| 7320 | #include "confdefs.h" |
| 7321 | $ac_includes_default |
| 7322 | #ifdef F77_DUMMY_MAIN |
| 7323 | # ifdef __cplusplus |
| 7324 | extern "C" |
| 7325 | # endif |
| 7326 | int F77_DUMMY_MAIN() { return 1; } |
| 7327 | #endif |
| 7328 | int |
| 7329 | main () |
| 7330 | { |
| 7331 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)]; |
| 7332 | test_array [0] = 0 |
| 7333 | |
| 7334 | ; |
| 7335 | return 0; |
| 7336 | } |
| 7337 | _ACEOF |
| 7338 | rm -f conftest.$ac_objext |
| 7339 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7340 | (eval $ac_compile) 2>&5 |
| 7341 | ac_status=$? |
| 7342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7343 | (exit $ac_status); } && |
| 7344 | { ac_try='test -s conftest.$ac_objext' |
| 7345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7346 | (eval $ac_try) 2>&5 |
| 7347 | ac_status=$? |
| 7348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7349 | (exit $ac_status); }; }; then |
| 7350 | ac_hi=-1 ac_mid=-1 |
| 7351 | while :; do |
| 7352 | cat >conftest.$ac_ext <<_ACEOF |
| 7353 | #line $LINENO "configure" |
| 7354 | #include "confdefs.h" |
| 7355 | $ac_includes_default |
| 7356 | #ifdef F77_DUMMY_MAIN |
| 7357 | # ifdef __cplusplus |
| 7358 | extern "C" |
| 7359 | # endif |
| 7360 | int F77_DUMMY_MAIN() { return 1; } |
| 7361 | #endif |
| 7362 | int |
| 7363 | main () |
| 7364 | { |
| 7365 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)]; |
| 7366 | test_array [0] = 0 |
| 7367 | |
| 7368 | ; |
| 7369 | return 0; |
| 7370 | } |
| 7371 | _ACEOF |
| 7372 | rm -f conftest.$ac_objext |
| 7373 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7374 | (eval $ac_compile) 2>&5 |
| 7375 | ac_status=$? |
| 7376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7377 | (exit $ac_status); } && |
| 7378 | { ac_try='test -s conftest.$ac_objext' |
| 7379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7380 | (eval $ac_try) 2>&5 |
| 7381 | ac_status=$? |
| 7382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7383 | (exit $ac_status); }; }; then |
| 7384 | ac_lo=$ac_mid; break |
| 7385 | else |
| 7386 | echo "$as_me: failed program was:" >&5 |
| 7387 | cat conftest.$ac_ext >&5 |
| 7388 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7389 | if test $ac_mid -le $ac_hi; then |
| 7390 | ac_lo= ac_hi= |
| 7391 | break |
| 7392 | fi |
| 7393 | ac_mid=`expr 2 '*' $ac_mid` |
| 7394 | fi |
| 7395 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7396 | done |
| 7397 | else |
| 7398 | echo "$as_me: failed program was:" >&5 |
| 7399 | cat conftest.$ac_ext >&5 |
| 7400 | ac_lo= ac_hi= |
| 7401 | fi |
| 7402 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7403 | fi |
| 7404 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7405 | # Binary search between lo and hi bounds. |
| 7406 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7407 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7408 | cat >conftest.$ac_ext <<_ACEOF |
| 7409 | #line $LINENO "configure" |
| 7410 | #include "confdefs.h" |
| 7411 | $ac_includes_default |
| 7412 | #ifdef F77_DUMMY_MAIN |
| 7413 | # ifdef __cplusplus |
| 7414 | extern "C" |
| 7415 | # endif |
| 7416 | int F77_DUMMY_MAIN() { return 1; } |
| 7417 | #endif |
| 7418 | int |
| 7419 | main () |
| 7420 | { |
| 7421 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 7422 | test_array [0] = 0 |
| 7423 | |
| 7424 | ; |
| 7425 | return 0; |
| 7426 | } |
| 7427 | _ACEOF |
| 7428 | rm -f conftest.$ac_objext |
| 7429 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7430 | (eval $ac_compile) 2>&5 |
| 7431 | ac_status=$? |
| 7432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7433 | (exit $ac_status); } && |
| 7434 | { ac_try='test -s conftest.$ac_objext' |
| 7435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7436 | (eval $ac_try) 2>&5 |
| 7437 | ac_status=$? |
| 7438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7439 | (exit $ac_status); }; }; then |
| 7440 | ac_hi=$ac_mid |
| 7441 | else |
| 7442 | echo "$as_me: failed program was:" >&5 |
| 7443 | cat conftest.$ac_ext >&5 |
| 7444 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7445 | fi |
| 7446 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7447 | done |
| 7448 | case $ac_lo in |
| 7449 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
| 7450 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5 |
| 7451 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;} |
| 7452 | { (exit 1); exit 1; }; } ;; |
| 7453 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7454 | else |
| 7455 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7456 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7457 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7458 | { (exit 1); exit 1; }; } |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7459 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7460 | cat >conftest.$ac_ext <<_ACEOF |
| 7461 | #line $LINENO "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7462 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7463 | $ac_includes_default |
| 7464 | long longval () { return (long) (sizeof (fpos_t)); } |
| 7465 | unsigned long ulongval () { return (long) (sizeof (fpos_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7466 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7467 | #include <stdlib.h> |
| 7468 | #ifdef F77_DUMMY_MAIN |
| 7469 | # ifdef __cplusplus |
| 7470 | extern "C" |
| 7471 | # endif |
| 7472 | int F77_DUMMY_MAIN() { return 1; } |
| 7473 | #endif |
| 7474 | int |
| 7475 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7476 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7477 | |
| 7478 | FILE *f = fopen ("conftest.val", "w"); |
| 7479 | if (! f) |
| 7480 | exit (1); |
| 7481 | if (((long) (sizeof (fpos_t))) < 0) |
| 7482 | { |
| 7483 | long i = longval (); |
| 7484 | if (i != ((long) (sizeof (fpos_t)))) |
| 7485 | exit (1); |
| 7486 | fprintf (f, "%ld\n", i); |
| 7487 | } |
| 7488 | else |
| 7489 | { |
| 7490 | unsigned long i = ulongval (); |
| 7491 | if (i != ((long) (sizeof (fpos_t)))) |
| 7492 | exit (1); |
| 7493 | fprintf (f, "%lu\n", i); |
| 7494 | } |
| 7495 | exit (ferror (f) || fclose (f) != 0); |
| 7496 | |
| 7497 | ; |
| 7498 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7499 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7500 | _ACEOF |
| 7501 | rm -f conftest$ac_exeext |
| 7502 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7503 | (eval $ac_link) 2>&5 |
| 7504 | ac_status=$? |
| 7505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7506 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7508 | (eval $ac_try) 2>&5 |
| 7509 | ac_status=$? |
| 7510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7511 | (exit $ac_status); }; }; then |
| 7512 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7513 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7514 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7515 | echo "$as_me: failed program was:" >&5 |
| 7516 | cat conftest.$ac_ext >&5 |
| 7517 | ( exit $ac_status ) |
| 7518 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5 |
| 7519 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;} |
| 7520 | { (exit 1); exit 1; }; } |
| 7521 | fi |
| 7522 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7523 | fi |
| 7524 | fi |
| 7525 | rm -f conftest.val |
| 7526 | else |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7527 | ac_cv_sizeof_fpos_t=0 |
| 7528 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7529 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7530 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 7531 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6 |
| 7532 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7533 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7534 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7535 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7536 | |
| 7537 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7538 | echo "$as_me:$LINENO: checking for long long support" >&5 |
| 7539 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7540 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7541 | cat >conftest.$ac_ext <<_ACEOF |
| 7542 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7543 | #include "confdefs.h" |
| 7544 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7545 | #ifdef F77_DUMMY_MAIN |
| 7546 | # ifdef __cplusplus |
| 7547 | extern "C" |
| 7548 | # endif |
| 7549 | int F77_DUMMY_MAIN() { return 1; } |
| 7550 | #endif |
| 7551 | int |
| 7552 | main () |
| 7553 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7554 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7555 | ; |
| 7556 | return 0; |
| 7557 | } |
| 7558 | _ACEOF |
| 7559 | rm -f conftest.$ac_objext |
| 7560 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7561 | (eval $ac_compile) 2>&5 |
| 7562 | ac_status=$? |
| 7563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7564 | (exit $ac_status); } && |
| 7565 | { ac_try='test -s conftest.$ac_objext' |
| 7566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7567 | (eval $ac_try) 2>&5 |
| 7568 | ac_status=$? |
| 7569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7570 | (exit $ac_status); }; }; then |
| 7571 | |
| 7572 | |
| 7573 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7574 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7575 | _ACEOF |
| 7576 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 7577 | have_long_long=yes |
| 7578 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7579 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7580 | echo "$as_me: failed program was:" >&5 |
| 7581 | cat conftest.$ac_ext >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7582 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7583 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7584 | echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 7585 | echo "${ECHO_T}$have_long_long" >&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 7586 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7587 | echo "$as_me:$LINENO: checking for long long" >&5 |
| 7588 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 7589 | if test "${ac_cv_type_long_long+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 |
| 7596 | #ifdef F77_DUMMY_MAIN |
| 7597 | # ifdef __cplusplus |
| 7598 | extern "C" |
| 7599 | # endif |
| 7600 | int F77_DUMMY_MAIN() { return 1; } |
| 7601 | #endif |
| 7602 | int |
| 7603 | main () |
| 7604 | { |
| 7605 | if ((long long *) 0) |
| 7606 | return 0; |
| 7607 | if (sizeof (long long)) |
| 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_long_long=yes |
| 7626 | else |
| 7627 | echo "$as_me: failed program was:" >&5 |
| 7628 | cat conftest.$ac_ext >&5 |
| 7629 | ac_cv_type_long_long=no |
| 7630 | fi |
| 7631 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7632 | fi |
| 7633 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 7634 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 7635 | |
| 7636 | echo "$as_me:$LINENO: checking size of long long" >&5 |
| 7637 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 7638 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 7639 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7640 | else |
| 7641 | if test "$ac_cv_type_long_long" = 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 |
| 7652 | #ifdef F77_DUMMY_MAIN |
| 7653 | # ifdef __cplusplus |
| 7654 | extern "C" |
| 7655 | # endif |
| 7656 | int F77_DUMMY_MAIN() { return 1; } |
| 7657 | #endif |
| 7658 | int |
| 7659 | main () |
| 7660 | { |
| 7661 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 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 |
| 7686 | #ifdef F77_DUMMY_MAIN |
| 7687 | # ifdef __cplusplus |
| 7688 | extern "C" |
| 7689 | # endif |
| 7690 | int F77_DUMMY_MAIN() { return 1; } |
| 7691 | #endif |
| 7692 | int |
| 7693 | main () |
| 7694 | { |
| 7695 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $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 |
| 7734 | #ifdef F77_DUMMY_MAIN |
| 7735 | # ifdef __cplusplus |
| 7736 | extern "C" |
| 7737 | # endif |
| 7738 | int F77_DUMMY_MAIN() { return 1; } |
| 7739 | #endif |
| 7740 | int |
| 7741 | main () |
| 7742 | { |
| 7743 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 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 |
| 7768 | #ifdef F77_DUMMY_MAIN |
| 7769 | # ifdef __cplusplus |
| 7770 | extern "C" |
| 7771 | # endif |
| 7772 | int F77_DUMMY_MAIN() { return 1; } |
| 7773 | #endif |
| 7774 | int |
| 7775 | main () |
| 7776 | { |
| 7777 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $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 |
| 7824 | #ifdef F77_DUMMY_MAIN |
| 7825 | # ifdef __cplusplus |
| 7826 | extern "C" |
| 7827 | # endif |
| 7828 | int F77_DUMMY_MAIN() { return 1; } |
| 7829 | #endif |
| 7830 | int |
| 7831 | main () |
| 7832 | { |
| 7833 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $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_long_long=$ac_lo;; |
| 7862 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 7863 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 7864 | { (exit 1); exit 1; }; } ;; |
| 7865 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +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 | ec95c7b | 1998-08-04 17:59:56 +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 | ec95c7b | 1998-08-04 17:59:56 +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 (long long)); } |
| 7877 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
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> |
| 7880 | #ifdef F77_DUMMY_MAIN |
| 7881 | # ifdef __cplusplus |
| 7882 | extern "C" |
| 7883 | # endif |
| 7884 | int F77_DUMMY_MAIN() { return 1; } |
| 7885 | #endif |
| 7886 | int |
| 7887 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +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 (long long))) < 0) |
| 7894 | { |
| 7895 | long i = longval (); |
| 7896 | if (i != ((long) (sizeof (long long)))) |
| 7897 | exit (1); |
| 7898 | fprintf (f, "%ld\n", i); |
| 7899 | } |
| 7900 | else |
| 7901 | { |
| 7902 | unsigned long i = ulongval (); |
| 7903 | if (i != ((long) (sizeof (long long)))) |
| 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 | ec95c7b | 1998-08-04 17:59:56 +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_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +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 (long long), 77" >&5 |
| 7931 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 7932 | { (exit 1); exit 1; }; } |
| 7933 | fi |
| 7934 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7935 | fi |
| 7936 | fi |
| 7937 | rm -f conftest.val |
| 7938 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7939 | ac_cv_sizeof_long_long=0 |
| 7940 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +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_long_long" >&5 |
| 7943 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
| 7944 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7945 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7946 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7947 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7948 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7949 | fi |
| 7950 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7951 | echo "$as_me:$LINENO: checking for uintptr_t support" >&5 |
| 7952 | echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7953 | have_uintptr_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7954 | cat >conftest.$ac_ext <<_ACEOF |
| 7955 | #line $LINENO "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7956 | #include "confdefs.h" |
| 7957 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +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 |
| 7964 | int |
| 7965 | main () |
| 7966 | { |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7967 | uintptr_t x; x = (uintptr_t)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7968 | ; |
| 7969 | return 0; |
| 7970 | } |
| 7971 | _ACEOF |
| 7972 | rm -f conftest.$ac_objext |
| 7973 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7974 | (eval $ac_compile) 2>&5 |
| 7975 | ac_status=$? |
| 7976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7977 | (exit $ac_status); } && |
| 7978 | { ac_try='test -s conftest.$ac_objext' |
| 7979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7980 | (eval $ac_try) 2>&5 |
| 7981 | ac_status=$? |
| 7982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7983 | (exit $ac_status); }; }; then |
| 7984 | |
| 7985 | |
| 7986 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7987 | #define HAVE_UINTPTR_T 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7988 | _ACEOF |
| 7989 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 7990 | have_uintptr_t=yes |
| 7991 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7992 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7993 | echo "$as_me: failed program was:" >&5 |
| 7994 | cat conftest.$ac_ext >&5 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7995 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7996 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7997 | echo "$as_me:$LINENO: result: $have_uintptr_t" >&5 |
| 7998 | echo "${ECHO_T}$have_uintptr_t" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7999 | if test "$have_uintptr_t" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8000 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 8001 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 8002 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 8003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8004 | else |
| 8005 | cat >conftest.$ac_ext <<_ACEOF |
| 8006 | #line $LINENO "configure" |
| 8007 | #include "confdefs.h" |
| 8008 | $ac_includes_default |
| 8009 | #ifdef F77_DUMMY_MAIN |
| 8010 | # ifdef __cplusplus |
| 8011 | extern "C" |
| 8012 | # endif |
| 8013 | int F77_DUMMY_MAIN() { return 1; } |
| 8014 | #endif |
| 8015 | int |
| 8016 | main () |
| 8017 | { |
| 8018 | if ((uintptr_t *) 0) |
| 8019 | return 0; |
| 8020 | if (sizeof (uintptr_t)) |
| 8021 | return 0; |
| 8022 | ; |
| 8023 | return 0; |
| 8024 | } |
| 8025 | _ACEOF |
| 8026 | rm -f conftest.$ac_objext |
| 8027 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8028 | (eval $ac_compile) 2>&5 |
| 8029 | ac_status=$? |
| 8030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8031 | (exit $ac_status); } && |
| 8032 | { ac_try='test -s conftest.$ac_objext' |
| 8033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8034 | (eval $ac_try) 2>&5 |
| 8035 | ac_status=$? |
| 8036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8037 | (exit $ac_status); }; }; then |
| 8038 | ac_cv_type_uintptr_t=yes |
| 8039 | else |
| 8040 | echo "$as_me: failed program was:" >&5 |
| 8041 | cat conftest.$ac_ext >&5 |
| 8042 | ac_cv_type_uintptr_t=no |
| 8043 | fi |
| 8044 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8045 | fi |
| 8046 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 8047 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 8048 | |
| 8049 | echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 8050 | echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6 |
| 8051 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| 8052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8053 | else |
| 8054 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 8055 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8056 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8057 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8058 | # This bug is HP SR number 8606223364. |
| 8059 | if test "$cross_compiling" = yes; then |
| 8060 | # Depending upon the size, compute the lo and hi bounds. |
| 8061 | cat >conftest.$ac_ext <<_ACEOF |
| 8062 | #line $LINENO "configure" |
| 8063 | #include "confdefs.h" |
| 8064 | $ac_includes_default |
| 8065 | #ifdef F77_DUMMY_MAIN |
| 8066 | # ifdef __cplusplus |
| 8067 | extern "C" |
| 8068 | # endif |
| 8069 | int F77_DUMMY_MAIN() { return 1; } |
| 8070 | #endif |
| 8071 | int |
| 8072 | main () |
| 8073 | { |
| 8074 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)]; |
| 8075 | test_array [0] = 0 |
| 8076 | |
| 8077 | ; |
| 8078 | return 0; |
| 8079 | } |
| 8080 | _ACEOF |
| 8081 | rm -f conftest.$ac_objext |
| 8082 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8083 | (eval $ac_compile) 2>&5 |
| 8084 | ac_status=$? |
| 8085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8086 | (exit $ac_status); } && |
| 8087 | { ac_try='test -s conftest.$ac_objext' |
| 8088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8089 | (eval $ac_try) 2>&5 |
| 8090 | ac_status=$? |
| 8091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8092 | (exit $ac_status); }; }; then |
| 8093 | ac_lo=0 ac_mid=0 |
| 8094 | while :; do |
| 8095 | cat >conftest.$ac_ext <<_ACEOF |
| 8096 | #line $LINENO "configure" |
| 8097 | #include "confdefs.h" |
| 8098 | $ac_includes_default |
| 8099 | #ifdef F77_DUMMY_MAIN |
| 8100 | # ifdef __cplusplus |
| 8101 | extern "C" |
| 8102 | # endif |
| 8103 | int F77_DUMMY_MAIN() { return 1; } |
| 8104 | #endif |
| 8105 | int |
| 8106 | main () |
| 8107 | { |
| 8108 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 8109 | test_array [0] = 0 |
| 8110 | |
| 8111 | ; |
| 8112 | return 0; |
| 8113 | } |
| 8114 | _ACEOF |
| 8115 | rm -f conftest.$ac_objext |
| 8116 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8117 | (eval $ac_compile) 2>&5 |
| 8118 | ac_status=$? |
| 8119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8120 | (exit $ac_status); } && |
| 8121 | { ac_try='test -s conftest.$ac_objext' |
| 8122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8123 | (eval $ac_try) 2>&5 |
| 8124 | ac_status=$? |
| 8125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8126 | (exit $ac_status); }; }; then |
| 8127 | ac_hi=$ac_mid; break |
| 8128 | else |
| 8129 | echo "$as_me: failed program was:" >&5 |
| 8130 | cat conftest.$ac_ext >&5 |
| 8131 | ac_lo=`expr $ac_mid + 1` |
| 8132 | if test $ac_lo -le $ac_mid; then |
| 8133 | ac_lo= ac_hi= |
| 8134 | break |
| 8135 | fi |
| 8136 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8137 | fi |
| 8138 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8139 | done |
| 8140 | else |
| 8141 | echo "$as_me: failed program was:" >&5 |
| 8142 | cat conftest.$ac_ext >&5 |
| 8143 | cat >conftest.$ac_ext <<_ACEOF |
| 8144 | #line $LINENO "configure" |
| 8145 | #include "confdefs.h" |
| 8146 | $ac_includes_default |
| 8147 | #ifdef F77_DUMMY_MAIN |
| 8148 | # ifdef __cplusplus |
| 8149 | extern "C" |
| 8150 | # endif |
| 8151 | int F77_DUMMY_MAIN() { return 1; } |
| 8152 | #endif |
| 8153 | int |
| 8154 | main () |
| 8155 | { |
| 8156 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)]; |
| 8157 | test_array [0] = 0 |
| 8158 | |
| 8159 | ; |
| 8160 | return 0; |
| 8161 | } |
| 8162 | _ACEOF |
| 8163 | rm -f conftest.$ac_objext |
| 8164 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8165 | (eval $ac_compile) 2>&5 |
| 8166 | ac_status=$? |
| 8167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8168 | (exit $ac_status); } && |
| 8169 | { ac_try='test -s conftest.$ac_objext' |
| 8170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8171 | (eval $ac_try) 2>&5 |
| 8172 | ac_status=$? |
| 8173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8174 | (exit $ac_status); }; }; then |
| 8175 | ac_hi=-1 ac_mid=-1 |
| 8176 | while :; do |
| 8177 | cat >conftest.$ac_ext <<_ACEOF |
| 8178 | #line $LINENO "configure" |
| 8179 | #include "confdefs.h" |
| 8180 | $ac_includes_default |
| 8181 | #ifdef F77_DUMMY_MAIN |
| 8182 | # ifdef __cplusplus |
| 8183 | extern "C" |
| 8184 | # endif |
| 8185 | int F77_DUMMY_MAIN() { return 1; } |
| 8186 | #endif |
| 8187 | int |
| 8188 | main () |
| 8189 | { |
| 8190 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)]; |
| 8191 | test_array [0] = 0 |
| 8192 | |
| 8193 | ; |
| 8194 | return 0; |
| 8195 | } |
| 8196 | _ACEOF |
| 8197 | rm -f conftest.$ac_objext |
| 8198 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8199 | (eval $ac_compile) 2>&5 |
| 8200 | ac_status=$? |
| 8201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8202 | (exit $ac_status); } && |
| 8203 | { ac_try='test -s conftest.$ac_objext' |
| 8204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8205 | (eval $ac_try) 2>&5 |
| 8206 | ac_status=$? |
| 8207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8208 | (exit $ac_status); }; }; then |
| 8209 | ac_lo=$ac_mid; break |
| 8210 | else |
| 8211 | echo "$as_me: failed program was:" >&5 |
| 8212 | cat conftest.$ac_ext >&5 |
| 8213 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8214 | if test $ac_mid -le $ac_hi; then |
| 8215 | ac_lo= ac_hi= |
| 8216 | break |
| 8217 | fi |
| 8218 | ac_mid=`expr 2 '*' $ac_mid` |
| 8219 | fi |
| 8220 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8221 | done |
| 8222 | else |
| 8223 | echo "$as_me: failed program was:" >&5 |
| 8224 | cat conftest.$ac_ext >&5 |
| 8225 | ac_lo= ac_hi= |
| 8226 | fi |
| 8227 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8228 | fi |
| 8229 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8230 | # Binary search between lo and hi bounds. |
| 8231 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8232 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8233 | cat >conftest.$ac_ext <<_ACEOF |
| 8234 | #line $LINENO "configure" |
| 8235 | #include "confdefs.h" |
| 8236 | $ac_includes_default |
| 8237 | #ifdef F77_DUMMY_MAIN |
| 8238 | # ifdef __cplusplus |
| 8239 | extern "C" |
| 8240 | # endif |
| 8241 | int F77_DUMMY_MAIN() { return 1; } |
| 8242 | #endif |
| 8243 | int |
| 8244 | main () |
| 8245 | { |
| 8246 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 8247 | test_array [0] = 0 |
| 8248 | |
| 8249 | ; |
| 8250 | return 0; |
| 8251 | } |
| 8252 | _ACEOF |
| 8253 | rm -f conftest.$ac_objext |
| 8254 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8255 | (eval $ac_compile) 2>&5 |
| 8256 | ac_status=$? |
| 8257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8258 | (exit $ac_status); } && |
| 8259 | { ac_try='test -s conftest.$ac_objext' |
| 8260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8261 | (eval $ac_try) 2>&5 |
| 8262 | ac_status=$? |
| 8263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8264 | (exit $ac_status); }; }; then |
| 8265 | ac_hi=$ac_mid |
| 8266 | else |
| 8267 | echo "$as_me: failed program was:" >&5 |
| 8268 | cat conftest.$ac_ext >&5 |
| 8269 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8270 | fi |
| 8271 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8272 | done |
| 8273 | case $ac_lo in |
| 8274 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
| 8275 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5 |
| 8276 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;} |
| 8277 | { (exit 1); exit 1; }; } ;; |
| 8278 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8279 | else |
| 8280 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8281 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 8282 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 8283 | { (exit 1); exit 1; }; } |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8284 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8285 | cat >conftest.$ac_ext <<_ACEOF |
| 8286 | #line $LINENO "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8287 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8288 | $ac_includes_default |
| 8289 | long longval () { return (long) (sizeof (uintptr_t)); } |
| 8290 | unsigned long ulongval () { return (long) (sizeof (uintptr_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8291 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8292 | #include <stdlib.h> |
| 8293 | #ifdef F77_DUMMY_MAIN |
| 8294 | # ifdef __cplusplus |
| 8295 | extern "C" |
| 8296 | # endif |
| 8297 | int F77_DUMMY_MAIN() { return 1; } |
| 8298 | #endif |
| 8299 | int |
| 8300 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8301 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8302 | |
| 8303 | FILE *f = fopen ("conftest.val", "w"); |
| 8304 | if (! f) |
| 8305 | exit (1); |
| 8306 | if (((long) (sizeof (uintptr_t))) < 0) |
| 8307 | { |
| 8308 | long i = longval (); |
| 8309 | if (i != ((long) (sizeof (uintptr_t)))) |
| 8310 | exit (1); |
| 8311 | fprintf (f, "%ld\n", i); |
| 8312 | } |
| 8313 | else |
| 8314 | { |
| 8315 | unsigned long i = ulongval (); |
| 8316 | if (i != ((long) (sizeof (uintptr_t)))) |
| 8317 | exit (1); |
| 8318 | fprintf (f, "%lu\n", i); |
| 8319 | } |
| 8320 | exit (ferror (f) || fclose (f) != 0); |
| 8321 | |
| 8322 | ; |
| 8323 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8324 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8325 | _ACEOF |
| 8326 | rm -f conftest$ac_exeext |
| 8327 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8328 | (eval $ac_link) 2>&5 |
| 8329 | ac_status=$? |
| 8330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8331 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8333 | (eval $ac_try) 2>&5 |
| 8334 | ac_status=$? |
| 8335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8336 | (exit $ac_status); }; }; then |
| 8337 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8338 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8339 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8340 | echo "$as_me: failed program was:" >&5 |
| 8341 | cat conftest.$ac_ext >&5 |
| 8342 | ( exit $ac_status ) |
| 8343 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5 |
| 8344 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;} |
| 8345 | { (exit 1); exit 1; }; } |
| 8346 | fi |
| 8347 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8348 | fi |
| 8349 | fi |
| 8350 | rm -f conftest.val |
| 8351 | else |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8352 | ac_cv_sizeof_uintptr_t=0 |
| 8353 | fi |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8354 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8355 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 8356 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6 |
| 8357 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8358 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8359 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8360 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8361 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8362 | fi |
| 8363 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8364 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8365 | echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 8366 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 |
| 8367 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 8368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8369 | else |
| 8370 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 8371 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8372 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8373 | cat >conftest.$ac_ext <<_ACEOF |
| 8374 | #line $LINENO "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8375 | #include "confdefs.h" |
| 8376 | #include <stdio.h> |
| 8377 | #include <sys/types.h> |
| 8378 | main() |
| 8379 | { |
| 8380 | FILE *f=fopen("conftestval", "w"); |
| 8381 | if (!f) exit(1); |
| 8382 | fprintf(f, "%d\n", sizeof(off_t)); |
| 8383 | exit(0); |
| 8384 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8385 | _ACEOF |
| 8386 | rm -f conftest$ac_exeext |
| 8387 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8388 | (eval $ac_link) 2>&5 |
| 8389 | ac_status=$? |
| 8390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8391 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8393 | (eval $ac_try) 2>&5 |
| 8394 | ac_status=$? |
| 8395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8396 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8397 | ac_cv_sizeof_off_t=`cat conftestval` |
| 8398 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8399 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8400 | echo "$as_me: failed program was:" >&5 |
| 8401 | cat conftest.$ac_ext >&5 |
| 8402 | ( exit $ac_status ) |
| 8403 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8404 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8405 | 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] | 8406 | fi |
| 8407 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8408 | fi |
| 8409 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8410 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 8411 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 |
| 8412 | |
| 8413 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8414 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8415 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8416 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8417 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8418 | echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 8419 | 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] | 8420 | if test "$have_long_long" = yes -a \ |
| 8421 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 8422 | "$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] | 8423 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8424 | cat >>confdefs.h <<\_ACEOF |
| 8425 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 8426 | _ACEOF |
| 8427 | |
| 8428 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8429 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8430 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8431 | echo "$as_me:$LINENO: result: no" >&5 |
| 8432 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8433 | fi |
| 8434 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8435 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8436 | echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 8437 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6 |
| 8438 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 8439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8440 | else |
| 8441 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 8442 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8443 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8444 | cat >conftest.$ac_ext <<_ACEOF |
| 8445 | #line $LINENO "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8446 | #include "confdefs.h" |
| 8447 | #include <stdio.h> |
| 8448 | #include <time.h> |
| 8449 | main() |
| 8450 | { |
| 8451 | FILE *f=fopen("conftestval", "w"); |
| 8452 | if (!f) exit(1); |
| 8453 | fprintf(f, "%d\n", sizeof(time_t)); |
| 8454 | exit(0); |
| 8455 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8456 | _ACEOF |
| 8457 | rm -f conftest$ac_exeext |
| 8458 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8459 | (eval $ac_link) 2>&5 |
| 8460 | ac_status=$? |
| 8461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8462 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8464 | (eval $ac_try) 2>&5 |
| 8465 | ac_status=$? |
| 8466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8467 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8468 | ac_cv_sizeof_time_t=`cat conftestval` |
| 8469 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8470 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8471 | echo "$as_me: failed program was:" >&5 |
| 8472 | cat conftest.$ac_ext >&5 |
| 8473 | ( exit $ac_status ) |
| 8474 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8475 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8476 | 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] | 8477 | fi |
| 8478 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8479 | fi |
| 8480 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8481 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 8482 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6 |
| 8483 | |
| 8484 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8485 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8486 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8487 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8488 | |
| 8489 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8490 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8491 | ac_save_cc="$CC" |
| 8492 | if test "$ac_cv_kpthread" = "yes" |
| 8493 | then CC="$CC -Kpthread" |
| 8494 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8495 | echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 8496 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8497 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8498 | cat >conftest.$ac_ext <<_ACEOF |
| 8499 | #line $LINENO "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8500 | #include "confdefs.h" |
| 8501 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8502 | #ifdef F77_DUMMY_MAIN |
| 8503 | # ifdef __cplusplus |
| 8504 | extern "C" |
| 8505 | # endif |
| 8506 | int F77_DUMMY_MAIN() { return 1; } |
| 8507 | #endif |
| 8508 | int |
| 8509 | main () |
| 8510 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 8511 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8512 | ; |
| 8513 | return 0; |
| 8514 | } |
| 8515 | _ACEOF |
| 8516 | rm -f conftest.$ac_objext |
| 8517 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8518 | (eval $ac_compile) 2>&5 |
| 8519 | ac_status=$? |
| 8520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8521 | (exit $ac_status); } && |
| 8522 | { ac_try='test -s conftest.$ac_objext' |
| 8523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8524 | (eval $ac_try) 2>&5 |
| 8525 | ac_status=$? |
| 8526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8527 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8528 | have_pthread_t=yes |
| 8529 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8530 | echo "$as_me: failed program was:" >&5 |
| 8531 | cat conftest.$ac_ext >&5 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8532 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8533 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8534 | echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 8535 | echo "${ECHO_T}$have_pthread_t" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8536 | if test "$have_pthread_t" = yes ; then |
| 8537 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8538 | echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 8539 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6 |
| 8540 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 8541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8542 | else |
| 8543 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 8544 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8545 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8546 | cat >conftest.$ac_ext <<_ACEOF |
| 8547 | #line $LINENO "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8548 | #include "confdefs.h" |
| 8549 | #include <stdio.h> |
| 8550 | #include <pthread.h> |
| 8551 | main() |
| 8552 | { |
| 8553 | FILE *f=fopen("conftestval", "w"); |
| 8554 | if (!f) exit(1); |
| 8555 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 8556 | exit(0); |
| 8557 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8558 | _ACEOF |
| 8559 | rm -f conftest$ac_exeext |
| 8560 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8561 | (eval $ac_link) 2>&5 |
| 8562 | ac_status=$? |
| 8563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8564 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 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 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8570 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 8571 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8572 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8573 | echo "$as_me: failed program was:" >&5 |
| 8574 | cat conftest.$ac_ext >&5 |
| 8575 | ( exit $ac_status ) |
| 8576 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8577 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8578 | 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] | 8579 | fi |
| 8580 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8581 | fi |
| 8582 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8583 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 8584 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6 |
| 8585 | |
| 8586 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8587 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8588 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8589 | |
| 8590 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8591 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8592 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8593 | echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 8594 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8595 | # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given. |
| 8596 | if test "${enable_toolbox_glue+set}" = set; then |
| 8597 | enableval="$enable_toolbox_glue" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8598 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8599 | fi; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8600 | |
| 8601 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8602 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8603 | case $ac_sys_system/$ac_sys_release in |
| 8604 | Darwin/*) |
| 8605 | enable_toolbox_glue="yes";; |
| 8606 | *) |
| 8607 | enable_toolbox_glue="no";; |
| 8608 | esac |
| 8609 | fi |
| 8610 | case "$enable_toolbox_glue" in |
| 8611 | yes) |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 8612 | extra_frameworks="-framework CoreServices -framework Foundation" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8613 | extra_machdep_objs="Python/mactoolboxglue.o" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 8614 | extra_undefs="-u __dummy -u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8615 | |
| 8616 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8617 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8618 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8619 | |
| 8620 | ;; |
| 8621 | *) |
| 8622 | extra_frameworks="" |
| 8623 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 8624 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8625 | ;; |
| 8626 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8627 | echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 8628 | echo "${ECHO_T}$enable_toolbox_glue" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8629 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8630 | |
| 8631 | case $ac_sys_system/$ac_sys_release in |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8632 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8633 | ns_undef_sym='_environ' |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8634 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc -U $ns_undef_sym" |
| 8635 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8636 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' |
| 8637 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 8638 | Darwin/*) |
| 8639 | ns_undef_sym='_environ' |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8640 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc -flat_namespace -U $ns_undef_sym" |
| 8641 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8642 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' |
| 8643 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8644 | esac |
| 8645 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8646 | echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 8647 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8648 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8649 | then |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 8650 | OPT="$OPT -fno-common -dynamic" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8651 | # -U __environ is needed since bundles don't have access |
| 8652 | # to crt0 when built but will always be linked against it |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8653 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8654 | # in the build location. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8655 | |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8656 | case $ac_sys_system/$ac_sys_release in |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8657 | Darwin/1.3*)LDFLAGS="$LDFLAGS -Wl,-F. -Wl,-U,$ns_undef_sym";; |
| 8658 | Darwin/*)LDFLAGS="$LDFLAGS -Wl,-F. -Wl,-flat_namespace,-U,$ns_undef_sym";; |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8659 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8660 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8661 | cat >>confdefs.h <<\_ACEOF |
| 8662 | #define WITH_NEXT_FRAMEWORK 1 |
| 8663 | _ACEOF |
| 8664 | |
| 8665 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8666 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8667 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8668 | echo "$as_me:$LINENO: result: no" >&5 |
| 8669 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8670 | fi |
| 8671 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8672 | echo "$as_me:$LINENO: checking for dyld" >&5 |
| 8673 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8674 | case $ac_sys_system/$ac_sys_release in |
| 8675 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8676 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8677 | cat >>confdefs.h <<\_ACEOF |
| 8678 | #define WITH_DYLD 1 |
| 8679 | _ACEOF |
| 8680 | |
| 8681 | echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 8682 | echo "${ECHO_T}always on for Darwin" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8683 | ;; |
| 8684 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8685 | echo "$as_me:$LINENO: result: no" >&5 |
| 8686 | echo "${ECHO_T}no" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8687 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8688 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8689 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8690 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8691 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8692 | |
| 8693 | |
| 8694 | |
| 8695 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8696 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 8697 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8698 | echo "$as_me:$LINENO: checking SO" >&5 |
| 8699 | echo $ECHO_N "checking SO... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8700 | if test -z "$SO" |
| 8701 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8702 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 8703 | hp*|HP*) SO=.sl;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 8704 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 8705 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8706 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8707 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8708 | echo "$as_me:$LINENO: result: $SO" >&5 |
| 8709 | echo "${ECHO_T}$SO" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8710 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 5b718fc | 2001-09-10 15:34:42 +0000 | [diff] [blame] | 8711 | # -- "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] | 8712 | # (Shared libraries in this instance are shared modules to be loaded into |
| 8713 | # 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] | 8714 | echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 8715 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8716 | if test -z "$LDSHARED" |
| 8717 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8718 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8719 | AIX*) |
| 8720 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 8721 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8722 | ;; |
| 8723 | BeOS*) |
| 8724 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 8725 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8726 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8727 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 8728 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8729 | SunOS/4*) LDSHARED="ld";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8730 | SunOS/5*) |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 8731 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 8732 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | 5b718fc | 2001-09-10 15:34:42 +0000 | [diff] [blame] | 8733 | else LDSHARED="$(CC) -G"; |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 8734 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8735 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8736 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 8737 | DYNIX/ptx*) LDSHARED="ld -G";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8738 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8739 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 8740 | if test "$enable_framework" ; then |
| 8741 | # Link against the framework. All externals should be defined. |
| 8742 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 8743 | else |
| 8744 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8745 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8746 | fi ;; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8747 | Darwin/*) |
| 8748 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 8749 | if test "$enable_framework" ; then |
| 8750 | # Link against the framework. All externals should be defined. |
| 8751 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 8752 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 8753 | # No framework, use the Python app as bundle-loader |
| 8754 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 8755 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/$(PYTHON)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8756 | fi ;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8757 | Linux*|GNU*) LDSHARED="gcc -shared";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 8758 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 8759 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 8760 | OpenBSD*|NetBSD*|FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 8761 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 8762 | then |
| 8763 | LDSHARED="cc -shared ${LDFLAGS}" |
| 8764 | else |
| 8765 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 8766 | fi;; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8767 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8768 | if test "$GCC" = "yes" |
| 8769 | then LDSHARED="$(CC) -shared" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8770 | else LDSHARED="$(CC) -G" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8771 | fi;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 8772 | SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8773 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 8774 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8775 | *) LDSHARED="ld";; |
| 8776 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8777 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8778 | echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 8779 | echo "${ECHO_T}$LDSHARED" >&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8780 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8781 | # 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] | 8782 | # library (module) -- this is only needed for a few systems |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8783 | echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 8784 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8785 | if test -z "$CCSHARED" |
| 8786 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8787 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 8788 | SunOS*) if test "$GCC" = yes; |
| 8789 | then CCSHARED="-fPIC"; |
| 8790 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 8791 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 8792 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 8793 | else CCSHARED="+z"; |
| 8794 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8795 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 8796 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 8797 | FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8798 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8799 | if test "$GCC" = "yes" |
| 8800 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8801 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8802 | fi;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 8803 | SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8804 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8805 | IRIX*/6*) case $CC in |
| 8806 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 8807 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8808 | esac;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 8809 | CYGWIN*) CCSHARED="-DUSE_DL_IMPORT";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8810 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8811 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8812 | echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 8813 | echo "${ECHO_T}$CCSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8814 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8815 | # 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] | 8816 | echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 8817 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8818 | if test -z "$LINKFORSHARED" |
| 8819 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8820 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8821 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8822 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 8823 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 8824 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 8825 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8826 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8827 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8828 | Darwin/*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8829 | # -u __dummy makes the linker aware of the objc runtime |
| 8830 | # in System.framework; otherwise, __objcInit (referenced in |
| 8831 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 8832 | # loading of any modules which reference it in System.framework. |
| 8833 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, which is |
| 8834 | # not used by the core itself but which needs to be in the core so |
| 8835 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 8836 | LINKFORSHARED="$extra_undefs -framework System" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8837 | if test "$enable_framework" |
| 8838 | then |
| 8839 | LINKFORSHARED="$LINKFORSHARED -framework Python" |
| 8840 | fi |
| 8841 | LINKFORSHARED="$LINKFORSHARED $extra_frameworks";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8842 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 8843 | SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 8844 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8845 | FreeBSD*|NetBSD*|OpenBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 8846 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 8847 | then |
| 8848 | LINKFORSHARED="-Wl,--export-dynamic" |
| 8849 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8850 | SunOS/5*) case $CC in |
| 8851 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 8852 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 8853 | then |
| 8854 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8855 | fi;; |
| 8856 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8857 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8858 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8859 | echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 8860 | echo "${ECHO_T}$LINKFORSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8861 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8862 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8863 | echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 8864 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 8865 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 8866 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 8867 | case $ac_sys_system in |
| 8868 | CYGWIN*) |
| 8869 | # Cygwin needs CCSHARED when building extension DLLs |
| 8870 | # but not when building the interpreter DLL. |
| 8871 | CFLAGSFORSHARED='';; |
| 8872 | *) |
| 8873 | CFLAGSFORSHARED='$(CCSHARED)' |
| 8874 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 8875 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8876 | echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 8877 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 8878 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8879 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8880 | |
| 8881 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 8882 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 8883 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 8884 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8885 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8886 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8887 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8888 | cat >conftest.$ac_ext <<_ACEOF |
| 8889 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8890 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8891 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 8892 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8893 | #ifdef __cplusplus |
| 8894 | extern "C" |
| 8895 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 8896 | /* 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] | 8897 | builtin and then its argument prototype would still apply. */ |
| 8898 | char dlopen (); |
| 8899 | #ifdef F77_DUMMY_MAIN |
| 8900 | # ifdef __cplusplus |
| 8901 | extern "C" |
| 8902 | # endif |
| 8903 | int F77_DUMMY_MAIN() { return 1; } |
| 8904 | #endif |
| 8905 | int |
| 8906 | main () |
| 8907 | { |
| 8908 | dlopen (); |
| 8909 | ; |
| 8910 | return 0; |
| 8911 | } |
| 8912 | _ACEOF |
| 8913 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8914 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8915 | (eval $ac_link) 2>&5 |
| 8916 | ac_status=$? |
| 8917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8918 | (exit $ac_status); } && |
| 8919 | { ac_try='test -s conftest$ac_exeext' |
| 8920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8921 | (eval $ac_try) 2>&5 |
| 8922 | ac_status=$? |
| 8923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8924 | (exit $ac_status); }; }; then |
| 8925 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8926 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8927 | echo "$as_me: failed program was:" >&5 |
| 8928 | cat conftest.$ac_ext >&5 |
| 8929 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8930 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8931 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8932 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8933 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8934 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 8935 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 8936 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 8937 | cat >>confdefs.h <<_ACEOF |
| 8938 | #define HAVE_LIBDL 1 |
| 8939 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8940 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8941 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 8942 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8943 | fi |
| 8944 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8945 | |
| 8946 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 8947 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 8948 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 8949 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8950 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8951 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8952 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8953 | cat >conftest.$ac_ext <<_ACEOF |
| 8954 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8955 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8956 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 8957 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8958 | #ifdef __cplusplus |
| 8959 | extern "C" |
| 8960 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 8961 | /* 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] | 8962 | builtin and then its argument prototype would still apply. */ |
| 8963 | char shl_load (); |
| 8964 | #ifdef F77_DUMMY_MAIN |
| 8965 | # ifdef __cplusplus |
| 8966 | extern "C" |
| 8967 | # endif |
| 8968 | int F77_DUMMY_MAIN() { return 1; } |
| 8969 | #endif |
| 8970 | int |
| 8971 | main () |
| 8972 | { |
| 8973 | shl_load (); |
| 8974 | ; |
| 8975 | return 0; |
| 8976 | } |
| 8977 | _ACEOF |
| 8978 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8979 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8980 | (eval $ac_link) 2>&5 |
| 8981 | ac_status=$? |
| 8982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8983 | (exit $ac_status); } && |
| 8984 | { ac_try='test -s conftest$ac_exeext' |
| 8985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8986 | (eval $ac_try) 2>&5 |
| 8987 | ac_status=$? |
| 8988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8989 | (exit $ac_status); }; }; then |
| 8990 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8991 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8992 | echo "$as_me: failed program was:" >&5 |
| 8993 | cat conftest.$ac_ext >&5 |
| 8994 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8995 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8996 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8997 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8998 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8999 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9000 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 9001 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 9002 | cat >>confdefs.h <<_ACEOF |
| 9003 | #define HAVE_LIBDLD 1 |
| 9004 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9005 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9006 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9007 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9008 | fi |
| 9009 | # Dynamic linking for HP-UX |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9010 | |
| 9011 | echo "$as_me:$LINENO: checking for sem_init in -lrt" >&5 |
| 9012 | echo $ECHO_N "checking for sem_init in -lrt... $ECHO_C" >&6 |
| 9013 | if test "${ac_cv_lib_rt_sem_init+set}" = set; then |
| 9014 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9015 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9016 | ac_check_lib_save_LIBS=$LIBS |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9017 | LIBS="-lrt $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9018 | cat >conftest.$ac_ext <<_ACEOF |
| 9019 | #line $LINENO "configure" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9020 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9021 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9022 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9023 | #ifdef __cplusplus |
| 9024 | extern "C" |
| 9025 | #endif |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9026 | /* 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] | 9027 | builtin and then its argument prototype would still apply. */ |
| 9028 | char sem_init (); |
| 9029 | #ifdef F77_DUMMY_MAIN |
| 9030 | # ifdef __cplusplus |
| 9031 | extern "C" |
| 9032 | # endif |
| 9033 | int F77_DUMMY_MAIN() { return 1; } |
| 9034 | #endif |
| 9035 | int |
| 9036 | main () |
| 9037 | { |
| 9038 | sem_init (); |
| 9039 | ; |
| 9040 | return 0; |
| 9041 | } |
| 9042 | _ACEOF |
| 9043 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9044 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9045 | (eval $ac_link) 2>&5 |
| 9046 | ac_status=$? |
| 9047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9048 | (exit $ac_status); } && |
| 9049 | { ac_try='test -s conftest$ac_exeext' |
| 9050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9051 | (eval $ac_try) 2>&5 |
| 9052 | ac_status=$? |
| 9053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9054 | (exit $ac_status); }; }; then |
| 9055 | ac_cv_lib_rt_sem_init=yes |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9056 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9057 | echo "$as_me: failed program was:" >&5 |
| 9058 | cat conftest.$ac_ext >&5 |
| 9059 | ac_cv_lib_rt_sem_init=no |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9060 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9061 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9062 | LIBS=$ac_check_lib_save_LIBS |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9063 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9064 | echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sem_init" >&5 |
| 9065 | echo "${ECHO_T}$ac_cv_lib_rt_sem_init" >&6 |
| 9066 | if test $ac_cv_lib_rt_sem_init = yes; then |
| 9067 | cat >>confdefs.h <<_ACEOF |
| 9068 | #define HAVE_LIBRT 1 |
| 9069 | _ACEOF |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9070 | |
| 9071 | LIBS="-lrt $LIBS" |
| 9072 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9073 | fi |
| 9074 | # 'Real Time' functions on Solaris |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9075 | |
| 9076 | # checks for system dependent C++ extensions support |
| 9077 | case "$ac_sys_system" in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9078 | AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 9079 | echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6 |
| 9080 | cat >conftest.$ac_ext <<_ACEOF |
| 9081 | #line $LINENO "configure" |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9082 | #include "confdefs.h" |
| 9083 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9084 | #ifdef F77_DUMMY_MAIN |
| 9085 | # ifdef __cplusplus |
| 9086 | extern "C" |
| 9087 | # endif |
| 9088 | int F77_DUMMY_MAIN() { return 1; } |
| 9089 | #endif |
| 9090 | int |
| 9091 | main () |
| 9092 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9093 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9094 | ; |
| 9095 | return 0; |
| 9096 | } |
| 9097 | _ACEOF |
| 9098 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9099 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9100 | (eval $ac_link) 2>&5 |
| 9101 | ac_status=$? |
| 9102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9103 | (exit $ac_status); } && |
| 9104 | { ac_try='test -s conftest$ac_exeext' |
| 9105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9106 | (eval $ac_try) 2>&5 |
| 9107 | ac_status=$? |
| 9108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9109 | (exit $ac_status); }; }; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9110 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9111 | cat >>confdefs.h <<\_ACEOF |
| 9112 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 9113 | _ACEOF |
| 9114 | |
| 9115 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9116 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9117 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9118 | echo "$as_me: failed program was:" >&5 |
| 9119 | cat conftest.$ac_ext >&5 |
| 9120 | echo "$as_me:$LINENO: result: no" >&5 |
| 9121 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9122 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9123 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9124 | *) ;; |
| 9125 | esac |
| 9126 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9127 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
| 9128 | # However on SGI IRIX, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9129 | # BeOS' sockets are stashed in libnet. |
| 9130 | case "$ac_sys_system" in |
| 9131 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9132 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9133 | echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 9134 | echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6 |
| 9135 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 9136 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9137 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9138 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9139 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9140 | cat >conftest.$ac_ext <<_ACEOF |
| 9141 | #line $LINENO "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9142 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9143 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9144 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9145 | #ifdef __cplusplus |
| 9146 | extern "C" |
| 9147 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9148 | /* 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] | 9149 | builtin and then its argument prototype would still apply. */ |
| 9150 | char t_open (); |
| 9151 | #ifdef F77_DUMMY_MAIN |
| 9152 | # ifdef __cplusplus |
| 9153 | extern "C" |
| 9154 | # endif |
| 9155 | int F77_DUMMY_MAIN() { return 1; } |
| 9156 | #endif |
| 9157 | int |
| 9158 | main () |
| 9159 | { |
| 9160 | t_open (); |
| 9161 | ; |
| 9162 | return 0; |
| 9163 | } |
| 9164 | _ACEOF |
| 9165 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9166 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9167 | (eval $ac_link) 2>&5 |
| 9168 | ac_status=$? |
| 9169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9170 | (exit $ac_status); } && |
| 9171 | { ac_try='test -s conftest$ac_exeext' |
| 9172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9173 | (eval $ac_try) 2>&5 |
| 9174 | ac_status=$? |
| 9175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9176 | (exit $ac_status); }; }; then |
| 9177 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9178 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9179 | echo "$as_me: failed program was:" >&5 |
| 9180 | cat conftest.$ac_ext >&5 |
| 9181 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9182 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9183 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9184 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9185 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9186 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 9187 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6 |
| 9188 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9189 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9190 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 9191 | # SVR4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9192 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 9193 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 9194 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 9195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9196 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9197 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9198 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9199 | cat >conftest.$ac_ext <<_ACEOF |
| 9200 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9201 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9202 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9203 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9204 | #ifdef __cplusplus |
| 9205 | extern "C" |
| 9206 | #endif |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9207 | /* 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] | 9208 | builtin and then its argument prototype would still apply. */ |
| 9209 | char socket (); |
| 9210 | #ifdef F77_DUMMY_MAIN |
| 9211 | # ifdef __cplusplus |
| 9212 | extern "C" |
| 9213 | # endif |
| 9214 | int F77_DUMMY_MAIN() { return 1; } |
| 9215 | #endif |
| 9216 | int |
| 9217 | main () |
| 9218 | { |
| 9219 | socket (); |
| 9220 | ; |
| 9221 | return 0; |
| 9222 | } |
| 9223 | _ACEOF |
| 9224 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9225 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9226 | (eval $ac_link) 2>&5 |
| 9227 | ac_status=$? |
| 9228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9229 | (exit $ac_status); } && |
| 9230 | { ac_try='test -s conftest$ac_exeext' |
| 9231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9232 | (eval $ac_try) 2>&5 |
| 9233 | ac_status=$? |
| 9234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9235 | (exit $ac_status); }; }; then |
| 9236 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9237 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9238 | echo "$as_me: failed program was:" >&5 |
| 9239 | cat conftest.$ac_ext >&5 |
| 9240 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9241 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9242 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9243 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9244 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9245 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 9246 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 9247 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9248 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9249 | fi |
| 9250 | # SVR4 sockets |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 9251 | ;; |
| 9252 | esac |
| 9253 | case "$ac_sys_system" in |
| 9254 | BeOS*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9255 | echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 9256 | echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6 |
| 9257 | if test "${ac_cv_lib_net_socket+set}" = set; then |
| 9258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9259 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9260 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9261 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9262 | cat >conftest.$ac_ext <<_ACEOF |
| 9263 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9264 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9265 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9266 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9267 | #ifdef __cplusplus |
| 9268 | extern "C" |
| 9269 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9270 | /* 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] | 9271 | builtin and then its argument prototype would still apply. */ |
| 9272 | char socket (); |
| 9273 | #ifdef F77_DUMMY_MAIN |
| 9274 | # ifdef __cplusplus |
| 9275 | extern "C" |
| 9276 | # endif |
| 9277 | int F77_DUMMY_MAIN() { return 1; } |
| 9278 | #endif |
| 9279 | int |
| 9280 | main () |
| 9281 | { |
| 9282 | socket (); |
| 9283 | ; |
| 9284 | return 0; |
| 9285 | } |
| 9286 | _ACEOF |
| 9287 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9288 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9289 | (eval $ac_link) 2>&5 |
| 9290 | ac_status=$? |
| 9291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9292 | (exit $ac_status); } && |
| 9293 | { ac_try='test -s conftest$ac_exeext' |
| 9294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9295 | (eval $ac_try) 2>&5 |
| 9296 | ac_status=$? |
| 9297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9298 | (exit $ac_status); }; }; then |
| 9299 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9300 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9301 | echo "$as_me: failed program was:" >&5 |
| 9302 | cat conftest.$ac_ext >&5 |
| 9303 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9304 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9305 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9306 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9307 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9308 | echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 9309 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6 |
| 9310 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9311 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9312 | fi |
| 9313 | # BeOS |
| 9314 | ;; |
| 9315 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9316 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9317 | echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 9318 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6 |
| 9319 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9320 | # Check whether --with-libs or --without-libs was given. |
| 9321 | if test "${with_libs+set}" = set; then |
| 9322 | withval="$with_libs" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9323 | |
| 9324 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 9325 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9326 | LIBS="$withval $LIBS" |
| 9327 | |
| 9328 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9329 | echo "$as_me:$LINENO: result: no" >&5 |
| 9330 | echo "${ECHO_T}no" >&6 |
| 9331 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9332 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9333 | # Determine if signalmodule should be used. |
| 9334 | |
| 9335 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9336 | echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 9337 | echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6 |
| 9338 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9339 | # Check whether --with-signal-module or --without-signal-module was given. |
| 9340 | if test "${with_signal_module+set}" = set; then |
| 9341 | withval="$with_signal_module" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9342 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9343 | fi; |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9344 | |
| 9345 | if test -z "$with_signal_module" |
| 9346 | then with_signal_module="yes" |
| 9347 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9348 | echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 9349 | echo "${ECHO_T}$with_signal_module" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9350 | |
| 9351 | if test "${with_signal_module}" = "yes"; then |
| 9352 | USE_SIGNAL_MODULE="" |
| 9353 | SIGNAL_OBJS="" |
| 9354 | else |
| 9355 | USE_SIGNAL_MODULE="#" |
| 9356 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 9357 | fi |
| 9358 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 9359 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9360 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9361 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9362 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9363 | echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 9364 | echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6 |
| 9365 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9366 | |
| 9367 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 9368 | if test "${with_dec_threads+set}" = set; then |
| 9369 | withval="$with_dec_threads" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9370 | |
| 9371 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 9372 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9373 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9374 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9375 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9376 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9377 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9378 | echo "$as_me:$LINENO: result: no" >&5 |
| 9379 | echo "${ECHO_T}no" >&6 |
| 9380 | fi; |
| 9381 | |
| 9382 | # Templates for things AC_DEFINEd more than once. |
| 9383 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9384 | |
| 9385 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9386 | |
| 9387 | |
| 9388 | |
| 9389 | |
| 9390 | |
| 9391 | echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 9392 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6 |
| 9393 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9394 | # Check whether --with-threads or --without-threads was given. |
| 9395 | if test "${with_threads+set}" = set; then |
| 9396 | withval="$with_threads" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9397 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9398 | fi; |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9399 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9400 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9401 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9402 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9403 | if test "${with_thread+set}" = set; then |
| 9404 | withval="$with_thread" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9405 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9406 | with_threads=$with_thread |
| 9407 | fi; |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9408 | |
| 9409 | if test -z "$with_threads" |
| 9410 | then with_threads="yes" |
| 9411 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9412 | echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 9413 | echo "${ECHO_T}$with_threads" >&6 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9414 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9415 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9416 | if test "$with_threads" = "no" |
| 9417 | then |
| 9418 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9419 | elif test "$ac_cv_pthread_is_default" = yes |
| 9420 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9421 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9422 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9423 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9424 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9425 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9426 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9427 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9428 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9429 | |
| 9430 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9431 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9432 | elif test "$ac_cv_kpthread" = "yes" |
| 9433 | then |
| 9434 | CC="$CC -Kpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9435 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 9436 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9437 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 9438 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9439 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9440 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9441 | else |
| 9442 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 9443 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 9444 | fi |
| 9445 | if test ! -z "$withval" -a -d "$withval" |
| 9446 | then LDFLAGS="$LDFLAGS -L$withval" |
| 9447 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9448 | |
| 9449 | # According to the POSIX spec, a pthreads implementation must |
| 9450 | # 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] | 9451 | echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 9452 | echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6 |
| 9453 | cat >conftest.$ac_ext <<_ACEOF |
| 9454 | #line $LINENO "configure" |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9455 | #include "confdefs.h" |
| 9456 | #include <unistd.h> |
| 9457 | #ifdef _POSIX_THREADS |
| 9458 | yes |
| 9459 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9460 | |
| 9461 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9462 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 9463 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9464 | unistd_defines_pthreads=yes |
| 9465 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9466 | unistd_defines_pthreads=no |
| 9467 | fi |
| 9468 | rm -f conftest* |
| 9469 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9470 | echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 9471 | echo "${ECHO_T}$unistd_defines_pthreads" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9472 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9473 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 9474 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9475 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 9476 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9477 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 9478 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 9479 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 9480 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 9481 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9482 | fi |
| 9483 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 9484 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9485 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9486 | # Is the header compilable? |
| 9487 | echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 9488 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6 |
| 9489 | cat >conftest.$ac_ext <<_ACEOF |
| 9490 | #line $LINENO "configure" |
| 9491 | #include "confdefs.h" |
| 9492 | $ac_includes_default |
| 9493 | #include <cthreads.h> |
| 9494 | _ACEOF |
| 9495 | rm -f conftest.$ac_objext |
| 9496 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9497 | (eval $ac_compile) 2>&5 |
| 9498 | ac_status=$? |
| 9499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9500 | (exit $ac_status); } && |
| 9501 | { ac_try='test -s conftest.$ac_objext' |
| 9502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9503 | (eval $ac_try) 2>&5 |
| 9504 | ac_status=$? |
| 9505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9506 | (exit $ac_status); }; }; then |
| 9507 | ac_header_compiler=yes |
| 9508 | else |
| 9509 | echo "$as_me: failed program was:" >&5 |
| 9510 | cat conftest.$ac_ext >&5 |
| 9511 | ac_header_compiler=no |
| 9512 | fi |
| 9513 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9514 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9515 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9516 | |
| 9517 | # Is the header present? |
| 9518 | echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 9519 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6 |
| 9520 | cat >conftest.$ac_ext <<_ACEOF |
| 9521 | #line $LINENO "configure" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9522 | #include "confdefs.h" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9523 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9524 | _ACEOF |
| 9525 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9526 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9527 | ac_status=$? |
| 9528 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 9529 | rm -f conftest.er1 |
| 9530 | cat conftest.err >&5 |
| 9531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9532 | (exit $ac_status); } >/dev/null; then |
| 9533 | if test -s conftest.err; then |
| 9534 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9535 | else |
| 9536 | ac_cpp_err= |
| 9537 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9538 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9539 | ac_cpp_err=yes |
| 9540 | fi |
| 9541 | if test -z "$ac_cpp_err"; then |
| 9542 | ac_header_preproc=yes |
| 9543 | else |
| 9544 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9545 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9546 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9547 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9548 | rm -f conftest.err conftest.$ac_ext |
| 9549 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9550 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9551 | |
| 9552 | # So? What about this header? |
| 9553 | case $ac_header_compiler:$ac_header_preproc in |
| 9554 | yes:no ) |
| 9555 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9556 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9557 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 9558 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 9559 | no:yes ) |
| 9560 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 9561 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 9562 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 9563 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 9564 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 9565 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 9566 | esac |
| 9567 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 9568 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 9569 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 9570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9571 | else |
| 9572 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9573 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9574 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 9575 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
| 9576 | |
| 9577 | fi |
| 9578 | if test $ac_cv_header_cthreads_h = yes; then |
| 9579 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9580 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9581 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9582 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9583 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9584 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9585 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9586 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9587 | |
| 9588 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9589 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9590 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9591 | |
| 9592 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9593 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9594 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9595 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9596 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 9597 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 9598 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 9599 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 9600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9601 | fi |
| 9602 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 9603 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9604 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9605 | # Is the header compilable? |
| 9606 | echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 9607 | echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6 |
| 9608 | cat >conftest.$ac_ext <<_ACEOF |
| 9609 | #line $LINENO "configure" |
| 9610 | #include "confdefs.h" |
| 9611 | $ac_includes_default |
| 9612 | #include <mach/cthreads.h> |
| 9613 | _ACEOF |
| 9614 | rm -f conftest.$ac_objext |
| 9615 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9616 | (eval $ac_compile) 2>&5 |
| 9617 | ac_status=$? |
| 9618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9619 | (exit $ac_status); } && |
| 9620 | { ac_try='test -s conftest.$ac_objext' |
| 9621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9622 | (eval $ac_try) 2>&5 |
| 9623 | ac_status=$? |
| 9624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9625 | (exit $ac_status); }; }; then |
| 9626 | ac_header_compiler=yes |
| 9627 | else |
| 9628 | echo "$as_me: failed program was:" >&5 |
| 9629 | cat conftest.$ac_ext >&5 |
| 9630 | ac_header_compiler=no |
| 9631 | fi |
| 9632 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9633 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9634 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9635 | |
| 9636 | # Is the header present? |
| 9637 | echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 9638 | echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6 |
| 9639 | cat >conftest.$ac_ext <<_ACEOF |
| 9640 | #line $LINENO "configure" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9641 | #include "confdefs.h" |
| 9642 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9643 | _ACEOF |
| 9644 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9645 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9646 | ac_status=$? |
| 9647 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 9648 | rm -f conftest.er1 |
| 9649 | cat conftest.err >&5 |
| 9650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9651 | (exit $ac_status); } >/dev/null; then |
| 9652 | if test -s conftest.err; then |
| 9653 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9654 | else |
| 9655 | ac_cpp_err= |
| 9656 | fi |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9657 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9658 | ac_cpp_err=yes |
| 9659 | fi |
| 9660 | if test -z "$ac_cpp_err"; then |
| 9661 | ac_header_preproc=yes |
| 9662 | else |
| 9663 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9664 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9665 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9666 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9667 | rm -f conftest.err conftest.$ac_ext |
| 9668 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9669 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9670 | |
| 9671 | # So? What about this header? |
| 9672 | case $ac_header_compiler:$ac_header_preproc in |
| 9673 | yes:no ) |
| 9674 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9675 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9676 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 9677 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 9678 | no:yes ) |
| 9679 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 9680 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 9681 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 9682 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 9683 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 9684 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 9685 | esac |
| 9686 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 9687 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 9688 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 9689 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9690 | else |
| 9691 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9692 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9693 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 9694 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
| 9695 | |
| 9696 | fi |
| 9697 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 9698 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9699 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9700 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9701 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9702 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9703 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9704 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9705 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9706 | |
| 9707 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9708 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9709 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9710 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9711 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9712 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9713 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9714 | echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 9715 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6 |
| 9716 | |
| 9717 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9718 | if test "${with_pth+set}" = set; then |
| 9719 | withval="$with_pth" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9720 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9721 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 9722 | echo "${ECHO_T}$withval" >&6 |
| 9723 | cat >>confdefs.h <<\_ACEOF |
| 9724 | #define WITH_THREAD 1 |
| 9725 | _ACEOF |
| 9726 | |
| 9727 | |
| 9728 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9729 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9730 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9731 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9732 | LIBS="-lpth $LIBS" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9733 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9734 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9735 | |
| 9736 | echo "$as_me:$LINENO: result: no" >&5 |
| 9737 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9738 | |
| 9739 | # Just looking for pthread_create in libpthread is not enough: |
| 9740 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 9741 | # So we really have to include pthread.h, and then link. |
| 9742 | _libs=$LIBS |
| 9743 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9744 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 9745 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 9746 | cat >conftest.$ac_ext <<_ACEOF |
| 9747 | #line $LINENO "configure" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9748 | #include "confdefs.h" |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9749 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9750 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9751 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9752 | #ifdef F77_DUMMY_MAIN |
| 9753 | # ifdef __cplusplus |
| 9754 | extern "C" |
| 9755 | # endif |
| 9756 | int F77_DUMMY_MAIN() { return 1; } |
| 9757 | #endif |
| 9758 | int |
| 9759 | main () |
| 9760 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9761 | |
| 9762 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9763 | ; |
| 9764 | return 0; |
| 9765 | } |
| 9766 | _ACEOF |
| 9767 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9768 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9769 | (eval $ac_link) 2>&5 |
| 9770 | ac_status=$? |
| 9771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9772 | (exit $ac_status); } && |
| 9773 | { ac_try='test -s conftest$ac_exeext' |
| 9774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9775 | (eval $ac_try) 2>&5 |
| 9776 | ac_status=$? |
| 9777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9778 | (exit $ac_status); }; }; then |
| 9779 | |
| 9780 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9781 | echo "${ECHO_T}yes" >&6 |
| 9782 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9783 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9784 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9785 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9786 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9787 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9788 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9789 | echo "$as_me: failed program was:" >&5 |
| 9790 | cat conftest.$ac_ext >&5 |
| 9791 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9792 | LIBS=$_libs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9793 | echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 9794 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6 |
| 9795 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 9796 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9797 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9798 | cat >conftest.$ac_ext <<_ACEOF |
| 9799 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9800 | #include "confdefs.h" |
| 9801 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9802 | which can conflict with char pthread_detach (); below. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9803 | #include <assert.h> |
| 9804 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9805 | #ifdef __cplusplus |
| 9806 | extern "C" |
| 9807 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9808 | /* 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] | 9809 | builtin and then its argument prototype would still apply. */ |
| 9810 | char pthread_detach (); |
| 9811 | char (*f) (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9812 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9813 | #ifdef F77_DUMMY_MAIN |
| 9814 | # ifdef __cplusplus |
| 9815 | extern "C" |
| 9816 | # endif |
| 9817 | int F77_DUMMY_MAIN() { return 1; } |
| 9818 | #endif |
| 9819 | int |
| 9820 | main () |
| 9821 | { |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9822 | /* The GNU C library defines this for functions which it implements |
| 9823 | to always fail with ENOSYS. Some functions are actually named |
| 9824 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 9825 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9826 | choke me |
| 9827 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9828 | f = pthread_detach; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9829 | #endif |
| 9830 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9831 | ; |
| 9832 | return 0; |
| 9833 | } |
| 9834 | _ACEOF |
| 9835 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9836 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9837 | (eval $ac_link) 2>&5 |
| 9838 | ac_status=$? |
| 9839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9840 | (exit $ac_status); } && |
| 9841 | { ac_try='test -s conftest$ac_exeext' |
| 9842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9843 | (eval $ac_try) 2>&5 |
| 9844 | ac_status=$? |
| 9845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9846 | (exit $ac_status); }; }; then |
| 9847 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9848 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9849 | echo "$as_me: failed program was:" >&5 |
| 9850 | cat conftest.$ac_ext >&5 |
| 9851 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9852 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9853 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9854 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9855 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 9856 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6 |
| 9857 | if test $ac_cv_func_pthread_detach = yes; then |
| 9858 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9859 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9860 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9861 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9862 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9863 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9864 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9865 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9866 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 9867 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 9868 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 9869 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 9870 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9871 | fi |
| 9872 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 9873 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9874 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9875 | # Is the header compilable? |
| 9876 | echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 9877 | echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6 |
| 9878 | cat >conftest.$ac_ext <<_ACEOF |
| 9879 | #line $LINENO "configure" |
| 9880 | #include "confdefs.h" |
| 9881 | $ac_includes_default |
| 9882 | #include <kernel/OS.h> |
| 9883 | _ACEOF |
| 9884 | rm -f conftest.$ac_objext |
| 9885 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9886 | (eval $ac_compile) 2>&5 |
| 9887 | ac_status=$? |
| 9888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9889 | (exit $ac_status); } && |
| 9890 | { ac_try='test -s conftest.$ac_objext' |
| 9891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9892 | (eval $ac_try) 2>&5 |
| 9893 | ac_status=$? |
| 9894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9895 | (exit $ac_status); }; }; then |
| 9896 | ac_header_compiler=yes |
| 9897 | else |
| 9898 | echo "$as_me: failed program was:" >&5 |
| 9899 | cat conftest.$ac_ext >&5 |
| 9900 | ac_header_compiler=no |
| 9901 | fi |
| 9902 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9903 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9904 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9905 | |
| 9906 | # Is the header present? |
| 9907 | echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 9908 | echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6 |
| 9909 | cat >conftest.$ac_ext <<_ACEOF |
| 9910 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9911 | #include "confdefs.h" |
| 9912 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9913 | _ACEOF |
| 9914 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9915 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9916 | ac_status=$? |
| 9917 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 9918 | rm -f conftest.er1 |
| 9919 | cat conftest.err >&5 |
| 9920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9921 | (exit $ac_status); } >/dev/null; then |
| 9922 | if test -s conftest.err; then |
| 9923 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9924 | else |
| 9925 | ac_cpp_err= |
| 9926 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9927 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9928 | ac_cpp_err=yes |
| 9929 | fi |
| 9930 | if test -z "$ac_cpp_err"; then |
| 9931 | ac_header_preproc=yes |
| 9932 | else |
| 9933 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9934 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9935 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9936 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9937 | rm -f conftest.err conftest.$ac_ext |
| 9938 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9939 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9940 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9941 | # So? What about this header? |
| 9942 | case $ac_header_compiler:$ac_header_preproc in |
| 9943 | yes:no ) |
| 9944 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9945 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9946 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 9947 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};; |
| 9948 | no:yes ) |
| 9949 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 9950 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
| 9951 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 9952 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 9953 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 9954 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};; |
| 9955 | esac |
| 9956 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 9957 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 9958 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 9959 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9960 | else |
| 9961 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 9962 | fi |
| 9963 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 9964 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
| 9965 | |
| 9966 | fi |
| 9967 | if test $ac_cv_header_kernel_OS_h = yes; then |
| 9968 | cat >>confdefs.h <<\_ACEOF |
| 9969 | #define WITH_THREAD 1 |
| 9970 | _ACEOF |
| 9971 | |
| 9972 | |
| 9973 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9974 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9975 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9976 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9977 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9978 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9979 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9980 | echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 9981 | echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6 |
| 9982 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 9983 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9984 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9985 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9986 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9987 | cat >conftest.$ac_ext <<_ACEOF |
| 9988 | #line $LINENO "configure" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9989 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9990 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9991 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9992 | #ifdef __cplusplus |
| 9993 | extern "C" |
| 9994 | #endif |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9995 | /* 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] | 9996 | builtin and then its argument prototype would still apply. */ |
| 9997 | char pthread_create (); |
| 9998 | #ifdef F77_DUMMY_MAIN |
| 9999 | # ifdef __cplusplus |
| 10000 | extern "C" |
| 10001 | # endif |
| 10002 | int F77_DUMMY_MAIN() { return 1; } |
| 10003 | #endif |
| 10004 | int |
| 10005 | main () |
| 10006 | { |
| 10007 | pthread_create (); |
| 10008 | ; |
| 10009 | return 0; |
| 10010 | } |
| 10011 | _ACEOF |
| 10012 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10013 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10014 | (eval $ac_link) 2>&5 |
| 10015 | ac_status=$? |
| 10016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10017 | (exit $ac_status); } && |
| 10018 | { ac_try='test -s conftest$ac_exeext' |
| 10019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10020 | (eval $ac_try) 2>&5 |
| 10021 | ac_status=$? |
| 10022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10023 | (exit $ac_status); }; }; then |
| 10024 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10025 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10026 | echo "$as_me: failed program was:" >&5 |
| 10027 | cat conftest.$ac_ext >&5 |
| 10028 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10029 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10030 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10031 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10032 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10033 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 10034 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6 |
| 10035 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 10036 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10037 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10038 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10039 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10040 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10041 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10042 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10043 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10044 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10045 | echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 10046 | echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 |
| 10047 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 10048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10049 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10050 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10051 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10052 | cat >conftest.$ac_ext <<_ACEOF |
| 10053 | #line $LINENO "configure" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10054 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10055 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10056 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10057 | #ifdef __cplusplus |
| 10058 | extern "C" |
| 10059 | #endif |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10060 | /* 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] | 10061 | builtin and then its argument prototype would still apply. */ |
| 10062 | char pthread_create (); |
| 10063 | #ifdef F77_DUMMY_MAIN |
| 10064 | # ifdef __cplusplus |
| 10065 | extern "C" |
| 10066 | # endif |
| 10067 | int F77_DUMMY_MAIN() { return 1; } |
| 10068 | #endif |
| 10069 | int |
| 10070 | main () |
| 10071 | { |
| 10072 | pthread_create (); |
| 10073 | ; |
| 10074 | return 0; |
| 10075 | } |
| 10076 | _ACEOF |
| 10077 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10078 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10079 | (eval $ac_link) 2>&5 |
| 10080 | ac_status=$? |
| 10081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10082 | (exit $ac_status); } && |
| 10083 | { ac_try='test -s conftest$ac_exeext' |
| 10084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10085 | (eval $ac_try) 2>&5 |
| 10086 | ac_status=$? |
| 10087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10088 | (exit $ac_status); }; }; then |
| 10089 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10090 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10091 | echo "$as_me: failed program was:" >&5 |
| 10092 | cat conftest.$ac_ext >&5 |
| 10093 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10094 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10095 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10096 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10097 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10098 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 10099 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 |
| 10100 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 10101 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10102 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10103 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10104 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10105 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10106 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10107 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10108 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10109 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10110 | echo "$as_me:$LINENO: checking for __d6_pthread_create in -lthread" >&5 |
| 10111 | echo $ECHO_N "checking for __d6_pthread_create in -lthread... $ECHO_C" >&6 |
| 10112 | if test "${ac_cv_lib_thread___d6_pthread_create+set}" = set; then |
| 10113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10114 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10115 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10116 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10117 | cat >conftest.$ac_ext <<_ACEOF |
| 10118 | #line $LINENO "configure" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10119 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10120 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10121 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10122 | #ifdef __cplusplus |
| 10123 | extern "C" |
| 10124 | #endif |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10125 | /* 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] | 10126 | builtin and then its argument prototype would still apply. */ |
| 10127 | char __d6_pthread_create (); |
| 10128 | #ifdef F77_DUMMY_MAIN |
| 10129 | # ifdef __cplusplus |
| 10130 | extern "C" |
| 10131 | # endif |
| 10132 | int F77_DUMMY_MAIN() { return 1; } |
| 10133 | #endif |
| 10134 | int |
| 10135 | main () |
| 10136 | { |
| 10137 | __d6_pthread_create (); |
| 10138 | ; |
| 10139 | return 0; |
| 10140 | } |
| 10141 | _ACEOF |
| 10142 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10143 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10144 | (eval $ac_link) 2>&5 |
| 10145 | ac_status=$? |
| 10146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10147 | (exit $ac_status); } && |
| 10148 | { ac_try='test -s conftest$ac_exeext' |
| 10149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10150 | (eval $ac_try) 2>&5 |
| 10151 | ac_status=$? |
| 10152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10153 | (exit $ac_status); }; }; then |
| 10154 | ac_cv_lib_thread___d6_pthread_create=yes |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10155 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10156 | echo "$as_me: failed program was:" >&5 |
| 10157 | cat conftest.$ac_ext >&5 |
| 10158 | ac_cv_lib_thread___d6_pthread_create=no |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10159 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10160 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10161 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10162 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10163 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread___d6_pthread_create" >&5 |
| 10164 | echo "${ECHO_T}$ac_cv_lib_thread___d6_pthread_create" >&6 |
| 10165 | if test $ac_cv_lib_thread___d6_pthread_create = yes; then |
| 10166 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10167 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10168 | _ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10169 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10170 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10171 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10172 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10173 | else |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10174 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10175 | echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 10176 | echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6 |
| 10177 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 10178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10179 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10180 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10181 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10182 | cat >conftest.$ac_ext <<_ACEOF |
| 10183 | #line $LINENO "configure" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10184 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10185 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10186 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10187 | #ifdef __cplusplus |
| 10188 | extern "C" |
| 10189 | #endif |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10190 | /* 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] | 10191 | builtin and then its argument prototype would still apply. */ |
| 10192 | char __pthread_create_system (); |
| 10193 | #ifdef F77_DUMMY_MAIN |
| 10194 | # ifdef __cplusplus |
| 10195 | extern "C" |
| 10196 | # endif |
| 10197 | int F77_DUMMY_MAIN() { return 1; } |
| 10198 | #endif |
| 10199 | int |
| 10200 | main () |
| 10201 | { |
| 10202 | __pthread_create_system (); |
| 10203 | ; |
| 10204 | return 0; |
| 10205 | } |
| 10206 | _ACEOF |
| 10207 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10208 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10209 | (eval $ac_link) 2>&5 |
| 10210 | ac_status=$? |
| 10211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10212 | (exit $ac_status); } && |
| 10213 | { ac_try='test -s conftest$ac_exeext' |
| 10214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10215 | (eval $ac_try) 2>&5 |
| 10216 | ac_status=$? |
| 10217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10218 | (exit $ac_status); }; }; then |
| 10219 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10220 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10221 | echo "$as_me: failed program was:" >&5 |
| 10222 | cat conftest.$ac_ext >&5 |
| 10223 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10224 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10225 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10226 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10227 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10228 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 10229 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6 |
| 10230 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 10231 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10232 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10233 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10234 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10235 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10236 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10237 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10238 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10239 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10240 | echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 10241 | echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6 |
| 10242 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 10243 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10244 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10245 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10246 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10247 | cat >conftest.$ac_ext <<_ACEOF |
| 10248 | #line $LINENO "configure" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10249 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10250 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10251 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10252 | #ifdef __cplusplus |
| 10253 | extern "C" |
| 10254 | #endif |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10255 | /* 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] | 10256 | builtin and then its argument prototype would still apply. */ |
| 10257 | char pthread_create (); |
| 10258 | #ifdef F77_DUMMY_MAIN |
| 10259 | # ifdef __cplusplus |
| 10260 | extern "C" |
| 10261 | # endif |
| 10262 | int F77_DUMMY_MAIN() { return 1; } |
| 10263 | #endif |
| 10264 | int |
| 10265 | main () |
| 10266 | { |
| 10267 | pthread_create (); |
| 10268 | ; |
| 10269 | return 0; |
| 10270 | } |
| 10271 | _ACEOF |
| 10272 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10273 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10274 | (eval $ac_link) 2>&5 |
| 10275 | ac_status=$? |
| 10276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10277 | (exit $ac_status); } && |
| 10278 | { ac_try='test -s conftest$ac_exeext' |
| 10279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10280 | (eval $ac_try) 2>&5 |
| 10281 | ac_status=$? |
| 10282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10283 | (exit $ac_status); }; }; then |
| 10284 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10285 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10286 | echo "$as_me: failed program was:" >&5 |
| 10287 | cat conftest.$ac_ext >&5 |
| 10288 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10289 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10290 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10291 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10292 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10293 | echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 10294 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6 |
| 10295 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 10296 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10297 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10298 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10299 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10300 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10301 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10302 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10303 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 10304 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10305 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 10306 | fi |
| 10307 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10308 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10309 | fi |
| 10310 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 10311 | fi |
| 10312 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10313 | fi |
| 10314 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10315 | fi |
| 10316 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10317 | fi |
| 10318 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10319 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10320 | fi |
| 10321 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10322 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10323 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10324 | fi; |
| 10325 | fi |
| 10326 | |
| 10327 | |
| 10328 | fi |
| 10329 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10330 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10331 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10332 | if test "$posix_threads" = "yes"; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10333 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10334 | |
| 10335 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10336 | #define _POSIX_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10337 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10338 | |
| 10339 | fi |
| 10340 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10341 | echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 10342 | echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6 |
| 10343 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 10344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10345 | else |
| 10346 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 10347 | ac_cv_pthread_system_supported=no |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10348 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10349 | cat >conftest.$ac_ext <<_ACEOF |
| 10350 | #line $LINENO "configure" |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10351 | #include "confdefs.h" |
| 10352 | #include <pthread.h> |
| 10353 | void *foo(void *parm) { |
| 10354 | return NULL; |
| 10355 | } |
| 10356 | main() { |
| 10357 | pthread_attr_t attr; |
Martin v. Löwis | a82d347 | 2002-02-24 16:05:05 +0000 | [diff] [blame] | 10358 | pthread_t id; |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10359 | if (pthread_attr_init(&attr)) exit(-1); |
| 10360 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
Martin v. Löwis | a82d347 | 2002-02-24 16:05:05 +0000 | [diff] [blame] | 10361 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10362 | exit(0); |
| 10363 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10364 | _ACEOF |
| 10365 | rm -f conftest$ac_exeext |
| 10366 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10367 | (eval $ac_link) 2>&5 |
| 10368 | ac_status=$? |
| 10369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10370 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10372 | (eval $ac_try) 2>&5 |
| 10373 | ac_status=$? |
| 10374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10375 | (exit $ac_status); }; }; then |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10376 | ac_cv_pthread_system_supported=yes |
| 10377 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10378 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10379 | echo "$as_me: failed program was:" >&5 |
| 10380 | cat conftest.$ac_ext >&5 |
| 10381 | ( exit $ac_status ) |
| 10382 | ac_cv_pthread_system_supported=no |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10383 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10384 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10385 | fi |
| 10386 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10387 | fi |
| 10388 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10389 | echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 10390 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10391 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10392 | |
| 10393 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10394 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10395 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10396 | |
| 10397 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10398 | |
| 10399 | for ac_func in pthread_sigmask |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10400 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10401 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10402 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10403 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 10404 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 10405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10406 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10407 | cat >conftest.$ac_ext <<_ACEOF |
| 10408 | #line $LINENO "configure" |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10409 | #include "confdefs.h" |
| 10410 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10411 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10412 | #include <assert.h> |
| 10413 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10414 | #ifdef __cplusplus |
| 10415 | extern "C" |
| 10416 | #endif |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10417 | /* 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] | 10418 | builtin and then its argument prototype would still apply. */ |
| 10419 | char $ac_func (); |
| 10420 | char (*f) (); |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10421 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10422 | #ifdef F77_DUMMY_MAIN |
| 10423 | # ifdef __cplusplus |
| 10424 | extern "C" |
| 10425 | # endif |
| 10426 | int F77_DUMMY_MAIN() { return 1; } |
| 10427 | #endif |
| 10428 | int |
| 10429 | main () |
| 10430 | { |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10431 | /* The GNU C library defines this for functions which it implements |
| 10432 | to always fail with ENOSYS. Some functions are actually named |
| 10433 | something starting with __ and the normal name is an alias. */ |
| 10434 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 10435 | choke me |
| 10436 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10437 | f = $ac_func; |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10438 | #endif |
| 10439 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10440 | ; |
| 10441 | return 0; |
| 10442 | } |
| 10443 | _ACEOF |
| 10444 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10445 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10446 | (eval $ac_link) 2>&5 |
| 10447 | ac_status=$? |
| 10448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10449 | (exit $ac_status); } && |
| 10450 | { ac_try='test -s conftest$ac_exeext' |
| 10451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10452 | (eval $ac_try) 2>&5 |
| 10453 | ac_status=$? |
| 10454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10455 | (exit $ac_status); }; }; then |
| 10456 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10457 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10458 | echo "$as_me: failed program was:" >&5 |
| 10459 | cat conftest.$ac_ext >&5 |
| 10460 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10461 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10462 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10463 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10464 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 10465 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 10466 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10467 | cat >>confdefs.h <<_ACEOF |
| 10468 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10469 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10470 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10471 | fi |
| 10472 | done |
| 10473 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10474 | fi |
| 10475 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10476 | echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 10477 | echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6 |
| 10478 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 10479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10480 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10481 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10482 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10483 | cat >conftest.$ac_ext <<_ACEOF |
| 10484 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10485 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10486 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10487 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10488 | #ifdef __cplusplus |
| 10489 | extern "C" |
| 10490 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10491 | /* 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] | 10492 | builtin and then its argument prototype would still apply. */ |
| 10493 | char usconfig (); |
| 10494 | #ifdef F77_DUMMY_MAIN |
| 10495 | # ifdef __cplusplus |
| 10496 | extern "C" |
| 10497 | # endif |
| 10498 | int F77_DUMMY_MAIN() { return 1; } |
| 10499 | #endif |
| 10500 | int |
| 10501 | main () |
| 10502 | { |
| 10503 | usconfig (); |
| 10504 | ; |
| 10505 | return 0; |
| 10506 | } |
| 10507 | _ACEOF |
| 10508 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10509 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10510 | (eval $ac_link) 2>&5 |
| 10511 | ac_status=$? |
| 10512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10513 | (exit $ac_status); } && |
| 10514 | { ac_try='test -s conftest$ac_exeext' |
| 10515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10516 | (eval $ac_try) 2>&5 |
| 10517 | ac_status=$? |
| 10518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10519 | (exit $ac_status); }; }; then |
| 10520 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10521 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10522 | echo "$as_me: failed program was:" >&5 |
| 10523 | cat conftest.$ac_ext >&5 |
| 10524 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10525 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10526 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10527 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10528 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10529 | echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 10530 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6 |
| 10531 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 10532 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10533 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10534 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10535 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10536 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10537 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10538 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10539 | fi |
| 10540 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10541 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10542 | if test $posix_threads != "yes"; then |
| 10543 | echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 10544 | echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6 |
| 10545 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 10546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10547 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10548 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10549 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10550 | cat >conftest.$ac_ext <<_ACEOF |
| 10551 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10552 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10553 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10554 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10555 | #ifdef __cplusplus |
| 10556 | extern "C" |
| 10557 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10558 | /* 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] | 10559 | builtin and then its argument prototype would still apply. */ |
| 10560 | char thr_create (); |
| 10561 | #ifdef F77_DUMMY_MAIN |
| 10562 | # ifdef __cplusplus |
| 10563 | extern "C" |
| 10564 | # endif |
| 10565 | int F77_DUMMY_MAIN() { return 1; } |
| 10566 | #endif |
| 10567 | int |
| 10568 | main () |
| 10569 | { |
| 10570 | thr_create (); |
| 10571 | ; |
| 10572 | return 0; |
| 10573 | } |
| 10574 | _ACEOF |
| 10575 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10576 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10577 | (eval $ac_link) 2>&5 |
| 10578 | ac_status=$? |
| 10579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10580 | (exit $ac_status); } && |
| 10581 | { ac_try='test -s conftest$ac_exeext' |
| 10582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10583 | (eval $ac_try) 2>&5 |
| 10584 | ac_status=$? |
| 10585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10586 | (exit $ac_status); }; }; then |
| 10587 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10588 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10589 | echo "$as_me: failed program was:" >&5 |
| 10590 | cat conftest.$ac_ext >&5 |
| 10591 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10592 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10593 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10594 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10595 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10596 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 10597 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6 |
| 10598 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 10599 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10600 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10601 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10602 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10603 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10604 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10605 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10606 | fi |
| 10607 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10608 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10609 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10610 | if test "$USE_THREAD_MODULE" != "#" |
| 10611 | then |
| 10612 | # If the above checks didn't disable threads, (at least) OSF1 |
| 10613 | # needs this '-threads' argument during linking. |
| 10614 | case $ac_sys_system in |
| 10615 | OSF1) LDLAST=-threads;; |
| 10616 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 10617 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10618 | fi |
| 10619 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10620 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10621 | |
| 10622 | |
| 10623 | echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 10624 | 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] | 10625 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 10626 | if test "${enable_ipv6+set}" = set; then |
| 10627 | enableval="$enable_ipv6" |
| 10628 | case "$enableval" in |
| 10629 | no) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10630 | echo "$as_me:$LINENO: result: no" >&5 |
| 10631 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10632 | ipv6=no |
| 10633 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10634 | *) echo "$as_me:$LINENO: result: yes" >&5 |
| 10635 | echo "${ECHO_T}yes" >&6 |
| 10636 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10637 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10638 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10639 | |
| 10640 | ipv6=yes |
| 10641 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10642 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10643 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10644 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10645 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10646 | echo "$as_me:$LINENO: result: no" >&5 |
| 10647 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10648 | ipv6=no |
| 10649 | |
| 10650 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10651 | cat >conftest.$ac_ext <<_ACEOF |
| 10652 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10653 | #include "confdefs.h" |
| 10654 | /* AF_INET6 available check */ |
| 10655 | #include <sys/types.h> |
| 10656 | #include <sys/socket.h> |
| 10657 | main() |
| 10658 | { |
| 10659 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 10660 | exit(1); |
| 10661 | else |
| 10662 | exit(0); |
| 10663 | } |
| 10664 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10665 | _ACEOF |
| 10666 | rm -f conftest$ac_exeext |
| 10667 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10668 | (eval $ac_link) 2>&5 |
| 10669 | ac_status=$? |
| 10670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10671 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10673 | (eval $ac_try) 2>&5 |
| 10674 | ac_status=$? |
| 10675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10676 | (exit $ac_status); }; }; then |
| 10677 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10678 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10679 | ipv6=yes |
| 10680 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10681 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10682 | echo "$as_me: failed program was:" >&5 |
| 10683 | cat conftest.$ac_ext >&5 |
| 10684 | ( exit $ac_status ) |
| 10685 | echo "$as_me:$LINENO: result: no" >&5 |
| 10686 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10687 | ipv6=no |
| 10688 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10689 | 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] | 10690 | fi |
| 10691 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10692 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10693 | echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 10694 | echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6 |
| 10695 | cat >conftest.$ac_ext <<_ACEOF |
| 10696 | #line $LINENO "configure" |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10697 | #include "confdefs.h" |
| 10698 | #include <sys/types.h> |
| 10699 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10700 | #ifdef F77_DUMMY_MAIN |
| 10701 | # ifdef __cplusplus |
| 10702 | extern "C" |
| 10703 | # endif |
| 10704 | int F77_DUMMY_MAIN() { return 1; } |
| 10705 | #endif |
| 10706 | int |
| 10707 | main () |
| 10708 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10709 | struct sockaddr_in6 x; |
| 10710 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10711 | ; |
| 10712 | return 0; |
| 10713 | } |
| 10714 | _ACEOF |
| 10715 | rm -f conftest.$ac_objext |
| 10716 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10717 | (eval $ac_compile) 2>&5 |
| 10718 | ac_status=$? |
| 10719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10720 | (exit $ac_status); } && |
| 10721 | { ac_try='test -s conftest.$ac_objext' |
| 10722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10723 | (eval $ac_try) 2>&5 |
| 10724 | ac_status=$? |
| 10725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10726 | (exit $ac_status); }; }; then |
| 10727 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10728 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10729 | ipv6=yes |
| 10730 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10731 | echo "$as_me: failed program was:" >&5 |
| 10732 | cat conftest.$ac_ext >&5 |
| 10733 | echo "$as_me:$LINENO: result: no" >&5 |
| 10734 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10735 | ipv6=no |
| 10736 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10737 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10738 | fi |
| 10739 | |
| 10740 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10741 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10742 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10743 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10744 | |
| 10745 | fi |
| 10746 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10747 | fi; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10748 | |
| 10749 | ipv6type=unknown |
| 10750 | ipv6lib=none |
| 10751 | ipv6trylibc=no |
| 10752 | |
| 10753 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10754 | echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 10755 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 10756 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 10757 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10758 | case $i in |
| 10759 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10760 | cat >conftest.$ac_ext <<_ACEOF |
| 10761 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10762 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10763 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10764 | #include <netinet/in.h> |
| 10765 | #ifdef IPV6_INRIA_VERSION |
| 10766 | yes |
| 10767 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10768 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10769 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10770 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10771 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10772 | fi |
| 10773 | rm -f conftest* |
| 10774 | |
| 10775 | ;; |
| 10776 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10777 | cat >conftest.$ac_ext <<_ACEOF |
| 10778 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10779 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10780 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10781 | #include <netinet/in.h> |
| 10782 | #ifdef __KAME__ |
| 10783 | yes |
| 10784 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10785 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10786 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10787 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10788 | ipv6type=$i; |
| 10789 | ipv6lib=inet6 |
| 10790 | ipv6libdir=/usr/local/v6/lib |
| 10791 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10792 | fi |
| 10793 | rm -f conftest* |
| 10794 | |
| 10795 | ;; |
| 10796 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10797 | cat >conftest.$ac_ext <<_ACEOF |
| 10798 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10799 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10800 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10801 | #include <features.h> |
| 10802 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 10803 | yes |
| 10804 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10805 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10806 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10807 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10808 | ipv6type=$i; |
| 10809 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10810 | fi |
| 10811 | rm -f conftest* |
| 10812 | |
| 10813 | ;; |
| 10814 | linux-inet6) |
| 10815 | if test -d /usr/inet6; then |
| 10816 | ipv6type=$i |
| 10817 | ipv6lib=inet6 |
| 10818 | ipv6libdir=/usr/inet6/lib |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10819 | OPT="-I/usr/inet6/include $OPT" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10820 | fi |
| 10821 | ;; |
| 10822 | solaris) |
| 10823 | if test -f /etc/netconfig; then |
| 10824 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 10825 | ipv6type=$i |
| 10826 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10827 | fi |
| 10828 | fi |
| 10829 | ;; |
| 10830 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10831 | cat >conftest.$ac_ext <<_ACEOF |
| 10832 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10833 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10834 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10835 | #include <sys/param.h> |
| 10836 | #ifdef _TOSHIBA_INET6 |
| 10837 | yes |
| 10838 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10839 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10840 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10841 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10842 | ipv6type=$i; |
| 10843 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10844 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10845 | fi |
| 10846 | rm -f conftest* |
| 10847 | |
| 10848 | ;; |
| 10849 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10850 | cat >conftest.$ac_ext <<_ACEOF |
| 10851 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10852 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10853 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10854 | #include </usr/local/v6/include/sys/v6config.h> |
| 10855 | #ifdef __V6D__ |
| 10856 | yes |
| 10857 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10858 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10859 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10860 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10861 | ipv6type=$i; |
| 10862 | ipv6lib=v6; |
| 10863 | ipv6libdir=/usr/local/v6/lib; |
| 10864 | OPT="-I/usr/local/v6/include $OPT" |
| 10865 | fi |
| 10866 | rm -f conftest* |
| 10867 | |
| 10868 | ;; |
| 10869 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10870 | cat >conftest.$ac_ext <<_ACEOF |
| 10871 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10872 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10873 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10874 | #include <sys/param.h> |
| 10875 | #ifdef _ZETA_MINAMI_INET6 |
| 10876 | yes |
| 10877 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10878 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10879 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10880 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10881 | ipv6type=$i; |
| 10882 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10883 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10884 | fi |
| 10885 | rm -f conftest* |
| 10886 | |
| 10887 | ;; |
| 10888 | esac |
| 10889 | if test "$ipv6type" != "unknown"; then |
| 10890 | break |
| 10891 | fi |
| 10892 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10893 | echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 10894 | echo "${ECHO_T}$ipv6type" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10895 | fi |
| 10896 | |
| 10897 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 10898 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 10899 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 10900 | echo "using lib$ipv6lib" |
| 10901 | else |
| 10902 | if test $ipv6trylibc = "yes"; then |
| 10903 | echo "using libc" |
| 10904 | else |
| 10905 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 10906 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 10907 | echo 'ipv6 kit and compile beforehand.' |
| 10908 | exit 1 |
| 10909 | fi |
| 10910 | fi |
| 10911 | fi |
| 10912 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10913 | # Check for GC support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10914 | echo "$as_me:$LINENO: checking for --with-cycle-gc" >&5 |
| 10915 | echo $ECHO_N "checking for --with-cycle-gc... $ECHO_C" >&6 |
| 10916 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10917 | # Check whether --with-cycle-gc or --without-cycle-gc was given. |
| 10918 | if test "${with_cycle_gc+set}" = set; then |
| 10919 | withval="$with_cycle_gc" |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10920 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10921 | fi; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10922 | |
| 10923 | if test -z "$with_cycle_gc" |
| 10924 | then with_cycle_gc="yes" |
| 10925 | fi |
Neil Schemenauer | cf22946 | 2001-08-29 23:58:47 +0000 | [diff] [blame] | 10926 | if test "$with_cycle_gc" != "no" |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10927 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10928 | |
| 10929 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10930 | #define WITH_CYCLE_GC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10931 | _ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10932 | |
| 10933 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10934 | echo "$as_me:$LINENO: result: $with_cycle_gc" >&5 |
| 10935 | echo "${ECHO_T}$with_cycle_gc" >&6 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10936 | |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 10937 | # Check for universal newline support |
| 10938 | echo "$as_me:$LINENO: checking for --with-universal-newline" >&5 |
| 10939 | echo $ECHO_N "checking for --with-universal-newline... $ECHO_C" >&6 |
| 10940 | |
| 10941 | # Check whether --with-universal-newlines or --without-universal-newlines was given. |
| 10942 | if test "${with_universal_newlines+set}" = set; then |
| 10943 | withval="$with_universal_newlines" |
| 10944 | |
| 10945 | fi; |
| 10946 | |
| 10947 | if test -z "$with_universal_newlines" |
| 10948 | then with_universal_newlines="yes" |
| 10949 | fi |
| 10950 | if test "$with_universal_newlines" != "no" |
| 10951 | then |
Martin v. Löwis | e8aea58 | 2002-04-16 05:51:02 +0000 | [diff] [blame] | 10952 | |
| 10953 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 10954 | #define WITH_UNIVERSAL_NEWLINES 1 |
| 10955 | _ACEOF |
| 10956 | |
| 10957 | fi |
| 10958 | echo "$as_me:$LINENO: result: $with_universal_newlines" >&5 |
| 10959 | echo "${ECHO_T}$with_universal_newlines" >&6 |
| 10960 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 10961 | # Check for Python-specific malloc support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10962 | echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 10963 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6 |
| 10964 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 10965 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 10966 | if test "${with_pymalloc+set}" = set; then |
| 10967 | withval="$with_pymalloc" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10968 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10969 | fi; |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 10970 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10971 | if test -z "$with_pymalloc" |
| 10972 | then with_pymalloc="yes" |
| 10973 | fi |
| 10974 | if test "$with_pymalloc" != "no" |
| 10975 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10976 | |
| 10977 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10978 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10979 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10980 | |
| 10981 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10982 | echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 10983 | echo "${ECHO_T}$with_pymalloc" >&6 |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10984 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10985 | # Check for --with-wctype-functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10986 | echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 10987 | echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6 |
| 10988 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10989 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 10990 | if test "${with_wctype_functions+set}" = set; then |
| 10991 | withval="$with_wctype_functions" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10992 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10993 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10994 | then |
| 10995 | |
| 10996 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10997 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10998 | _ACEOF |
| 10999 | |
| 11000 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11001 | echo "${ECHO_T}yes" >&6 |
| 11002 | else echo "$as_me:$LINENO: result: no" >&5 |
| 11003 | echo "${ECHO_T}no" >&6 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11004 | fi |
| 11005 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11006 | echo "$as_me:$LINENO: result: no" >&5 |
| 11007 | echo "${ECHO_T}no" >&6 |
| 11008 | fi; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11009 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11010 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11011 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 11012 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11013 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11014 | echo "$as_me:$LINENO: checking for --with-sgi-dl" >&5 |
| 11015 | echo $ECHO_N "checking for --with-sgi-dl... $ECHO_C" >&6 |
| 11016 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11017 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11018 | if test "${with_sgi_dl+set}" = set; then |
| 11019 | withval="$with_sgi_dl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11020 | |
| 11021 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11022 | echo "${ECHO_T}$withval" >&6 |
| 11023 | |
| 11024 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11025 | #define WITH_SGI_DL 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11026 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11027 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11028 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11029 | dldir=$withval |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 11030 | if test ! -z "$dldir" -a -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 11031 | then LDFLAGS="$LDFLAGS -L$dldir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11032 | else { { echo "$as_me:$LINENO: error: proper usage is --with-sgi-dl=DIRECTORY" >&5 |
| 11033 | echo "$as_me: error: proper usage is --with-sgi-dl=DIRECTORY" >&2;} |
| 11034 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11035 | fi |
| 11036 | DLINCLDIR=${dldir} |
| 11037 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11038 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11039 | echo "$as_me:$LINENO: result: no" >&5 |
| 11040 | echo "${ECHO_T}no" >&6 |
| 11041 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11042 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11043 | echo "$as_me:$LINENO: checking for --with-dl-dld" >&5 |
| 11044 | echo $ECHO_N "checking for --with-dl-dld... $ECHO_C" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11045 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11046 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11047 | if test "${with_dl_dld+set}" = set; then |
| 11048 | withval="$with_dl_dld" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11049 | |
| 11050 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11051 | echo "${ECHO_T}$withval" >&6 |
| 11052 | |
| 11053 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11054 | #define WITH_DL_DLD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11055 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11056 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11057 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11058 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 11059 | dlddir=`echo "$withval" | sed 's/.*,//'` |
Barry Warsaw | 7d1219d | 2000-10-05 18:45:53 +0000 | [diff] [blame] | 11060 | 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] | 11061 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11062 | else { { echo "$as_me:$LINENO: error: proper usage is --with-dl-dld=DL_DIRECTORY" >&5 |
| 11063 | echo "$as_me: error: proper usage is --with-dl-dld=DL_DIRECTORY" >&2;} |
| 11064 | { (exit DLD_DIRECTORY); exit DLD_DIRECTORY; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11065 | fi |
| 11066 | DLINCLDIR=${dldir} |
| 11067 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11068 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11069 | echo "$as_me:$LINENO: result: no" >&5 |
| 11070 | echo "${ECHO_T}no" >&6 |
| 11071 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11072 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11073 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 11074 | # 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] | 11075 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11076 | for ac_func in dlopen |
| 11077 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11078 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11079 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11080 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11081 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11083 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11084 | cat >conftest.$ac_ext <<_ACEOF |
| 11085 | #line $LINENO "configure" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11086 | #include "confdefs.h" |
| 11087 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11088 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11089 | #include <assert.h> |
| 11090 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11091 | #ifdef __cplusplus |
| 11092 | extern "C" |
| 11093 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11094 | /* 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] | 11095 | builtin and then its argument prototype would still apply. */ |
| 11096 | char $ac_func (); |
| 11097 | char (*f) (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11098 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11099 | #ifdef F77_DUMMY_MAIN |
| 11100 | # ifdef __cplusplus |
| 11101 | extern "C" |
| 11102 | # endif |
| 11103 | int F77_DUMMY_MAIN() { return 1; } |
| 11104 | #endif |
| 11105 | int |
| 11106 | main () |
| 11107 | { |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11108 | /* The GNU C library defines this for functions which it implements |
| 11109 | to always fail with ENOSYS. Some functions are actually named |
| 11110 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11111 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11112 | choke me |
| 11113 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11114 | f = $ac_func; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11115 | #endif |
| 11116 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11117 | ; |
| 11118 | return 0; |
| 11119 | } |
| 11120 | _ACEOF |
| 11121 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11122 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11123 | (eval $ac_link) 2>&5 |
| 11124 | ac_status=$? |
| 11125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11126 | (exit $ac_status); } && |
| 11127 | { ac_try='test -s conftest$ac_exeext' |
| 11128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11129 | (eval $ac_try) 2>&5 |
| 11130 | ac_status=$? |
| 11131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11132 | (exit $ac_status); }; }; then |
| 11133 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11134 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11135 | echo "$as_me: failed program was:" >&5 |
| 11136 | cat conftest.$ac_ext >&5 |
| 11137 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11138 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11139 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11140 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11141 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11142 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11143 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11144 | cat >>confdefs.h <<_ACEOF |
| 11145 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11146 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11147 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11148 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11149 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11150 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11151 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11152 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 11153 | # loading of modules. |
| 11154 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11155 | echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 11156 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11157 | if test -z "$DYNLOADFILE" |
| 11158 | then |
| 11159 | case $ac_sys_system/$ac_sys_release in |
| 11160 | AIX*) DYNLOADFILE="dynload_aix.o";; |
| 11161 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 11162 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11163 | Darwin/*) DYNLOADFILE="dynload_next.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11164 | *) |
| 11165 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 11166 | # out any dynamic loading |
| 11167 | if test "$ac_cv_func_dlopen" = yes |
| 11168 | then DYNLOADFILE="dynload_shlib.o" |
| 11169 | else DYNLOADFILE="dynload_stub.o" |
| 11170 | fi |
| 11171 | ;; |
| 11172 | esac |
| 11173 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11174 | echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 11175 | echo "${ECHO_T}$DYNLOADFILE" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11176 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 11177 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11178 | |
| 11179 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11180 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11181 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11182 | |
| 11183 | fi |
| 11184 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11185 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 11186 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11187 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11188 | echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 11189 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11190 | if test -z "$MACHDEP_OBJS" |
| 11191 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11192 | MACHDEP_OBJS=$extra_machdep_objs |
| 11193 | else |
| 11194 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11195 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11196 | echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 11197 | echo "${ECHO_T}MACHDEP_OBJS" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11198 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11199 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11200 | |
| 11201 | |
| 11202 | |
| 11203 | |
| 11204 | |
| 11205 | |
| 11206 | |
| 11207 | |
| 11208 | |
| 11209 | |
| 11210 | |
| 11211 | |
| 11212 | |
| 11213 | |
| 11214 | |
| 11215 | |
| 11216 | |
| 11217 | |
| 11218 | |
| 11219 | |
| 11220 | |
| 11221 | |
| 11222 | |
| 11223 | |
| 11224 | |
| 11225 | |
| 11226 | |
| 11227 | |
| 11228 | |
| 11229 | |
| 11230 | |
| 11231 | |
| 11232 | |
| 11233 | |
| 11234 | |
| 11235 | |
| 11236 | |
| 11237 | |
| 11238 | |
| 11239 | |
| 11240 | |
| 11241 | |
| 11242 | |
| 11243 | |
| 11244 | |
| 11245 | |
| 11246 | |
| 11247 | |
| 11248 | |
| 11249 | |
| 11250 | |
| 11251 | |
| 11252 | |
| 11253 | |
| 11254 | |
| 11255 | |
| 11256 | |
| 11257 | |
| 11258 | |
| 11259 | |
| 11260 | |
| 11261 | |
| 11262 | |
| 11263 | |
| 11264 | |
| 11265 | |
| 11266 | |
| 11267 | |
| 11268 | |
| 11269 | |
| 11270 | |
| 11271 | |
| 11272 | |
Martin v. Löwis | 06a83e9 | 2002-04-14 10:19:44 +0000 | [diff] [blame] | 11273 | |
Fred Drake | 6b3cc52 | 2002-04-15 19:20:27 +0000 | [diff] [blame] | 11274 | |
Martin v. Löwis | 244edc8 | 2001-10-04 22:44:26 +0000 | [diff] [blame] | 11275 | for ac_func in alarm chown chroot clock confstr ctermid ctermid_r execv \ |
Fred Drake | 6b3cc52 | 2002-04-15 19:20:27 +0000 | [diff] [blame] | 11276 | fchdir flock fork fsync fdatasync fpathconf ftime ftruncate \ |
Martin v. Löwis | f95dd0a | 2001-08-15 17:14:33 +0000 | [diff] [blame] | 11277 | gai_strerror getgroups getlogin getpeername getpid getpwent getwd \ |
Martin v. Löwis | 06a83e9 | 2002-04-14 10:19:44 +0000 | [diff] [blame] | 11278 | hstrerror inet_pton kill killpg link lstat mkfifo mknod mktime mremap \ |
Andrew M. Kuchling | 5821b77 | 2000-08-25 01:14:08 +0000 | [diff] [blame] | 11279 | nice pathconf pause plock poll pthread_init \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 11280 | putenv readlink \ |
Martin v. Löwis | 61c5edf | 2001-10-18 04:06:00 +0000 | [diff] [blame] | 11281 | select setegid seteuid setgid setgroups \ |
Martin v. Löwis | 791bfda | 2001-07-24 06:33:08 +0000 | [diff] [blame] | 11282 | setlocale setregid setreuid setsid setpgid setuid setvbuf snprintf \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 11283 | sigaction siginterrupt sigrelse strftime strptime symlink sysconf \ |
Fred Drake | 89143df | 1999-12-09 22:03:25 +0000 | [diff] [blame] | 11284 | tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Guido van Rossum | c524d95 | 2001-10-19 01:31:59 +0000 | [diff] [blame] | 11285 | truncate uname unsetenv waitpid _getpty getpriority |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11286 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11287 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11288 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11289 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11290 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11292 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11293 | cat >conftest.$ac_ext <<_ACEOF |
| 11294 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11295 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11296 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11297 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11298 | #include <assert.h> |
| 11299 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11300 | #ifdef __cplusplus |
| 11301 | extern "C" |
| 11302 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11303 | /* 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] | 11304 | builtin and then its argument prototype would still apply. */ |
| 11305 | char $ac_func (); |
| 11306 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11307 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11308 | #ifdef F77_DUMMY_MAIN |
| 11309 | # ifdef __cplusplus |
| 11310 | extern "C" |
| 11311 | # endif |
| 11312 | int F77_DUMMY_MAIN() { return 1; } |
| 11313 | #endif |
| 11314 | int |
| 11315 | main () |
| 11316 | { |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11317 | /* The GNU C library defines this for functions which it implements |
| 11318 | to always fail with ENOSYS. Some functions are actually named |
| 11319 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11320 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11321 | choke me |
| 11322 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11323 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11324 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11325 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11326 | ; |
| 11327 | return 0; |
| 11328 | } |
| 11329 | _ACEOF |
| 11330 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11331 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11332 | (eval $ac_link) 2>&5 |
| 11333 | ac_status=$? |
| 11334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11335 | (exit $ac_status); } && |
| 11336 | { ac_try='test -s conftest$ac_exeext' |
| 11337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11338 | (eval $ac_try) 2>&5 |
| 11339 | ac_status=$? |
| 11340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11341 | (exit $ac_status); }; }; then |
| 11342 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11343 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11344 | echo "$as_me: failed program was:" >&5 |
| 11345 | cat conftest.$ac_ext >&5 |
| 11346 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11347 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11348 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11349 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11350 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11351 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11352 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11353 | cat >>confdefs.h <<_ACEOF |
| 11354 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11355 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11356 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11357 | fi |
| 11358 | done |
| 11359 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11360 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11361 | # check for openpty and forkpty |
| 11362 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11363 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11364 | for ac_func in openpty |
| 11365 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11366 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11367 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11368 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11369 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11371 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11372 | cat >conftest.$ac_ext <<_ACEOF |
| 11373 | #line $LINENO "configure" |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11374 | #include "confdefs.h" |
| 11375 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11376 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11377 | #include <assert.h> |
| 11378 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11379 | #ifdef __cplusplus |
| 11380 | extern "C" |
| 11381 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11382 | /* 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] | 11383 | builtin and then its argument prototype would still apply. */ |
| 11384 | char $ac_func (); |
| 11385 | char (*f) (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11386 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11387 | #ifdef F77_DUMMY_MAIN |
| 11388 | # ifdef __cplusplus |
| 11389 | extern "C" |
| 11390 | # endif |
| 11391 | int F77_DUMMY_MAIN() { return 1; } |
| 11392 | #endif |
| 11393 | int |
| 11394 | main () |
| 11395 | { |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11396 | /* The GNU C library defines this for functions which it implements |
| 11397 | to always fail with ENOSYS. Some functions are actually named |
| 11398 | something starting with __ and the normal name is an alias. */ |
| 11399 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11400 | choke me |
| 11401 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11402 | f = $ac_func; |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11403 | #endif |
| 11404 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11405 | ; |
| 11406 | return 0; |
| 11407 | } |
| 11408 | _ACEOF |
| 11409 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11410 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11411 | (eval $ac_link) 2>&5 |
| 11412 | ac_status=$? |
| 11413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11414 | (exit $ac_status); } && |
| 11415 | { ac_try='test -s conftest$ac_exeext' |
| 11416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11417 | (eval $ac_try) 2>&5 |
| 11418 | ac_status=$? |
| 11419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11420 | (exit $ac_status); }; }; then |
| 11421 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11422 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11423 | echo "$as_me: failed program was:" >&5 |
| 11424 | cat conftest.$ac_ext >&5 |
| 11425 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11426 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11427 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11428 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11429 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11430 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11431 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11432 | cat >>confdefs.h <<_ACEOF |
| 11433 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11434 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11435 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11436 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11437 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 11438 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
| 11439 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 11440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11441 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11442 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11443 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11444 | cat >conftest.$ac_ext <<_ACEOF |
| 11445 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11446 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11447 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11448 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11449 | #ifdef __cplusplus |
| 11450 | extern "C" |
| 11451 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11452 | /* 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] | 11453 | builtin and then its argument prototype would still apply. */ |
| 11454 | char openpty (); |
| 11455 | #ifdef F77_DUMMY_MAIN |
| 11456 | # ifdef __cplusplus |
| 11457 | extern "C" |
| 11458 | # endif |
| 11459 | int F77_DUMMY_MAIN() { return 1; } |
| 11460 | #endif |
| 11461 | int |
| 11462 | main () |
| 11463 | { |
| 11464 | openpty (); |
| 11465 | ; |
| 11466 | return 0; |
| 11467 | } |
| 11468 | _ACEOF |
| 11469 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11470 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11471 | (eval $ac_link) 2>&5 |
| 11472 | ac_status=$? |
| 11473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11474 | (exit $ac_status); } && |
| 11475 | { ac_try='test -s conftest$ac_exeext' |
| 11476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11477 | (eval $ac_try) 2>&5 |
| 11478 | ac_status=$? |
| 11479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11480 | (exit $ac_status); }; }; then |
| 11481 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11482 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11483 | echo "$as_me: failed program was:" >&5 |
| 11484 | cat conftest.$ac_ext >&5 |
| 11485 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11486 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11487 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11488 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11489 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11490 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 11491 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
| 11492 | if test $ac_cv_lib_util_openpty = yes; then |
| 11493 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11494 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11495 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11496 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11497 | fi |
| 11498 | |
| 11499 | fi |
| 11500 | done |
| 11501 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11502 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11503 | for ac_func in forkpty |
| 11504 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11505 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11506 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11507 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11508 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11510 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11511 | cat >conftest.$ac_ext <<_ACEOF |
| 11512 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11513 | #include "confdefs.h" |
| 11514 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11515 | which can conflict with char $ac_func (); below. */ |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11516 | #include <assert.h> |
| 11517 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11518 | #ifdef __cplusplus |
| 11519 | extern "C" |
| 11520 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11521 | /* 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] | 11522 | builtin and then its argument prototype would still apply. */ |
| 11523 | char $ac_func (); |
| 11524 | char (*f) (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11525 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11526 | #ifdef F77_DUMMY_MAIN |
| 11527 | # ifdef __cplusplus |
| 11528 | extern "C" |
| 11529 | # endif |
| 11530 | int F77_DUMMY_MAIN() { return 1; } |
| 11531 | #endif |
| 11532 | int |
| 11533 | main () |
| 11534 | { |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11535 | /* The GNU C library defines this for functions which it implements |
| 11536 | to always fail with ENOSYS. Some functions are actually named |
| 11537 | something starting with __ and the normal name is an alias. */ |
| 11538 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11539 | choke me |
| 11540 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11541 | f = $ac_func; |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11542 | #endif |
| 11543 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11544 | ; |
| 11545 | return 0; |
| 11546 | } |
| 11547 | _ACEOF |
| 11548 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11549 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11550 | (eval $ac_link) 2>&5 |
| 11551 | ac_status=$? |
| 11552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11553 | (exit $ac_status); } && |
| 11554 | { ac_try='test -s conftest$ac_exeext' |
| 11555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11556 | (eval $ac_try) 2>&5 |
| 11557 | ac_status=$? |
| 11558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11559 | (exit $ac_status); }; }; then |
| 11560 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11561 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11562 | echo "$as_me: failed program was:" >&5 |
| 11563 | cat conftest.$ac_ext >&5 |
| 11564 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11565 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11566 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11567 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11568 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11569 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11570 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11571 | cat >>confdefs.h <<_ACEOF |
| 11572 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11573 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11574 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11575 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11576 | echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 11577 | echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6 |
| 11578 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 11579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11580 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11581 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11582 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11583 | cat >conftest.$ac_ext <<_ACEOF |
| 11584 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11585 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11586 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11587 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11588 | #ifdef __cplusplus |
| 11589 | extern "C" |
| 11590 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11591 | /* 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] | 11592 | builtin and then its argument prototype would still apply. */ |
| 11593 | char forkpty (); |
| 11594 | #ifdef F77_DUMMY_MAIN |
| 11595 | # ifdef __cplusplus |
| 11596 | extern "C" |
| 11597 | # endif |
| 11598 | int F77_DUMMY_MAIN() { return 1; } |
| 11599 | #endif |
| 11600 | int |
| 11601 | main () |
| 11602 | { |
| 11603 | forkpty (); |
| 11604 | ; |
| 11605 | return 0; |
| 11606 | } |
| 11607 | _ACEOF |
| 11608 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11609 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11610 | (eval $ac_link) 2>&5 |
| 11611 | ac_status=$? |
| 11612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11613 | (exit $ac_status); } && |
| 11614 | { ac_try='test -s conftest$ac_exeext' |
| 11615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11616 | (eval $ac_try) 2>&5 |
| 11617 | ac_status=$? |
| 11618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11619 | (exit $ac_status); }; }; then |
| 11620 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11621 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11622 | echo "$as_me: failed program was:" >&5 |
| 11623 | cat conftest.$ac_ext >&5 |
| 11624 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11625 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11626 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11627 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11628 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11629 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 11630 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6 |
| 11631 | if test $ac_cv_lib_util_forkpty = yes; then |
| 11632 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11633 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11634 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11635 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11636 | fi |
| 11637 | |
| 11638 | fi |
| 11639 | done |
| 11640 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11641 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11642 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11643 | |
| 11644 | |
| 11645 | |
| 11646 | |
| 11647 | |
| 11648 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11649 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 11650 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11651 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11652 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11653 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11654 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11656 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11657 | cat >conftest.$ac_ext <<_ACEOF |
| 11658 | #line $LINENO "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11659 | #include "confdefs.h" |
| 11660 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11661 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11662 | #include <assert.h> |
| 11663 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11664 | #ifdef __cplusplus |
| 11665 | extern "C" |
| 11666 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11667 | /* 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] | 11668 | builtin and then its argument prototype would still apply. */ |
| 11669 | char $ac_func (); |
| 11670 | char (*f) (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11671 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11672 | #ifdef F77_DUMMY_MAIN |
| 11673 | # ifdef __cplusplus |
| 11674 | extern "C" |
| 11675 | # endif |
| 11676 | int F77_DUMMY_MAIN() { return 1; } |
| 11677 | #endif |
| 11678 | int |
| 11679 | main () |
| 11680 | { |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11681 | /* The GNU C library defines this for functions which it implements |
| 11682 | to always fail with ENOSYS. Some functions are actually named |
| 11683 | something starting with __ and the normal name is an alias. */ |
| 11684 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11685 | choke me |
| 11686 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11687 | f = $ac_func; |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11688 | #endif |
| 11689 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11690 | ; |
| 11691 | return 0; |
| 11692 | } |
| 11693 | _ACEOF |
| 11694 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11695 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11696 | (eval $ac_link) 2>&5 |
| 11697 | ac_status=$? |
| 11698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11699 | (exit $ac_status); } && |
| 11700 | { ac_try='test -s conftest$ac_exeext' |
| 11701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11702 | (eval $ac_try) 2>&5 |
| 11703 | ac_status=$? |
| 11704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11705 | (exit $ac_status); }; }; then |
| 11706 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11707 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11708 | echo "$as_me: failed program was:" >&5 |
| 11709 | cat conftest.$ac_ext >&5 |
| 11710 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11711 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11712 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11713 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11714 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11715 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11716 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11717 | cat >>confdefs.h <<_ACEOF |
| 11718 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11719 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11720 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11721 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11722 | done |
| 11723 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11724 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11725 | |
| 11726 | |
| 11727 | |
| 11728 | |
| 11729 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11730 | for ac_func in dup2 getcwd strdup strerror memmove |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11731 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11732 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11733 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11734 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11735 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11737 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11738 | cat >conftest.$ac_ext <<_ACEOF |
| 11739 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11740 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11741 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11742 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11743 | #include <assert.h> |
| 11744 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11745 | #ifdef __cplusplus |
| 11746 | extern "C" |
| 11747 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11748 | /* 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] | 11749 | builtin and then its argument prototype would still apply. */ |
| 11750 | char $ac_func (); |
| 11751 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11752 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11753 | #ifdef F77_DUMMY_MAIN |
| 11754 | # ifdef __cplusplus |
| 11755 | extern "C" |
| 11756 | # endif |
| 11757 | int F77_DUMMY_MAIN() { return 1; } |
| 11758 | #endif |
| 11759 | int |
| 11760 | main () |
| 11761 | { |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11762 | /* The GNU C library defines this for functions which it implements |
| 11763 | to always fail with ENOSYS. Some functions are actually named |
| 11764 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11765 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11766 | choke me |
| 11767 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11768 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11769 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11770 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11771 | ; |
| 11772 | return 0; |
| 11773 | } |
| 11774 | _ACEOF |
| 11775 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11776 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11777 | (eval $ac_link) 2>&5 |
| 11778 | ac_status=$? |
| 11779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11780 | (exit $ac_status); } && |
| 11781 | { ac_try='test -s conftest$ac_exeext' |
| 11782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11783 | (eval $ac_try) 2>&5 |
| 11784 | ac_status=$? |
| 11785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11786 | (exit $ac_status); }; }; then |
| 11787 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11788 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11789 | echo "$as_me: failed program was:" >&5 |
| 11790 | cat conftest.$ac_ext >&5 |
| 11791 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11792 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11793 | 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] | 11794 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11795 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11796 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11797 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11798 | cat >>confdefs.h <<_ACEOF |
| 11799 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11800 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11801 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11802 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11803 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11804 | fi |
| 11805 | done |
| 11806 | |
| 11807 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11808 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11809 | for ac_func in getpgrp |
| 11810 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11811 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11812 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11813 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11814 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11816 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11817 | cat >conftest.$ac_ext <<_ACEOF |
| 11818 | #line $LINENO "configure" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11819 | #include "confdefs.h" |
| 11820 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11821 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11822 | #include <assert.h> |
| 11823 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11824 | #ifdef __cplusplus |
| 11825 | extern "C" |
| 11826 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11827 | /* 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] | 11828 | builtin and then its argument prototype would still apply. */ |
| 11829 | char $ac_func (); |
| 11830 | char (*f) (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11831 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11832 | #ifdef F77_DUMMY_MAIN |
| 11833 | # ifdef __cplusplus |
| 11834 | extern "C" |
| 11835 | # endif |
| 11836 | int F77_DUMMY_MAIN() { return 1; } |
| 11837 | #endif |
| 11838 | int |
| 11839 | main () |
| 11840 | { |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11841 | /* The GNU C library defines this for functions which it implements |
| 11842 | to always fail with ENOSYS. Some functions are actually named |
| 11843 | something starting with __ and the normal name is an alias. */ |
| 11844 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11845 | choke me |
| 11846 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11847 | f = $ac_func; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11848 | #endif |
| 11849 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11850 | ; |
| 11851 | return 0; |
| 11852 | } |
| 11853 | _ACEOF |
| 11854 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11855 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11856 | (eval $ac_link) 2>&5 |
| 11857 | ac_status=$? |
| 11858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11859 | (exit $ac_status); } && |
| 11860 | { ac_try='test -s conftest$ac_exeext' |
| 11861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11862 | (eval $ac_try) 2>&5 |
| 11863 | ac_status=$? |
| 11864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11865 | (exit $ac_status); }; }; then |
| 11866 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11867 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11868 | echo "$as_me: failed program was:" >&5 |
| 11869 | cat conftest.$ac_ext >&5 |
| 11870 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11871 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11872 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11873 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11874 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11875 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11876 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11877 | cat >>confdefs.h <<_ACEOF |
| 11878 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11879 | _ACEOF |
| 11880 | cat >conftest.$ac_ext <<_ACEOF |
| 11881 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11882 | #include "confdefs.h" |
| 11883 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11884 | #ifdef F77_DUMMY_MAIN |
| 11885 | # ifdef __cplusplus |
| 11886 | extern "C" |
| 11887 | # endif |
| 11888 | int F77_DUMMY_MAIN() { return 1; } |
| 11889 | #endif |
| 11890 | int |
| 11891 | main () |
| 11892 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11893 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11894 | ; |
| 11895 | return 0; |
| 11896 | } |
| 11897 | _ACEOF |
| 11898 | rm -f conftest.$ac_objext |
| 11899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11900 | (eval $ac_compile) 2>&5 |
| 11901 | ac_status=$? |
| 11902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11903 | (exit $ac_status); } && |
| 11904 | { ac_try='test -s conftest.$ac_objext' |
| 11905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11906 | (eval $ac_try) 2>&5 |
| 11907 | ac_status=$? |
| 11908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11909 | (exit $ac_status); }; }; then |
| 11910 | |
| 11911 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11912 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11913 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11914 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11915 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 11916 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11917 | echo "$as_me: failed program was:" >&5 |
| 11918 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11919 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11920 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11921 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11922 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11923 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11924 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11925 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11926 | for ac_func in setpgrp |
| 11927 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11928 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11929 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11930 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11931 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11933 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11934 | cat >conftest.$ac_ext <<_ACEOF |
| 11935 | #line $LINENO "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 11936 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11937 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11938 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11939 | #include <assert.h> |
| 11940 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11941 | #ifdef __cplusplus |
| 11942 | extern "C" |
| 11943 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11944 | /* 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] | 11945 | builtin and then its argument prototype would still apply. */ |
| 11946 | char $ac_func (); |
| 11947 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11948 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11949 | #ifdef F77_DUMMY_MAIN |
| 11950 | # ifdef __cplusplus |
| 11951 | extern "C" |
| 11952 | # endif |
| 11953 | int F77_DUMMY_MAIN() { return 1; } |
| 11954 | #endif |
| 11955 | int |
| 11956 | main () |
| 11957 | { |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 11958 | /* The GNU C library defines this for functions which it implements |
| 11959 | to always fail with ENOSYS. Some functions are actually named |
| 11960 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11961 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 11962 | choke me |
| 11963 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11964 | f = $ac_func; |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 11965 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11966 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11967 | ; |
| 11968 | return 0; |
| 11969 | } |
| 11970 | _ACEOF |
| 11971 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11972 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11973 | (eval $ac_link) 2>&5 |
| 11974 | ac_status=$? |
| 11975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11976 | (exit $ac_status); } && |
| 11977 | { ac_try='test -s conftest$ac_exeext' |
| 11978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11979 | (eval $ac_try) 2>&5 |
| 11980 | ac_status=$? |
| 11981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11982 | (exit $ac_status); }; }; then |
| 11983 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11984 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11985 | echo "$as_me: failed program was:" >&5 |
| 11986 | cat conftest.$ac_ext >&5 |
| 11987 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11988 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11989 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11990 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11991 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11992 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11993 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11994 | cat >>confdefs.h <<_ACEOF |
| 11995 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11996 | _ACEOF |
| 11997 | cat >conftest.$ac_ext <<_ACEOF |
| 11998 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11999 | #include "confdefs.h" |
| 12000 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12001 | #ifdef F77_DUMMY_MAIN |
| 12002 | # ifdef __cplusplus |
| 12003 | extern "C" |
| 12004 | # endif |
| 12005 | int F77_DUMMY_MAIN() { return 1; } |
| 12006 | #endif |
| 12007 | int |
| 12008 | main () |
| 12009 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12010 | setpgrp(0,0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12011 | ; |
| 12012 | return 0; |
| 12013 | } |
| 12014 | _ACEOF |
| 12015 | rm -f conftest.$ac_objext |
| 12016 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12017 | (eval $ac_compile) 2>&5 |
| 12018 | ac_status=$? |
| 12019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12020 | (exit $ac_status); } && |
| 12021 | { ac_try='test -s conftest.$ac_objext' |
| 12022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12023 | (eval $ac_try) 2>&5 |
| 12024 | ac_status=$? |
| 12025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12026 | (exit $ac_status); }; }; then |
| 12027 | |
| 12028 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12029 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12030 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12031 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12032 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 12033 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12034 | echo "$as_me: failed program was:" >&5 |
| 12035 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12036 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12037 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12038 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12039 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12040 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12041 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12042 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12043 | for ac_func in gettimeofday |
| 12044 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12045 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12046 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12047 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12048 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12050 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12051 | cat >conftest.$ac_ext <<_ACEOF |
| 12052 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12053 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12054 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12055 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12056 | #include <assert.h> |
| 12057 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12058 | #ifdef __cplusplus |
| 12059 | extern "C" |
| 12060 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12061 | /* 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] | 12062 | builtin and then its argument prototype would still apply. */ |
| 12063 | char $ac_func (); |
| 12064 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12065 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12066 | #ifdef F77_DUMMY_MAIN |
| 12067 | # ifdef __cplusplus |
| 12068 | extern "C" |
| 12069 | # endif |
| 12070 | int F77_DUMMY_MAIN() { return 1; } |
| 12071 | #endif |
| 12072 | int |
| 12073 | main () |
| 12074 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12075 | /* The GNU C library defines this for functions which it implements |
| 12076 | to always fail with ENOSYS. Some functions are actually named |
| 12077 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12078 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12079 | choke me |
| 12080 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12081 | f = $ac_func; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12082 | #endif |
| 12083 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12084 | ; |
| 12085 | return 0; |
| 12086 | } |
| 12087 | _ACEOF |
| 12088 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12089 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12090 | (eval $ac_link) 2>&5 |
| 12091 | ac_status=$? |
| 12092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12093 | (exit $ac_status); } && |
| 12094 | { ac_try='test -s conftest$ac_exeext' |
| 12095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12096 | (eval $ac_try) 2>&5 |
| 12097 | ac_status=$? |
| 12098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12099 | (exit $ac_status); }; }; then |
| 12100 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12101 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12102 | echo "$as_me: failed program was:" >&5 |
| 12103 | cat conftest.$ac_ext >&5 |
| 12104 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12105 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12106 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12107 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12108 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12109 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12110 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12111 | cat >>confdefs.h <<_ACEOF |
| 12112 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12113 | _ACEOF |
| 12114 | cat >conftest.$ac_ext <<_ACEOF |
| 12115 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12116 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12117 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12118 | #ifdef F77_DUMMY_MAIN |
| 12119 | # ifdef __cplusplus |
| 12120 | extern "C" |
| 12121 | # endif |
| 12122 | int F77_DUMMY_MAIN() { return 1; } |
| 12123 | #endif |
| 12124 | int |
| 12125 | main () |
| 12126 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12127 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12128 | ; |
| 12129 | return 0; |
| 12130 | } |
| 12131 | _ACEOF |
| 12132 | rm -f conftest.$ac_objext |
| 12133 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12134 | (eval $ac_compile) 2>&5 |
| 12135 | ac_status=$? |
| 12136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12137 | (exit $ac_status); } && |
| 12138 | { ac_try='test -s conftest.$ac_objext' |
| 12139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12140 | (eval $ac_try) 2>&5 |
| 12141 | ac_status=$? |
| 12142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12143 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12144 | : |
| 12145 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12146 | echo "$as_me: failed program was:" >&5 |
| 12147 | cat conftest.$ac_ext >&5 |
| 12148 | |
| 12149 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12150 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12151 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12152 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12153 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12154 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12155 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12156 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12157 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12158 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12159 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12160 | |
| 12161 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12162 | # 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] | 12163 | # for [no]getaddrinfo in netdb.h. |
| 12164 | echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 12165 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 |
| 12166 | cat >conftest.$ac_ext <<_ACEOF |
| 12167 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12168 | #include "confdefs.h" |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12169 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12170 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12171 | #include <sys/socket.h> |
| 12172 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12173 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12174 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12175 | #ifdef F77_DUMMY_MAIN |
| 12176 | # ifdef __cplusplus |
| 12177 | extern "C" |
| 12178 | # endif |
| 12179 | int F77_DUMMY_MAIN() { return 1; } |
| 12180 | #endif |
| 12181 | int |
| 12182 | main () |
| 12183 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12184 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12185 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12186 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12187 | ; |
| 12188 | return 0; |
| 12189 | } |
| 12190 | _ACEOF |
| 12191 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12192 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12193 | (eval $ac_link) 2>&5 |
| 12194 | ac_status=$? |
| 12195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12196 | (exit $ac_status); } && |
| 12197 | { ac_try='test -s conftest$ac_exeext' |
| 12198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12199 | (eval $ac_try) 2>&5 |
| 12200 | ac_status=$? |
| 12201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12202 | (exit $ac_status); }; }; then |
| 12203 | |
| 12204 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12205 | echo "${ECHO_T}yes" >&6 |
| 12206 | echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 12207 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12208 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12209 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 12210 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12211 | buggygetaddrinfo=yes |
| 12212 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12213 | cat >conftest.$ac_ext <<_ACEOF |
| 12214 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12215 | #include "confdefs.h" |
| 12216 | |
| 12217 | #include <sys/types.h> |
| 12218 | #include <netdb.h> |
| 12219 | #include <string.h> |
| 12220 | #include <sys/socket.h> |
| 12221 | #include <netinet/in.h> |
| 12222 | |
| 12223 | main() |
| 12224 | { |
| 12225 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 12226 | struct addrinfo hints, *ai, *aitop; |
| 12227 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 12228 | |
| 12229 | for (passive = 0; passive <= 1; passive++) { |
| 12230 | memset(&hints, 0, sizeof(hints)); |
| 12231 | hints.ai_family = AF_UNSPEC; |
| 12232 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 12233 | hints.ai_socktype = SOCK_STREAM; |
| 12234 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 12235 | (void)gai_strerror(gaierr); |
| 12236 | goto bad; |
| 12237 | } |
| 12238 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 12239 | if (ai->ai_addr == NULL || |
| 12240 | ai->ai_addrlen == 0 || |
| 12241 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 12242 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 12243 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 12244 | goto bad; |
| 12245 | } |
| 12246 | switch (ai->ai_family) { |
| 12247 | case AF_INET: |
| 12248 | if (strcmp(strport, "54321") != 0) { |
| 12249 | goto bad; |
| 12250 | } |
| 12251 | if (passive) { |
| 12252 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 12253 | goto bad; |
| 12254 | } |
| 12255 | } else { |
| 12256 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 12257 | goto bad; |
| 12258 | } |
| 12259 | } |
| 12260 | inet4++; |
| 12261 | break; |
| 12262 | case AF_INET6: |
| 12263 | if (strcmp(strport, "54321") != 0) { |
| 12264 | goto bad; |
| 12265 | } |
| 12266 | if (passive) { |
| 12267 | if (strcmp(straddr, "::") != 0) { |
| 12268 | goto bad; |
| 12269 | } |
| 12270 | } else { |
| 12271 | if (strcmp(straddr, "::1") != 0) { |
| 12272 | goto bad; |
| 12273 | } |
| 12274 | } |
| 12275 | inet6++; |
| 12276 | break; |
| 12277 | case AF_UNSPEC: |
| 12278 | goto bad; |
| 12279 | break; |
| 12280 | default: |
| 12281 | /* another family support? */ |
| 12282 | break; |
| 12283 | } |
| 12284 | } |
| 12285 | } |
| 12286 | |
| 12287 | if (!(inet4 == 0 || inet4 == 2)) |
| 12288 | goto bad; |
| 12289 | if (!(inet6 == 0 || inet6 == 2)) |
| 12290 | goto bad; |
| 12291 | |
| 12292 | if (aitop) |
| 12293 | freeaddrinfo(aitop); |
| 12294 | exit(0); |
| 12295 | |
| 12296 | bad: |
| 12297 | if (aitop) |
| 12298 | freeaddrinfo(aitop); |
| 12299 | exit(1); |
| 12300 | } |
| 12301 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12302 | _ACEOF |
| 12303 | rm -f conftest$ac_exeext |
| 12304 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12305 | (eval $ac_link) 2>&5 |
| 12306 | ac_status=$? |
| 12307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12308 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12310 | (eval $ac_try) 2>&5 |
| 12311 | ac_status=$? |
| 12312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12313 | (exit $ac_status); }; }; then |
| 12314 | echo "$as_me:$LINENO: result: good" >&5 |
| 12315 | echo "${ECHO_T}good" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12316 | buggygetaddrinfo=no |
| 12317 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12318 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12319 | echo "$as_me: failed program was:" >&5 |
| 12320 | cat conftest.$ac_ext >&5 |
| 12321 | ( exit $ac_status ) |
| 12322 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 12323 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12324 | buggygetaddrinfo=yes |
| 12325 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12326 | 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] | 12327 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12328 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12329 | echo "$as_me: failed program was:" >&5 |
| 12330 | cat conftest.$ac_ext >&5 |
| 12331 | |
| 12332 | echo "$as_me:$LINENO: result: no" >&5 |
| 12333 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12334 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12335 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12336 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12337 | 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] | 12338 | |
| 12339 | if test "$buggygetaddrinfo" = "yes"; then |
| 12340 | if test "$ipv6" = "yes"; then |
| 12341 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 12342 | echo ' or you can specify "--disable-ipv6"'. |
| 12343 | exit 1 |
| 12344 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12345 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12346 | |
| 12347 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12348 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12349 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12350 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12351 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12352 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 12353 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12354 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12355 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12356 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12357 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12358 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12360 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12361 | cat >conftest.$ac_ext <<_ACEOF |
| 12362 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12363 | #include "confdefs.h" |
| 12364 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12365 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12366 | #include <assert.h> |
| 12367 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12368 | #ifdef __cplusplus |
| 12369 | extern "C" |
| 12370 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12371 | /* 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] | 12372 | builtin and then its argument prototype would still apply. */ |
| 12373 | char $ac_func (); |
| 12374 | char (*f) (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12375 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12376 | #ifdef F77_DUMMY_MAIN |
| 12377 | # ifdef __cplusplus |
| 12378 | extern "C" |
| 12379 | # endif |
| 12380 | int F77_DUMMY_MAIN() { return 1; } |
| 12381 | #endif |
| 12382 | int |
| 12383 | main () |
| 12384 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12385 | /* The GNU C library defines this for functions which it implements |
| 12386 | to always fail with ENOSYS. Some functions are actually named |
| 12387 | something starting with __ and the normal name is an alias. */ |
| 12388 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12389 | choke me |
| 12390 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12391 | f = $ac_func; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12392 | #endif |
| 12393 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12394 | ; |
| 12395 | return 0; |
| 12396 | } |
| 12397 | _ACEOF |
| 12398 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12399 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12400 | (eval $ac_link) 2>&5 |
| 12401 | ac_status=$? |
| 12402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12403 | (exit $ac_status); } && |
| 12404 | { ac_try='test -s conftest$ac_exeext' |
| 12405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12406 | (eval $ac_try) 2>&5 |
| 12407 | ac_status=$? |
| 12408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12409 | (exit $ac_status); }; }; then |
| 12410 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12411 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12412 | echo "$as_me: failed program was:" >&5 |
| 12413 | cat conftest.$ac_ext >&5 |
| 12414 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12415 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12416 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12417 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12418 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12419 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12420 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12421 | cat >>confdefs.h <<_ACEOF |
| 12422 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12423 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12424 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12425 | fi |
| 12426 | done |
| 12427 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12428 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12429 | # checks for structures |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12430 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 12431 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 12432 | if test "${ac_cv_header_time+set}" = set; then |
| 12433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12434 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12435 | cat >conftest.$ac_ext <<_ACEOF |
| 12436 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12437 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12438 | #include <sys/types.h> |
| 12439 | #include <sys/time.h> |
| 12440 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12441 | |
| 12442 | #ifdef F77_DUMMY_MAIN |
| 12443 | # ifdef __cplusplus |
| 12444 | extern "C" |
| 12445 | # endif |
| 12446 | int F77_DUMMY_MAIN() { return 1; } |
| 12447 | #endif |
| 12448 | int |
| 12449 | main () |
| 12450 | { |
| 12451 | if ((struct tm *) 0) |
| 12452 | return 0; |
| 12453 | ; |
| 12454 | return 0; |
| 12455 | } |
| 12456 | _ACEOF |
| 12457 | rm -f conftest.$ac_objext |
| 12458 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12459 | (eval $ac_compile) 2>&5 |
| 12460 | ac_status=$? |
| 12461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12462 | (exit $ac_status); } && |
| 12463 | { ac_try='test -s conftest.$ac_objext' |
| 12464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12465 | (eval $ac_try) 2>&5 |
| 12466 | ac_status=$? |
| 12467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12468 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12469 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12470 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12471 | echo "$as_me: failed program was:" >&5 |
| 12472 | cat conftest.$ac_ext >&5 |
| 12473 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12474 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12475 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12476 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12477 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 12478 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12479 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12480 | |
| 12481 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12482 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12483 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12484 | |
| 12485 | fi |
| 12486 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12487 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 12488 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 12489 | if test "${ac_cv_struct_tm+set}" = set; then |
| 12490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12491 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12492 | cat >conftest.$ac_ext <<_ACEOF |
| 12493 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12494 | #include "confdefs.h" |
| 12495 | #include <sys/types.h> |
| 12496 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12497 | |
| 12498 | #ifdef F77_DUMMY_MAIN |
| 12499 | # ifdef __cplusplus |
| 12500 | extern "C" |
| 12501 | # endif |
| 12502 | int F77_DUMMY_MAIN() { return 1; } |
| 12503 | #endif |
| 12504 | int |
| 12505 | main () |
| 12506 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12507 | struct tm *tp; tp->tm_sec; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12508 | ; |
| 12509 | return 0; |
| 12510 | } |
| 12511 | _ACEOF |
| 12512 | rm -f conftest.$ac_objext |
| 12513 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12514 | (eval $ac_compile) 2>&5 |
| 12515 | ac_status=$? |
| 12516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12517 | (exit $ac_status); } && |
| 12518 | { ac_try='test -s conftest.$ac_objext' |
| 12519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12520 | (eval $ac_try) 2>&5 |
| 12521 | ac_status=$? |
| 12522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12523 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12524 | ac_cv_struct_tm=time.h |
| 12525 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12526 | echo "$as_me: failed program was:" >&5 |
| 12527 | cat conftest.$ac_ext >&5 |
| 12528 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12529 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12530 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12531 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12532 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 12533 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12534 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12535 | |
| 12536 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12537 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12538 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12539 | |
| 12540 | fi |
| 12541 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12542 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 12543 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 12544 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 12545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12546 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12547 | cat >conftest.$ac_ext <<_ACEOF |
| 12548 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12549 | #include "confdefs.h" |
| 12550 | #include <sys/types.h> |
| 12551 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12552 | |
| 12553 | |
| 12554 | #ifdef F77_DUMMY_MAIN |
| 12555 | # ifdef __cplusplus |
| 12556 | extern "C" |
| 12557 | # endif |
| 12558 | int F77_DUMMY_MAIN() { return 1; } |
| 12559 | #endif |
| 12560 | int |
| 12561 | main () |
| 12562 | { |
| 12563 | static struct tm ac_aggr; |
| 12564 | if (ac_aggr.tm_zone) |
| 12565 | return 0; |
| 12566 | ; |
| 12567 | return 0; |
| 12568 | } |
| 12569 | _ACEOF |
| 12570 | rm -f conftest.$ac_objext |
| 12571 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12572 | (eval $ac_compile) 2>&5 |
| 12573 | ac_status=$? |
| 12574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12575 | (exit $ac_status); } && |
| 12576 | { ac_try='test -s conftest.$ac_objext' |
| 12577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12578 | (eval $ac_try) 2>&5 |
| 12579 | ac_status=$? |
| 12580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12581 | (exit $ac_status); }; }; then |
| 12582 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12583 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12584 | echo "$as_me: failed program was:" >&5 |
| 12585 | cat conftest.$ac_ext >&5 |
| 12586 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12587 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12588 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12589 | fi |
| 12590 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 12591 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 12592 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 12593 | |
| 12594 | cat >>confdefs.h <<_ACEOF |
| 12595 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 12596 | _ACEOF |
| 12597 | |
| 12598 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12599 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12600 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12601 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 12602 | |
| 12603 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12604 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12605 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12606 | |
| 12607 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12608 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 12609 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 12610 | if test "${ac_cv_var_tzname+set}" = set; then |
| 12611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12612 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12613 | cat >conftest.$ac_ext <<_ACEOF |
| 12614 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12615 | #include "confdefs.h" |
| 12616 | #include <time.h> |
| 12617 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12618 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12619 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12620 | |
| 12621 | #ifdef F77_DUMMY_MAIN |
| 12622 | # ifdef __cplusplus |
| 12623 | extern "C" |
| 12624 | # endif |
| 12625 | int F77_DUMMY_MAIN() { return 1; } |
| 12626 | #endif |
| 12627 | int |
| 12628 | main () |
| 12629 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12630 | atoi(*tzname); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12631 | ; |
| 12632 | return 0; |
| 12633 | } |
| 12634 | _ACEOF |
| 12635 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12636 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12637 | (eval $ac_link) 2>&5 |
| 12638 | ac_status=$? |
| 12639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12640 | (exit $ac_status); } && |
| 12641 | { ac_try='test -s conftest$ac_exeext' |
| 12642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12643 | (eval $ac_try) 2>&5 |
| 12644 | ac_status=$? |
| 12645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12646 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12647 | ac_cv_var_tzname=yes |
| 12648 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12649 | echo "$as_me: failed program was:" >&5 |
| 12650 | cat conftest.$ac_ext >&5 |
| 12651 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12652 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12653 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12654 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12655 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 12656 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12657 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12658 | |
| 12659 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12660 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12661 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12662 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12663 | fi |
| 12664 | fi |
| 12665 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12666 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12667 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 12668 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 |
| 12669 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 12670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12671 | else |
| 12672 | cat >conftest.$ac_ext <<_ACEOF |
| 12673 | #line $LINENO "configure" |
| 12674 | #include "confdefs.h" |
| 12675 | $ac_includes_default |
| 12676 | #ifdef F77_DUMMY_MAIN |
| 12677 | # ifdef __cplusplus |
| 12678 | extern "C" |
| 12679 | # endif |
| 12680 | int F77_DUMMY_MAIN() { return 1; } |
| 12681 | #endif |
| 12682 | int |
| 12683 | main () |
| 12684 | { |
| 12685 | static struct stat ac_aggr; |
| 12686 | if (ac_aggr.st_rdev) |
| 12687 | return 0; |
| 12688 | ; |
| 12689 | return 0; |
| 12690 | } |
| 12691 | _ACEOF |
| 12692 | rm -f conftest.$ac_objext |
| 12693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12694 | (eval $ac_compile) 2>&5 |
| 12695 | ac_status=$? |
| 12696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12697 | (exit $ac_status); } && |
| 12698 | { ac_try='test -s conftest.$ac_objext' |
| 12699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12700 | (eval $ac_try) 2>&5 |
| 12701 | ac_status=$? |
| 12702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12703 | (exit $ac_status); }; }; then |
| 12704 | ac_cv_member_struct_stat_st_rdev=yes |
| 12705 | else |
| 12706 | echo "$as_me: failed program was:" >&5 |
| 12707 | cat conftest.$ac_ext >&5 |
| 12708 | ac_cv_member_struct_stat_st_rdev=no |
| 12709 | fi |
| 12710 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12711 | fi |
| 12712 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 12713 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 |
| 12714 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 12715 | |
| 12716 | cat >>confdefs.h <<_ACEOF |
| 12717 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 12718 | _ACEOF |
| 12719 | |
| 12720 | |
| 12721 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12722 | #define HAVE_ST_RDEV 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12723 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12724 | |
| 12725 | fi |
| 12726 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12727 | |
| 12728 | |
| 12729 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 12730 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| 12731 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 12732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12733 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12734 | cat >conftest.$ac_ext <<_ACEOF |
| 12735 | #line $LINENO "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12736 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12737 | $ac_includes_default |
| 12738 | #ifdef F77_DUMMY_MAIN |
| 12739 | # ifdef __cplusplus |
| 12740 | extern "C" |
| 12741 | # endif |
| 12742 | int F77_DUMMY_MAIN() { return 1; } |
| 12743 | #endif |
| 12744 | int |
| 12745 | main () |
| 12746 | { |
| 12747 | static struct stat ac_aggr; |
| 12748 | if (ac_aggr.st_blksize) |
| 12749 | return 0; |
| 12750 | ; |
| 12751 | return 0; |
| 12752 | } |
| 12753 | _ACEOF |
| 12754 | rm -f conftest.$ac_objext |
| 12755 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12756 | (eval $ac_compile) 2>&5 |
| 12757 | ac_status=$? |
| 12758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12759 | (exit $ac_status); } && |
| 12760 | { ac_try='test -s conftest.$ac_objext' |
| 12761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12762 | (eval $ac_try) 2>&5 |
| 12763 | ac_status=$? |
| 12764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12765 | (exit $ac_status); }; }; then |
| 12766 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12767 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12768 | echo "$as_me: failed program was:" >&5 |
| 12769 | cat conftest.$ac_ext >&5 |
| 12770 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12771 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12772 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12773 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12774 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 12775 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| 12776 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12777 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12778 | cat >>confdefs.h <<_ACEOF |
| 12779 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 12780 | _ACEOF |
| 12781 | |
| 12782 | |
| 12783 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12784 | #define HAVE_ST_BLKSIZE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12785 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12786 | |
| 12787 | fi |
| 12788 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12789 | |
| 12790 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 12791 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 12792 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 12793 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12794 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12795 | cat >conftest.$ac_ext <<_ACEOF |
| 12796 | #line $LINENO "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12797 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12798 | $ac_includes_default |
| 12799 | #ifdef F77_DUMMY_MAIN |
| 12800 | # ifdef __cplusplus |
| 12801 | extern "C" |
| 12802 | # endif |
| 12803 | int F77_DUMMY_MAIN() { return 1; } |
| 12804 | #endif |
| 12805 | int |
| 12806 | main () |
| 12807 | { |
| 12808 | static struct stat ac_aggr; |
| 12809 | if (ac_aggr.st_blocks) |
| 12810 | return 0; |
| 12811 | ; |
| 12812 | return 0; |
| 12813 | } |
| 12814 | _ACEOF |
| 12815 | rm -f conftest.$ac_objext |
| 12816 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12817 | (eval $ac_compile) 2>&5 |
| 12818 | ac_status=$? |
| 12819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12820 | (exit $ac_status); } && |
| 12821 | { ac_try='test -s conftest.$ac_objext' |
| 12822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12823 | (eval $ac_try) 2>&5 |
| 12824 | ac_status=$? |
| 12825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12826 | (exit $ac_status); }; }; then |
| 12827 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12828 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12829 | echo "$as_me: failed program was:" >&5 |
| 12830 | cat conftest.$ac_ext >&5 |
| 12831 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12832 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12833 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12834 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12835 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 12836 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 12837 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12838 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12839 | cat >>confdefs.h <<_ACEOF |
| 12840 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 12841 | _ACEOF |
| 12842 | |
| 12843 | |
| 12844 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12845 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12846 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12847 | |
| 12848 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12849 | LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12850 | fi |
| 12851 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12852 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12853 | |
| 12854 | echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 12855 | echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6 |
| 12856 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 12857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12858 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12859 | cat >conftest.$ac_ext <<_ACEOF |
| 12860 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12861 | #include "confdefs.h" |
| 12862 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12863 | #ifdef F77_DUMMY_MAIN |
| 12864 | # ifdef __cplusplus |
| 12865 | extern "C" |
| 12866 | # endif |
| 12867 | int F77_DUMMY_MAIN() { return 1; } |
| 12868 | #endif |
| 12869 | int |
| 12870 | main () |
| 12871 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12872 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12873 | ; |
| 12874 | return 0; |
| 12875 | } |
| 12876 | _ACEOF |
| 12877 | rm -f conftest.$ac_objext |
| 12878 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12879 | (eval $ac_compile) 2>&5 |
| 12880 | ac_status=$? |
| 12881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12882 | (exit $ac_status); } && |
| 12883 | { ac_try='test -s conftest.$ac_objext' |
| 12884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12885 | (eval $ac_try) 2>&5 |
| 12886 | ac_status=$? |
| 12887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12888 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12889 | ac_cv_header_time_altzone=yes |
| 12890 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12891 | echo "$as_me: failed program was:" >&5 |
| 12892 | cat conftest.$ac_ext >&5 |
| 12893 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12894 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12895 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12896 | fi |
| 12897 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12898 | echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 12899 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12900 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12901 | |
| 12902 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12903 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12904 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12905 | |
| 12906 | fi |
| 12907 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12908 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12909 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 12910 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 12911 | cat >conftest.$ac_ext <<_ACEOF |
| 12912 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12913 | #include "confdefs.h" |
| 12914 | |
| 12915 | #include <sys/types.h> |
| 12916 | #include <sys/select.h> |
| 12917 | #include <sys/time.h> |
| 12918 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12919 | #ifdef F77_DUMMY_MAIN |
| 12920 | # ifdef __cplusplus |
| 12921 | extern "C" |
| 12922 | # endif |
| 12923 | int F77_DUMMY_MAIN() { return 1; } |
| 12924 | #endif |
| 12925 | int |
| 12926 | main () |
| 12927 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12928 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12929 | ; |
| 12930 | return 0; |
| 12931 | } |
| 12932 | _ACEOF |
| 12933 | rm -f conftest.$ac_objext |
| 12934 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12935 | (eval $ac_compile) 2>&5 |
| 12936 | ac_status=$? |
| 12937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12938 | (exit $ac_status); } && |
| 12939 | { ac_try='test -s conftest.$ac_objext' |
| 12940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12941 | (eval $ac_try) 2>&5 |
| 12942 | ac_status=$? |
| 12943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12944 | (exit $ac_status); }; }; then |
| 12945 | |
| 12946 | |
| 12947 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12948 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12949 | _ACEOF |
| 12950 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12951 | was_it_defined=yes |
| 12952 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 12953 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12954 | echo "$as_me: failed program was:" >&5 |
| 12955 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12956 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12957 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12958 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 12959 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12960 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12961 | echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 12962 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6 |
| 12963 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 12964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12965 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12966 | cat >conftest.$ac_ext <<_ACEOF |
| 12967 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12968 | #include "confdefs.h" |
| 12969 | |
| 12970 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12971 | #ifdef F77_DUMMY_MAIN |
| 12972 | # ifdef __cplusplus |
| 12973 | extern "C" |
| 12974 | # endif |
| 12975 | int F77_DUMMY_MAIN() { return 1; } |
| 12976 | #endif |
| 12977 | int |
| 12978 | main () |
| 12979 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12980 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12981 | ; |
| 12982 | return 0; |
| 12983 | } |
| 12984 | _ACEOF |
| 12985 | rm -f conftest.$ac_objext |
| 12986 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12987 | (eval $ac_compile) 2>&5 |
| 12988 | ac_status=$? |
| 12989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12990 | (exit $ac_status); } && |
| 12991 | { ac_try='test -s conftest.$ac_objext' |
| 12992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12993 | (eval $ac_try) 2>&5 |
| 12994 | ac_status=$? |
| 12995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12996 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12997 | ac_cv_struct_addrinfo=yes |
| 12998 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12999 | echo "$as_me: failed program was:" >&5 |
| 13000 | cat conftest.$ac_ext >&5 |
| 13001 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13002 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13003 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13004 | fi |
| 13005 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13006 | echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 13007 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13008 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13009 | |
| 13010 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13011 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13012 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13013 | |
| 13014 | fi |
| 13015 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13016 | echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 13017 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 |
| 13018 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 13019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13020 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13021 | cat >conftest.$ac_ext <<_ACEOF |
| 13022 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13023 | #include "confdefs.h" |
| 13024 | |
| 13025 | # include <sys/types.h> |
| 13026 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13027 | #ifdef F77_DUMMY_MAIN |
| 13028 | # ifdef __cplusplus |
| 13029 | extern "C" |
| 13030 | # endif |
| 13031 | int F77_DUMMY_MAIN() { return 1; } |
| 13032 | #endif |
| 13033 | int |
| 13034 | main () |
| 13035 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13036 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13037 | ; |
| 13038 | return 0; |
| 13039 | } |
| 13040 | _ACEOF |
| 13041 | rm -f conftest.$ac_objext |
| 13042 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13043 | (eval $ac_compile) 2>&5 |
| 13044 | ac_status=$? |
| 13045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13046 | (exit $ac_status); } && |
| 13047 | { ac_try='test -s conftest.$ac_objext' |
| 13048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13049 | (eval $ac_try) 2>&5 |
| 13050 | ac_status=$? |
| 13051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13052 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13053 | ac_cv_struct_sockaddr_storage=yes |
| 13054 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13055 | echo "$as_me: failed program was:" >&5 |
| 13056 | cat conftest.$ac_ext >&5 |
| 13057 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13058 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13059 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13060 | fi |
| 13061 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13062 | echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 13063 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13064 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13065 | |
| 13066 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13067 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13068 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13069 | |
| 13070 | fi |
| 13071 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13072 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13073 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13074 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13075 | echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 13076 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
| 13077 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 13078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13079 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13080 | cat >conftest.$ac_ext <<_ACEOF |
| 13081 | #line $LINENO "configure" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13082 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13083 | $ac_includes_default |
| 13084 | #ifdef F77_DUMMY_MAIN |
| 13085 | # ifdef __cplusplus |
| 13086 | extern "C" |
| 13087 | # endif |
| 13088 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13089 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13090 | int |
| 13091 | main () |
| 13092 | { |
| 13093 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 13094 | test_array [0] = 0 |
| 13095 | |
| 13096 | ; |
| 13097 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13098 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13099 | _ACEOF |
| 13100 | rm -f conftest.$ac_objext |
| 13101 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13102 | (eval $ac_compile) 2>&5 |
| 13103 | ac_status=$? |
| 13104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13105 | (exit $ac_status); } && |
| 13106 | { ac_try='test -s conftest.$ac_objext' |
| 13107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13108 | (eval $ac_try) 2>&5 |
| 13109 | ac_status=$? |
| 13110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13111 | (exit $ac_status); }; }; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13112 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13113 | else |
| 13114 | echo "$as_me: failed program was:" >&5 |
| 13115 | cat conftest.$ac_ext >&5 |
| 13116 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13117 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13118 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13119 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13120 | echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 13121 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13122 | 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] | 13123 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13124 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13125 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13126 | |
| 13127 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13128 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13129 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 13130 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 13131 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 13132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13133 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13134 | ac_cv_prog_cc_stdc=no |
| 13135 | ac_save_CC=$CC |
| 13136 | cat >conftest.$ac_ext <<_ACEOF |
| 13137 | #line $LINENO "configure" |
| 13138 | #include "confdefs.h" |
| 13139 | #include <stdarg.h> |
| 13140 | #include <stdio.h> |
| 13141 | #include <sys/types.h> |
| 13142 | #include <sys/stat.h> |
| 13143 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 13144 | struct buf { int x; }; |
| 13145 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 13146 | static char *e (p, i) |
| 13147 | char **p; |
| 13148 | int i; |
| 13149 | { |
| 13150 | return p[i]; |
| 13151 | } |
| 13152 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 13153 | { |
| 13154 | char *s; |
| 13155 | va_list v; |
| 13156 | va_start (v,p); |
| 13157 | s = g (p, va_arg (v,int)); |
| 13158 | va_end (v); |
| 13159 | return s; |
| 13160 | } |
| 13161 | int test (int i, double x); |
| 13162 | struct s1 {int (*f) (int a);}; |
| 13163 | struct s2 {int (*f) (double a);}; |
| 13164 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 13165 | int argc; |
| 13166 | char **argv; |
| 13167 | #ifdef F77_DUMMY_MAIN |
| 13168 | # ifdef __cplusplus |
| 13169 | extern "C" |
| 13170 | # endif |
| 13171 | int F77_DUMMY_MAIN() { return 1; } |
| 13172 | #endif |
| 13173 | int |
| 13174 | main () |
| 13175 | { |
| 13176 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 13177 | ; |
| 13178 | return 0; |
| 13179 | } |
| 13180 | _ACEOF |
| 13181 | # Don't try gcc -ansi; that turns off useful extensions and |
| 13182 | # breaks some systems' header files. |
| 13183 | # AIX -qlanglvl=ansi |
| 13184 | # Ultrix and OSF/1 -std1 |
| 13185 | # HP-UX 10.20 and later -Ae |
| 13186 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 13187 | # SVR4 -Xc -D__EXTENSIONS__ |
| 13188 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 13189 | do |
| 13190 | CC="$ac_save_CC $ac_arg" |
| 13191 | rm -f conftest.$ac_objext |
| 13192 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13193 | (eval $ac_compile) 2>&5 |
| 13194 | ac_status=$? |
| 13195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13196 | (exit $ac_status); } && |
| 13197 | { ac_try='test -s conftest.$ac_objext' |
| 13198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13199 | (eval $ac_try) 2>&5 |
| 13200 | ac_status=$? |
| 13201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13202 | (exit $ac_status); }; }; then |
| 13203 | ac_cv_prog_cc_stdc=$ac_arg |
| 13204 | break |
| 13205 | else |
| 13206 | echo "$as_me: failed program was:" >&5 |
| 13207 | cat conftest.$ac_ext >&5 |
| 13208 | fi |
| 13209 | rm -f conftest.$ac_objext |
| 13210 | done |
| 13211 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 13212 | CC=$ac_save_CC |
| 13213 | |
| 13214 | fi |
| 13215 | |
| 13216 | case "x$ac_cv_prog_cc_stdc" in |
| 13217 | x|xno) |
| 13218 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 13219 | echo "${ECHO_T}none needed" >&6 ;; |
| 13220 | *) |
| 13221 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 13222 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 13223 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 13224 | esac |
| 13225 | |
| 13226 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 13227 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 13228 | if test "${ac_cv_c_const+set}" = set; then |
| 13229 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13230 | else |
| 13231 | cat >conftest.$ac_ext <<_ACEOF |
| 13232 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13233 | #include "confdefs.h" |
| 13234 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13235 | #ifdef F77_DUMMY_MAIN |
| 13236 | # ifdef __cplusplus |
| 13237 | extern "C" |
| 13238 | # endif |
| 13239 | int F77_DUMMY_MAIN() { return 1; } |
| 13240 | #endif |
| 13241 | int |
| 13242 | main () |
| 13243 | { |
| 13244 | /* FIXME: Include the comments suggested by Paul. */ |
| 13245 | #ifndef __cplusplus |
| 13246 | /* Ultrix mips cc rejects this. */ |
| 13247 | typedef int charset[2]; |
| 13248 | const charset x; |
| 13249 | /* SunOS 4.1.1 cc rejects this. */ |
| 13250 | char const *const *ccp; |
| 13251 | char **p; |
| 13252 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 13253 | struct point {int x, y;}; |
| 13254 | static struct point const zero = {0,0}; |
| 13255 | /* AIX XL C 1.02.0.0 rejects this. |
| 13256 | It does not let you subtract one const X* pointer from another in |
| 13257 | an arm of an if-expression whose if-part is not a constant |
| 13258 | expression */ |
| 13259 | const char *g = "string"; |
| 13260 | ccp = &g + (g ? g-g : 0); |
| 13261 | /* HPUX 7.0 cc rejects these. */ |
| 13262 | ++ccp; |
| 13263 | p = (char**) ccp; |
| 13264 | ccp = (char const *const *) p; |
| 13265 | { /* SCO 3.2v4 cc rejects this. */ |
| 13266 | char *t; |
| 13267 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13268 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13269 | *t++ = 0; |
| 13270 | } |
| 13271 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 13272 | int x[] = {25, 17}; |
| 13273 | const int *foo = &x[0]; |
| 13274 | ++foo; |
| 13275 | } |
| 13276 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 13277 | typedef const int *iptr; |
| 13278 | iptr p = 0; |
| 13279 | ++p; |
| 13280 | } |
| 13281 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 13282 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 13283 | struct s { int j; const int *ap[3]; }; |
| 13284 | struct s *b; b->j = 5; |
| 13285 | } |
| 13286 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 13287 | const int foo = 10; |
| 13288 | } |
| 13289 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13290 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13291 | ; |
| 13292 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13293 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13294 | _ACEOF |
| 13295 | rm -f conftest.$ac_objext |
| 13296 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13297 | (eval $ac_compile) 2>&5 |
| 13298 | ac_status=$? |
| 13299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13300 | (exit $ac_status); } && |
| 13301 | { ac_try='test -s conftest.$ac_objext' |
| 13302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13303 | (eval $ac_try) 2>&5 |
| 13304 | ac_status=$? |
| 13305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13306 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13307 | ac_cv_c_const=yes |
| 13308 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13309 | echo "$as_me: failed program was:" >&5 |
| 13310 | cat conftest.$ac_ext >&5 |
| 13311 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13312 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13313 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13314 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13315 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 13316 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13317 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13318 | |
| 13319 | cat >>confdefs.h <<\_ACEOF |
| 13320 | #define const |
| 13321 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13322 | |
| 13323 | fi |
| 13324 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13325 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13326 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13327 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 13328 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| 13329 | cat >conftest.$ac_ext <<_ACEOF |
| 13330 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13331 | #include "confdefs.h" |
| 13332 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13333 | #ifdef F77_DUMMY_MAIN |
| 13334 | # ifdef __cplusplus |
| 13335 | extern "C" |
| 13336 | # endif |
| 13337 | int F77_DUMMY_MAIN() { return 1; } |
| 13338 | #endif |
| 13339 | int |
| 13340 | main () |
| 13341 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13342 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13343 | ; |
| 13344 | return 0; |
| 13345 | } |
| 13346 | _ACEOF |
| 13347 | rm -f conftest.$ac_objext |
| 13348 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13349 | (eval $ac_compile) 2>&5 |
| 13350 | ac_status=$? |
| 13351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13352 | (exit $ac_status); } && |
| 13353 | { ac_try='test -s conftest.$ac_objext' |
| 13354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13355 | (eval $ac_try) 2>&5 |
| 13356 | ac_status=$? |
| 13357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13358 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13359 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13360 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13361 | echo "$as_me: failed program was:" >&5 |
| 13362 | cat conftest.$ac_ext >&5 |
| 13363 | |
| 13364 | cat >>confdefs.h <<\_ACEOF |
| 13365 | #define volatile |
| 13366 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13367 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13368 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13369 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13370 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13371 | echo "$as_me:$LINENO: result: $works" >&5 |
| 13372 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13373 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13374 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13375 | echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 13376 | echo $ECHO_N "checking for working signed char... $ECHO_C" >&6 |
| 13377 | cat >conftest.$ac_ext <<_ACEOF |
| 13378 | #line $LINENO "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13379 | #include "confdefs.h" |
| 13380 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13381 | #ifdef F77_DUMMY_MAIN |
| 13382 | # ifdef __cplusplus |
| 13383 | extern "C" |
| 13384 | # endif |
| 13385 | int F77_DUMMY_MAIN() { return 1; } |
| 13386 | #endif |
| 13387 | int |
| 13388 | main () |
| 13389 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13390 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13391 | ; |
| 13392 | return 0; |
| 13393 | } |
| 13394 | _ACEOF |
| 13395 | rm -f conftest.$ac_objext |
| 13396 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13397 | (eval $ac_compile) 2>&5 |
| 13398 | ac_status=$? |
| 13399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13400 | (exit $ac_status); } && |
| 13401 | { ac_try='test -s conftest.$ac_objext' |
| 13402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13403 | (eval $ac_try) 2>&5 |
| 13404 | ac_status=$? |
| 13405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13406 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13407 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13408 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13409 | echo "$as_me: failed program was:" >&5 |
| 13410 | cat conftest.$ac_ext >&5 |
| 13411 | |
| 13412 | cat >>confdefs.h <<\_ACEOF |
| 13413 | #define signed |
| 13414 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13415 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13416 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13417 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13418 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13419 | echo "$as_me:$LINENO: result: $works" >&5 |
| 13420 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13421 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13422 | have_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13423 | echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 13424 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6 |
| 13425 | cat >conftest.$ac_ext <<_ACEOF |
| 13426 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13427 | #include "confdefs.h" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13428 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13429 | #ifdef F77_DUMMY_MAIN |
| 13430 | # ifdef __cplusplus |
| 13431 | extern "C" |
| 13432 | # endif |
| 13433 | int F77_DUMMY_MAIN() { return 1; } |
| 13434 | #endif |
| 13435 | int |
| 13436 | main () |
| 13437 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13438 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13439 | ; |
| 13440 | return 0; |
| 13441 | } |
| 13442 | _ACEOF |
| 13443 | rm -f conftest.$ac_objext |
| 13444 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13445 | (eval $ac_compile) 2>&5 |
| 13446 | ac_status=$? |
| 13447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13448 | (exit $ac_status); } && |
| 13449 | { ac_try='test -s conftest.$ac_objext' |
| 13450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13451 | (eval $ac_try) 2>&5 |
| 13452 | ac_status=$? |
| 13453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13454 | (exit $ac_status); }; }; then |
| 13455 | |
| 13456 | |
| 13457 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13458 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13459 | _ACEOF |
| 13460 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13461 | have_prototypes=yes |
| 13462 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13463 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13464 | echo "$as_me: failed program was:" >&5 |
| 13465 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13466 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13467 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13468 | echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 13469 | echo "${ECHO_T}$have_prototypes" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13470 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13471 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13472 | echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 13473 | echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6 |
| 13474 | cat >conftest.$ac_ext <<_ACEOF |
| 13475 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13476 | #include "confdefs.h" |
| 13477 | |
| 13478 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13479 | int foo(int x, ...) { |
| 13480 | va_list va; |
| 13481 | va_start(va, x); |
| 13482 | va_arg(va, int); |
| 13483 | va_arg(va, char *); |
| 13484 | va_arg(va, double); |
| 13485 | return 0; |
| 13486 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13487 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13488 | #ifdef F77_DUMMY_MAIN |
| 13489 | # ifdef __cplusplus |
| 13490 | extern "C" |
| 13491 | # endif |
| 13492 | int F77_DUMMY_MAIN() { return 1; } |
| 13493 | #endif |
| 13494 | int |
| 13495 | main () |
| 13496 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13497 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13498 | ; |
| 13499 | return 0; |
| 13500 | } |
| 13501 | _ACEOF |
| 13502 | rm -f conftest.$ac_objext |
| 13503 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13504 | (eval $ac_compile) 2>&5 |
| 13505 | ac_status=$? |
| 13506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13507 | (exit $ac_status); } && |
| 13508 | { ac_try='test -s conftest.$ac_objext' |
| 13509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13510 | (eval $ac_try) 2>&5 |
| 13511 | ac_status=$? |
| 13512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13513 | (exit $ac_status); }; }; then |
| 13514 | |
| 13515 | |
| 13516 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13517 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13518 | _ACEOF |
| 13519 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13520 | works=yes |
| 13521 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13522 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13523 | echo "$as_me: failed program was:" >&5 |
| 13524 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13525 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13526 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13527 | echo "$as_me:$LINENO: result: $works" >&5 |
| 13528 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13529 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13530 | if test "$have_prototypes" = yes; then |
| 13531 | bad_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13532 | echo "$as_me:$LINENO: checking for bad exec* prototypes" >&5 |
| 13533 | echo $ECHO_N "checking for bad exec* prototypes... $ECHO_C" >&6 |
| 13534 | cat >conftest.$ac_ext <<_ACEOF |
| 13535 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13536 | #include "confdefs.h" |
| 13537 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13538 | #ifdef F77_DUMMY_MAIN |
| 13539 | # ifdef __cplusplus |
| 13540 | extern "C" |
| 13541 | # endif |
| 13542 | int F77_DUMMY_MAIN() { return 1; } |
| 13543 | #endif |
| 13544 | int |
| 13545 | main () |
| 13546 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13547 | char **t;execve("@",t,t); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13548 | ; |
| 13549 | return 0; |
| 13550 | } |
| 13551 | _ACEOF |
| 13552 | rm -f conftest.$ac_objext |
| 13553 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13554 | (eval $ac_compile) 2>&5 |
| 13555 | ac_status=$? |
| 13556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13557 | (exit $ac_status); } && |
| 13558 | { ac_try='test -s conftest.$ac_objext' |
| 13559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13560 | (eval $ac_try) 2>&5 |
| 13561 | ac_status=$? |
| 13562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13563 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13564 | : |
| 13565 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13566 | echo "$as_me: failed program was:" >&5 |
| 13567 | cat conftest.$ac_ext >&5 |
| 13568 | |
| 13569 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13570 | #define BAD_EXEC_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13571 | _ACEOF |
| 13572 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13573 | bad_prototypes=yes |
| 13574 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13575 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13576 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13577 | echo "$as_me:$LINENO: result: $bad_prototypes" >&5 |
| 13578 | echo "${ECHO_T}$bad_prototypes" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13579 | fi |
| 13580 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13581 | # check if sockaddr has sa_len member |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13582 | echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 13583 | echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6 |
| 13584 | cat >conftest.$ac_ext <<_ACEOF |
| 13585 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13586 | #include "confdefs.h" |
| 13587 | #include <sys/types.h> |
| 13588 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13589 | #ifdef F77_DUMMY_MAIN |
| 13590 | # ifdef __cplusplus |
| 13591 | extern "C" |
| 13592 | # endif |
| 13593 | int F77_DUMMY_MAIN() { return 1; } |
| 13594 | #endif |
| 13595 | int |
| 13596 | main () |
| 13597 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13598 | struct sockaddr x; |
| 13599 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13600 | ; |
| 13601 | return 0; |
| 13602 | } |
| 13603 | _ACEOF |
| 13604 | rm -f conftest.$ac_objext |
| 13605 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13606 | (eval $ac_compile) 2>&5 |
| 13607 | ac_status=$? |
| 13608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13609 | (exit $ac_status); } && |
| 13610 | { ac_try='test -s conftest.$ac_objext' |
| 13611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13612 | (eval $ac_try) 2>&5 |
| 13613 | ac_status=$? |
| 13614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13615 | (exit $ac_status); }; }; then |
| 13616 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13617 | echo "${ECHO_T}yes" >&6 |
| 13618 | |
| 13619 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13620 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13621 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13622 | |
| 13623 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13624 | echo "$as_me: failed program was:" >&5 |
| 13625 | cat conftest.$ac_ext >&5 |
| 13626 | echo "$as_me:$LINENO: result: no" >&5 |
| 13627 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13628 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13629 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13630 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13631 | echo "$as_me:$LINENO: checking for bad static forward" >&5 |
| 13632 | echo $ECHO_N "checking for bad static forward... $ECHO_C" >&6 |
| 13633 | if test "${ac_cv_bad_static_forward+set}" = set; then |
| 13634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 13635 | else |
| 13636 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 13637 | ac_cv_bad_static_forward=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13638 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13639 | cat >conftest.$ac_ext <<_ACEOF |
| 13640 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13641 | #include "confdefs.h" |
| 13642 | |
| 13643 | struct s { int a; int b; }; |
| 13644 | static struct s foo; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13645 | int foobar() { |
| 13646 | static int random; |
| 13647 | random = (int) &foo; |
| 13648 | return random; |
| 13649 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13650 | static struct s foo = { 1, 2 }; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13651 | main() { |
| 13652 | exit(!((int)&foo == foobar())); |
| 13653 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13654 | _ACEOF |
| 13655 | rm -f conftest$ac_exeext |
| 13656 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13657 | (eval $ac_link) 2>&5 |
| 13658 | ac_status=$? |
| 13659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13660 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13662 | (eval $ac_try) 2>&5 |
| 13663 | ac_status=$? |
| 13664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13665 | (exit $ac_status); }; }; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 13666 | ac_cv_bad_static_forward=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13667 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13668 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13669 | echo "$as_me: failed program was:" >&5 |
| 13670 | cat conftest.$ac_ext >&5 |
| 13671 | ( exit $ac_status ) |
| 13672 | ac_cv_bad_static_forward=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13673 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13674 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 13675 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13676 | fi |
| 13677 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13678 | echo "$as_me:$LINENO: result: $ac_cv_bad_static_forward" >&5 |
| 13679 | echo "${ECHO_T}$ac_cv_bad_static_forward" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 13680 | if test "$ac_cv_bad_static_forward" = yes |
| 13681 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13682 | |
| 13683 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 13684 | #define BAD_STATIC_FORWARD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13685 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 13686 | |
| 13687 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13688 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13689 | va_list_is_array=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13690 | echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 13691 | echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6 |
| 13692 | cat >conftest.$ac_ext <<_ACEOF |
| 13693 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13694 | #include "confdefs.h" |
| 13695 | |
| 13696 | #ifdef HAVE_STDARG_PROTOTYPES |
| 13697 | #include <stdarg.h> |
| 13698 | #else |
| 13699 | #include <varargs.h> |
| 13700 | #endif |
| 13701 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13702 | #ifdef F77_DUMMY_MAIN |
| 13703 | # ifdef __cplusplus |
| 13704 | extern "C" |
| 13705 | # endif |
| 13706 | int F77_DUMMY_MAIN() { return 1; } |
| 13707 | #endif |
| 13708 | int |
| 13709 | main () |
| 13710 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13711 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13712 | ; |
| 13713 | return 0; |
| 13714 | } |
| 13715 | _ACEOF |
| 13716 | rm -f conftest.$ac_objext |
| 13717 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13718 | (eval $ac_compile) 2>&5 |
| 13719 | ac_status=$? |
| 13720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13721 | (exit $ac_status); } && |
| 13722 | { ac_try='test -s conftest.$ac_objext' |
| 13723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13724 | (eval $ac_try) 2>&5 |
| 13725 | ac_status=$? |
| 13726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13727 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13728 | : |
| 13729 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13730 | echo "$as_me: failed program was:" >&5 |
| 13731 | cat conftest.$ac_ext >&5 |
| 13732 | |
| 13733 | |
| 13734 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13735 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13736 | _ACEOF |
| 13737 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13738 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13739 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13740 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13741 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13742 | echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 13743 | echo "${ECHO_T}$va_list_is_array" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13744 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13745 | # 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] | 13746 | |
| 13747 | |
| 13748 | |
| 13749 | echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 13750 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6 |
| 13751 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 13752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13753 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13754 | cat >conftest.$ac_ext <<_ACEOF |
| 13755 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13756 | #include "confdefs.h" |
| 13757 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13758 | which can conflict with char gethostbyname_r (); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13759 | #include <assert.h> |
| 13760 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13761 | #ifdef __cplusplus |
| 13762 | extern "C" |
| 13763 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13764 | /* 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] | 13765 | builtin and then its argument prototype would still apply. */ |
| 13766 | char gethostbyname_r (); |
| 13767 | char (*f) (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13768 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13769 | #ifdef F77_DUMMY_MAIN |
| 13770 | # ifdef __cplusplus |
| 13771 | extern "C" |
| 13772 | # endif |
| 13773 | int F77_DUMMY_MAIN() { return 1; } |
| 13774 | #endif |
| 13775 | int |
| 13776 | main () |
| 13777 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13778 | /* The GNU C library defines this for functions which it implements |
| 13779 | to always fail with ENOSYS. Some functions are actually named |
| 13780 | something starting with __ and the normal name is an alias. */ |
| 13781 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 13782 | choke me |
| 13783 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13784 | f = gethostbyname_r; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13785 | #endif |
| 13786 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13787 | ; |
| 13788 | return 0; |
| 13789 | } |
| 13790 | _ACEOF |
| 13791 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13792 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13793 | (eval $ac_link) 2>&5 |
| 13794 | ac_status=$? |
| 13795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13796 | (exit $ac_status); } && |
| 13797 | { ac_try='test -s conftest$ac_exeext' |
| 13798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13799 | (eval $ac_try) 2>&5 |
| 13800 | ac_status=$? |
| 13801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13802 | (exit $ac_status); }; }; then |
| 13803 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13804 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13805 | echo "$as_me: failed program was:" >&5 |
| 13806 | cat conftest.$ac_ext >&5 |
| 13807 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13808 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13809 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13810 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13811 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 13812 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6 |
| 13813 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13814 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13815 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13816 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13817 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13818 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13819 | echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 13820 | 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] | 13821 | OLD_CFLAGS=$CFLAGS |
| 13822 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13823 | cat >conftest.$ac_ext <<_ACEOF |
| 13824 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13825 | #include "confdefs.h" |
| 13826 | |
| 13827 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13828 | |
| 13829 | #ifdef F77_DUMMY_MAIN |
| 13830 | # ifdef __cplusplus |
| 13831 | extern "C" |
| 13832 | # endif |
| 13833 | int F77_DUMMY_MAIN() { return 1; } |
| 13834 | #endif |
| 13835 | int |
| 13836 | main () |
| 13837 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13838 | |
| 13839 | char *name; |
| 13840 | struct hostent *he, *res; |
| 13841 | char buffer[2048]; |
| 13842 | int buflen = 2048; |
| 13843 | int h_errnop; |
| 13844 | |
| 13845 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13846 | |
| 13847 | ; |
| 13848 | return 0; |
| 13849 | } |
| 13850 | _ACEOF |
| 13851 | rm -f conftest.$ac_objext |
| 13852 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13853 | (eval $ac_compile) 2>&5 |
| 13854 | ac_status=$? |
| 13855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13856 | (exit $ac_status); } && |
| 13857 | { ac_try='test -s conftest.$ac_objext' |
| 13858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13859 | (eval $ac_try) 2>&5 |
| 13860 | ac_status=$? |
| 13861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13862 | (exit $ac_status); }; }; then |
| 13863 | |
| 13864 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13865 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13866 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13867 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13868 | |
| 13869 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13870 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13871 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13872 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13873 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13874 | echo "${ECHO_T}yes" >&6 |
| 13875 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13876 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13877 | echo "$as_me: failed program was:" >&5 |
| 13878 | cat conftest.$ac_ext >&5 |
| 13879 | |
| 13880 | echo "$as_me:$LINENO: result: no" >&5 |
| 13881 | echo "${ECHO_T}no" >&6 |
| 13882 | echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 13883 | echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6 |
| 13884 | cat >conftest.$ac_ext <<_ACEOF |
| 13885 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13886 | #include "confdefs.h" |
| 13887 | |
| 13888 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13889 | |
| 13890 | #ifdef F77_DUMMY_MAIN |
| 13891 | # ifdef __cplusplus |
| 13892 | extern "C" |
| 13893 | # endif |
| 13894 | int F77_DUMMY_MAIN() { return 1; } |
| 13895 | #endif |
| 13896 | int |
| 13897 | main () |
| 13898 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13899 | |
| 13900 | char *name; |
| 13901 | struct hostent *he; |
| 13902 | char buffer[2048]; |
| 13903 | int buflen = 2048; |
| 13904 | int h_errnop; |
| 13905 | |
| 13906 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13907 | |
| 13908 | ; |
| 13909 | return 0; |
| 13910 | } |
| 13911 | _ACEOF |
| 13912 | rm -f conftest.$ac_objext |
| 13913 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13914 | (eval $ac_compile) 2>&5 |
| 13915 | ac_status=$? |
| 13916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13917 | (exit $ac_status); } && |
| 13918 | { ac_try='test -s conftest.$ac_objext' |
| 13919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13920 | (eval $ac_try) 2>&5 |
| 13921 | ac_status=$? |
| 13922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13923 | (exit $ac_status); }; }; then |
| 13924 | |
| 13925 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13926 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13927 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13928 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13929 | |
| 13930 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13931 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13932 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13933 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13934 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13935 | echo "${ECHO_T}yes" >&6 |
| 13936 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13937 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13938 | echo "$as_me: failed program was:" >&5 |
| 13939 | cat conftest.$ac_ext >&5 |
| 13940 | |
| 13941 | echo "$as_me:$LINENO: result: no" >&5 |
| 13942 | echo "${ECHO_T}no" >&6 |
| 13943 | echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 13944 | echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6 |
| 13945 | cat >conftest.$ac_ext <<_ACEOF |
| 13946 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13947 | #include "confdefs.h" |
| 13948 | |
| 13949 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13950 | |
| 13951 | #ifdef F77_DUMMY_MAIN |
| 13952 | # ifdef __cplusplus |
| 13953 | extern "C" |
| 13954 | # endif |
| 13955 | int F77_DUMMY_MAIN() { return 1; } |
| 13956 | #endif |
| 13957 | int |
| 13958 | main () |
| 13959 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13960 | |
| 13961 | char *name; |
| 13962 | struct hostent *he; |
| 13963 | struct hostent_data data; |
| 13964 | |
| 13965 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13966 | |
| 13967 | ; |
| 13968 | return 0; |
| 13969 | } |
| 13970 | _ACEOF |
| 13971 | rm -f conftest.$ac_objext |
| 13972 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13973 | (eval $ac_compile) 2>&5 |
| 13974 | ac_status=$? |
| 13975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13976 | (exit $ac_status); } && |
| 13977 | { ac_try='test -s conftest.$ac_objext' |
| 13978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13979 | (eval $ac_try) 2>&5 |
| 13980 | ac_status=$? |
| 13981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13982 | (exit $ac_status); }; }; then |
| 13983 | |
| 13984 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13985 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13986 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13987 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13988 | |
| 13989 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13990 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13991 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13992 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13993 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13994 | echo "${ECHO_T}yes" >&6 |
| 13995 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13996 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13997 | echo "$as_me: failed program was:" >&5 |
| 13998 | cat conftest.$ac_ext >&5 |
| 13999 | |
| 14000 | echo "$as_me:$LINENO: result: no" >&5 |
| 14001 | echo "${ECHO_T}no" >&6 |
| 14002 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14003 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14004 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14005 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14006 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14007 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14008 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14009 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14010 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14011 | CFLAGS=$OLD_CFLAGS |
| 14012 | |
| 14013 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14014 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14015 | |
| 14016 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14017 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14018 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14019 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14020 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14021 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14023 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14024 | cat >conftest.$ac_ext <<_ACEOF |
| 14025 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14026 | #include "confdefs.h" |
| 14027 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14028 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14029 | #include <assert.h> |
| 14030 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14031 | #ifdef __cplusplus |
| 14032 | extern "C" |
| 14033 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14034 | /* 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] | 14035 | builtin and then its argument prototype would still apply. */ |
| 14036 | char $ac_func (); |
| 14037 | char (*f) (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14038 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14039 | #ifdef F77_DUMMY_MAIN |
| 14040 | # ifdef __cplusplus |
| 14041 | extern "C" |
| 14042 | # endif |
| 14043 | int F77_DUMMY_MAIN() { return 1; } |
| 14044 | #endif |
| 14045 | int |
| 14046 | main () |
| 14047 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14048 | /* The GNU C library defines this for functions which it implements |
| 14049 | to always fail with ENOSYS. Some functions are actually named |
| 14050 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14051 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14052 | choke me |
| 14053 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14054 | f = $ac_func; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14055 | #endif |
| 14056 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14057 | ; |
| 14058 | return 0; |
| 14059 | } |
| 14060 | _ACEOF |
| 14061 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14062 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14063 | (eval $ac_link) 2>&5 |
| 14064 | ac_status=$? |
| 14065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14066 | (exit $ac_status); } && |
| 14067 | { ac_try='test -s conftest$ac_exeext' |
| 14068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14069 | (eval $ac_try) 2>&5 |
| 14070 | ac_status=$? |
| 14071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14072 | (exit $ac_status); }; }; then |
| 14073 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14074 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14075 | echo "$as_me: failed program was:" >&5 |
| 14076 | cat conftest.$ac_ext >&5 |
| 14077 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14078 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14079 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14080 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14081 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14082 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14083 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14084 | cat >>confdefs.h <<_ACEOF |
| 14085 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14086 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14087 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14088 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14089 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14090 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14091 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14092 | fi |
| 14093 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14094 | |
| 14095 | |
| 14096 | |
| 14097 | |
| 14098 | |
| 14099 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14100 | # checks for system services |
| 14101 | # (none yet) |
| 14102 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14103 | # Linux requires this for correct f.p. operations |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14104 | echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 14105 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6 |
| 14106 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 14107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14108 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14109 | cat >conftest.$ac_ext <<_ACEOF |
| 14110 | #line $LINENO "configure" |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14111 | #include "confdefs.h" |
| 14112 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14113 | which can conflict with char __fpu_control (); below. */ |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14114 | #include <assert.h> |
| 14115 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14116 | #ifdef __cplusplus |
| 14117 | extern "C" |
| 14118 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14119 | /* 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] | 14120 | builtin and then its argument prototype would still apply. */ |
| 14121 | char __fpu_control (); |
| 14122 | char (*f) (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14123 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14124 | #ifdef F77_DUMMY_MAIN |
| 14125 | # ifdef __cplusplus |
| 14126 | extern "C" |
| 14127 | # endif |
| 14128 | int F77_DUMMY_MAIN() { return 1; } |
| 14129 | #endif |
| 14130 | int |
| 14131 | main () |
| 14132 | { |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14133 | /* The GNU C library defines this for functions which it implements |
| 14134 | to always fail with ENOSYS. Some functions are actually named |
| 14135 | something starting with __ and the normal name is an alias. */ |
| 14136 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 14137 | choke me |
| 14138 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14139 | f = __fpu_control; |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14140 | #endif |
| 14141 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14142 | ; |
| 14143 | return 0; |
| 14144 | } |
| 14145 | _ACEOF |
| 14146 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14147 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14148 | (eval $ac_link) 2>&5 |
| 14149 | ac_status=$? |
| 14150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14151 | (exit $ac_status); } && |
| 14152 | { ac_try='test -s conftest$ac_exeext' |
| 14153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14154 | (eval $ac_try) 2>&5 |
| 14155 | ac_status=$? |
| 14156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14157 | (exit $ac_status); }; }; then |
| 14158 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14159 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14160 | echo "$as_me: failed program was:" >&5 |
| 14161 | cat conftest.$ac_ext >&5 |
| 14162 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14163 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14164 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14165 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14166 | echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 14167 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6 |
| 14168 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14169 | : |
| 14170 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14171 | |
| 14172 | echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 14173 | echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6 |
| 14174 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 14175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14176 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14177 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14178 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14179 | cat >conftest.$ac_ext <<_ACEOF |
| 14180 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14181 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14182 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14183 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14184 | #ifdef __cplusplus |
| 14185 | extern "C" |
| 14186 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14187 | /* 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] | 14188 | builtin and then its argument prototype would still apply. */ |
| 14189 | char __fpu_control (); |
| 14190 | #ifdef F77_DUMMY_MAIN |
| 14191 | # ifdef __cplusplus |
| 14192 | extern "C" |
| 14193 | # endif |
| 14194 | int F77_DUMMY_MAIN() { return 1; } |
| 14195 | #endif |
| 14196 | int |
| 14197 | main () |
| 14198 | { |
| 14199 | __fpu_control (); |
| 14200 | ; |
| 14201 | return 0; |
| 14202 | } |
| 14203 | _ACEOF |
| 14204 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14205 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14206 | (eval $ac_link) 2>&5 |
| 14207 | ac_status=$? |
| 14208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14209 | (exit $ac_status); } && |
| 14210 | { ac_try='test -s conftest$ac_exeext' |
| 14211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14212 | (eval $ac_try) 2>&5 |
| 14213 | ac_status=$? |
| 14214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14215 | (exit $ac_status); }; }; then |
| 14216 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14217 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14218 | echo "$as_me: failed program was:" >&5 |
| 14219 | cat conftest.$ac_ext >&5 |
| 14220 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14221 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14222 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 14223 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14224 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14225 | echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 14226 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6 |
| 14227 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 14228 | cat >>confdefs.h <<_ACEOF |
| 14229 | #define HAVE_LIBIEEE 1 |
| 14230 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14231 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14232 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14233 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14234 | fi |
| 14235 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14236 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14237 | fi |
| 14238 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14239 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14240 | # Check for --with-fpectl |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14241 | echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 14242 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6 |
| 14243 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14244 | # Check whether --with-fpectl or --without-fpectl was given. |
| 14245 | if test "${with_fpectl+set}" = set; then |
| 14246 | withval="$with_fpectl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14247 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14248 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14249 | then |
| 14250 | |
| 14251 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14252 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14253 | _ACEOF |
| 14254 | |
| 14255 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14256 | echo "${ECHO_T}yes" >&6 |
| 14257 | else echo "$as_me:$LINENO: result: no" >&5 |
| 14258 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14259 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14260 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14261 | echo "$as_me:$LINENO: result: no" >&5 |
| 14262 | echo "${ECHO_T}no" >&6 |
| 14263 | fi; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14264 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14265 | # check for --with-libm=... |
| 14266 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 14267 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 14268 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 14269 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 14270 | *) LIBM=-lm |
| 14271 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14272 | echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 14273 | echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6 |
| 14274 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14275 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14276 | if test "${with_libm+set}" = set; then |
| 14277 | withval="$with_libm" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14278 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14279 | if test "$withval" = no |
| 14280 | then LIBM= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14281 | echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 14282 | echo "${ECHO_T}force LIBM empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14283 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14284 | then LIBM=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14285 | echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 14286 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6 |
| 14287 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 14288 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 14289 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14290 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14291 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14292 | echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 14293 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6 |
| 14294 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14295 | |
| 14296 | # check for --with-libc=... |
| 14297 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14298 | echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 14299 | echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6 |
| 14300 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14301 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14302 | if test "${with_libc+set}" = set; then |
| 14303 | withval="$with_libc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14304 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14305 | if test "$withval" = no |
| 14306 | then LIBC= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14307 | echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 14308 | echo "${ECHO_T}force LIBC empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14309 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14310 | then LIBC=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14311 | echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 14312 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6 |
| 14313 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 14314 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 14315 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14316 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14317 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14318 | echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 14319 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6 |
| 14320 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14321 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14322 | # check for hypot() in math library |
| 14323 | LIBS_SAVE=$LIBS |
| 14324 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14325 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14326 | for ac_func in hypot |
| 14327 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14328 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14329 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14330 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14331 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14332 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14333 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14334 | cat >conftest.$ac_ext <<_ACEOF |
| 14335 | #line $LINENO "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14336 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14337 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14338 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14339 | #include <assert.h> |
| 14340 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14341 | #ifdef __cplusplus |
| 14342 | extern "C" |
| 14343 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14344 | /* 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] | 14345 | builtin and then its argument prototype would still apply. */ |
| 14346 | char $ac_func (); |
| 14347 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14348 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14349 | #ifdef F77_DUMMY_MAIN |
| 14350 | # ifdef __cplusplus |
| 14351 | extern "C" |
| 14352 | # endif |
| 14353 | int F77_DUMMY_MAIN() { return 1; } |
| 14354 | #endif |
| 14355 | int |
| 14356 | main () |
| 14357 | { |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14358 | /* The GNU C library defines this for functions which it implements |
| 14359 | to always fail with ENOSYS. Some functions are actually named |
| 14360 | something starting with __ and the normal name is an alias. */ |
| 14361 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14362 | choke me |
| 14363 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14364 | f = $ac_func; |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14365 | #endif |
| 14366 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14367 | ; |
| 14368 | return 0; |
| 14369 | } |
| 14370 | _ACEOF |
| 14371 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14372 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14373 | (eval $ac_link) 2>&5 |
| 14374 | ac_status=$? |
| 14375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14376 | (exit $ac_status); } && |
| 14377 | { ac_try='test -s conftest$ac_exeext' |
| 14378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14379 | (eval $ac_try) 2>&5 |
| 14380 | ac_status=$? |
| 14381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14382 | (exit $ac_status); }; }; then |
| 14383 | eval "$as_ac_var=yes" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 14384 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14385 | echo "$as_me: failed program was:" >&5 |
| 14386 | cat conftest.$ac_ext >&5 |
| 14387 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14388 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14389 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14390 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14391 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14392 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14393 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14394 | cat >>confdefs.h <<_ACEOF |
| 14395 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14396 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14397 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14398 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14399 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 14400 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 14401 | done |
| 14402 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14403 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14404 | LIBS=$LIBS_SAVE |
| 14405 | |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14406 | # check whether malloc(0) returns NULL or not |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14407 | echo "$as_me:$LINENO: checking what malloc(0) returns" >&5 |
| 14408 | echo $ECHO_N "checking what malloc(0) returns... $ECHO_C" >&6 |
| 14409 | if test "${ac_cv_malloc_zero+set}" = set; then |
| 14410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14411 | else |
| 14412 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 14413 | ac_cv_malloc_zero=nonnull |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14414 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14415 | cat >conftest.$ac_ext <<_ACEOF |
| 14416 | #line $LINENO "configure" |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14417 | #include "confdefs.h" |
| 14418 | #include <stdio.h> |
| 14419 | #ifdef HAVE_STDLIB |
| 14420 | #include <stdlib.h> |
| 14421 | #else |
| 14422 | char *malloc(), *realloc(); |
| 14423 | int *free(); |
| 14424 | #endif |
| 14425 | main() { |
| 14426 | char *p; |
| 14427 | p = malloc(0); |
| 14428 | if (p == NULL) exit(1); |
| 14429 | p = realloc(p, 0); |
| 14430 | if (p == NULL) exit(1); |
| 14431 | free(p); |
| 14432 | exit(0); |
| 14433 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14434 | _ACEOF |
| 14435 | rm -f conftest$ac_exeext |
| 14436 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14437 | (eval $ac_link) 2>&5 |
| 14438 | ac_status=$? |
| 14439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14440 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 14441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14442 | (eval $ac_try) 2>&5 |
| 14443 | ac_status=$? |
| 14444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14445 | (exit $ac_status); }; }; then |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14446 | ac_cv_malloc_zero=nonnull |
| 14447 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14448 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14449 | echo "$as_me: failed program was:" >&5 |
| 14450 | cat conftest.$ac_ext >&5 |
| 14451 | ( exit $ac_status ) |
| 14452 | ac_cv_malloc_zero=null |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14453 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14454 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14455 | fi |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14456 | fi |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 14457 | # XXX arm cross-compile? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14458 | echo "$as_me:$LINENO: result: $ac_cv_malloc_zero" >&5 |
| 14459 | echo "${ECHO_T}$ac_cv_malloc_zero" >&6 |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14460 | if test "$ac_cv_malloc_zero" = null |
| 14461 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14462 | |
| 14463 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14464 | #define MALLOC_ZERO_RETURNS_NULL 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14465 | _ACEOF |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14466 | |
| 14467 | fi |
| 14468 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14469 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14470 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 14471 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 14472 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 14473 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 14474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14475 | fi |
| 14476 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 14477 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14478 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14479 | # Is the header compilable? |
| 14480 | echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 14481 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 |
| 14482 | cat >conftest.$ac_ext <<_ACEOF |
| 14483 | #line $LINENO "configure" |
| 14484 | #include "confdefs.h" |
| 14485 | $ac_includes_default |
| 14486 | #include <wchar.h> |
| 14487 | _ACEOF |
| 14488 | rm -f conftest.$ac_objext |
| 14489 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14490 | (eval $ac_compile) 2>&5 |
| 14491 | ac_status=$? |
| 14492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14493 | (exit $ac_status); } && |
| 14494 | { ac_try='test -s conftest.$ac_objext' |
| 14495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14496 | (eval $ac_try) 2>&5 |
| 14497 | ac_status=$? |
| 14498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14499 | (exit $ac_status); }; }; then |
| 14500 | ac_header_compiler=yes |
| 14501 | else |
| 14502 | echo "$as_me: failed program was:" >&5 |
| 14503 | cat conftest.$ac_ext >&5 |
| 14504 | ac_header_compiler=no |
| 14505 | fi |
| 14506 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14507 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14508 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 14509 | |
| 14510 | # Is the header present? |
| 14511 | echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 14512 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 |
| 14513 | cat >conftest.$ac_ext <<_ACEOF |
| 14514 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14515 | #include "confdefs.h" |
| 14516 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14517 | _ACEOF |
| 14518 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 14519 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 14520 | ac_status=$? |
| 14521 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 14522 | rm -f conftest.er1 |
| 14523 | cat conftest.err >&5 |
| 14524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14525 | (exit $ac_status); } >/dev/null; then |
| 14526 | if test -s conftest.err; then |
| 14527 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14528 | else |
| 14529 | ac_cpp_err= |
| 14530 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14531 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14532 | ac_cpp_err=yes |
| 14533 | fi |
| 14534 | if test -z "$ac_cpp_err"; then |
| 14535 | ac_header_preproc=yes |
| 14536 | else |
| 14537 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14538 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14539 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14540 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14541 | rm -f conftest.err conftest.$ac_ext |
| 14542 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14543 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 14544 | |
| 14545 | # So? What about this header? |
| 14546 | case $ac_header_compiler:$ac_header_preproc in |
| 14547 | yes:no ) |
| 14548 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14549 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14550 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 14551 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};; |
| 14552 | no:yes ) |
| 14553 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 14554 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 14555 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 14556 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 14557 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 14558 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};; |
| 14559 | esac |
| 14560 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 14561 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 14562 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 14563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14564 | else |
| 14565 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14566 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14567 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 14568 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
| 14569 | |
| 14570 | fi |
| 14571 | if test $ac_cv_header_wchar_h = yes; then |
| 14572 | |
| 14573 | |
| 14574 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14575 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14576 | _ACEOF |
| 14577 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14578 | wchar_h="yes" |
| 14579 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14580 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14581 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14582 | |
| 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 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14587 | # determine wchar_t size |
| 14588 | if test "$wchar_h" = yes |
| 14589 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14590 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 14591 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 |
| 14592 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 14593 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14594 | else |
| 14595 | cat >conftest.$ac_ext <<_ACEOF |
| 14596 | #line $LINENO "configure" |
| 14597 | #include "confdefs.h" |
| 14598 | #include <wchar.h> |
| 14599 | |
| 14600 | #ifdef F77_DUMMY_MAIN |
| 14601 | # ifdef __cplusplus |
| 14602 | extern "C" |
| 14603 | # endif |
| 14604 | int F77_DUMMY_MAIN() { return 1; } |
| 14605 | #endif |
| 14606 | int |
| 14607 | main () |
| 14608 | { |
| 14609 | if ((wchar_t *) 0) |
| 14610 | return 0; |
| 14611 | if (sizeof (wchar_t)) |
| 14612 | return 0; |
| 14613 | ; |
| 14614 | return 0; |
| 14615 | } |
| 14616 | _ACEOF |
| 14617 | rm -f conftest.$ac_objext |
| 14618 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14619 | (eval $ac_compile) 2>&5 |
| 14620 | ac_status=$? |
| 14621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14622 | (exit $ac_status); } && |
| 14623 | { ac_try='test -s conftest.$ac_objext' |
| 14624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14625 | (eval $ac_try) 2>&5 |
| 14626 | ac_status=$? |
| 14627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14628 | (exit $ac_status); }; }; then |
| 14629 | ac_cv_type_wchar_t=yes |
| 14630 | else |
| 14631 | echo "$as_me: failed program was:" >&5 |
| 14632 | cat conftest.$ac_ext >&5 |
| 14633 | ac_cv_type_wchar_t=no |
| 14634 | fi |
| 14635 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14636 | fi |
| 14637 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 14638 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 |
| 14639 | |
| 14640 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 14641 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 |
| 14642 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 14643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14644 | else |
| 14645 | if test "$ac_cv_type_wchar_t" = yes; then |
| 14646 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 14647 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 14648 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 14649 | # This bug is HP SR number 8606223364. |
| 14650 | if test "$cross_compiling" = yes; then |
| 14651 | # Depending upon the size, compute the lo and hi bounds. |
| 14652 | cat >conftest.$ac_ext <<_ACEOF |
| 14653 | #line $LINENO "configure" |
| 14654 | #include "confdefs.h" |
| 14655 | #include <wchar.h> |
| 14656 | |
| 14657 | #ifdef F77_DUMMY_MAIN |
| 14658 | # ifdef __cplusplus |
| 14659 | extern "C" |
| 14660 | # endif |
| 14661 | int F77_DUMMY_MAIN() { return 1; } |
| 14662 | #endif |
| 14663 | int |
| 14664 | main () |
| 14665 | { |
| 14666 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; |
| 14667 | test_array [0] = 0 |
| 14668 | |
| 14669 | ; |
| 14670 | return 0; |
| 14671 | } |
| 14672 | _ACEOF |
| 14673 | rm -f conftest.$ac_objext |
| 14674 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14675 | (eval $ac_compile) 2>&5 |
| 14676 | ac_status=$? |
| 14677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14678 | (exit $ac_status); } && |
| 14679 | { ac_try='test -s conftest.$ac_objext' |
| 14680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14681 | (eval $ac_try) 2>&5 |
| 14682 | ac_status=$? |
| 14683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14684 | (exit $ac_status); }; }; then |
| 14685 | ac_lo=0 ac_mid=0 |
| 14686 | while :; do |
| 14687 | cat >conftest.$ac_ext <<_ACEOF |
| 14688 | #line $LINENO "configure" |
| 14689 | #include "confdefs.h" |
| 14690 | #include <wchar.h> |
| 14691 | |
| 14692 | #ifdef F77_DUMMY_MAIN |
| 14693 | # ifdef __cplusplus |
| 14694 | extern "C" |
| 14695 | # endif |
| 14696 | int F77_DUMMY_MAIN() { return 1; } |
| 14697 | #endif |
| 14698 | int |
| 14699 | main () |
| 14700 | { |
| 14701 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 14702 | test_array [0] = 0 |
| 14703 | |
| 14704 | ; |
| 14705 | return 0; |
| 14706 | } |
| 14707 | _ACEOF |
| 14708 | rm -f conftest.$ac_objext |
| 14709 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14710 | (eval $ac_compile) 2>&5 |
| 14711 | ac_status=$? |
| 14712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14713 | (exit $ac_status); } && |
| 14714 | { ac_try='test -s conftest.$ac_objext' |
| 14715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14716 | (eval $ac_try) 2>&5 |
| 14717 | ac_status=$? |
| 14718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14719 | (exit $ac_status); }; }; then |
| 14720 | ac_hi=$ac_mid; break |
| 14721 | else |
| 14722 | echo "$as_me: failed program was:" >&5 |
| 14723 | cat conftest.$ac_ext >&5 |
| 14724 | ac_lo=`expr $ac_mid + 1` |
| 14725 | if test $ac_lo -le $ac_mid; then |
| 14726 | ac_lo= ac_hi= |
| 14727 | break |
| 14728 | fi |
| 14729 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 14730 | fi |
| 14731 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14732 | done |
| 14733 | else |
| 14734 | echo "$as_me: failed program was:" >&5 |
| 14735 | cat conftest.$ac_ext >&5 |
| 14736 | cat >conftest.$ac_ext <<_ACEOF |
| 14737 | #line $LINENO "configure" |
| 14738 | #include "confdefs.h" |
| 14739 | #include <wchar.h> |
| 14740 | |
| 14741 | #ifdef F77_DUMMY_MAIN |
| 14742 | # ifdef __cplusplus |
| 14743 | extern "C" |
| 14744 | # endif |
| 14745 | int F77_DUMMY_MAIN() { return 1; } |
| 14746 | #endif |
| 14747 | int |
| 14748 | main () |
| 14749 | { |
| 14750 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; |
| 14751 | test_array [0] = 0 |
| 14752 | |
| 14753 | ; |
| 14754 | return 0; |
| 14755 | } |
| 14756 | _ACEOF |
| 14757 | rm -f conftest.$ac_objext |
| 14758 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14759 | (eval $ac_compile) 2>&5 |
| 14760 | ac_status=$? |
| 14761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14762 | (exit $ac_status); } && |
| 14763 | { ac_try='test -s conftest.$ac_objext' |
| 14764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14765 | (eval $ac_try) 2>&5 |
| 14766 | ac_status=$? |
| 14767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14768 | (exit $ac_status); }; }; then |
| 14769 | ac_hi=-1 ac_mid=-1 |
| 14770 | while :; do |
| 14771 | cat >conftest.$ac_ext <<_ACEOF |
| 14772 | #line $LINENO "configure" |
| 14773 | #include "confdefs.h" |
| 14774 | #include <wchar.h> |
| 14775 | |
| 14776 | #ifdef F77_DUMMY_MAIN |
| 14777 | # ifdef __cplusplus |
| 14778 | extern "C" |
| 14779 | # endif |
| 14780 | int F77_DUMMY_MAIN() { return 1; } |
| 14781 | #endif |
| 14782 | int |
| 14783 | main () |
| 14784 | { |
| 14785 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; |
| 14786 | test_array [0] = 0 |
| 14787 | |
| 14788 | ; |
| 14789 | return 0; |
| 14790 | } |
| 14791 | _ACEOF |
| 14792 | rm -f conftest.$ac_objext |
| 14793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14794 | (eval $ac_compile) 2>&5 |
| 14795 | ac_status=$? |
| 14796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14797 | (exit $ac_status); } && |
| 14798 | { ac_try='test -s conftest.$ac_objext' |
| 14799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14800 | (eval $ac_try) 2>&5 |
| 14801 | ac_status=$? |
| 14802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14803 | (exit $ac_status); }; }; then |
| 14804 | ac_lo=$ac_mid; break |
| 14805 | else |
| 14806 | echo "$as_me: failed program was:" >&5 |
| 14807 | cat conftest.$ac_ext >&5 |
| 14808 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 14809 | if test $ac_mid -le $ac_hi; then |
| 14810 | ac_lo= ac_hi= |
| 14811 | break |
| 14812 | fi |
| 14813 | ac_mid=`expr 2 '*' $ac_mid` |
| 14814 | fi |
| 14815 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14816 | done |
| 14817 | else |
| 14818 | echo "$as_me: failed program was:" >&5 |
| 14819 | cat conftest.$ac_ext >&5 |
| 14820 | ac_lo= ac_hi= |
| 14821 | fi |
| 14822 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14823 | fi |
| 14824 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14825 | # Binary search between lo and hi bounds. |
| 14826 | while test "x$ac_lo" != "x$ac_hi"; do |
| 14827 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 14828 | cat >conftest.$ac_ext <<_ACEOF |
| 14829 | #line $LINENO "configure" |
| 14830 | #include "confdefs.h" |
| 14831 | #include <wchar.h> |
| 14832 | |
| 14833 | #ifdef F77_DUMMY_MAIN |
| 14834 | # ifdef __cplusplus |
| 14835 | extern "C" |
| 14836 | # endif |
| 14837 | int F77_DUMMY_MAIN() { return 1; } |
| 14838 | #endif |
| 14839 | int |
| 14840 | main () |
| 14841 | { |
| 14842 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 14843 | test_array [0] = 0 |
| 14844 | |
| 14845 | ; |
| 14846 | return 0; |
| 14847 | } |
| 14848 | _ACEOF |
| 14849 | rm -f conftest.$ac_objext |
| 14850 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14851 | (eval $ac_compile) 2>&5 |
| 14852 | ac_status=$? |
| 14853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14854 | (exit $ac_status); } && |
| 14855 | { ac_try='test -s conftest.$ac_objext' |
| 14856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14857 | (eval $ac_try) 2>&5 |
| 14858 | ac_status=$? |
| 14859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14860 | (exit $ac_status); }; }; then |
| 14861 | ac_hi=$ac_mid |
| 14862 | else |
| 14863 | echo "$as_me: failed program was:" >&5 |
| 14864 | cat conftest.$ac_ext >&5 |
| 14865 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 14866 | fi |
| 14867 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14868 | done |
| 14869 | case $ac_lo in |
| 14870 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
| 14871 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5 |
| 14872 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;} |
| 14873 | { (exit 1); exit 1; }; } ;; |
| 14874 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14875 | else |
| 14876 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14877 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 14878 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 14879 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14880 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14881 | cat >conftest.$ac_ext <<_ACEOF |
| 14882 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14883 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14884 | #include <wchar.h> |
| 14885 | |
| 14886 | long longval () { return (long) (sizeof (wchar_t)); } |
| 14887 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14888 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14889 | #include <stdlib.h> |
| 14890 | #ifdef F77_DUMMY_MAIN |
| 14891 | # ifdef __cplusplus |
| 14892 | extern "C" |
| 14893 | # endif |
| 14894 | int F77_DUMMY_MAIN() { return 1; } |
| 14895 | #endif |
| 14896 | int |
| 14897 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14898 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14899 | |
| 14900 | FILE *f = fopen ("conftest.val", "w"); |
| 14901 | if (! f) |
| 14902 | exit (1); |
| 14903 | if (((long) (sizeof (wchar_t))) < 0) |
| 14904 | { |
| 14905 | long i = longval (); |
| 14906 | if (i != ((long) (sizeof (wchar_t)))) |
| 14907 | exit (1); |
| 14908 | fprintf (f, "%ld\n", i); |
| 14909 | } |
| 14910 | else |
| 14911 | { |
| 14912 | unsigned long i = ulongval (); |
| 14913 | if (i != ((long) (sizeof (wchar_t)))) |
| 14914 | exit (1); |
| 14915 | fprintf (f, "%lu\n", i); |
| 14916 | } |
| 14917 | exit (ferror (f) || fclose (f) != 0); |
| 14918 | |
| 14919 | ; |
| 14920 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14921 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14922 | _ACEOF |
| 14923 | rm -f conftest$ac_exeext |
| 14924 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14925 | (eval $ac_link) 2>&5 |
| 14926 | ac_status=$? |
| 14927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14928 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 14929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14930 | (eval $ac_try) 2>&5 |
| 14931 | ac_status=$? |
| 14932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14933 | (exit $ac_status); }; }; then |
| 14934 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14935 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14936 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14937 | echo "$as_me: failed program was:" >&5 |
| 14938 | cat conftest.$ac_ext >&5 |
| 14939 | ( exit $ac_status ) |
| 14940 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5 |
| 14941 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;} |
| 14942 | { (exit 1); exit 1; }; } |
| 14943 | fi |
| 14944 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 14945 | fi |
| 14946 | fi |
| 14947 | rm -f conftest.val |
| 14948 | else |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14949 | ac_cv_sizeof_wchar_t=0 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14950 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14951 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14952 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 14953 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 |
| 14954 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14955 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14956 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14957 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14958 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14959 | fi |
| 14960 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14961 | echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 14962 | 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] | 14963 | # Check whether --enable-unicode or --disable-unicode was given. |
| 14964 | if test "${enable_unicode+set}" = set; then |
| 14965 | enableval="$enable_unicode" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14966 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14967 | else |
| 14968 | enable_unicode=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14969 | fi; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14970 | |
| 14971 | if test $enable_unicode = yes |
| 14972 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 14973 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
| 14974 | enable_unicode="ucs2" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14975 | fi |
| 14976 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 14977 | |
| 14978 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14979 | case "$enable_unicode" in |
| 14980 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14981 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14982 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14983 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14984 | |
| 14985 | ;; |
| 14986 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14987 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14988 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14989 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14990 | |
| 14991 | ;; |
| 14992 | esac |
| 14993 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14994 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14995 | |
| 14996 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 14997 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14998 | if test "$enable_unicode" = "no" |
| 14999 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 15000 | UNICODE_OBJS="" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15001 | echo "$as_me:$LINENO: result: not used" >&5 |
| 15002 | echo "${ECHO_T}not used" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15003 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 15004 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15005 | |
| 15006 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15007 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15008 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15009 | |
| 15010 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" |
| 15011 | then |
| 15012 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15013 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15014 | cat >>confdefs.h <<\_ACEOF |
| 15015 | #define HAVE_USABLE_WCHAR_T 1 |
| 15016 | _ACEOF |
| 15017 | |
| 15018 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15019 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15020 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15021 | |
| 15022 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 15023 | then |
| 15024 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15025 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15026 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15027 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15028 | |
| 15029 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 15030 | then |
| 15031 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15032 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15033 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15034 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15035 | |
| 15036 | else |
| 15037 | PY_UNICODE_TYPE="no type found" |
| 15038 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15039 | echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 15040 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15041 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15042 | |
| 15043 | # check for endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15044 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 15045 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 15046 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 15047 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15048 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15049 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 15050 | cat >conftest.$ac_ext <<_ACEOF |
| 15051 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15052 | #include "confdefs.h" |
| 15053 | #include <sys/types.h> |
| 15054 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15055 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15056 | #ifdef F77_DUMMY_MAIN |
| 15057 | # ifdef __cplusplus |
| 15058 | extern "C" |
| 15059 | # endif |
| 15060 | int F77_DUMMY_MAIN() { return 1; } |
| 15061 | #endif |
| 15062 | int |
| 15063 | main () |
| 15064 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15065 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 15066 | bogus endian macros |
| 15067 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15068 | |
| 15069 | ; |
| 15070 | return 0; |
| 15071 | } |
| 15072 | _ACEOF |
| 15073 | rm -f conftest.$ac_objext |
| 15074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15075 | (eval $ac_compile) 2>&5 |
| 15076 | ac_status=$? |
| 15077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15078 | (exit $ac_status); } && |
| 15079 | { ac_try='test -s conftest.$ac_objext' |
| 15080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15081 | (eval $ac_try) 2>&5 |
| 15082 | ac_status=$? |
| 15083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15084 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15085 | # 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] | 15086 | cat >conftest.$ac_ext <<_ACEOF |
| 15087 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15088 | #include "confdefs.h" |
| 15089 | #include <sys/types.h> |
| 15090 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15091 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15092 | #ifdef F77_DUMMY_MAIN |
| 15093 | # ifdef __cplusplus |
| 15094 | extern "C" |
| 15095 | # endif |
| 15096 | int F77_DUMMY_MAIN() { return 1; } |
| 15097 | #endif |
| 15098 | int |
| 15099 | main () |
| 15100 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15101 | #if BYTE_ORDER != BIG_ENDIAN |
| 15102 | not big endian |
| 15103 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15104 | |
| 15105 | ; |
| 15106 | return 0; |
| 15107 | } |
| 15108 | _ACEOF |
| 15109 | rm -f conftest.$ac_objext |
| 15110 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15111 | (eval $ac_compile) 2>&5 |
| 15112 | ac_status=$? |
| 15113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15114 | (exit $ac_status); } && |
| 15115 | { ac_try='test -s conftest.$ac_objext' |
| 15116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15117 | (eval $ac_try) 2>&5 |
| 15118 | ac_status=$? |
| 15119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15120 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15121 | ac_cv_c_bigendian=yes |
| 15122 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15123 | echo "$as_me: failed program was:" >&5 |
| 15124 | cat conftest.$ac_ext >&5 |
| 15125 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15126 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15127 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15128 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15129 | echo "$as_me: failed program was:" >&5 |
| 15130 | cat conftest.$ac_ext >&5 |
| 15131 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15132 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15133 | # try to guess the endianess by grep'ing values into an object file |
| 15134 | ac_cv_c_bigendian=unknown |
| 15135 | cat >conftest.$ac_ext <<_ACEOF |
| 15136 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15137 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15138 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 15139 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 15140 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 15141 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 15142 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 15143 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 15144 | #ifdef F77_DUMMY_MAIN |
| 15145 | # ifdef __cplusplus |
| 15146 | extern "C" |
| 15147 | # endif |
| 15148 | int F77_DUMMY_MAIN() { return 1; } |
| 15149 | #endif |
| 15150 | int |
| 15151 | main () |
| 15152 | { |
| 15153 | _ascii (); _ebcdic (); |
| 15154 | ; |
| 15155 | return 0; |
| 15156 | } |
| 15157 | _ACEOF |
| 15158 | rm -f conftest.$ac_objext |
| 15159 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15160 | (eval $ac_compile) 2>&5 |
| 15161 | ac_status=$? |
| 15162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15163 | (exit $ac_status); } && |
| 15164 | { ac_try='test -s conftest.$ac_objext' |
| 15165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15166 | (eval $ac_try) 2>&5 |
| 15167 | ac_status=$? |
| 15168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15169 | (exit $ac_status); }; }; then |
| 15170 | if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 15171 | ac_cv_c_bigendian=yes |
| 15172 | fi |
| 15173 | if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 15174 | if test "$ac_cv_c_bigendian" = unknown; then |
| 15175 | ac_cv_c_bigendian=no |
| 15176 | else |
| 15177 | # finding both strings is unlikely to happen, but who knows? |
| 15178 | ac_cv_c_bigendian=unknown |
| 15179 | fi |
| 15180 | fi |
| 15181 | else |
| 15182 | echo "$as_me: failed program was:" >&5 |
| 15183 | cat conftest.$ac_ext >&5 |
| 15184 | fi |
| 15185 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15186 | else |
| 15187 | cat >conftest.$ac_ext <<_ACEOF |
| 15188 | #line $LINENO "configure" |
| 15189 | #include "confdefs.h" |
| 15190 | int |
| 15191 | main () |
| 15192 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15193 | /* Are we little or big endian? From Harbison&Steele. */ |
| 15194 | union |
| 15195 | { |
| 15196 | long l; |
| 15197 | char c[sizeof (long)]; |
| 15198 | } u; |
| 15199 | u.l = 1; |
| 15200 | exit (u.c[sizeof (long) - 1] == 1); |
| 15201 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15202 | _ACEOF |
| 15203 | rm -f conftest$ac_exeext |
| 15204 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15205 | (eval $ac_link) 2>&5 |
| 15206 | ac_status=$? |
| 15207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15208 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15210 | (eval $ac_try) 2>&5 |
| 15211 | ac_status=$? |
| 15212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15213 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15214 | ac_cv_c_bigendian=no |
| 15215 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15216 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15217 | echo "$as_me: failed program was:" >&5 |
| 15218 | cat conftest.$ac_ext >&5 |
| 15219 | ( exit $ac_status ) |
| 15220 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15221 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15222 | 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] | 15223 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15224 | fi |
| 15225 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15226 | fi |
| 15227 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 15228 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 15229 | case $ac_cv_c_bigendian in |
| 15230 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15231 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15232 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15233 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15234 | _ACEOF |
| 15235 | ;; |
| 15236 | no) |
| 15237 | ;; |
| 15238 | *) |
| 15239 | { { echo "$as_me:$LINENO: error: unknown endianess |
| 15240 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 15241 | echo "$as_me: error: unknown endianess |
| 15242 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 15243 | { (exit 1); exit 1; }; } ;; |
| 15244 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15245 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15246 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15247 | # Check whether right shifting a negative integer extends the sign bit |
| 15248 | # 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] | 15249 | echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 15250 | echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6 |
| 15251 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 15252 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15253 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15254 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15255 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15256 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15257 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15258 | cat >conftest.$ac_ext <<_ACEOF |
| 15259 | #line $LINENO "configure" |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15260 | #include "confdefs.h" |
| 15261 | |
| 15262 | int main() |
| 15263 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15264 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15265 | } |
| 15266 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15267 | _ACEOF |
| 15268 | rm -f conftest$ac_exeext |
| 15269 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15270 | (eval $ac_link) 2>&5 |
| 15271 | ac_status=$? |
| 15272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15273 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15275 | (eval $ac_try) 2>&5 |
| 15276 | ac_status=$? |
| 15277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15278 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15279 | ac_cv_rshift_extends_sign=yes |
| 15280 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15281 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15282 | echo "$as_me: failed program was:" >&5 |
| 15283 | cat conftest.$ac_ext >&5 |
| 15284 | ( exit $ac_status ) |
| 15285 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15286 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15287 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15288 | fi |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15289 | fi |
| 15290 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15291 | echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 15292 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15293 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15294 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15295 | |
| 15296 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15297 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15298 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15299 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15300 | fi |
| 15301 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15302 | # check for getc_unlocked and related locking functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15303 | echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 15304 | echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6 |
| 15305 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 15306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15307 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15308 | |
| 15309 | cat >conftest.$ac_ext <<_ACEOF |
| 15310 | #line $LINENO "configure" |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15311 | #include "confdefs.h" |
| 15312 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15313 | #ifdef F77_DUMMY_MAIN |
| 15314 | # ifdef __cplusplus |
| 15315 | extern "C" |
| 15316 | # endif |
| 15317 | int F77_DUMMY_MAIN() { return 1; } |
| 15318 | #endif |
| 15319 | int |
| 15320 | main () |
| 15321 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15322 | |
| 15323 | FILE *f = fopen("/dev/null", "r"); |
| 15324 | flockfile(f); |
| 15325 | getc_unlocked(f); |
| 15326 | funlockfile(f); |
| 15327 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15328 | ; |
| 15329 | return 0; |
| 15330 | } |
| 15331 | _ACEOF |
| 15332 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15333 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15334 | (eval $ac_link) 2>&5 |
| 15335 | ac_status=$? |
| 15336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15337 | (exit $ac_status); } && |
| 15338 | { ac_try='test -s conftest$ac_exeext' |
| 15339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15340 | (eval $ac_try) 2>&5 |
| 15341 | ac_status=$? |
| 15342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15343 | (exit $ac_status); }; }; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15344 | ac_cv_have_getc_unlocked=yes |
| 15345 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15346 | echo "$as_me: failed program was:" >&5 |
| 15347 | cat conftest.$ac_ext >&5 |
| 15348 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15349 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15350 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15351 | fi |
| 15352 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15353 | echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 15354 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15355 | if test "$ac_cv_have_getc_unlocked" = yes |
| 15356 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15357 | |
| 15358 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15359 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15360 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15361 | |
| 15362 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15363 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15364 | # check for readline 4.0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15365 | echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 15366 | echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6 |
| 15367 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 15368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15369 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15370 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15371 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15372 | cat >conftest.$ac_ext <<_ACEOF |
| 15373 | #line $LINENO "configure" |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15374 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15375 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15376 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15377 | #ifdef __cplusplus |
| 15378 | extern "C" |
| 15379 | #endif |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15380 | /* 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] | 15381 | builtin and then its argument prototype would still apply. */ |
| 15382 | char rl_pre_input_hook (); |
| 15383 | #ifdef F77_DUMMY_MAIN |
| 15384 | # ifdef __cplusplus |
| 15385 | extern "C" |
| 15386 | # endif |
| 15387 | int F77_DUMMY_MAIN() { return 1; } |
| 15388 | #endif |
| 15389 | int |
| 15390 | main () |
| 15391 | { |
| 15392 | rl_pre_input_hook (); |
| 15393 | ; |
| 15394 | return 0; |
| 15395 | } |
| 15396 | _ACEOF |
| 15397 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15398 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15399 | (eval $ac_link) 2>&5 |
| 15400 | ac_status=$? |
| 15401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15402 | (exit $ac_status); } && |
| 15403 | { ac_try='test -s conftest$ac_exeext' |
| 15404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15405 | (eval $ac_try) 2>&5 |
| 15406 | ac_status=$? |
| 15407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15408 | (exit $ac_status); }; }; then |
| 15409 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15410 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15411 | echo "$as_me: failed program was:" >&5 |
| 15412 | cat conftest.$ac_ext >&5 |
| 15413 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15414 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15415 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 15416 | LIBS=$ac_check_lib_save_LIBS |
| 15417 | fi |
| 15418 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 15419 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6 |
| 15420 | 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] | 15421 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15422 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15423 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15424 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15425 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15426 | fi |
| 15427 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15428 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15429 | # check for readline 4.2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15430 | echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 15431 | echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6 |
| 15432 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 15433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15434 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15435 | ac_check_lib_save_LIBS=$LIBS |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15436 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15437 | cat >conftest.$ac_ext <<_ACEOF |
| 15438 | #line $LINENO "configure" |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15439 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15440 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15441 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15442 | #ifdef __cplusplus |
| 15443 | extern "C" |
| 15444 | #endif |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15445 | /* 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] | 15446 | builtin and then its argument prototype would still apply. */ |
| 15447 | char rl_completion_matches (); |
| 15448 | #ifdef F77_DUMMY_MAIN |
| 15449 | # ifdef __cplusplus |
| 15450 | extern "C" |
| 15451 | # endif |
| 15452 | int F77_DUMMY_MAIN() { return 1; } |
| 15453 | #endif |
| 15454 | int |
| 15455 | main () |
| 15456 | { |
| 15457 | rl_completion_matches (); |
| 15458 | ; |
| 15459 | return 0; |
| 15460 | } |
| 15461 | _ACEOF |
| 15462 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15463 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15464 | (eval $ac_link) 2>&5 |
| 15465 | ac_status=$? |
| 15466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15467 | (exit $ac_status); } && |
| 15468 | { ac_try='test -s conftest$ac_exeext' |
| 15469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15470 | (eval $ac_try) 2>&5 |
| 15471 | ac_status=$? |
| 15472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15473 | (exit $ac_status); }; }; then |
| 15474 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15475 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15476 | echo "$as_me: failed program was:" >&5 |
| 15477 | cat conftest.$ac_ext >&5 |
| 15478 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15479 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15480 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 15481 | LIBS=$ac_check_lib_save_LIBS |
| 15482 | fi |
| 15483 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 15484 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6 |
| 15485 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15486 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15487 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15488 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15489 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15490 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15491 | fi |
| 15492 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15493 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15494 | echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 15495 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6 |
| 15496 | if test "${ac_cv_broken_nice+set}" = set; then |
| 15497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15498 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15499 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15500 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15501 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15502 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15503 | cat >conftest.$ac_ext <<_ACEOF |
| 15504 | #line $LINENO "configure" |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15505 | #include "confdefs.h" |
| 15506 | |
| 15507 | int main() |
| 15508 | { |
| 15509 | int val1 = nice(1); |
| 15510 | if (val1 != -1 && val1 == nice(2)) |
| 15511 | exit(0); |
| 15512 | exit(1); |
| 15513 | } |
| 15514 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15515 | _ACEOF |
| 15516 | rm -f conftest$ac_exeext |
| 15517 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15518 | (eval $ac_link) 2>&5 |
| 15519 | ac_status=$? |
| 15520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15521 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15523 | (eval $ac_try) 2>&5 |
| 15524 | ac_status=$? |
| 15525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15526 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15527 | ac_cv_broken_nice=yes |
| 15528 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15529 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15530 | echo "$as_me: failed program was:" >&5 |
| 15531 | cat conftest.$ac_ext >&5 |
| 15532 | ( exit $ac_status ) |
| 15533 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15534 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15535 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15536 | fi |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15537 | fi |
| 15538 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15539 | echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 15540 | echo "${ECHO_T}$ac_cv_broken_nice" >&6 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15541 | if test "$ac_cv_broken_nice" = yes |
| 15542 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15543 | |
| 15544 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15545 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15546 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15547 | |
| 15548 | fi |
| 15549 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15550 | # 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] | 15551 | echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 15552 | echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6 |
| 15553 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 15554 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15555 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15556 | cat >conftest.$ac_ext <<_ACEOF |
| 15557 | #line $LINENO "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15558 | #include "confdefs.h" |
| 15559 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15560 | #ifdef F77_DUMMY_MAIN |
| 15561 | # ifdef __cplusplus |
| 15562 | extern "C" |
| 15563 | # endif |
| 15564 | int F77_DUMMY_MAIN() { return 1; } |
| 15565 | #endif |
| 15566 | int |
| 15567 | main () |
| 15568 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15569 | |
| 15570 | int rtn; |
| 15571 | rtn = mvwdelch(0,0,0); |
| 15572 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15573 | ; |
| 15574 | return 0; |
| 15575 | } |
| 15576 | _ACEOF |
| 15577 | rm -f conftest.$ac_objext |
| 15578 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15579 | (eval $ac_compile) 2>&5 |
| 15580 | ac_status=$? |
| 15581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15582 | (exit $ac_status); } && |
| 15583 | { ac_try='test -s conftest.$ac_objext' |
| 15584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15585 | (eval $ac_try) 2>&5 |
| 15586 | ac_status=$? |
| 15587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15588 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15589 | ac_cv_mvwdelch_is_expression=yes |
| 15590 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15591 | echo "$as_me: failed program was:" >&5 |
| 15592 | cat conftest.$ac_ext >&5 |
| 15593 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15594 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15595 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15596 | fi |
| 15597 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15598 | echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 15599 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15600 | |
| 15601 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 15602 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15603 | |
| 15604 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15605 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15606 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15607 | |
| 15608 | fi |
| 15609 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15610 | echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 15611 | echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6 |
| 15612 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 15613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15614 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15615 | cat >conftest.$ac_ext <<_ACEOF |
| 15616 | #line $LINENO "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15617 | #include "confdefs.h" |
| 15618 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15619 | #ifdef F77_DUMMY_MAIN |
| 15620 | # ifdef __cplusplus |
| 15621 | extern "C" |
| 15622 | # endif |
| 15623 | int F77_DUMMY_MAIN() { return 1; } |
| 15624 | #endif |
| 15625 | int |
| 15626 | main () |
| 15627 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15628 | |
| 15629 | WINDOW *w; |
| 15630 | w->_flags = 0; |
| 15631 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15632 | ; |
| 15633 | return 0; |
| 15634 | } |
| 15635 | _ACEOF |
| 15636 | rm -f conftest.$ac_objext |
| 15637 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15638 | (eval $ac_compile) 2>&5 |
| 15639 | ac_status=$? |
| 15640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15641 | (exit $ac_status); } && |
| 15642 | { ac_try='test -s conftest.$ac_objext' |
| 15643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15644 | (eval $ac_try) 2>&5 |
| 15645 | ac_status=$? |
| 15646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15647 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15648 | ac_cv_window_has_flags=yes |
| 15649 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15650 | echo "$as_me: failed program was:" >&5 |
| 15651 | cat conftest.$ac_ext >&5 |
| 15652 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15653 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15654 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15655 | fi |
| 15656 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15657 | echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 15658 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15659 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15660 | |
| 15661 | if test "$ac_cv_window_has_flags" = yes |
| 15662 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15663 | |
| 15664 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15665 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15666 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15667 | |
| 15668 | fi |
| 15669 | |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15670 | # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS! |
| 15671 | # Add sys/socket.h to confdefs.h |
| 15672 | cat >> confdefs.h <<\EOF |
| 15673 | #ifdef HAVE_SYS_SOCKET_H |
| 15674 | #include <sys/socket.h> |
| 15675 | #endif |
| 15676 | EOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15677 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 15678 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 15679 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 15680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15681 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15682 | cat >conftest.$ac_ext <<_ACEOF |
| 15683 | #line $LINENO "configure" |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15684 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15685 | $ac_includes_default |
| 15686 | #ifdef F77_DUMMY_MAIN |
| 15687 | # ifdef __cplusplus |
| 15688 | extern "C" |
| 15689 | # endif |
| 15690 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15691 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15692 | int |
| 15693 | main () |
| 15694 | { |
| 15695 | if ((socklen_t *) 0) |
| 15696 | return 0; |
| 15697 | if (sizeof (socklen_t)) |
| 15698 | return 0; |
| 15699 | ; |
| 15700 | return 0; |
| 15701 | } |
| 15702 | _ACEOF |
| 15703 | rm -f conftest.$ac_objext |
| 15704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15705 | (eval $ac_compile) 2>&5 |
| 15706 | ac_status=$? |
| 15707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15708 | (exit $ac_status); } && |
| 15709 | { ac_try='test -s conftest.$ac_objext' |
| 15710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15711 | (eval $ac_try) 2>&5 |
| 15712 | ac_status=$? |
| 15713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15714 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15715 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15716 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15717 | echo "$as_me: failed program was:" >&5 |
| 15718 | cat conftest.$ac_ext >&5 |
| 15719 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15720 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15721 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15722 | fi |
| 15723 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 15724 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| 15725 | if test $ac_cv_type_socklen_t = yes; then |
| 15726 | : |
| 15727 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15728 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15729 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15730 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15731 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15732 | |
| 15733 | fi |
| 15734 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15735 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15736 | #AC_MSG_CHECKING(for Modules/Setup) |
| 15737 | #if test ! -f Modules/Setup ; then |
| 15738 | # if test ! -d Modules ; then |
| 15739 | # mkdir Modules |
| 15740 | # fi |
| 15741 | # cp "$srcdir/Modules/Setup.dist" Modules/Setup |
| 15742 | # AC_MSG_RESULT(creating) |
| 15743 | #else |
| 15744 | # AC_MSG_RESULT(already exists) |
| 15745 | #fi |
| 15746 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15747 | |
| 15748 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 15749 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 15750 | do |
| 15751 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 15752 | done |
| 15753 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15754 | |
Neil Schemenauer | acbf9ef | 2001-02-27 02:15:14 +0000 | [diff] [blame] | 15755 | SRCDIRS="Parser Grammar Objects Python Modules" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15756 | echo "$as_me:$LINENO: checking for build directories" >&5 |
| 15757 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15758 | for dir in $SRCDIRS; do |
| 15759 | if test ! -d $dir; then |
| 15760 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 15761 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15762 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15763 | echo "$as_me:$LINENO: result: done" >&5 |
| 15764 | echo "${ECHO_T}done" >&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 15765 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15766 | # generate output files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15767 | ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config" |
| 15768 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15769 | # This file is a shell script that caches the results of configure |
| 15770 | # 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] | 15771 | # scripts and configure runs, see configure's option --config-cache. |
| 15772 | # It is not useful on other systems. If it contains results you don't |
| 15773 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15774 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15775 | # config.status only pays attention to the cache file if you give it |
| 15776 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15777 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15778 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
| 15779 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 15780 | # following values. |
| 15781 | |
| 15782 | _ACEOF |
| 15783 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15784 | # The following way of writing the cache mishandles newlines in values, |
| 15785 | # but we know of no workaround that is simple, portable, and efficient. |
| 15786 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15787 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 15788 | # 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] | 15789 | { |
| 15790 | (set) 2>&1 | |
| 15791 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 15792 | *ac_space=\ *) |
| 15793 | # `set' does not quote correctly, so add quotes (double-quote |
| 15794 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 15795 | sed -n \ |
| 15796 | "s/'/'\\\\''/g; |
| 15797 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 15798 | ;; |
| 15799 | *) |
| 15800 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 15801 | sed -n \ |
| 15802 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 15803 | ;; |
| 15804 | esac; |
| 15805 | } | |
| 15806 | sed ' |
| 15807 | t clear |
| 15808 | : clear |
| 15809 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 15810 | t end |
| 15811 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 15812 | : end' >>confcache |
| 15813 | if cmp -s $cache_file confcache; then :; else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15814 | if test -w $cache_file; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15815 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 15816 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15817 | else |
| 15818 | echo "not updating unwritable cache $cache_file" |
| 15819 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15820 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15821 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 15822 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15823 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 15824 | # Let make expand exec_prefix. |
| 15825 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 15826 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15827 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 15828 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 15829 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 15830 | # (actually we leave an empty line to preserve line numbers). |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15831 | if test "x$srcdir" = x.; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15832 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 15833 | s/:*\$(srcdir):*/:/; |
| 15834 | s/:*\${srcdir}:*/:/; |
| 15835 | s/:*@srcdir@:*/:/; |
| 15836 | s/^\([^=]*=[ ]*\):*/\1/; |
| 15837 | s/:*$//; |
| 15838 | s/^[^=]*=[ ]*$//; |
| 15839 | }' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15840 | fi |
| 15841 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15842 | DEFS=-DHAVE_CONFIG_H |
| 15843 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15844 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15845 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15846 | ac_clean_files_save=$ac_clean_files |
| 15847 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 15848 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 15849 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 15850 | cat >$CONFIG_STATUS <<_ACEOF |
| 15851 | #! $SHELL |
| 15852 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15853 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15854 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15855 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15856 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15857 | debug=false |
| 15858 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 15859 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15860 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15861 | cat >>$CONFIG_STATUS <<\_ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15862 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15863 | ## --------------------- ## |
| 15864 | ## M4sh Initialization. ## |
| 15865 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15866 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15867 | # Be Bourne compatible |
| 15868 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 15869 | emulate sh |
| 15870 | NULLCMD=: |
| 15871 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 15872 | set -o posix |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15873 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15874 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15875 | # NLS nuisances. |
| 15876 | # Support unset when possible. |
| 15877 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 15878 | as_unset=unset |
| 15879 | else |
| 15880 | as_unset=false |
| 15881 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15882 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15883 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && |
| 15884 | { $as_unset LANG || test "${LANG+set}" != set; } || |
| 15885 | { LANG=C; export LANG; } |
| 15886 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && |
| 15887 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || |
| 15888 | { LC_ALL=C; export LC_ALL; } |
| 15889 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && |
| 15890 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || |
| 15891 | { LC_TIME=C; export LC_TIME; } |
| 15892 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && |
| 15893 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || |
| 15894 | { LC_CTYPE=C; export LC_CTYPE; } |
| 15895 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && |
| 15896 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || |
| 15897 | { LANGUAGE=C; export LANGUAGE; } |
| 15898 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && |
| 15899 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || |
| 15900 | { LC_COLLATE=C; export LC_COLLATE; } |
| 15901 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && |
| 15902 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || |
| 15903 | { LC_NUMERIC=C; export LC_NUMERIC; } |
| 15904 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && |
| 15905 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || |
| 15906 | { LC_MESSAGES=C; export LC_MESSAGES; } |
| 15907 | |
| 15908 | |
| 15909 | # Name of the executable. |
| 15910 | as_me=`(basename "$0") 2>/dev/null || |
| 15911 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 15912 | X"$0" : 'X\(//\)$' \| \ |
| 15913 | X"$0" : 'X\(/\)$' \| \ |
| 15914 | . : '\(.\)' 2>/dev/null || |
| 15915 | echo X/"$0" | |
| 15916 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 15917 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 15918 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 15919 | s/.*/./; q'` |
| 15920 | |
| 15921 | # PATH needs CR, and LINENO needs CR and PATH. |
| 15922 | # Avoid depending upon Character Ranges. |
| 15923 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 15924 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 15925 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 15926 | as_cr_digits='0123456789' |
| 15927 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 15928 | |
| 15929 | # The user is always right. |
| 15930 | if test "${PATH_SEPARATOR+set}" != set; then |
| 15931 | echo "#! /bin/sh" >conftest.sh |
| 15932 | echo "exit 0" >>conftest.sh |
| 15933 | chmod +x conftest.sh |
| 15934 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
| 15935 | PATH_SEPARATOR=';' |
| 15936 | else |
| 15937 | PATH_SEPARATOR=: |
| 15938 | fi |
| 15939 | rm -f conftest.sh |
| 15940 | fi |
| 15941 | |
| 15942 | |
| 15943 | as_lineno_1=$LINENO |
| 15944 | as_lineno_2=$LINENO |
| 15945 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 15946 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 15947 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 15948 | # Find who we are. Look in the path if we contain no path at all |
| 15949 | # relative or not. |
| 15950 | case $0 in |
| 15951 | *[\\/]* ) as_myself=$0 ;; |
| 15952 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15953 | for as_dir in $PATH |
| 15954 | do |
| 15955 | IFS=$as_save_IFS |
| 15956 | test -z "$as_dir" && as_dir=. |
| 15957 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 15958 | done |
| 15959 | |
| 15960 | ;; |
| 15961 | esac |
| 15962 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 15963 | # in which case we are not to be found in the path. |
| 15964 | if test "x$as_myself" = x; then |
| 15965 | as_myself=$0 |
| 15966 | fi |
| 15967 | if test ! -f "$as_myself"; then |
| 15968 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 15969 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 15970 | { (exit 1); exit 1; }; } |
| 15971 | fi |
| 15972 | case $CONFIG_SHELL in |
| 15973 | '') |
| 15974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15975 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 15976 | do |
| 15977 | IFS=$as_save_IFS |
| 15978 | test -z "$as_dir" && as_dir=. |
| 15979 | for as_base in sh bash ksh sh5; do |
| 15980 | case $as_dir in |
| 15981 | /*) |
| 15982 | if ("$as_dir/$as_base" -c ' |
| 15983 | as_lineno_1=$LINENO |
| 15984 | as_lineno_2=$LINENO |
| 15985 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 15986 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 15987 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 15988 | CONFIG_SHELL=$as_dir/$as_base |
| 15989 | export CONFIG_SHELL |
| 15990 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 15991 | fi;; |
| 15992 | esac |
| 15993 | done |
| 15994 | done |
| 15995 | ;; |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15996 | esac |
| 15997 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15998 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 15999 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 16000 | # line-number line before each line; the second 'sed' does the real |
| 16001 | # work. The second script uses 'N' to pair each line-number line |
| 16002 | # with the numbered line, and appends trailing '-' during |
| 16003 | # substitution so that $LINENO is not a special case at line end. |
| 16004 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 16005 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 16006 | sed '=' <$as_myself | |
| 16007 | sed ' |
| 16008 | N |
| 16009 | s,$,-, |
| 16010 | : loop |
| 16011 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 16012 | t loop |
| 16013 | s,-$,, |
| 16014 | s,^['$as_cr_digits']*\n,, |
| 16015 | ' >$as_me.lineno && |
| 16016 | chmod +x $as_me.lineno || |
| 16017 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 16018 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 16019 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16020 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16021 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 16022 | # (the dirname of $[0] is not the place where we might find the |
| 16023 | # original and so on. Autoconf is especially sensible to this). |
| 16024 | . ./$as_me.lineno |
| 16025 | # Exit status is that of the last command. |
| 16026 | exit |
| 16027 | } |
| 16028 | |
| 16029 | |
| 16030 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 16031 | *c*,-n*) ECHO_N= ECHO_C=' |
| 16032 | ' ECHO_T=' ' ;; |
| 16033 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 16034 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 16035 | esac |
| 16036 | |
| 16037 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 16038 | as_expr=expr |
| 16039 | else |
| 16040 | as_expr=false |
| 16041 | fi |
| 16042 | |
| 16043 | rm -f conf$$ conf$$.exe conf$$.file |
| 16044 | echo >conf$$.file |
| 16045 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 16046 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 16047 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 16048 | if test -f conf$$.exe; then |
| 16049 | # Don't use ln at all; we don't have any links |
| 16050 | as_ln_s='cp -p' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16051 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16052 | as_ln_s='ln -s' |
| 16053 | fi |
| 16054 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 16055 | as_ln_s=ln |
| 16056 | else |
| 16057 | as_ln_s='cp -p' |
| 16058 | fi |
| 16059 | rm -f conf$$ conf$$.exe conf$$.file |
| 16060 | |
| 16061 | as_executable_p="test -f" |
| 16062 | |
| 16063 | # Sed expression to map a string onto a valid CPP name. |
| 16064 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 16065 | |
| 16066 | # Sed expression to map a string onto a valid variable name. |
| 16067 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 16068 | |
| 16069 | |
| 16070 | # IFS |
| 16071 | # We need space, tab and new line, in precisely that order. |
| 16072 | as_nl=' |
| 16073 | ' |
| 16074 | IFS=" $as_nl" |
| 16075 | |
| 16076 | # CDPATH. |
| 16077 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
| 16078 | |
| 16079 | exec 6>&1 |
| 16080 | |
| 16081 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 16082 | # report actual input values of CONFIG_FILES etc. instead of their |
| 16083 | # values after options handling. Logging --version etc. is OK. |
| 16084 | exec 5>>config.log |
| 16085 | { |
| 16086 | echo |
| 16087 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 16088 | ## Running $as_me. ## |
| 16089 | _ASBOX |
| 16090 | } >&5 |
| 16091 | cat >&5 <<_CSEOF |
| 16092 | |
| 16093 | This file was extended by $as_me, which was |
| 16094 | generated by GNU Autoconf 2.53. Invocation command line was |
| 16095 | |
| 16096 | CONFIG_FILES = $CONFIG_FILES |
| 16097 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 16098 | CONFIG_LINKS = $CONFIG_LINKS |
| 16099 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 16100 | $ $0 $@ |
| 16101 | |
| 16102 | _CSEOF |
| 16103 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 16104 | echo >&5 |
| 16105 | _ACEOF |
| 16106 | |
| 16107 | # Files that config.status was made for. |
| 16108 | if test -n "$ac_config_files"; then |
| 16109 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 16110 | fi |
| 16111 | |
| 16112 | if test -n "$ac_config_headers"; then |
| 16113 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 16114 | fi |
| 16115 | |
| 16116 | if test -n "$ac_config_links"; then |
| 16117 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 16118 | fi |
| 16119 | |
| 16120 | if test -n "$ac_config_commands"; then |
| 16121 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 16122 | fi |
| 16123 | |
| 16124 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16125 | |
| 16126 | ac_cs_usage="\ |
| 16127 | \`$as_me' instantiates files from templates according to the |
| 16128 | current configuration. |
| 16129 | |
| 16130 | Usage: $0 [OPTIONS] [FILE]... |
| 16131 | |
| 16132 | -h, --help print this help, then exit |
| 16133 | -V, --version print version number, then exit |
| 16134 | -d, --debug don't remove temporary files |
| 16135 | --recheck update $as_me by reconfiguring in the same conditions |
| 16136 | --file=FILE[:TEMPLATE] |
| 16137 | instantiate the configuration file FILE |
| 16138 | --header=FILE[:TEMPLATE] |
| 16139 | instantiate the configuration header FILE |
| 16140 | |
| 16141 | Configuration files: |
| 16142 | $config_files |
| 16143 | |
| 16144 | Configuration headers: |
| 16145 | $config_headers |
| 16146 | |
| 16147 | Report bugs to <bug-autoconf@gnu.org>." |
| 16148 | _ACEOF |
| 16149 | |
| 16150 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16151 | ac_cs_version="\\ |
| 16152 | config.status |
| 16153 | configured by $0, generated by GNU Autoconf 2.53, |
| 16154 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 16155 | |
| 16156 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 16157 | Free Software Foundation, Inc. |
| 16158 | This config.status script is free software; the Free Software Foundation |
| 16159 | gives unlimited permission to copy, distribute and modify it." |
| 16160 | srcdir=$srcdir |
| 16161 | INSTALL="$INSTALL" |
| 16162 | _ACEOF |
| 16163 | |
| 16164 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16165 | # If no file are specified by the user, then we need to provide default |
| 16166 | # value. By we need to know if files were specified by the user. |
| 16167 | ac_need_defaults=: |
| 16168 | while test $# != 0 |
| 16169 | do |
| 16170 | case $1 in |
| 16171 | --*=*) |
| 16172 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 16173 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 16174 | shift |
| 16175 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} |
| 16176 | shift |
| 16177 | ;; |
| 16178 | -*);; |
| 16179 | *) # This is not an option, so the user has probably given explicit |
| 16180 | # arguments. |
| 16181 | ac_need_defaults=false;; |
| 16182 | esac |
| 16183 | |
| 16184 | case $1 in |
| 16185 | # Handling of the options. |
| 16186 | _ACEOF |
| 16187 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16188 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 16189 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
| 16190 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; |
| 16191 | _ACEOF |
| 16192 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16193 | --version | --vers* | -V ) |
| 16194 | echo "$ac_cs_version"; exit 0 ;; |
| 16195 | --he | --h) |
| 16196 | # Conflict between --help and --header |
| 16197 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 16198 | Try \`$0 --help' for more information." >&5 |
| 16199 | echo "$as_me: error: ambiguous option: $1 |
| 16200 | Try \`$0 --help' for more information." >&2;} |
| 16201 | { (exit 1); exit 1; }; };; |
| 16202 | --help | --hel | -h ) |
| 16203 | echo "$ac_cs_usage"; exit 0 ;; |
| 16204 | --debug | --d* | -d ) |
| 16205 | debug=: ;; |
| 16206 | --file | --fil | --fi | --f ) |
| 16207 | shift |
| 16208 | CONFIG_FILES="$CONFIG_FILES $1" |
| 16209 | ac_need_defaults=false;; |
| 16210 | --header | --heade | --head | --hea ) |
| 16211 | shift |
| 16212 | CONFIG_HEADERS="$CONFIG_HEADERS $1" |
| 16213 | ac_need_defaults=false;; |
| 16214 | |
| 16215 | # This is an error. |
| 16216 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 16217 | Try \`$0 --help' for more information." >&5 |
| 16218 | echo "$as_me: error: unrecognized option: $1 |
| 16219 | Try \`$0 --help' for more information." >&2;} |
| 16220 | { (exit 1); exit 1; }; } ;; |
| 16221 | |
| 16222 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 16223 | |
| 16224 | esac |
| 16225 | shift |
| 16226 | done |
| 16227 | |
| 16228 | _ACEOF |
| 16229 | |
| 16230 | |
| 16231 | |
| 16232 | |
| 16233 | |
| 16234 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16235 | for ac_config_target in $ac_config_targets |
| 16236 | do |
| 16237 | case "$ac_config_target" in |
| 16238 | # Handling of arguments. |
| 16239 | "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 16240 | "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 16241 | "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 16242 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 16243 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 16244 | { (exit 1); exit 1; }; };; |
| 16245 | esac |
| 16246 | done |
| 16247 | |
| 16248 | # If the user did not use the arguments to specify the items to instantiate, |
| 16249 | # then the envvar interface is used. Set only those that are not. |
| 16250 | # We use the long form for the default assignment because of an extremely |
| 16251 | # bizarre bug on SunOS 4.1.3. |
| 16252 | if $ac_need_defaults; then |
| 16253 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 16254 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 16255 | fi |
| 16256 | |
| 16257 | # Create a temporary directory, and hook for its removal unless debugging. |
| 16258 | $debug || |
| 16259 | { |
| 16260 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 16261 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 16262 | } |
| 16263 | |
| 16264 | # Create a (secure) tmp directory for tmp files. |
| 16265 | : ${TMPDIR=/tmp} |
| 16266 | { |
| 16267 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && |
| 16268 | test -n "$tmp" && test -d "$tmp" |
| 16269 | } || |
| 16270 | { |
| 16271 | tmp=$TMPDIR/cs$$-$RANDOM |
| 16272 | (umask 077 && mkdir $tmp) |
| 16273 | } || |
| 16274 | { |
| 16275 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
| 16276 | { (exit 1); exit 1; } |
| 16277 | } |
| 16278 | |
| 16279 | _ACEOF |
| 16280 | |
| 16281 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16282 | |
| 16283 | # |
| 16284 | # CONFIG_FILES section. |
| 16285 | # |
| 16286 | |
| 16287 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 16288 | # This happens for instance when ./config.status config.h |
| 16289 | if test -n "\$CONFIG_FILES"; then |
| 16290 | # Protect against being on the right side of a sed subst in config.status. |
| 16291 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 16292 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 16293 | s,@SHELL@,$SHELL,;t t |
| 16294 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 16295 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 16296 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 16297 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 16298 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 16299 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 16300 | s,@exec_prefix@,$exec_prefix,;t t |
| 16301 | s,@prefix@,$prefix,;t t |
| 16302 | s,@program_transform_name@,$program_transform_name,;t t |
| 16303 | s,@bindir@,$bindir,;t t |
| 16304 | s,@sbindir@,$sbindir,;t t |
| 16305 | s,@libexecdir@,$libexecdir,;t t |
| 16306 | s,@datadir@,$datadir,;t t |
| 16307 | s,@sysconfdir@,$sysconfdir,;t t |
| 16308 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 16309 | s,@localstatedir@,$localstatedir,;t t |
| 16310 | s,@libdir@,$libdir,;t t |
| 16311 | s,@includedir@,$includedir,;t t |
| 16312 | s,@oldincludedir@,$oldincludedir,;t t |
| 16313 | s,@infodir@,$infodir,;t t |
| 16314 | s,@mandir@,$mandir,;t t |
| 16315 | s,@build_alias@,$build_alias,;t t |
| 16316 | s,@host_alias@,$host_alias,;t t |
| 16317 | s,@target_alias@,$target_alias,;t t |
| 16318 | s,@DEFS@,$DEFS,;t t |
| 16319 | s,@ECHO_C@,$ECHO_C,;t t |
| 16320 | s,@ECHO_N@,$ECHO_N,;t t |
| 16321 | s,@ECHO_T@,$ECHO_T,;t t |
| 16322 | s,@LIBS@,$LIBS,;t t |
| 16323 | s,@VERSION@,$VERSION,;t t |
| 16324 | s,@SOVERSION@,$SOVERSION,;t t |
| 16325 | s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t |
| 16326 | s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t |
| 16327 | s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t |
| 16328 | s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t |
| 16329 | s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t |
| 16330 | s,@MACHDEP@,$MACHDEP,;t t |
| 16331 | s,@SGI_ABI@,$SGI_ABI,;t t |
| 16332 | s,@CXX@,$CXX,;t t |
| 16333 | s,@MAINOBJ@,$MAINOBJ,;t t |
| 16334 | s,@EXEEXT@,$EXEEXT,;t t |
| 16335 | s,@CC@,$CC,;t t |
| 16336 | s,@CFLAGS@,$CFLAGS,;t t |
| 16337 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 16338 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 16339 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 16340 | s,@OBJEXT@,$OBJEXT,;t t |
| 16341 | s,@CPP@,$CPP,;t t |
| 16342 | s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t |
| 16343 | s,@LIBRARY@,$LIBRARY,;t t |
| 16344 | s,@LDLIBRARY@,$LDLIBRARY,;t t |
| 16345 | s,@DLLLIBRARY@,$DLLLIBRARY,;t t |
| 16346 | s,@BLDLIBRARY@,$BLDLIBRARY,;t t |
| 16347 | s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t |
| 16348 | s,@INSTSONAME@,$INSTSONAME,;t t |
| 16349 | s,@RUNSHARED@,$RUNSHARED,;t t |
| 16350 | s,@LINKCC@,$LINKCC,;t t |
| 16351 | s,@RANLIB@,$RANLIB,;t t |
| 16352 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 16353 | s,@AR@,$AR,;t t |
| 16354 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 16355 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 16356 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 16357 | s,@LN@,$LN,;t t |
| 16358 | s,@OPT@,$OPT,;t t |
| 16359 | s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t |
| 16360 | s,@SO@,$SO,;t t |
| 16361 | s,@LDSHARED@,$LDSHARED,;t t |
| 16362 | s,@BLDSHARED@,$BLDSHARED,;t t |
| 16363 | s,@CCSHARED@,$CCSHARED,;t t |
| 16364 | s,@LINKFORSHARED@,$LINKFORSHARED,;t t |
| 16365 | s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t |
| 16366 | s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t |
| 16367 | s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t |
| 16368 | s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t |
| 16369 | s,@LDLAST@,$LDLAST,;t t |
| 16370 | s,@THREADOBJ@,$THREADOBJ,;t t |
| 16371 | s,@DLINCLDIR@,$DLINCLDIR,;t t |
| 16372 | s,@DYNLOADFILE@,$DYNLOADFILE,;t t |
| 16373 | s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t |
| 16374 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 16375 | s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t |
| 16376 | s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t |
| 16377 | s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t |
| 16378 | s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t |
| 16379 | s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t |
| 16380 | s,@LIBM@,$LIBM,;t t |
| 16381 | s,@LIBC@,$LIBC,;t t |
| 16382 | s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t |
| 16383 | s,@THREADHEADERS@,$THREADHEADERS,;t t |
| 16384 | s,@SRCDIRS@,$SRCDIRS,;t t |
| 16385 | CEOF |
| 16386 | |
| 16387 | _ACEOF |
| 16388 | |
| 16389 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16390 | # Split the substitutions into bite-sized pieces for seds with |
| 16391 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 16392 | ac_max_sed_lines=48 |
| 16393 | ac_sed_frag=1 # Number of current file. |
| 16394 | ac_beg=1 # First line for current file. |
| 16395 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 16396 | ac_more_lines=: |
| 16397 | ac_sed_cmds= |
| 16398 | while $ac_more_lines; do |
| 16399 | if test $ac_beg -gt 1; then |
| 16400 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 16401 | else |
| 16402 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 16403 | fi |
| 16404 | if test ! -s $tmp/subs.frag; then |
| 16405 | ac_more_lines=false |
| 16406 | else |
| 16407 | # The purpose of the label and of the branching condition is to |
| 16408 | # speed up the sed processing (if there are no `@' at all, there |
| 16409 | # is no need to browse any of the substitutions). |
| 16410 | # These are the two extra sed commands mentioned above. |
| 16411 | (echo ':t |
| 16412 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 16413 | if test -z "$ac_sed_cmds"; then |
| 16414 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 16415 | else |
| 16416 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 16417 | fi |
| 16418 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 16419 | ac_beg=$ac_end |
| 16420 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 16421 | fi |
| 16422 | done |
| 16423 | if test -z "$ac_sed_cmds"; then |
| 16424 | ac_sed_cmds=cat |
| 16425 | fi |
| 16426 | fi # test -n "$CONFIG_FILES" |
| 16427 | |
| 16428 | _ACEOF |
| 16429 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16430 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 16431 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 16432 | case $ac_file in |
| 16433 | - | *:- | *:-:* ) # input from stdin |
| 16434 | cat >$tmp/stdin |
| 16435 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16436 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16437 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16438 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16439 | * ) ac_file_in=$ac_file.in ;; |
| 16440 | esac |
| 16441 | |
| 16442 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 16443 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 16444 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16445 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16446 | X"$ac_file" : 'X\(//\)$' \| \ |
| 16447 | X"$ac_file" : 'X\(/\)' \| \ |
| 16448 | . : '\(.\)' 2>/dev/null || |
| 16449 | echo X"$ac_file" | |
| 16450 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16451 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16452 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16453 | /^X\(\/\).*/{ s//\1/; q; } |
| 16454 | s/.*/./; q'` |
| 16455 | { case "$ac_dir" in |
| 16456 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 16457 | *) as_incr_dir=.;; |
| 16458 | esac |
| 16459 | as_dummy="$ac_dir" |
| 16460 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 16461 | case $as_mkdir_dir in |
| 16462 | # Skip DOS drivespec |
| 16463 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 16464 | *) |
| 16465 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 16466 | test -d "$as_incr_dir" || |
| 16467 | mkdir "$as_incr_dir" || |
| 16468 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 16469 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 16470 | { (exit 1); exit 1; }; } |
| 16471 | ;; |
| 16472 | esac |
| 16473 | done; } |
| 16474 | |
| 16475 | ac_builddir=. |
| 16476 | |
| 16477 | if test "$ac_dir" != .; then |
| 16478 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 16479 | # A "../" for each directory in $ac_dir_suffix. |
| 16480 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 16481 | else |
| 16482 | ac_dir_suffix= ac_top_builddir= |
| 16483 | fi |
| 16484 | |
| 16485 | case $srcdir in |
| 16486 | .) # No --srcdir option. We are building in place. |
| 16487 | ac_srcdir=. |
| 16488 | if test -z "$ac_top_builddir"; then |
| 16489 | ac_top_srcdir=. |
| 16490 | else |
| 16491 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 16492 | fi ;; |
| 16493 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 16494 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 16495 | ac_top_srcdir=$srcdir ;; |
| 16496 | *) # Relative path. |
| 16497 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 16498 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 16499 | esac |
| 16500 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 16501 | # absolute. |
| 16502 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 16503 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` |
| 16504 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 16505 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 16506 | |
| 16507 | |
| 16508 | case $INSTALL in |
| 16509 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 16510 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 16511 | esac |
| 16512 | |
| 16513 | if test x"$ac_file" != x-; then |
| 16514 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 16515 | echo "$as_me: creating $ac_file" >&6;} |
| 16516 | rm -f "$ac_file" |
| 16517 | fi |
| 16518 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16519 | # use $as_me), people would be surprised to read: |
| 16520 | # /* config.h. Generated by config.status. */ |
| 16521 | if test x"$ac_file" = x-; then |
| 16522 | configure_input= |
| 16523 | else |
| 16524 | configure_input="$ac_file. " |
| 16525 | fi |
| 16526 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 16527 | sed 's,.*/,,'` by configure." |
| 16528 | |
| 16529 | # First look for the input files in the build tree, otherwise in the |
| 16530 | # src tree. |
| 16531 | ac_file_inputs=`IFS=: |
| 16532 | for f in $ac_file_in; do |
| 16533 | case $f in |
| 16534 | -) echo $tmp/stdin ;; |
| 16535 | [\\/$]*) |
| 16536 | # Absolute (can't be DOS-style, as IFS=:) |
| 16537 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16538 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16539 | { (exit 1); exit 1; }; } |
| 16540 | echo $f;; |
| 16541 | *) # Relative |
| 16542 | if test -f "$f"; then |
| 16543 | # Build tree |
| 16544 | echo $f |
| 16545 | elif test -f "$srcdir/$f"; then |
| 16546 | # Source tree |
| 16547 | echo $srcdir/$f |
| 16548 | else |
| 16549 | # /dev/null tree |
| 16550 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16551 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16552 | { (exit 1); exit 1; }; } |
| 16553 | fi;; |
| 16554 | esac |
| 16555 | done` || { (exit 1); exit 1; } |
| 16556 | _ACEOF |
| 16557 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16558 | sed "$ac_vpsub |
| 16559 | $extrasub |
| 16560 | _ACEOF |
| 16561 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16562 | :t |
| 16563 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 16564 | s,@configure_input@,$configure_input,;t t |
| 16565 | s,@srcdir@,$ac_srcdir,;t t |
| 16566 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 16567 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 16568 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 16569 | s,@builddir@,$ac_builddir,;t t |
| 16570 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 16571 | s,@top_builddir@,$ac_top_builddir,;t t |
| 16572 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 16573 | s,@INSTALL@,$ac_INSTALL,;t t |
| 16574 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 16575 | rm -f $tmp/stdin |
| 16576 | if test x"$ac_file" != x-; then |
| 16577 | mv $tmp/out $ac_file |
| 16578 | else |
| 16579 | cat $tmp/out |
| 16580 | rm -f $tmp/out |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16581 | fi |
| 16582 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16583 | done |
| 16584 | _ACEOF |
| 16585 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16586 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16587 | # |
| 16588 | # CONFIG_HEADER section. |
| 16589 | # |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16590 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16591 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 16592 | # 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] | 16593 | # |
| 16594 | # ac_d sets the value in "#define NAME VALUE" lines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16595 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 16596 | ac_dB='[ ].*$,\1#\2' |
| 16597 | ac_dC=' ' |
| 16598 | ac_dD=',;t' |
| 16599 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 16600 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 16601 | ac_uB='$,\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16602 | ac_uC=' ' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16603 | ac_uD=',;t' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16604 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16605 | 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] | 16606 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16607 | case $ac_file in |
| 16608 | - | *:- | *:-:* ) # input from stdin |
| 16609 | cat >$tmp/stdin |
| 16610 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16611 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16612 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16613 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16614 | * ) ac_file_in=$ac_file.in ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16615 | esac |
| 16616 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16617 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 16618 | echo "$as_me: creating $ac_file" >&6;} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16619 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16620 | # First look for the input files in the build tree, otherwise in the |
| 16621 | # src tree. |
| 16622 | ac_file_inputs=`IFS=: |
| 16623 | for f in $ac_file_in; do |
| 16624 | case $f in |
| 16625 | -) echo $tmp/stdin ;; |
| 16626 | [\\/$]*) |
| 16627 | # Absolute (can't be DOS-style, as IFS=:) |
| 16628 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16629 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16630 | { (exit 1); exit 1; }; } |
| 16631 | echo $f;; |
| 16632 | *) # Relative |
| 16633 | if test -f "$f"; then |
| 16634 | # Build tree |
| 16635 | echo $f |
| 16636 | elif test -f "$srcdir/$f"; then |
| 16637 | # Source tree |
| 16638 | echo $srcdir/$f |
| 16639 | else |
| 16640 | # /dev/null tree |
| 16641 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16642 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16643 | { (exit 1); exit 1; }; } |
| 16644 | fi;; |
| 16645 | esac |
| 16646 | done` || { (exit 1); exit 1; } |
| 16647 | # Remove the trailing spaces. |
| 16648 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16649 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16650 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16651 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16652 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 16653 | # `conftest.undefs', that substitutes the proper values into |
| 16654 | # config.h.in to produce config.h. The first handles `#define' |
| 16655 | # templates, and the second `#undef' templates. |
| 16656 | # And first: Protect against being on the right side of a sed subst in |
| 16657 | # config.status. Protect against being in an unquoted here document |
| 16658 | # in config.status. |
| 16659 | rm -f conftest.defines conftest.undefs |
| 16660 | # Using a here document instead of a string reduces the quoting nightmare. |
| 16661 | # Putting comments in sed scripts is not portable. |
| 16662 | # |
| 16663 | # `end' is used to avoid that the second main sed command (meant for |
| 16664 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 16665 | # See the Autoconf documentation for `clear'. |
| 16666 | cat >confdef2sed.sed <<\_ACEOF |
| 16667 | s/[\\&,]/\\&/g |
| 16668 | s,[\\$`],\\&,g |
| 16669 | t clear |
| 16670 | : clear |
| 16671 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 16672 | t end |
| 16673 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 16674 | : end |
| 16675 | _ACEOF |
| 16676 | # If some macros were called several times there might be several times |
| 16677 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 16678 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 16679 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 16680 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 16681 | rm -f confdef2sed.sed |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16682 | |
| 16683 | # This sed command replaces #undef with comments. This is necessary, for |
| 16684 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 16685 | # 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] | 16686 | cat >>conftest.undefs <<\_ACEOF |
| 16687 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 16688 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16689 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16690 | # Break up conftest.defines because some shells have a limit on the size |
| 16691 | # of here documents, and old seds have small limits too (100 cmds). |
| 16692 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 16693 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 16694 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 16695 | echo ' :' >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16696 | rm -f conftest.tail |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16697 | while grep . conftest.defines >/dev/null |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16698 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16699 | # Write a limited-size here document to $tmp/defines.sed. |
| 16700 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 16701 | # Speed up: don't consider the non `#define' lines. |
| 16702 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 16703 | # Work around the forget-to-reset-the-flag bug. |
| 16704 | echo 't clr' >>$CONFIG_STATUS |
| 16705 | echo ': clr' >>$CONFIG_STATUS |
| 16706 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16707 | echo 'CEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16708 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 16709 | rm -f $tmp/in |
| 16710 | mv $tmp/out $tmp/in |
| 16711 | ' >>$CONFIG_STATUS |
| 16712 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 16713 | rm -f conftest.defines |
| 16714 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16715 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16716 | rm -f conftest.defines |
| 16717 | echo ' fi # egrep' >>$CONFIG_STATUS |
| 16718 | echo >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16719 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16720 | # Break up conftest.undefs because some shells have a limit on the size |
| 16721 | # of here documents, and old seds have small limits too (100 cmds). |
| 16722 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 16723 | rm -f conftest.tail |
| 16724 | while grep . conftest.undefs >/dev/null |
| 16725 | do |
| 16726 | # Write a limited-size here document to $tmp/undefs.sed. |
| 16727 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 16728 | # Speed up: don't consider the non `#undef' |
| 16729 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 16730 | # Work around the forget-to-reset-the-flag bug. |
| 16731 | echo 't clr' >>$CONFIG_STATUS |
| 16732 | echo ': clr' >>$CONFIG_STATUS |
| 16733 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 16734 | echo 'CEOF |
| 16735 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 16736 | rm -f $tmp/in |
| 16737 | mv $tmp/out $tmp/in |
| 16738 | ' >>$CONFIG_STATUS |
| 16739 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 16740 | rm -f conftest.undefs |
| 16741 | mv conftest.tail conftest.undefs |
| 16742 | done |
| 16743 | rm -f conftest.undefs |
| 16744 | |
| 16745 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16746 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16747 | # use $as_me), people would be surprised to read: |
| 16748 | # /* config.h. Generated by config.status. */ |
| 16749 | if test x"$ac_file" = x-; then |
| 16750 | echo "/* Generated by configure. */" >$tmp/config.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16751 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16752 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16753 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16754 | cat $tmp/in >>$tmp/config.h |
| 16755 | rm -f $tmp/in |
| 16756 | if test x"$ac_file" != x-; then |
| 16757 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then |
| 16758 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 16759 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 16760 | else |
| 16761 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 16762 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16763 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16764 | X"$ac_file" : 'X\(//\)$' \| \ |
| 16765 | X"$ac_file" : 'X\(/\)' \| \ |
| 16766 | . : '\(.\)' 2>/dev/null || |
| 16767 | echo X"$ac_file" | |
| 16768 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16769 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16770 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16771 | /^X\(\/\).*/{ s//\1/; q; } |
| 16772 | s/.*/./; q'` |
| 16773 | { case "$ac_dir" in |
| 16774 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 16775 | *) as_incr_dir=.;; |
| 16776 | esac |
| 16777 | as_dummy="$ac_dir" |
| 16778 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 16779 | case $as_mkdir_dir in |
| 16780 | # Skip DOS drivespec |
| 16781 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 16782 | *) |
| 16783 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 16784 | test -d "$as_incr_dir" || |
| 16785 | mkdir "$as_incr_dir" || |
| 16786 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 16787 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 16788 | { (exit 1); exit 1; }; } |
| 16789 | ;; |
| 16790 | esac |
| 16791 | done; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16792 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16793 | rm -f $ac_file |
| 16794 | mv $tmp/config.h $ac_file |
| 16795 | fi |
| 16796 | else |
| 16797 | cat $tmp/config.h |
| 16798 | rm -f $tmp/config.h |
| 16799 | fi |
| 16800 | done |
| 16801 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16802 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16803 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16804 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16805 | { (exit 0); exit 0; } |
| 16806 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16807 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16808 | ac_clean_files=$ac_clean_files_save |
| 16809 | |
| 16810 | |
| 16811 | # configure is writing to config.log, and then calls config.status. |
| 16812 | # config.status does its own redirection, appending to config.log. |
| 16813 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 16814 | # by configure, so config.status won't be able to write to it; its |
| 16815 | # output is simply discarded. So we exec the FD to /dev/null, |
| 16816 | # effectively closing config.log, so it can be properly (re)opened and |
| 16817 | # appended to by config.status. When coming back to configure, we |
| 16818 | # need to make the FD available again. |
| 16819 | if test "$no_create" != yes; then |
| 16820 | ac_cs_success=: |
| 16821 | exec 5>/dev/null |
| 16822 | $SHELL $CONFIG_STATUS || ac_cs_success=false |
| 16823 | exec 5>>config.log |
| 16824 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 16825 | # would make configure fail if this is the last instruction. |
| 16826 | $ac_cs_success || { (exit 1); exit 1; } |
| 16827 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16828 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 16829 | |
| 16830 | echo "creating Setup" |
| 16831 | if test ! -f Modules/Setup |
| 16832 | then |
| 16833 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 16834 | fi |
| 16835 | |
| 16836 | echo "creating Setup.local" |
| 16837 | if test ! -f Modules/Setup.local |
| 16838 | then |
| 16839 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 16840 | fi |
| 16841 | |
| 16842 | echo "creating Makefile" |
| 16843 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 16844 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 16845 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 16846 | mv config.c Modules |