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 | |
Neal Norwitz | 3d94942 | 2002-04-20 13:46:43 +0000 | [diff] [blame] | 3857 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3858 | 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] | 3859 | libintl.h locale.h ncurses.h poll.h pthread.h \ |
Eric S. Raymond | d2d75d3 | 2001-01-16 15:26:34 +0000 | [diff] [blame] | 3860 | signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h termios.h \ |
Neal Norwitz | 3d94942 | 2002-04-20 13:46:43 +0000 | [diff] [blame] | 3861 | sys/audioio.h sys/file.h sys/lock.h sys/mkdev.h sys/modem.h db_185.h db.h \ |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3862 | 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] | 3863 | 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] | 3864 | 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] | 3865 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3866 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3867 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3868 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3869 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3870 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3872 | fi |
| 3873 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3874 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3875 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3876 | # Is the header compilable? |
| 3877 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 3878 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 3879 | cat >conftest.$ac_ext <<_ACEOF |
| 3880 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3881 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3882 | $ac_includes_default |
| 3883 | #include <$ac_header> |
| 3884 | _ACEOF |
| 3885 | rm -f conftest.$ac_objext |
| 3886 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3887 | (eval $ac_compile) 2>&5 |
| 3888 | ac_status=$? |
| 3889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3890 | (exit $ac_status); } && |
| 3891 | { ac_try='test -s conftest.$ac_objext' |
| 3892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3893 | (eval $ac_try) 2>&5 |
| 3894 | ac_status=$? |
| 3895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3896 | (exit $ac_status); }; }; then |
| 3897 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3898 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3899 | echo "$as_me: failed program was:" >&5 |
| 3900 | cat conftest.$ac_ext >&5 |
| 3901 | ac_header_compiler=no |
| 3902 | fi |
| 3903 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3904 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3905 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3906 | |
| 3907 | # Is the header present? |
| 3908 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 3909 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 3910 | cat >conftest.$ac_ext <<_ACEOF |
| 3911 | #line $LINENO "configure" |
| 3912 | #include "confdefs.h" |
| 3913 | #include <$ac_header> |
| 3914 | _ACEOF |
| 3915 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3916 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3917 | ac_status=$? |
| 3918 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 3919 | rm -f conftest.er1 |
| 3920 | cat conftest.err >&5 |
| 3921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3922 | (exit $ac_status); } >/dev/null; then |
| 3923 | if test -s conftest.err; then |
| 3924 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3925 | else |
| 3926 | ac_cpp_err= |
| 3927 | fi |
| 3928 | else |
| 3929 | ac_cpp_err=yes |
| 3930 | fi |
| 3931 | if test -z "$ac_cpp_err"; then |
| 3932 | ac_header_preproc=yes |
| 3933 | else |
| 3934 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3935 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3936 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3937 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3938 | rm -f conftest.err conftest.$ac_ext |
| 3939 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3940 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3941 | |
| 3942 | # So? What about this header? |
| 3943 | case $ac_header_compiler:$ac_header_preproc in |
| 3944 | yes:no ) |
| 3945 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3946 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3947 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3948 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 3949 | no:yes ) |
| 3950 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 3951 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 3952 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 3953 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 3954 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3955 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 3956 | esac |
| 3957 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3958 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3959 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3961 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3962 | eval "$as_ac_Header=$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3963 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3964 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3965 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3966 | |
| 3967 | fi |
| 3968 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3969 | cat >>confdefs.h <<_ACEOF |
| 3970 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3971 | _ACEOF |
| 3972 | |
| 3973 | fi |
| 3974 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3975 | done |
| 3976 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3977 | |
| 3978 | |
| 3979 | |
| 3980 | |
| 3981 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3982 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3983 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 3984 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 3985 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 3986 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 3987 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3989 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3990 | cat >conftest.$ac_ext <<_ACEOF |
| 3991 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3992 | #include "confdefs.h" |
| 3993 | #include <sys/types.h> |
| 3994 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3995 | |
| 3996 | #ifdef F77_DUMMY_MAIN |
| 3997 | # ifdef __cplusplus |
| 3998 | extern "C" |
| 3999 | # endif |
| 4000 | int F77_DUMMY_MAIN() { return 1; } |
| 4001 | #endif |
| 4002 | int |
| 4003 | main () |
| 4004 | { |
| 4005 | if ((DIR *) 0) |
| 4006 | return 0; |
| 4007 | ; |
| 4008 | return 0; |
| 4009 | } |
| 4010 | _ACEOF |
| 4011 | rm -f conftest.$ac_objext |
| 4012 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4013 | (eval $ac_compile) 2>&5 |
| 4014 | ac_status=$? |
| 4015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4016 | (exit $ac_status); } && |
| 4017 | { ac_try='test -s conftest.$ac_objext' |
| 4018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4019 | (eval $ac_try) 2>&5 |
| 4020 | ac_status=$? |
| 4021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4022 | (exit $ac_status); }; }; then |
| 4023 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4024 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4025 | echo "$as_me: failed program was:" >&5 |
| 4026 | cat conftest.$ac_ext >&5 |
| 4027 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4028 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4029 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4030 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4031 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4032 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4033 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4034 | cat >>confdefs.h <<_ACEOF |
| 4035 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 4036 | _ACEOF |
| 4037 | |
| 4038 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4039 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4040 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4041 | done |
| 4042 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 4043 | if test $ac_header_dirent = dirent.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4044 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4045 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4046 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4047 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4048 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4049 | ac_func_search_save_LIBS=$LIBS |
| 4050 | ac_cv_search_opendir=no |
| 4051 | cat >conftest.$ac_ext <<_ACEOF |
| 4052 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4053 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4054 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4055 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4056 | #ifdef __cplusplus |
| 4057 | extern "C" |
| 4058 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4059 | /* 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] | 4060 | builtin and then its argument prototype would still apply. */ |
| 4061 | char opendir (); |
| 4062 | #ifdef F77_DUMMY_MAIN |
| 4063 | # ifdef __cplusplus |
| 4064 | extern "C" |
| 4065 | # endif |
| 4066 | int F77_DUMMY_MAIN() { return 1; } |
| 4067 | #endif |
| 4068 | int |
| 4069 | main () |
| 4070 | { |
| 4071 | opendir (); |
| 4072 | ; |
| 4073 | return 0; |
| 4074 | } |
| 4075 | _ACEOF |
| 4076 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4077 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4078 | (eval $ac_link) 2>&5 |
| 4079 | ac_status=$? |
| 4080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4081 | (exit $ac_status); } && |
| 4082 | { ac_try='test -s conftest$ac_exeext' |
| 4083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4084 | (eval $ac_try) 2>&5 |
| 4085 | ac_status=$? |
| 4086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4087 | (exit $ac_status); }; }; then |
| 4088 | ac_cv_search_opendir="none required" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4089 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4090 | echo "$as_me: failed program was:" >&5 |
| 4091 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4092 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4093 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4094 | if test "$ac_cv_search_opendir" = no; then |
| 4095 | for ac_lib in dir; do |
| 4096 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4097 | cat >conftest.$ac_ext <<_ACEOF |
| 4098 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4099 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4100 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4101 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4102 | #ifdef __cplusplus |
| 4103 | extern "C" |
| 4104 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4105 | /* 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] | 4106 | builtin and then its argument prototype would still apply. */ |
| 4107 | char opendir (); |
| 4108 | #ifdef F77_DUMMY_MAIN |
| 4109 | # ifdef __cplusplus |
| 4110 | extern "C" |
| 4111 | # endif |
| 4112 | int F77_DUMMY_MAIN() { return 1; } |
| 4113 | #endif |
| 4114 | int |
| 4115 | main () |
| 4116 | { |
| 4117 | opendir (); |
| 4118 | ; |
| 4119 | return 0; |
| 4120 | } |
| 4121 | _ACEOF |
| 4122 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4123 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4124 | (eval $ac_link) 2>&5 |
| 4125 | ac_status=$? |
| 4126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4127 | (exit $ac_status); } && |
| 4128 | { ac_try='test -s conftest$ac_exeext' |
| 4129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4130 | (eval $ac_try) 2>&5 |
| 4131 | ac_status=$? |
| 4132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4133 | (exit $ac_status); }; }; then |
| 4134 | ac_cv_search_opendir="-l$ac_lib" |
| 4135 | break |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4136 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4137 | echo "$as_me: failed program was:" >&5 |
| 4138 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4139 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4140 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4141 | done |
| 4142 | fi |
| 4143 | LIBS=$ac_func_search_save_LIBS |
| 4144 | fi |
| 4145 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4146 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4147 | if test "$ac_cv_search_opendir" != no; then |
| 4148 | 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] | 4149 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4150 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4151 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4152 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4153 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4154 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4155 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4156 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4157 | else |
| 4158 | ac_func_search_save_LIBS=$LIBS |
| 4159 | ac_cv_search_opendir=no |
| 4160 | cat >conftest.$ac_ext <<_ACEOF |
| 4161 | #line $LINENO "configure" |
| 4162 | #include "confdefs.h" |
| 4163 | |
| 4164 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4165 | #ifdef __cplusplus |
| 4166 | extern "C" |
| 4167 | #endif |
| 4168 | /* We use char because int might match the return type of a gcc2 |
| 4169 | builtin and then its argument prototype would still apply. */ |
| 4170 | char opendir (); |
| 4171 | #ifdef F77_DUMMY_MAIN |
| 4172 | # ifdef __cplusplus |
| 4173 | extern "C" |
| 4174 | # endif |
| 4175 | int F77_DUMMY_MAIN() { return 1; } |
| 4176 | #endif |
| 4177 | int |
| 4178 | main () |
| 4179 | { |
| 4180 | opendir (); |
| 4181 | ; |
| 4182 | return 0; |
| 4183 | } |
| 4184 | _ACEOF |
| 4185 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4186 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4187 | (eval $ac_link) 2>&5 |
| 4188 | ac_status=$? |
| 4189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4190 | (exit $ac_status); } && |
| 4191 | { ac_try='test -s conftest$ac_exeext' |
| 4192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4193 | (eval $ac_try) 2>&5 |
| 4194 | ac_status=$? |
| 4195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4196 | (exit $ac_status); }; }; then |
| 4197 | ac_cv_search_opendir="none required" |
| 4198 | else |
| 4199 | echo "$as_me: failed program was:" >&5 |
| 4200 | cat conftest.$ac_ext >&5 |
| 4201 | fi |
| 4202 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4203 | if test "$ac_cv_search_opendir" = no; then |
| 4204 | for ac_lib in x; do |
| 4205 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4206 | cat >conftest.$ac_ext <<_ACEOF |
| 4207 | #line $LINENO "configure" |
| 4208 | #include "confdefs.h" |
| 4209 | |
| 4210 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4211 | #ifdef __cplusplus |
| 4212 | extern "C" |
| 4213 | #endif |
| 4214 | /* We use char because int might match the return type of a gcc2 |
| 4215 | builtin and then its argument prototype would still apply. */ |
| 4216 | char opendir (); |
| 4217 | #ifdef F77_DUMMY_MAIN |
| 4218 | # ifdef __cplusplus |
| 4219 | extern "C" |
| 4220 | # endif |
| 4221 | int F77_DUMMY_MAIN() { return 1; } |
| 4222 | #endif |
| 4223 | int |
| 4224 | main () |
| 4225 | { |
| 4226 | opendir (); |
| 4227 | ; |
| 4228 | return 0; |
| 4229 | } |
| 4230 | _ACEOF |
| 4231 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4232 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4233 | (eval $ac_link) 2>&5 |
| 4234 | ac_status=$? |
| 4235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4236 | (exit $ac_status); } && |
| 4237 | { ac_try='test -s conftest$ac_exeext' |
| 4238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4239 | (eval $ac_try) 2>&5 |
| 4240 | ac_status=$? |
| 4241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4242 | (exit $ac_status); }; }; then |
| 4243 | ac_cv_search_opendir="-l$ac_lib" |
| 4244 | break |
| 4245 | else |
| 4246 | echo "$as_me: failed program was:" >&5 |
| 4247 | cat conftest.$ac_ext >&5 |
| 4248 | fi |
| 4249 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4250 | done |
| 4251 | fi |
| 4252 | LIBS=$ac_func_search_save_LIBS |
| 4253 | fi |
| 4254 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4255 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4256 | if test "$ac_cv_search_opendir" != no; then |
| 4257 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 4258 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4259 | fi |
| 4260 | |
| 4261 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4262 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4263 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4264 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4265 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4266 | echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 4267 | echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6 |
| 4268 | cat >conftest.$ac_ext <<_ACEOF |
| 4269 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4270 | #include "confdefs.h" |
| 4271 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4272 | |
| 4273 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4274 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4275 | egrep "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4276 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4277 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4278 | |
| 4279 | |
| 4280 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4281 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4282 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4283 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 4284 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4285 | fi |
| 4286 | rm -f conftest* |
| 4287 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4288 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 4289 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4290 | |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4291 | # Two defines needed to enable largefile support on various platforms |
| 4292 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4293 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4294 | cat >>confdefs.h <<\_ACEOF |
| 4295 | #define _LARGEFILE_SOURCE 1 |
| 4296 | _ACEOF |
| 4297 | |
| 4298 | |
| 4299 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4300 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4301 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4302 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4303 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 4304 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 4305 | cat >> confdefs.h <<\EOF |
| 4306 | #if defined(SCO_DS) |
| 4307 | #undef _OFF_T |
| 4308 | #endif |
| 4309 | EOF |
| 4310 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4311 | # Type availability checks |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4312 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 4313 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 4314 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 4315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4316 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4317 | cat >conftest.$ac_ext <<_ACEOF |
| 4318 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4319 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4320 | $ac_includes_default |
| 4321 | #ifdef F77_DUMMY_MAIN |
| 4322 | # ifdef __cplusplus |
| 4323 | extern "C" |
| 4324 | # endif |
| 4325 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4326 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4327 | int |
| 4328 | main () |
| 4329 | { |
| 4330 | if ((mode_t *) 0) |
| 4331 | return 0; |
| 4332 | if (sizeof (mode_t)) |
| 4333 | return 0; |
| 4334 | ; |
| 4335 | return 0; |
| 4336 | } |
| 4337 | _ACEOF |
| 4338 | rm -f conftest.$ac_objext |
| 4339 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4340 | (eval $ac_compile) 2>&5 |
| 4341 | ac_status=$? |
| 4342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4343 | (exit $ac_status); } && |
| 4344 | { ac_try='test -s conftest.$ac_objext' |
| 4345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4346 | (eval $ac_try) 2>&5 |
| 4347 | ac_status=$? |
| 4348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4349 | (exit $ac_status); }; }; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4350 | ac_cv_type_mode_t=yes |
| 4351 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4352 | echo "$as_me: failed program was:" >&5 |
| 4353 | cat conftest.$ac_ext >&5 |
| 4354 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4355 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4356 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4357 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4358 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 4359 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 4360 | if test $ac_cv_type_mode_t = yes; then |
| 4361 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4362 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4363 | |
| 4364 | cat >>confdefs.h <<_ACEOF |
| 4365 | #define mode_t int |
| 4366 | _ACEOF |
| 4367 | |
| 4368 | fi |
| 4369 | |
| 4370 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 4371 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 4372 | if test "${ac_cv_type_off_t+set}" = set; then |
| 4373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4374 | else |
| 4375 | cat >conftest.$ac_ext <<_ACEOF |
| 4376 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4377 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4378 | $ac_includes_default |
| 4379 | #ifdef F77_DUMMY_MAIN |
| 4380 | # ifdef __cplusplus |
| 4381 | extern "C" |
| 4382 | # endif |
| 4383 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4384 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4385 | int |
| 4386 | main () |
| 4387 | { |
| 4388 | if ((off_t *) 0) |
| 4389 | return 0; |
| 4390 | if (sizeof (off_t)) |
| 4391 | return 0; |
| 4392 | ; |
| 4393 | return 0; |
| 4394 | } |
| 4395 | _ACEOF |
| 4396 | rm -f conftest.$ac_objext |
| 4397 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4398 | (eval $ac_compile) 2>&5 |
| 4399 | ac_status=$? |
| 4400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4401 | (exit $ac_status); } && |
| 4402 | { ac_try='test -s conftest.$ac_objext' |
| 4403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4404 | (eval $ac_try) 2>&5 |
| 4405 | ac_status=$? |
| 4406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4407 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4408 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4409 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4410 | echo "$as_me: failed program was:" >&5 |
| 4411 | cat conftest.$ac_ext >&5 |
| 4412 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4413 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4414 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4415 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4416 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 4417 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 4418 | if test $ac_cv_type_off_t = yes; then |
| 4419 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4420 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4421 | |
| 4422 | cat >>confdefs.h <<_ACEOF |
| 4423 | #define off_t long |
| 4424 | _ACEOF |
| 4425 | |
| 4426 | fi |
| 4427 | |
| 4428 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 4429 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 4430 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 4431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4432 | else |
| 4433 | cat >conftest.$ac_ext <<_ACEOF |
| 4434 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4435 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4436 | $ac_includes_default |
| 4437 | #ifdef F77_DUMMY_MAIN |
| 4438 | # ifdef __cplusplus |
| 4439 | extern "C" |
| 4440 | # endif |
| 4441 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4442 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4443 | int |
| 4444 | main () |
| 4445 | { |
| 4446 | if ((pid_t *) 0) |
| 4447 | return 0; |
| 4448 | if (sizeof (pid_t)) |
| 4449 | return 0; |
| 4450 | ; |
| 4451 | return 0; |
| 4452 | } |
| 4453 | _ACEOF |
| 4454 | rm -f conftest.$ac_objext |
| 4455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4456 | (eval $ac_compile) 2>&5 |
| 4457 | ac_status=$? |
| 4458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4459 | (exit $ac_status); } && |
| 4460 | { ac_try='test -s conftest.$ac_objext' |
| 4461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4462 | (eval $ac_try) 2>&5 |
| 4463 | ac_status=$? |
| 4464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4465 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4466 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4467 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4468 | echo "$as_me: failed program was:" >&5 |
| 4469 | cat conftest.$ac_ext >&5 |
| 4470 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4471 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4472 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4473 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4474 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 4475 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 4476 | if test $ac_cv_type_pid_t = yes; then |
| 4477 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4478 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4479 | |
| 4480 | cat >>confdefs.h <<_ACEOF |
| 4481 | #define pid_t int |
| 4482 | _ACEOF |
| 4483 | |
| 4484 | fi |
| 4485 | |
| 4486 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 4487 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 4488 | if test "${ac_cv_type_signal+set}" = set; then |
| 4489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4490 | else |
| 4491 | cat >conftest.$ac_ext <<_ACEOF |
| 4492 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4493 | #include "confdefs.h" |
| 4494 | #include <sys/types.h> |
| 4495 | #include <signal.h> |
| 4496 | #ifdef signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4497 | # undef signal |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4498 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4499 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4500 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 4501 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4502 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4503 | #endif |
| 4504 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4505 | #ifdef F77_DUMMY_MAIN |
| 4506 | # ifdef __cplusplus |
| 4507 | extern "C" |
| 4508 | # endif |
| 4509 | int F77_DUMMY_MAIN() { return 1; } |
| 4510 | #endif |
| 4511 | int |
| 4512 | main () |
| 4513 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4514 | int i; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4515 | ; |
| 4516 | return 0; |
| 4517 | } |
| 4518 | _ACEOF |
| 4519 | rm -f conftest.$ac_objext |
| 4520 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4521 | (eval $ac_compile) 2>&5 |
| 4522 | ac_status=$? |
| 4523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4524 | (exit $ac_status); } && |
| 4525 | { ac_try='test -s conftest.$ac_objext' |
| 4526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4527 | (eval $ac_try) 2>&5 |
| 4528 | ac_status=$? |
| 4529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4530 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4531 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4532 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4533 | echo "$as_me: failed program was:" >&5 |
| 4534 | cat conftest.$ac_ext >&5 |
| 4535 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4536 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4537 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4538 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4539 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 4540 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4541 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4542 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4543 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4544 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4545 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4546 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4547 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 4548 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 4549 | if test "${ac_cv_type_size_t+set}" = set; then |
| 4550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4551 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4552 | cat >conftest.$ac_ext <<_ACEOF |
| 4553 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4554 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4555 | $ac_includes_default |
| 4556 | #ifdef F77_DUMMY_MAIN |
| 4557 | # ifdef __cplusplus |
| 4558 | extern "C" |
| 4559 | # endif |
| 4560 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4561 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4562 | int |
| 4563 | main () |
| 4564 | { |
| 4565 | if ((size_t *) 0) |
| 4566 | return 0; |
| 4567 | if (sizeof (size_t)) |
| 4568 | return 0; |
| 4569 | ; |
| 4570 | return 0; |
| 4571 | } |
| 4572 | _ACEOF |
| 4573 | rm -f conftest.$ac_objext |
| 4574 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4575 | (eval $ac_compile) 2>&5 |
| 4576 | ac_status=$? |
| 4577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4578 | (exit $ac_status); } && |
| 4579 | { ac_try='test -s conftest.$ac_objext' |
| 4580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4581 | (eval $ac_try) 2>&5 |
| 4582 | ac_status=$? |
| 4583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4584 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4585 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4586 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4587 | echo "$as_me: failed program was:" >&5 |
| 4588 | cat conftest.$ac_ext >&5 |
| 4589 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4590 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4591 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4592 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4593 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 4594 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 4595 | if test $ac_cv_type_size_t = yes; then |
| 4596 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4597 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4598 | |
| 4599 | cat >>confdefs.h <<_ACEOF |
| 4600 | #define size_t unsigned |
| 4601 | _ACEOF |
| 4602 | |
| 4603 | fi |
| 4604 | |
| 4605 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 4606 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 4607 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 4608 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4609 | else |
| 4610 | cat >conftest.$ac_ext <<_ACEOF |
| 4611 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4612 | #include "confdefs.h" |
| 4613 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4614 | |
| 4615 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4616 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4617 | egrep "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4618 | ac_cv_type_uid_t=yes |
| 4619 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4620 | ac_cv_type_uid_t=no |
| 4621 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4622 | rm -f conftest* |
| 4623 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4624 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4625 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 4626 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4627 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4628 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4629 | cat >>confdefs.h <<\_ACEOF |
| 4630 | #define uid_t int |
| 4631 | _ACEOF |
| 4632 | |
| 4633 | |
| 4634 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4635 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4636 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4637 | |
| 4638 | fi |
| 4639 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4640 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4641 | # Sizes of various common basic types |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4642 | echo "$as_me:$LINENO: checking for int" >&5 |
| 4643 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
| 4644 | if test "${ac_cv_type_int+set}" = set; then |
| 4645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4646 | else |
| 4647 | cat >conftest.$ac_ext <<_ACEOF |
| 4648 | #line $LINENO "configure" |
| 4649 | #include "confdefs.h" |
| 4650 | $ac_includes_default |
| 4651 | #ifdef F77_DUMMY_MAIN |
| 4652 | # ifdef __cplusplus |
| 4653 | extern "C" |
| 4654 | # endif |
| 4655 | int F77_DUMMY_MAIN() { return 1; } |
| 4656 | #endif |
| 4657 | int |
| 4658 | main () |
| 4659 | { |
| 4660 | if ((int *) 0) |
| 4661 | return 0; |
| 4662 | if (sizeof (int)) |
| 4663 | return 0; |
| 4664 | ; |
| 4665 | return 0; |
| 4666 | } |
| 4667 | _ACEOF |
| 4668 | rm -f conftest.$ac_objext |
| 4669 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4670 | (eval $ac_compile) 2>&5 |
| 4671 | ac_status=$? |
| 4672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4673 | (exit $ac_status); } && |
| 4674 | { ac_try='test -s conftest.$ac_objext' |
| 4675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4676 | (eval $ac_try) 2>&5 |
| 4677 | ac_status=$? |
| 4678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4679 | (exit $ac_status); }; }; then |
| 4680 | ac_cv_type_int=yes |
| 4681 | else |
| 4682 | echo "$as_me: failed program was:" >&5 |
| 4683 | cat conftest.$ac_ext >&5 |
| 4684 | ac_cv_type_int=no |
| 4685 | fi |
| 4686 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4687 | fi |
| 4688 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 4689 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
| 4690 | |
| 4691 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 4692 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 4693 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 4694 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4695 | else |
| 4696 | if test "$ac_cv_type_int" = yes; then |
| 4697 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 4698 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 4699 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 4700 | # This bug is HP SR number 8606223364. |
| 4701 | if test "$cross_compiling" = yes; then |
| 4702 | # Depending upon the size, compute the lo and hi bounds. |
| 4703 | cat >conftest.$ac_ext <<_ACEOF |
| 4704 | #line $LINENO "configure" |
| 4705 | #include "confdefs.h" |
| 4706 | $ac_includes_default |
| 4707 | #ifdef F77_DUMMY_MAIN |
| 4708 | # ifdef __cplusplus |
| 4709 | extern "C" |
| 4710 | # endif |
| 4711 | int F77_DUMMY_MAIN() { return 1; } |
| 4712 | #endif |
| 4713 | int |
| 4714 | main () |
| 4715 | { |
| 4716 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
| 4717 | test_array [0] = 0 |
| 4718 | |
| 4719 | ; |
| 4720 | return 0; |
| 4721 | } |
| 4722 | _ACEOF |
| 4723 | rm -f conftest.$ac_objext |
| 4724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4725 | (eval $ac_compile) 2>&5 |
| 4726 | ac_status=$? |
| 4727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4728 | (exit $ac_status); } && |
| 4729 | { ac_try='test -s conftest.$ac_objext' |
| 4730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4731 | (eval $ac_try) 2>&5 |
| 4732 | ac_status=$? |
| 4733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4734 | (exit $ac_status); }; }; then |
| 4735 | ac_lo=0 ac_mid=0 |
| 4736 | while :; do |
| 4737 | cat >conftest.$ac_ext <<_ACEOF |
| 4738 | #line $LINENO "configure" |
| 4739 | #include "confdefs.h" |
| 4740 | $ac_includes_default |
| 4741 | #ifdef F77_DUMMY_MAIN |
| 4742 | # ifdef __cplusplus |
| 4743 | extern "C" |
| 4744 | # endif |
| 4745 | int F77_DUMMY_MAIN() { return 1; } |
| 4746 | #endif |
| 4747 | int |
| 4748 | main () |
| 4749 | { |
| 4750 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 4751 | test_array [0] = 0 |
| 4752 | |
| 4753 | ; |
| 4754 | return 0; |
| 4755 | } |
| 4756 | _ACEOF |
| 4757 | rm -f conftest.$ac_objext |
| 4758 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4759 | (eval $ac_compile) 2>&5 |
| 4760 | ac_status=$? |
| 4761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4762 | (exit $ac_status); } && |
| 4763 | { ac_try='test -s conftest.$ac_objext' |
| 4764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4765 | (eval $ac_try) 2>&5 |
| 4766 | ac_status=$? |
| 4767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4768 | (exit $ac_status); }; }; then |
| 4769 | ac_hi=$ac_mid; break |
| 4770 | else |
| 4771 | echo "$as_me: failed program was:" >&5 |
| 4772 | cat conftest.$ac_ext >&5 |
| 4773 | ac_lo=`expr $ac_mid + 1` |
| 4774 | if test $ac_lo -le $ac_mid; then |
| 4775 | ac_lo= ac_hi= |
| 4776 | break |
| 4777 | fi |
| 4778 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 4779 | fi |
| 4780 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4781 | done |
| 4782 | else |
| 4783 | echo "$as_me: failed program was:" >&5 |
| 4784 | cat conftest.$ac_ext >&5 |
| 4785 | cat >conftest.$ac_ext <<_ACEOF |
| 4786 | #line $LINENO "configure" |
| 4787 | #include "confdefs.h" |
| 4788 | $ac_includes_default |
| 4789 | #ifdef F77_DUMMY_MAIN |
| 4790 | # ifdef __cplusplus |
| 4791 | extern "C" |
| 4792 | # endif |
| 4793 | int F77_DUMMY_MAIN() { return 1; } |
| 4794 | #endif |
| 4795 | int |
| 4796 | main () |
| 4797 | { |
| 4798 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
| 4799 | test_array [0] = 0 |
| 4800 | |
| 4801 | ; |
| 4802 | return 0; |
| 4803 | } |
| 4804 | _ACEOF |
| 4805 | rm -f conftest.$ac_objext |
| 4806 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4807 | (eval $ac_compile) 2>&5 |
| 4808 | ac_status=$? |
| 4809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4810 | (exit $ac_status); } && |
| 4811 | { ac_try='test -s conftest.$ac_objext' |
| 4812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4813 | (eval $ac_try) 2>&5 |
| 4814 | ac_status=$? |
| 4815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4816 | (exit $ac_status); }; }; then |
| 4817 | ac_hi=-1 ac_mid=-1 |
| 4818 | while :; do |
| 4819 | cat >conftest.$ac_ext <<_ACEOF |
| 4820 | #line $LINENO "configure" |
| 4821 | #include "confdefs.h" |
| 4822 | $ac_includes_default |
| 4823 | #ifdef F77_DUMMY_MAIN |
| 4824 | # ifdef __cplusplus |
| 4825 | extern "C" |
| 4826 | # endif |
| 4827 | int F77_DUMMY_MAIN() { return 1; } |
| 4828 | #endif |
| 4829 | int |
| 4830 | main () |
| 4831 | { |
| 4832 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
| 4833 | test_array [0] = 0 |
| 4834 | |
| 4835 | ; |
| 4836 | return 0; |
| 4837 | } |
| 4838 | _ACEOF |
| 4839 | rm -f conftest.$ac_objext |
| 4840 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4841 | (eval $ac_compile) 2>&5 |
| 4842 | ac_status=$? |
| 4843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4844 | (exit $ac_status); } && |
| 4845 | { ac_try='test -s conftest.$ac_objext' |
| 4846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4847 | (eval $ac_try) 2>&5 |
| 4848 | ac_status=$? |
| 4849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4850 | (exit $ac_status); }; }; then |
| 4851 | ac_lo=$ac_mid; break |
| 4852 | else |
| 4853 | echo "$as_me: failed program was:" >&5 |
| 4854 | cat conftest.$ac_ext >&5 |
| 4855 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 4856 | if test $ac_mid -le $ac_hi; then |
| 4857 | ac_lo= ac_hi= |
| 4858 | break |
| 4859 | fi |
| 4860 | ac_mid=`expr 2 '*' $ac_mid` |
| 4861 | fi |
| 4862 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4863 | done |
| 4864 | else |
| 4865 | echo "$as_me: failed program was:" >&5 |
| 4866 | cat conftest.$ac_ext >&5 |
| 4867 | ac_lo= ac_hi= |
| 4868 | fi |
| 4869 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4870 | fi |
| 4871 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4872 | # Binary search between lo and hi bounds. |
| 4873 | while test "x$ac_lo" != "x$ac_hi"; do |
| 4874 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 4875 | cat >conftest.$ac_ext <<_ACEOF |
| 4876 | #line $LINENO "configure" |
| 4877 | #include "confdefs.h" |
| 4878 | $ac_includes_default |
| 4879 | #ifdef F77_DUMMY_MAIN |
| 4880 | # ifdef __cplusplus |
| 4881 | extern "C" |
| 4882 | # endif |
| 4883 | int F77_DUMMY_MAIN() { return 1; } |
| 4884 | #endif |
| 4885 | int |
| 4886 | main () |
| 4887 | { |
| 4888 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 4889 | test_array [0] = 0 |
| 4890 | |
| 4891 | ; |
| 4892 | return 0; |
| 4893 | } |
| 4894 | _ACEOF |
| 4895 | rm -f conftest.$ac_objext |
| 4896 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4897 | (eval $ac_compile) 2>&5 |
| 4898 | ac_status=$? |
| 4899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4900 | (exit $ac_status); } && |
| 4901 | { ac_try='test -s conftest.$ac_objext' |
| 4902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4903 | (eval $ac_try) 2>&5 |
| 4904 | ac_status=$? |
| 4905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4906 | (exit $ac_status); }; }; then |
| 4907 | ac_hi=$ac_mid |
| 4908 | else |
| 4909 | echo "$as_me: failed program was:" >&5 |
| 4910 | cat conftest.$ac_ext >&5 |
| 4911 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 4912 | fi |
| 4913 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4914 | done |
| 4915 | case $ac_lo in |
| 4916 | ?*) ac_cv_sizeof_int=$ac_lo;; |
| 4917 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 |
| 4918 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} |
| 4919 | { (exit 1); exit 1; }; } ;; |
| 4920 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4921 | else |
| 4922 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4923 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 4924 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 4925 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4926 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4927 | cat >conftest.$ac_ext <<_ACEOF |
| 4928 | #line $LINENO "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4929 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4930 | $ac_includes_default |
| 4931 | long longval () { return (long) (sizeof (int)); } |
| 4932 | unsigned long ulongval () { return (long) (sizeof (int)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4933 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4934 | #include <stdlib.h> |
| 4935 | #ifdef F77_DUMMY_MAIN |
| 4936 | # ifdef __cplusplus |
| 4937 | extern "C" |
| 4938 | # endif |
| 4939 | int F77_DUMMY_MAIN() { return 1; } |
| 4940 | #endif |
| 4941 | int |
| 4942 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4943 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4944 | |
| 4945 | FILE *f = fopen ("conftest.val", "w"); |
| 4946 | if (! f) |
| 4947 | exit (1); |
| 4948 | if (((long) (sizeof (int))) < 0) |
| 4949 | { |
| 4950 | long i = longval (); |
| 4951 | if (i != ((long) (sizeof (int)))) |
| 4952 | exit (1); |
| 4953 | fprintf (f, "%ld\n", i); |
| 4954 | } |
| 4955 | else |
| 4956 | { |
| 4957 | unsigned long i = ulongval (); |
| 4958 | if (i != ((long) (sizeof (int)))) |
| 4959 | exit (1); |
| 4960 | fprintf (f, "%lu\n", i); |
| 4961 | } |
| 4962 | exit (ferror (f) || fclose (f) != 0); |
| 4963 | |
| 4964 | ; |
| 4965 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4966 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4967 | _ACEOF |
| 4968 | rm -f conftest$ac_exeext |
| 4969 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4970 | (eval $ac_link) 2>&5 |
| 4971 | ac_status=$? |
| 4972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4973 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4975 | (eval $ac_try) 2>&5 |
| 4976 | ac_status=$? |
| 4977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4978 | (exit $ac_status); }; }; then |
| 4979 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4980 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4981 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4982 | echo "$as_me: failed program was:" >&5 |
| 4983 | cat conftest.$ac_ext >&5 |
| 4984 | ( exit $ac_status ) |
| 4985 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 |
| 4986 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} |
| 4987 | { (exit 1); exit 1; }; } |
| 4988 | fi |
| 4989 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4990 | fi |
| 4991 | fi |
| 4992 | rm -f conftest.val |
| 4993 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4994 | ac_cv_sizeof_int=0 |
| 4995 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4996 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4997 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 4998 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 4999 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5000 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5001 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5002 | |
| 5003 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5004 | echo "$as_me:$LINENO: checking for long" >&5 |
| 5005 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 5006 | if test "${ac_cv_type_long+set}" = set; then |
| 5007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5008 | else |
| 5009 | cat >conftest.$ac_ext <<_ACEOF |
| 5010 | #line $LINENO "configure" |
| 5011 | #include "confdefs.h" |
| 5012 | $ac_includes_default |
| 5013 | #ifdef F77_DUMMY_MAIN |
| 5014 | # ifdef __cplusplus |
| 5015 | extern "C" |
| 5016 | # endif |
| 5017 | int F77_DUMMY_MAIN() { return 1; } |
| 5018 | #endif |
| 5019 | int |
| 5020 | main () |
| 5021 | { |
| 5022 | if ((long *) 0) |
| 5023 | return 0; |
| 5024 | if (sizeof (long)) |
| 5025 | return 0; |
| 5026 | ; |
| 5027 | return 0; |
| 5028 | } |
| 5029 | _ACEOF |
| 5030 | rm -f conftest.$ac_objext |
| 5031 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5032 | (eval $ac_compile) 2>&5 |
| 5033 | ac_status=$? |
| 5034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5035 | (exit $ac_status); } && |
| 5036 | { ac_try='test -s conftest.$ac_objext' |
| 5037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5038 | (eval $ac_try) 2>&5 |
| 5039 | ac_status=$? |
| 5040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5041 | (exit $ac_status); }; }; then |
| 5042 | ac_cv_type_long=yes |
| 5043 | else |
| 5044 | echo "$as_me: failed program was:" >&5 |
| 5045 | cat conftest.$ac_ext >&5 |
| 5046 | ac_cv_type_long=no |
| 5047 | fi |
| 5048 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5049 | fi |
| 5050 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 5051 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 5052 | |
| 5053 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 5054 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 5055 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 5056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5057 | else |
| 5058 | if test "$ac_cv_type_long" = yes; then |
| 5059 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5060 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5061 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5062 | # This bug is HP SR number 8606223364. |
| 5063 | if test "$cross_compiling" = yes; then |
| 5064 | # Depending upon the size, compute the lo and hi bounds. |
| 5065 | cat >conftest.$ac_ext <<_ACEOF |
| 5066 | #line $LINENO "configure" |
| 5067 | #include "confdefs.h" |
| 5068 | $ac_includes_default |
| 5069 | #ifdef F77_DUMMY_MAIN |
| 5070 | # ifdef __cplusplus |
| 5071 | extern "C" |
| 5072 | # endif |
| 5073 | int F77_DUMMY_MAIN() { return 1; } |
| 5074 | #endif |
| 5075 | int |
| 5076 | main () |
| 5077 | { |
| 5078 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 5079 | test_array [0] = 0 |
| 5080 | |
| 5081 | ; |
| 5082 | return 0; |
| 5083 | } |
| 5084 | _ACEOF |
| 5085 | rm -f conftest.$ac_objext |
| 5086 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5087 | (eval $ac_compile) 2>&5 |
| 5088 | ac_status=$? |
| 5089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5090 | (exit $ac_status); } && |
| 5091 | { ac_try='test -s conftest.$ac_objext' |
| 5092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5093 | (eval $ac_try) 2>&5 |
| 5094 | ac_status=$? |
| 5095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5096 | (exit $ac_status); }; }; then |
| 5097 | ac_lo=0 ac_mid=0 |
| 5098 | while :; do |
| 5099 | cat >conftest.$ac_ext <<_ACEOF |
| 5100 | #line $LINENO "configure" |
| 5101 | #include "confdefs.h" |
| 5102 | $ac_includes_default |
| 5103 | #ifdef F77_DUMMY_MAIN |
| 5104 | # ifdef __cplusplus |
| 5105 | extern "C" |
| 5106 | # endif |
| 5107 | int F77_DUMMY_MAIN() { return 1; } |
| 5108 | #endif |
| 5109 | int |
| 5110 | main () |
| 5111 | { |
| 5112 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 5113 | test_array [0] = 0 |
| 5114 | |
| 5115 | ; |
| 5116 | return 0; |
| 5117 | } |
| 5118 | _ACEOF |
| 5119 | rm -f conftest.$ac_objext |
| 5120 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5121 | (eval $ac_compile) 2>&5 |
| 5122 | ac_status=$? |
| 5123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5124 | (exit $ac_status); } && |
| 5125 | { ac_try='test -s conftest.$ac_objext' |
| 5126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5127 | (eval $ac_try) 2>&5 |
| 5128 | ac_status=$? |
| 5129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5130 | (exit $ac_status); }; }; then |
| 5131 | ac_hi=$ac_mid; break |
| 5132 | else |
| 5133 | echo "$as_me: failed program was:" >&5 |
| 5134 | cat conftest.$ac_ext >&5 |
| 5135 | ac_lo=`expr $ac_mid + 1` |
| 5136 | if test $ac_lo -le $ac_mid; then |
| 5137 | ac_lo= ac_hi= |
| 5138 | break |
| 5139 | fi |
| 5140 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5141 | fi |
| 5142 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5143 | done |
| 5144 | else |
| 5145 | echo "$as_me: failed program was:" >&5 |
| 5146 | cat conftest.$ac_ext >&5 |
| 5147 | cat >conftest.$ac_ext <<_ACEOF |
| 5148 | #line $LINENO "configure" |
| 5149 | #include "confdefs.h" |
| 5150 | $ac_includes_default |
| 5151 | #ifdef F77_DUMMY_MAIN |
| 5152 | # ifdef __cplusplus |
| 5153 | extern "C" |
| 5154 | # endif |
| 5155 | int F77_DUMMY_MAIN() { return 1; } |
| 5156 | #endif |
| 5157 | int |
| 5158 | main () |
| 5159 | { |
| 5160 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 5161 | test_array [0] = 0 |
| 5162 | |
| 5163 | ; |
| 5164 | return 0; |
| 5165 | } |
| 5166 | _ACEOF |
| 5167 | rm -f conftest.$ac_objext |
| 5168 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5169 | (eval $ac_compile) 2>&5 |
| 5170 | ac_status=$? |
| 5171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5172 | (exit $ac_status); } && |
| 5173 | { ac_try='test -s conftest.$ac_objext' |
| 5174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5175 | (eval $ac_try) 2>&5 |
| 5176 | ac_status=$? |
| 5177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5178 | (exit $ac_status); }; }; then |
| 5179 | ac_hi=-1 ac_mid=-1 |
| 5180 | while :; do |
| 5181 | cat >conftest.$ac_ext <<_ACEOF |
| 5182 | #line $LINENO "configure" |
| 5183 | #include "confdefs.h" |
| 5184 | $ac_includes_default |
| 5185 | #ifdef F77_DUMMY_MAIN |
| 5186 | # ifdef __cplusplus |
| 5187 | extern "C" |
| 5188 | # endif |
| 5189 | int F77_DUMMY_MAIN() { return 1; } |
| 5190 | #endif |
| 5191 | int |
| 5192 | main () |
| 5193 | { |
| 5194 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 5195 | test_array [0] = 0 |
| 5196 | |
| 5197 | ; |
| 5198 | return 0; |
| 5199 | } |
| 5200 | _ACEOF |
| 5201 | rm -f conftest.$ac_objext |
| 5202 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5203 | (eval $ac_compile) 2>&5 |
| 5204 | ac_status=$? |
| 5205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5206 | (exit $ac_status); } && |
| 5207 | { ac_try='test -s conftest.$ac_objext' |
| 5208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5209 | (eval $ac_try) 2>&5 |
| 5210 | ac_status=$? |
| 5211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5212 | (exit $ac_status); }; }; then |
| 5213 | ac_lo=$ac_mid; break |
| 5214 | else |
| 5215 | echo "$as_me: failed program was:" >&5 |
| 5216 | cat conftest.$ac_ext >&5 |
| 5217 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5218 | if test $ac_mid -le $ac_hi; then |
| 5219 | ac_lo= ac_hi= |
| 5220 | break |
| 5221 | fi |
| 5222 | ac_mid=`expr 2 '*' $ac_mid` |
| 5223 | fi |
| 5224 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5225 | done |
| 5226 | else |
| 5227 | echo "$as_me: failed program was:" >&5 |
| 5228 | cat conftest.$ac_ext >&5 |
| 5229 | ac_lo= ac_hi= |
| 5230 | fi |
| 5231 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5232 | fi |
| 5233 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5234 | # Binary search between lo and hi bounds. |
| 5235 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5236 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5237 | cat >conftest.$ac_ext <<_ACEOF |
| 5238 | #line $LINENO "configure" |
| 5239 | #include "confdefs.h" |
| 5240 | $ac_includes_default |
| 5241 | #ifdef F77_DUMMY_MAIN |
| 5242 | # ifdef __cplusplus |
| 5243 | extern "C" |
| 5244 | # endif |
| 5245 | int F77_DUMMY_MAIN() { return 1; } |
| 5246 | #endif |
| 5247 | int |
| 5248 | main () |
| 5249 | { |
| 5250 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 5251 | test_array [0] = 0 |
| 5252 | |
| 5253 | ; |
| 5254 | return 0; |
| 5255 | } |
| 5256 | _ACEOF |
| 5257 | rm -f conftest.$ac_objext |
| 5258 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5259 | (eval $ac_compile) 2>&5 |
| 5260 | ac_status=$? |
| 5261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5262 | (exit $ac_status); } && |
| 5263 | { ac_try='test -s conftest.$ac_objext' |
| 5264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5265 | (eval $ac_try) 2>&5 |
| 5266 | ac_status=$? |
| 5267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5268 | (exit $ac_status); }; }; then |
| 5269 | ac_hi=$ac_mid |
| 5270 | else |
| 5271 | echo "$as_me: failed program was:" >&5 |
| 5272 | cat conftest.$ac_ext >&5 |
| 5273 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5274 | fi |
| 5275 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5276 | done |
| 5277 | case $ac_lo in |
| 5278 | ?*) ac_cv_sizeof_long=$ac_lo;; |
| 5279 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 |
| 5280 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} |
| 5281 | { (exit 1); exit 1; }; } ;; |
| 5282 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5283 | else |
| 5284 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5285 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 5286 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 5287 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5288 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5289 | cat >conftest.$ac_ext <<_ACEOF |
| 5290 | #line $LINENO "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5291 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5292 | $ac_includes_default |
| 5293 | long longval () { return (long) (sizeof (long)); } |
| 5294 | unsigned long ulongval () { return (long) (sizeof (long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5295 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5296 | #include <stdlib.h> |
| 5297 | #ifdef F77_DUMMY_MAIN |
| 5298 | # ifdef __cplusplus |
| 5299 | extern "C" |
| 5300 | # endif |
| 5301 | int F77_DUMMY_MAIN() { return 1; } |
| 5302 | #endif |
| 5303 | int |
| 5304 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5305 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5306 | |
| 5307 | FILE *f = fopen ("conftest.val", "w"); |
| 5308 | if (! f) |
| 5309 | exit (1); |
| 5310 | if (((long) (sizeof (long))) < 0) |
| 5311 | { |
| 5312 | long i = longval (); |
| 5313 | if (i != ((long) (sizeof (long)))) |
| 5314 | exit (1); |
| 5315 | fprintf (f, "%ld\n", i); |
| 5316 | } |
| 5317 | else |
| 5318 | { |
| 5319 | unsigned long i = ulongval (); |
| 5320 | if (i != ((long) (sizeof (long)))) |
| 5321 | exit (1); |
| 5322 | fprintf (f, "%lu\n", i); |
| 5323 | } |
| 5324 | exit (ferror (f) || fclose (f) != 0); |
| 5325 | |
| 5326 | ; |
| 5327 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5328 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5329 | _ACEOF |
| 5330 | rm -f conftest$ac_exeext |
| 5331 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5332 | (eval $ac_link) 2>&5 |
| 5333 | ac_status=$? |
| 5334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5335 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5337 | (eval $ac_try) 2>&5 |
| 5338 | ac_status=$? |
| 5339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5340 | (exit $ac_status); }; }; then |
| 5341 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5342 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5343 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5344 | echo "$as_me: failed program was:" >&5 |
| 5345 | cat conftest.$ac_ext >&5 |
| 5346 | ( exit $ac_status ) |
| 5347 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 |
| 5348 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} |
| 5349 | { (exit 1); exit 1; }; } |
| 5350 | fi |
| 5351 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5352 | fi |
| 5353 | fi |
| 5354 | rm -f conftest.val |
| 5355 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5356 | ac_cv_sizeof_long=0 |
| 5357 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5358 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5359 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 5360 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 5361 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5362 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5363 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5364 | |
| 5365 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5366 | echo "$as_me:$LINENO: checking for void *" >&5 |
| 5367 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
| 5368 | if test "${ac_cv_type_void_p+set}" = set; then |
| 5369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5370 | else |
| 5371 | cat >conftest.$ac_ext <<_ACEOF |
| 5372 | #line $LINENO "configure" |
| 5373 | #include "confdefs.h" |
| 5374 | $ac_includes_default |
| 5375 | #ifdef F77_DUMMY_MAIN |
| 5376 | # ifdef __cplusplus |
| 5377 | extern "C" |
| 5378 | # endif |
| 5379 | int F77_DUMMY_MAIN() { return 1; } |
| 5380 | #endif |
| 5381 | int |
| 5382 | main () |
| 5383 | { |
| 5384 | if ((void * *) 0) |
| 5385 | return 0; |
| 5386 | if (sizeof (void *)) |
| 5387 | return 0; |
| 5388 | ; |
| 5389 | return 0; |
| 5390 | } |
| 5391 | _ACEOF |
| 5392 | rm -f conftest.$ac_objext |
| 5393 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5394 | (eval $ac_compile) 2>&5 |
| 5395 | ac_status=$? |
| 5396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5397 | (exit $ac_status); } && |
| 5398 | { ac_try='test -s conftest.$ac_objext' |
| 5399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5400 | (eval $ac_try) 2>&5 |
| 5401 | ac_status=$? |
| 5402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5403 | (exit $ac_status); }; }; then |
| 5404 | ac_cv_type_void_p=yes |
| 5405 | else |
| 5406 | echo "$as_me: failed program was:" >&5 |
| 5407 | cat conftest.$ac_ext >&5 |
| 5408 | ac_cv_type_void_p=no |
| 5409 | fi |
| 5410 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5411 | fi |
| 5412 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 5413 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
| 5414 | |
| 5415 | echo "$as_me:$LINENO: checking size of void *" >&5 |
| 5416 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
| 5417 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 5418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5419 | else |
| 5420 | if test "$ac_cv_type_void_p" = yes; then |
| 5421 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5422 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5423 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5424 | # This bug is HP SR number 8606223364. |
| 5425 | if test "$cross_compiling" = yes; then |
| 5426 | # Depending upon the size, compute the lo and hi bounds. |
| 5427 | cat >conftest.$ac_ext <<_ACEOF |
| 5428 | #line $LINENO "configure" |
| 5429 | #include "confdefs.h" |
| 5430 | $ac_includes_default |
| 5431 | #ifdef F77_DUMMY_MAIN |
| 5432 | # ifdef __cplusplus |
| 5433 | extern "C" |
| 5434 | # endif |
| 5435 | int F77_DUMMY_MAIN() { return 1; } |
| 5436 | #endif |
| 5437 | int |
| 5438 | main () |
| 5439 | { |
| 5440 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
| 5441 | test_array [0] = 0 |
| 5442 | |
| 5443 | ; |
| 5444 | return 0; |
| 5445 | } |
| 5446 | _ACEOF |
| 5447 | rm -f conftest.$ac_objext |
| 5448 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5449 | (eval $ac_compile) 2>&5 |
| 5450 | ac_status=$? |
| 5451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5452 | (exit $ac_status); } && |
| 5453 | { ac_try='test -s conftest.$ac_objext' |
| 5454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5455 | (eval $ac_try) 2>&5 |
| 5456 | ac_status=$? |
| 5457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5458 | (exit $ac_status); }; }; then |
| 5459 | ac_lo=0 ac_mid=0 |
| 5460 | while :; do |
| 5461 | cat >conftest.$ac_ext <<_ACEOF |
| 5462 | #line $LINENO "configure" |
| 5463 | #include "confdefs.h" |
| 5464 | $ac_includes_default |
| 5465 | #ifdef F77_DUMMY_MAIN |
| 5466 | # ifdef __cplusplus |
| 5467 | extern "C" |
| 5468 | # endif |
| 5469 | int F77_DUMMY_MAIN() { return 1; } |
| 5470 | #endif |
| 5471 | int |
| 5472 | main () |
| 5473 | { |
| 5474 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 5475 | test_array [0] = 0 |
| 5476 | |
| 5477 | ; |
| 5478 | return 0; |
| 5479 | } |
| 5480 | _ACEOF |
| 5481 | rm -f conftest.$ac_objext |
| 5482 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5483 | (eval $ac_compile) 2>&5 |
| 5484 | ac_status=$? |
| 5485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5486 | (exit $ac_status); } && |
| 5487 | { ac_try='test -s conftest.$ac_objext' |
| 5488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5489 | (eval $ac_try) 2>&5 |
| 5490 | ac_status=$? |
| 5491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5492 | (exit $ac_status); }; }; then |
| 5493 | ac_hi=$ac_mid; break |
| 5494 | else |
| 5495 | echo "$as_me: failed program was:" >&5 |
| 5496 | cat conftest.$ac_ext >&5 |
| 5497 | ac_lo=`expr $ac_mid + 1` |
| 5498 | if test $ac_lo -le $ac_mid; then |
| 5499 | ac_lo= ac_hi= |
| 5500 | break |
| 5501 | fi |
| 5502 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5503 | fi |
| 5504 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5505 | done |
| 5506 | else |
| 5507 | echo "$as_me: failed program was:" >&5 |
| 5508 | cat conftest.$ac_ext >&5 |
| 5509 | cat >conftest.$ac_ext <<_ACEOF |
| 5510 | #line $LINENO "configure" |
| 5511 | #include "confdefs.h" |
| 5512 | $ac_includes_default |
| 5513 | #ifdef F77_DUMMY_MAIN |
| 5514 | # ifdef __cplusplus |
| 5515 | extern "C" |
| 5516 | # endif |
| 5517 | int F77_DUMMY_MAIN() { return 1; } |
| 5518 | #endif |
| 5519 | int |
| 5520 | main () |
| 5521 | { |
| 5522 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
| 5523 | test_array [0] = 0 |
| 5524 | |
| 5525 | ; |
| 5526 | return 0; |
| 5527 | } |
| 5528 | _ACEOF |
| 5529 | rm -f conftest.$ac_objext |
| 5530 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5531 | (eval $ac_compile) 2>&5 |
| 5532 | ac_status=$? |
| 5533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5534 | (exit $ac_status); } && |
| 5535 | { ac_try='test -s conftest.$ac_objext' |
| 5536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5537 | (eval $ac_try) 2>&5 |
| 5538 | ac_status=$? |
| 5539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5540 | (exit $ac_status); }; }; then |
| 5541 | ac_hi=-1 ac_mid=-1 |
| 5542 | while :; do |
| 5543 | cat >conftest.$ac_ext <<_ACEOF |
| 5544 | #line $LINENO "configure" |
| 5545 | #include "confdefs.h" |
| 5546 | $ac_includes_default |
| 5547 | #ifdef F77_DUMMY_MAIN |
| 5548 | # ifdef __cplusplus |
| 5549 | extern "C" |
| 5550 | # endif |
| 5551 | int F77_DUMMY_MAIN() { return 1; } |
| 5552 | #endif |
| 5553 | int |
| 5554 | main () |
| 5555 | { |
| 5556 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
| 5557 | test_array [0] = 0 |
| 5558 | |
| 5559 | ; |
| 5560 | return 0; |
| 5561 | } |
| 5562 | _ACEOF |
| 5563 | rm -f conftest.$ac_objext |
| 5564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5565 | (eval $ac_compile) 2>&5 |
| 5566 | ac_status=$? |
| 5567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5568 | (exit $ac_status); } && |
| 5569 | { ac_try='test -s conftest.$ac_objext' |
| 5570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5571 | (eval $ac_try) 2>&5 |
| 5572 | ac_status=$? |
| 5573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5574 | (exit $ac_status); }; }; then |
| 5575 | ac_lo=$ac_mid; break |
| 5576 | else |
| 5577 | echo "$as_me: failed program was:" >&5 |
| 5578 | cat conftest.$ac_ext >&5 |
| 5579 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5580 | if test $ac_mid -le $ac_hi; then |
| 5581 | ac_lo= ac_hi= |
| 5582 | break |
| 5583 | fi |
| 5584 | ac_mid=`expr 2 '*' $ac_mid` |
| 5585 | fi |
| 5586 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5587 | done |
| 5588 | else |
| 5589 | echo "$as_me: failed program was:" >&5 |
| 5590 | cat conftest.$ac_ext >&5 |
| 5591 | ac_lo= ac_hi= |
| 5592 | fi |
| 5593 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5594 | fi |
| 5595 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5596 | # Binary search between lo and hi bounds. |
| 5597 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5598 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5599 | cat >conftest.$ac_ext <<_ACEOF |
| 5600 | #line $LINENO "configure" |
| 5601 | #include "confdefs.h" |
| 5602 | $ac_includes_default |
| 5603 | #ifdef F77_DUMMY_MAIN |
| 5604 | # ifdef __cplusplus |
| 5605 | extern "C" |
| 5606 | # endif |
| 5607 | int F77_DUMMY_MAIN() { return 1; } |
| 5608 | #endif |
| 5609 | int |
| 5610 | main () |
| 5611 | { |
| 5612 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 5613 | test_array [0] = 0 |
| 5614 | |
| 5615 | ; |
| 5616 | return 0; |
| 5617 | } |
| 5618 | _ACEOF |
| 5619 | rm -f conftest.$ac_objext |
| 5620 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5621 | (eval $ac_compile) 2>&5 |
| 5622 | ac_status=$? |
| 5623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5624 | (exit $ac_status); } && |
| 5625 | { ac_try='test -s conftest.$ac_objext' |
| 5626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5627 | (eval $ac_try) 2>&5 |
| 5628 | ac_status=$? |
| 5629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5630 | (exit $ac_status); }; }; then |
| 5631 | ac_hi=$ac_mid |
| 5632 | else |
| 5633 | echo "$as_me: failed program was:" >&5 |
| 5634 | cat conftest.$ac_ext >&5 |
| 5635 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5636 | fi |
| 5637 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5638 | done |
| 5639 | case $ac_lo in |
| 5640 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
| 5641 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 |
| 5642 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} |
| 5643 | { (exit 1); exit 1; }; } ;; |
| 5644 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5645 | else |
| 5646 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5647 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 5648 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 5649 | { (exit 1); exit 1; }; } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5650 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5651 | cat >conftest.$ac_ext <<_ACEOF |
| 5652 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5653 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5654 | $ac_includes_default |
| 5655 | long longval () { return (long) (sizeof (void *)); } |
| 5656 | unsigned long ulongval () { return (long) (sizeof (void *)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5657 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5658 | #include <stdlib.h> |
| 5659 | #ifdef F77_DUMMY_MAIN |
| 5660 | # ifdef __cplusplus |
| 5661 | extern "C" |
| 5662 | # endif |
| 5663 | int F77_DUMMY_MAIN() { return 1; } |
| 5664 | #endif |
| 5665 | int |
| 5666 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5667 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5668 | |
| 5669 | FILE *f = fopen ("conftest.val", "w"); |
| 5670 | if (! f) |
| 5671 | exit (1); |
| 5672 | if (((long) (sizeof (void *))) < 0) |
| 5673 | { |
| 5674 | long i = longval (); |
| 5675 | if (i != ((long) (sizeof (void *)))) |
| 5676 | exit (1); |
| 5677 | fprintf (f, "%ld\n", i); |
| 5678 | } |
| 5679 | else |
| 5680 | { |
| 5681 | unsigned long i = ulongval (); |
| 5682 | if (i != ((long) (sizeof (void *)))) |
| 5683 | exit (1); |
| 5684 | fprintf (f, "%lu\n", i); |
| 5685 | } |
| 5686 | exit (ferror (f) || fclose (f) != 0); |
| 5687 | |
| 5688 | ; |
| 5689 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5690 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5691 | _ACEOF |
| 5692 | rm -f conftest$ac_exeext |
| 5693 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5694 | (eval $ac_link) 2>&5 |
| 5695 | ac_status=$? |
| 5696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5697 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5699 | (eval $ac_try) 2>&5 |
| 5700 | ac_status=$? |
| 5701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5702 | (exit $ac_status); }; }; then |
| 5703 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5704 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5705 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5706 | echo "$as_me: failed program was:" >&5 |
| 5707 | cat conftest.$ac_ext >&5 |
| 5708 | ( exit $ac_status ) |
| 5709 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 |
| 5710 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} |
| 5711 | { (exit 1); exit 1; }; } |
| 5712 | fi |
| 5713 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5714 | fi |
| 5715 | fi |
| 5716 | rm -f conftest.val |
| 5717 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5718 | ac_cv_sizeof_void_p=0 |
| 5719 | fi |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5720 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5721 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 5722 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
| 5723 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5724 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5725 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5726 | |
| 5727 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5728 | echo "$as_me:$LINENO: checking for char" >&5 |
| 5729 | echo $ECHO_N "checking for char... $ECHO_C" >&6 |
| 5730 | if test "${ac_cv_type_char+set}" = set; then |
| 5731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5732 | else |
| 5733 | cat >conftest.$ac_ext <<_ACEOF |
| 5734 | #line $LINENO "configure" |
| 5735 | #include "confdefs.h" |
| 5736 | $ac_includes_default |
| 5737 | #ifdef F77_DUMMY_MAIN |
| 5738 | # ifdef __cplusplus |
| 5739 | extern "C" |
| 5740 | # endif |
| 5741 | int F77_DUMMY_MAIN() { return 1; } |
| 5742 | #endif |
| 5743 | int |
| 5744 | main () |
| 5745 | { |
| 5746 | if ((char *) 0) |
| 5747 | return 0; |
| 5748 | if (sizeof (char)) |
| 5749 | return 0; |
| 5750 | ; |
| 5751 | return 0; |
| 5752 | } |
| 5753 | _ACEOF |
| 5754 | rm -f conftest.$ac_objext |
| 5755 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5756 | (eval $ac_compile) 2>&5 |
| 5757 | ac_status=$? |
| 5758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5759 | (exit $ac_status); } && |
| 5760 | { ac_try='test -s conftest.$ac_objext' |
| 5761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5762 | (eval $ac_try) 2>&5 |
| 5763 | ac_status=$? |
| 5764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5765 | (exit $ac_status); }; }; then |
| 5766 | ac_cv_type_char=yes |
| 5767 | else |
| 5768 | echo "$as_me: failed program was:" >&5 |
| 5769 | cat conftest.$ac_ext >&5 |
| 5770 | ac_cv_type_char=no |
| 5771 | fi |
| 5772 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5773 | fi |
| 5774 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
| 5775 | echo "${ECHO_T}$ac_cv_type_char" >&6 |
| 5776 | |
| 5777 | echo "$as_me:$LINENO: checking size of char" >&5 |
| 5778 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 |
| 5779 | if test "${ac_cv_sizeof_char+set}" = set; then |
| 5780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5781 | else |
| 5782 | if test "$ac_cv_type_char" = yes; then |
| 5783 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5784 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5785 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5786 | # This bug is HP SR number 8606223364. |
| 5787 | if test "$cross_compiling" = yes; then |
| 5788 | # Depending upon the size, compute the lo and hi bounds. |
| 5789 | cat >conftest.$ac_ext <<_ACEOF |
| 5790 | #line $LINENO "configure" |
| 5791 | #include "confdefs.h" |
| 5792 | $ac_includes_default |
| 5793 | #ifdef F77_DUMMY_MAIN |
| 5794 | # ifdef __cplusplus |
| 5795 | extern "C" |
| 5796 | # endif |
| 5797 | int F77_DUMMY_MAIN() { return 1; } |
| 5798 | #endif |
| 5799 | int |
| 5800 | main () |
| 5801 | { |
| 5802 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
| 5803 | test_array [0] = 0 |
| 5804 | |
| 5805 | ; |
| 5806 | return 0; |
| 5807 | } |
| 5808 | _ACEOF |
| 5809 | rm -f conftest.$ac_objext |
| 5810 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5811 | (eval $ac_compile) 2>&5 |
| 5812 | ac_status=$? |
| 5813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5814 | (exit $ac_status); } && |
| 5815 | { ac_try='test -s conftest.$ac_objext' |
| 5816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5817 | (eval $ac_try) 2>&5 |
| 5818 | ac_status=$? |
| 5819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5820 | (exit $ac_status); }; }; then |
| 5821 | ac_lo=0 ac_mid=0 |
| 5822 | while :; do |
| 5823 | cat >conftest.$ac_ext <<_ACEOF |
| 5824 | #line $LINENO "configure" |
| 5825 | #include "confdefs.h" |
| 5826 | $ac_includes_default |
| 5827 | #ifdef F77_DUMMY_MAIN |
| 5828 | # ifdef __cplusplus |
| 5829 | extern "C" |
| 5830 | # endif |
| 5831 | int F77_DUMMY_MAIN() { return 1; } |
| 5832 | #endif |
| 5833 | int |
| 5834 | main () |
| 5835 | { |
| 5836 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 5837 | test_array [0] = 0 |
| 5838 | |
| 5839 | ; |
| 5840 | return 0; |
| 5841 | } |
| 5842 | _ACEOF |
| 5843 | rm -f conftest.$ac_objext |
| 5844 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5845 | (eval $ac_compile) 2>&5 |
| 5846 | ac_status=$? |
| 5847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5848 | (exit $ac_status); } && |
| 5849 | { ac_try='test -s conftest.$ac_objext' |
| 5850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5851 | (eval $ac_try) 2>&5 |
| 5852 | ac_status=$? |
| 5853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5854 | (exit $ac_status); }; }; then |
| 5855 | ac_hi=$ac_mid; break |
| 5856 | else |
| 5857 | echo "$as_me: failed program was:" >&5 |
| 5858 | cat conftest.$ac_ext >&5 |
| 5859 | ac_lo=`expr $ac_mid + 1` |
| 5860 | if test $ac_lo -le $ac_mid; then |
| 5861 | ac_lo= ac_hi= |
| 5862 | break |
| 5863 | fi |
| 5864 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5865 | fi |
| 5866 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5867 | done |
| 5868 | else |
| 5869 | echo "$as_me: failed program was:" >&5 |
| 5870 | cat conftest.$ac_ext >&5 |
| 5871 | cat >conftest.$ac_ext <<_ACEOF |
| 5872 | #line $LINENO "configure" |
| 5873 | #include "confdefs.h" |
| 5874 | $ac_includes_default |
| 5875 | #ifdef F77_DUMMY_MAIN |
| 5876 | # ifdef __cplusplus |
| 5877 | extern "C" |
| 5878 | # endif |
| 5879 | int F77_DUMMY_MAIN() { return 1; } |
| 5880 | #endif |
| 5881 | int |
| 5882 | main () |
| 5883 | { |
| 5884 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
| 5885 | test_array [0] = 0 |
| 5886 | |
| 5887 | ; |
| 5888 | return 0; |
| 5889 | } |
| 5890 | _ACEOF |
| 5891 | rm -f conftest.$ac_objext |
| 5892 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5893 | (eval $ac_compile) 2>&5 |
| 5894 | ac_status=$? |
| 5895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5896 | (exit $ac_status); } && |
| 5897 | { ac_try='test -s conftest.$ac_objext' |
| 5898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5899 | (eval $ac_try) 2>&5 |
| 5900 | ac_status=$? |
| 5901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5902 | (exit $ac_status); }; }; then |
| 5903 | ac_hi=-1 ac_mid=-1 |
| 5904 | while :; do |
| 5905 | cat >conftest.$ac_ext <<_ACEOF |
| 5906 | #line $LINENO "configure" |
| 5907 | #include "confdefs.h" |
| 5908 | $ac_includes_default |
| 5909 | #ifdef F77_DUMMY_MAIN |
| 5910 | # ifdef __cplusplus |
| 5911 | extern "C" |
| 5912 | # endif |
| 5913 | int F77_DUMMY_MAIN() { return 1; } |
| 5914 | #endif |
| 5915 | int |
| 5916 | main () |
| 5917 | { |
| 5918 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
| 5919 | test_array [0] = 0 |
| 5920 | |
| 5921 | ; |
| 5922 | return 0; |
| 5923 | } |
| 5924 | _ACEOF |
| 5925 | rm -f conftest.$ac_objext |
| 5926 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5927 | (eval $ac_compile) 2>&5 |
| 5928 | ac_status=$? |
| 5929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5930 | (exit $ac_status); } && |
| 5931 | { ac_try='test -s conftest.$ac_objext' |
| 5932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5933 | (eval $ac_try) 2>&5 |
| 5934 | ac_status=$? |
| 5935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5936 | (exit $ac_status); }; }; then |
| 5937 | ac_lo=$ac_mid; break |
| 5938 | else |
| 5939 | echo "$as_me: failed program was:" >&5 |
| 5940 | cat conftest.$ac_ext >&5 |
| 5941 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5942 | if test $ac_mid -le $ac_hi; then |
| 5943 | ac_lo= ac_hi= |
| 5944 | break |
| 5945 | fi |
| 5946 | ac_mid=`expr 2 '*' $ac_mid` |
| 5947 | fi |
| 5948 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5949 | done |
| 5950 | else |
| 5951 | echo "$as_me: failed program was:" >&5 |
| 5952 | cat conftest.$ac_ext >&5 |
| 5953 | ac_lo= ac_hi= |
| 5954 | fi |
| 5955 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5956 | fi |
| 5957 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5958 | # Binary search between lo and hi bounds. |
| 5959 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5960 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5961 | cat >conftest.$ac_ext <<_ACEOF |
| 5962 | #line $LINENO "configure" |
| 5963 | #include "confdefs.h" |
| 5964 | $ac_includes_default |
| 5965 | #ifdef F77_DUMMY_MAIN |
| 5966 | # ifdef __cplusplus |
| 5967 | extern "C" |
| 5968 | # endif |
| 5969 | int F77_DUMMY_MAIN() { return 1; } |
| 5970 | #endif |
| 5971 | int |
| 5972 | main () |
| 5973 | { |
| 5974 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 5975 | test_array [0] = 0 |
| 5976 | |
| 5977 | ; |
| 5978 | return 0; |
| 5979 | } |
| 5980 | _ACEOF |
| 5981 | rm -f conftest.$ac_objext |
| 5982 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5983 | (eval $ac_compile) 2>&5 |
| 5984 | ac_status=$? |
| 5985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5986 | (exit $ac_status); } && |
| 5987 | { ac_try='test -s conftest.$ac_objext' |
| 5988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5989 | (eval $ac_try) 2>&5 |
| 5990 | ac_status=$? |
| 5991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5992 | (exit $ac_status); }; }; then |
| 5993 | ac_hi=$ac_mid |
| 5994 | else |
| 5995 | echo "$as_me: failed program was:" >&5 |
| 5996 | cat conftest.$ac_ext >&5 |
| 5997 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5998 | fi |
| 5999 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6000 | done |
| 6001 | case $ac_lo in |
| 6002 | ?*) ac_cv_sizeof_char=$ac_lo;; |
| 6003 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 |
| 6004 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} |
| 6005 | { (exit 1); exit 1; }; } ;; |
| 6006 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6007 | else |
| 6008 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6009 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6010 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6011 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6012 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6013 | cat >conftest.$ac_ext <<_ACEOF |
| 6014 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6015 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6016 | $ac_includes_default |
| 6017 | long longval () { return (long) (sizeof (char)); } |
| 6018 | unsigned long ulongval () { return (long) (sizeof (char)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6019 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6020 | #include <stdlib.h> |
| 6021 | #ifdef F77_DUMMY_MAIN |
| 6022 | # ifdef __cplusplus |
| 6023 | extern "C" |
| 6024 | # endif |
| 6025 | int F77_DUMMY_MAIN() { return 1; } |
| 6026 | #endif |
| 6027 | int |
| 6028 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6029 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6030 | |
| 6031 | FILE *f = fopen ("conftest.val", "w"); |
| 6032 | if (! f) |
| 6033 | exit (1); |
| 6034 | if (((long) (sizeof (char))) < 0) |
| 6035 | { |
| 6036 | long i = longval (); |
| 6037 | if (i != ((long) (sizeof (char)))) |
| 6038 | exit (1); |
| 6039 | fprintf (f, "%ld\n", i); |
| 6040 | } |
| 6041 | else |
| 6042 | { |
| 6043 | unsigned long i = ulongval (); |
| 6044 | if (i != ((long) (sizeof (char)))) |
| 6045 | exit (1); |
| 6046 | fprintf (f, "%lu\n", i); |
| 6047 | } |
| 6048 | exit (ferror (f) || fclose (f) != 0); |
| 6049 | |
| 6050 | ; |
| 6051 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6052 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6053 | _ACEOF |
| 6054 | rm -f conftest$ac_exeext |
| 6055 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6056 | (eval $ac_link) 2>&5 |
| 6057 | ac_status=$? |
| 6058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6059 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6061 | (eval $ac_try) 2>&5 |
| 6062 | ac_status=$? |
| 6063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6064 | (exit $ac_status); }; }; then |
| 6065 | ac_cv_sizeof_char=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6066 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6067 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6068 | echo "$as_me: failed program was:" >&5 |
| 6069 | cat conftest.$ac_ext >&5 |
| 6070 | ( exit $ac_status ) |
| 6071 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 |
| 6072 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} |
| 6073 | { (exit 1); exit 1; }; } |
| 6074 | fi |
| 6075 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6076 | fi |
| 6077 | fi |
| 6078 | rm -f conftest.val |
| 6079 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6080 | ac_cv_sizeof_char=0 |
| 6081 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6082 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6083 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
| 6084 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 |
| 6085 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6086 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6087 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6088 | |
| 6089 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6090 | echo "$as_me:$LINENO: checking for short" >&5 |
| 6091 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
| 6092 | if test "${ac_cv_type_short+set}" = set; then |
| 6093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6094 | else |
| 6095 | cat >conftest.$ac_ext <<_ACEOF |
| 6096 | #line $LINENO "configure" |
| 6097 | #include "confdefs.h" |
| 6098 | $ac_includes_default |
| 6099 | #ifdef F77_DUMMY_MAIN |
| 6100 | # ifdef __cplusplus |
| 6101 | extern "C" |
| 6102 | # endif |
| 6103 | int F77_DUMMY_MAIN() { return 1; } |
| 6104 | #endif |
| 6105 | int |
| 6106 | main () |
| 6107 | { |
| 6108 | if ((short *) 0) |
| 6109 | return 0; |
| 6110 | if (sizeof (short)) |
| 6111 | return 0; |
| 6112 | ; |
| 6113 | return 0; |
| 6114 | } |
| 6115 | _ACEOF |
| 6116 | rm -f conftest.$ac_objext |
| 6117 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6118 | (eval $ac_compile) 2>&5 |
| 6119 | ac_status=$? |
| 6120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6121 | (exit $ac_status); } && |
| 6122 | { ac_try='test -s conftest.$ac_objext' |
| 6123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6124 | (eval $ac_try) 2>&5 |
| 6125 | ac_status=$? |
| 6126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6127 | (exit $ac_status); }; }; then |
| 6128 | ac_cv_type_short=yes |
| 6129 | else |
| 6130 | echo "$as_me: failed program was:" >&5 |
| 6131 | cat conftest.$ac_ext >&5 |
| 6132 | ac_cv_type_short=no |
| 6133 | fi |
| 6134 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6135 | fi |
| 6136 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 6137 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
| 6138 | |
| 6139 | echo "$as_me:$LINENO: checking size of short" >&5 |
| 6140 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
| 6141 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 6142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6143 | else |
| 6144 | if test "$ac_cv_type_short" = yes; then |
| 6145 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6146 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6147 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6148 | # This bug is HP SR number 8606223364. |
| 6149 | if test "$cross_compiling" = yes; then |
| 6150 | # Depending upon the size, compute the lo and hi bounds. |
| 6151 | cat >conftest.$ac_ext <<_ACEOF |
| 6152 | #line $LINENO "configure" |
| 6153 | #include "confdefs.h" |
| 6154 | $ac_includes_default |
| 6155 | #ifdef F77_DUMMY_MAIN |
| 6156 | # ifdef __cplusplus |
| 6157 | extern "C" |
| 6158 | # endif |
| 6159 | int F77_DUMMY_MAIN() { return 1; } |
| 6160 | #endif |
| 6161 | int |
| 6162 | main () |
| 6163 | { |
| 6164 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
| 6165 | test_array [0] = 0 |
| 6166 | |
| 6167 | ; |
| 6168 | return 0; |
| 6169 | } |
| 6170 | _ACEOF |
| 6171 | rm -f conftest.$ac_objext |
| 6172 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6173 | (eval $ac_compile) 2>&5 |
| 6174 | ac_status=$? |
| 6175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6176 | (exit $ac_status); } && |
| 6177 | { ac_try='test -s conftest.$ac_objext' |
| 6178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6179 | (eval $ac_try) 2>&5 |
| 6180 | ac_status=$? |
| 6181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6182 | (exit $ac_status); }; }; then |
| 6183 | ac_lo=0 ac_mid=0 |
| 6184 | while :; do |
| 6185 | cat >conftest.$ac_ext <<_ACEOF |
| 6186 | #line $LINENO "configure" |
| 6187 | #include "confdefs.h" |
| 6188 | $ac_includes_default |
| 6189 | #ifdef F77_DUMMY_MAIN |
| 6190 | # ifdef __cplusplus |
| 6191 | extern "C" |
| 6192 | # endif |
| 6193 | int F77_DUMMY_MAIN() { return 1; } |
| 6194 | #endif |
| 6195 | int |
| 6196 | main () |
| 6197 | { |
| 6198 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 6199 | test_array [0] = 0 |
| 6200 | |
| 6201 | ; |
| 6202 | return 0; |
| 6203 | } |
| 6204 | _ACEOF |
| 6205 | rm -f conftest.$ac_objext |
| 6206 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6207 | (eval $ac_compile) 2>&5 |
| 6208 | ac_status=$? |
| 6209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6210 | (exit $ac_status); } && |
| 6211 | { ac_try='test -s conftest.$ac_objext' |
| 6212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6213 | (eval $ac_try) 2>&5 |
| 6214 | ac_status=$? |
| 6215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6216 | (exit $ac_status); }; }; then |
| 6217 | ac_hi=$ac_mid; break |
| 6218 | else |
| 6219 | echo "$as_me: failed program was:" >&5 |
| 6220 | cat conftest.$ac_ext >&5 |
| 6221 | ac_lo=`expr $ac_mid + 1` |
| 6222 | if test $ac_lo -le $ac_mid; then |
| 6223 | ac_lo= ac_hi= |
| 6224 | break |
| 6225 | fi |
| 6226 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6227 | fi |
| 6228 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6229 | done |
| 6230 | else |
| 6231 | echo "$as_me: failed program was:" >&5 |
| 6232 | cat conftest.$ac_ext >&5 |
| 6233 | cat >conftest.$ac_ext <<_ACEOF |
| 6234 | #line $LINENO "configure" |
| 6235 | #include "confdefs.h" |
| 6236 | $ac_includes_default |
| 6237 | #ifdef F77_DUMMY_MAIN |
| 6238 | # ifdef __cplusplus |
| 6239 | extern "C" |
| 6240 | # endif |
| 6241 | int F77_DUMMY_MAIN() { return 1; } |
| 6242 | #endif |
| 6243 | int |
| 6244 | main () |
| 6245 | { |
| 6246 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
| 6247 | test_array [0] = 0 |
| 6248 | |
| 6249 | ; |
| 6250 | return 0; |
| 6251 | } |
| 6252 | _ACEOF |
| 6253 | rm -f conftest.$ac_objext |
| 6254 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6255 | (eval $ac_compile) 2>&5 |
| 6256 | ac_status=$? |
| 6257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6258 | (exit $ac_status); } && |
| 6259 | { ac_try='test -s conftest.$ac_objext' |
| 6260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6261 | (eval $ac_try) 2>&5 |
| 6262 | ac_status=$? |
| 6263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6264 | (exit $ac_status); }; }; then |
| 6265 | ac_hi=-1 ac_mid=-1 |
| 6266 | while :; do |
| 6267 | cat >conftest.$ac_ext <<_ACEOF |
| 6268 | #line $LINENO "configure" |
| 6269 | #include "confdefs.h" |
| 6270 | $ac_includes_default |
| 6271 | #ifdef F77_DUMMY_MAIN |
| 6272 | # ifdef __cplusplus |
| 6273 | extern "C" |
| 6274 | # endif |
| 6275 | int F77_DUMMY_MAIN() { return 1; } |
| 6276 | #endif |
| 6277 | int |
| 6278 | main () |
| 6279 | { |
| 6280 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
| 6281 | test_array [0] = 0 |
| 6282 | |
| 6283 | ; |
| 6284 | return 0; |
| 6285 | } |
| 6286 | _ACEOF |
| 6287 | rm -f conftest.$ac_objext |
| 6288 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6289 | (eval $ac_compile) 2>&5 |
| 6290 | ac_status=$? |
| 6291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6292 | (exit $ac_status); } && |
| 6293 | { ac_try='test -s conftest.$ac_objext' |
| 6294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6295 | (eval $ac_try) 2>&5 |
| 6296 | ac_status=$? |
| 6297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6298 | (exit $ac_status); }; }; then |
| 6299 | ac_lo=$ac_mid; break |
| 6300 | else |
| 6301 | echo "$as_me: failed program was:" >&5 |
| 6302 | cat conftest.$ac_ext >&5 |
| 6303 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6304 | if test $ac_mid -le $ac_hi; then |
| 6305 | ac_lo= ac_hi= |
| 6306 | break |
| 6307 | fi |
| 6308 | ac_mid=`expr 2 '*' $ac_mid` |
| 6309 | fi |
| 6310 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6311 | done |
| 6312 | else |
| 6313 | echo "$as_me: failed program was:" >&5 |
| 6314 | cat conftest.$ac_ext >&5 |
| 6315 | ac_lo= ac_hi= |
| 6316 | fi |
| 6317 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6318 | fi |
| 6319 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6320 | # Binary search between lo and hi bounds. |
| 6321 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6322 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6323 | cat >conftest.$ac_ext <<_ACEOF |
| 6324 | #line $LINENO "configure" |
| 6325 | #include "confdefs.h" |
| 6326 | $ac_includes_default |
| 6327 | #ifdef F77_DUMMY_MAIN |
| 6328 | # ifdef __cplusplus |
| 6329 | extern "C" |
| 6330 | # endif |
| 6331 | int F77_DUMMY_MAIN() { return 1; } |
| 6332 | #endif |
| 6333 | int |
| 6334 | main () |
| 6335 | { |
| 6336 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 6337 | test_array [0] = 0 |
| 6338 | |
| 6339 | ; |
| 6340 | return 0; |
| 6341 | } |
| 6342 | _ACEOF |
| 6343 | rm -f conftest.$ac_objext |
| 6344 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6345 | (eval $ac_compile) 2>&5 |
| 6346 | ac_status=$? |
| 6347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6348 | (exit $ac_status); } && |
| 6349 | { ac_try='test -s conftest.$ac_objext' |
| 6350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6351 | (eval $ac_try) 2>&5 |
| 6352 | ac_status=$? |
| 6353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6354 | (exit $ac_status); }; }; then |
| 6355 | ac_hi=$ac_mid |
| 6356 | else |
| 6357 | echo "$as_me: failed program was:" >&5 |
| 6358 | cat conftest.$ac_ext >&5 |
| 6359 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6360 | fi |
| 6361 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6362 | done |
| 6363 | case $ac_lo in |
| 6364 | ?*) ac_cv_sizeof_short=$ac_lo;; |
| 6365 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 |
| 6366 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} |
| 6367 | { (exit 1); exit 1; }; } ;; |
| 6368 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6369 | else |
| 6370 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6371 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6372 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6373 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6374 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6375 | cat >conftest.$ac_ext <<_ACEOF |
| 6376 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6377 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6378 | $ac_includes_default |
| 6379 | long longval () { return (long) (sizeof (short)); } |
| 6380 | unsigned long ulongval () { return (long) (sizeof (short)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6381 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6382 | #include <stdlib.h> |
| 6383 | #ifdef F77_DUMMY_MAIN |
| 6384 | # ifdef __cplusplus |
| 6385 | extern "C" |
| 6386 | # endif |
| 6387 | int F77_DUMMY_MAIN() { return 1; } |
| 6388 | #endif |
| 6389 | int |
| 6390 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6391 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6392 | |
| 6393 | FILE *f = fopen ("conftest.val", "w"); |
| 6394 | if (! f) |
| 6395 | exit (1); |
| 6396 | if (((long) (sizeof (short))) < 0) |
| 6397 | { |
| 6398 | long i = longval (); |
| 6399 | if (i != ((long) (sizeof (short)))) |
| 6400 | exit (1); |
| 6401 | fprintf (f, "%ld\n", i); |
| 6402 | } |
| 6403 | else |
| 6404 | { |
| 6405 | unsigned long i = ulongval (); |
| 6406 | if (i != ((long) (sizeof (short)))) |
| 6407 | exit (1); |
| 6408 | fprintf (f, "%lu\n", i); |
| 6409 | } |
| 6410 | exit (ferror (f) || fclose (f) != 0); |
| 6411 | |
| 6412 | ; |
| 6413 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6414 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6415 | _ACEOF |
| 6416 | rm -f conftest$ac_exeext |
| 6417 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6418 | (eval $ac_link) 2>&5 |
| 6419 | ac_status=$? |
| 6420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6421 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6423 | (eval $ac_try) 2>&5 |
| 6424 | ac_status=$? |
| 6425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6426 | (exit $ac_status); }; }; then |
| 6427 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6428 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6429 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6430 | echo "$as_me: failed program was:" >&5 |
| 6431 | cat conftest.$ac_ext >&5 |
| 6432 | ( exit $ac_status ) |
| 6433 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 |
| 6434 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} |
| 6435 | { (exit 1); exit 1; }; } |
| 6436 | fi |
| 6437 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6438 | fi |
| 6439 | fi |
| 6440 | rm -f conftest.val |
| 6441 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6442 | ac_cv_sizeof_short=0 |
| 6443 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6444 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6445 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 6446 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
| 6447 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6448 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6449 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6450 | |
| 6451 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6452 | echo "$as_me:$LINENO: checking for float" >&5 |
| 6453 | echo $ECHO_N "checking for float... $ECHO_C" >&6 |
| 6454 | if test "${ac_cv_type_float+set}" = set; then |
| 6455 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6456 | else |
| 6457 | cat >conftest.$ac_ext <<_ACEOF |
| 6458 | #line $LINENO "configure" |
| 6459 | #include "confdefs.h" |
| 6460 | $ac_includes_default |
| 6461 | #ifdef F77_DUMMY_MAIN |
| 6462 | # ifdef __cplusplus |
| 6463 | extern "C" |
| 6464 | # endif |
| 6465 | int F77_DUMMY_MAIN() { return 1; } |
| 6466 | #endif |
| 6467 | int |
| 6468 | main () |
| 6469 | { |
| 6470 | if ((float *) 0) |
| 6471 | return 0; |
| 6472 | if (sizeof (float)) |
| 6473 | return 0; |
| 6474 | ; |
| 6475 | return 0; |
| 6476 | } |
| 6477 | _ACEOF |
| 6478 | rm -f conftest.$ac_objext |
| 6479 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6480 | (eval $ac_compile) 2>&5 |
| 6481 | ac_status=$? |
| 6482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6483 | (exit $ac_status); } && |
| 6484 | { ac_try='test -s conftest.$ac_objext' |
| 6485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6486 | (eval $ac_try) 2>&5 |
| 6487 | ac_status=$? |
| 6488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6489 | (exit $ac_status); }; }; then |
| 6490 | ac_cv_type_float=yes |
| 6491 | else |
| 6492 | echo "$as_me: failed program was:" >&5 |
| 6493 | cat conftest.$ac_ext >&5 |
| 6494 | ac_cv_type_float=no |
| 6495 | fi |
| 6496 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6497 | fi |
| 6498 | echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 6499 | echo "${ECHO_T}$ac_cv_type_float" >&6 |
| 6500 | |
| 6501 | echo "$as_me:$LINENO: checking size of float" >&5 |
| 6502 | echo $ECHO_N "checking size of float... $ECHO_C" >&6 |
| 6503 | if test "${ac_cv_sizeof_float+set}" = set; then |
| 6504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6505 | else |
| 6506 | if test "$ac_cv_type_float" = yes; then |
| 6507 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6508 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6509 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6510 | # This bug is HP SR number 8606223364. |
| 6511 | if test "$cross_compiling" = yes; then |
| 6512 | # Depending upon the size, compute the lo and hi bounds. |
| 6513 | cat >conftest.$ac_ext <<_ACEOF |
| 6514 | #line $LINENO "configure" |
| 6515 | #include "confdefs.h" |
| 6516 | $ac_includes_default |
| 6517 | #ifdef F77_DUMMY_MAIN |
| 6518 | # ifdef __cplusplus |
| 6519 | extern "C" |
| 6520 | # endif |
| 6521 | int F77_DUMMY_MAIN() { return 1; } |
| 6522 | #endif |
| 6523 | int |
| 6524 | main () |
| 6525 | { |
| 6526 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)]; |
| 6527 | test_array [0] = 0 |
| 6528 | |
| 6529 | ; |
| 6530 | return 0; |
| 6531 | } |
| 6532 | _ACEOF |
| 6533 | rm -f conftest.$ac_objext |
| 6534 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6535 | (eval $ac_compile) 2>&5 |
| 6536 | ac_status=$? |
| 6537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6538 | (exit $ac_status); } && |
| 6539 | { ac_try='test -s conftest.$ac_objext' |
| 6540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6541 | (eval $ac_try) 2>&5 |
| 6542 | ac_status=$? |
| 6543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6544 | (exit $ac_status); }; }; then |
| 6545 | ac_lo=0 ac_mid=0 |
| 6546 | while :; do |
| 6547 | cat >conftest.$ac_ext <<_ACEOF |
| 6548 | #line $LINENO "configure" |
| 6549 | #include "confdefs.h" |
| 6550 | $ac_includes_default |
| 6551 | #ifdef F77_DUMMY_MAIN |
| 6552 | # ifdef __cplusplus |
| 6553 | extern "C" |
| 6554 | # endif |
| 6555 | int F77_DUMMY_MAIN() { return 1; } |
| 6556 | #endif |
| 6557 | int |
| 6558 | main () |
| 6559 | { |
| 6560 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 6561 | test_array [0] = 0 |
| 6562 | |
| 6563 | ; |
| 6564 | return 0; |
| 6565 | } |
| 6566 | _ACEOF |
| 6567 | rm -f conftest.$ac_objext |
| 6568 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6569 | (eval $ac_compile) 2>&5 |
| 6570 | ac_status=$? |
| 6571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6572 | (exit $ac_status); } && |
| 6573 | { ac_try='test -s conftest.$ac_objext' |
| 6574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6575 | (eval $ac_try) 2>&5 |
| 6576 | ac_status=$? |
| 6577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6578 | (exit $ac_status); }; }; then |
| 6579 | ac_hi=$ac_mid; break |
| 6580 | else |
| 6581 | echo "$as_me: failed program was:" >&5 |
| 6582 | cat conftest.$ac_ext >&5 |
| 6583 | ac_lo=`expr $ac_mid + 1` |
| 6584 | if test $ac_lo -le $ac_mid; then |
| 6585 | ac_lo= ac_hi= |
| 6586 | break |
| 6587 | fi |
| 6588 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6589 | fi |
| 6590 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6591 | done |
| 6592 | else |
| 6593 | echo "$as_me: failed program was:" >&5 |
| 6594 | cat conftest.$ac_ext >&5 |
| 6595 | cat >conftest.$ac_ext <<_ACEOF |
| 6596 | #line $LINENO "configure" |
| 6597 | #include "confdefs.h" |
| 6598 | $ac_includes_default |
| 6599 | #ifdef F77_DUMMY_MAIN |
| 6600 | # ifdef __cplusplus |
| 6601 | extern "C" |
| 6602 | # endif |
| 6603 | int F77_DUMMY_MAIN() { return 1; } |
| 6604 | #endif |
| 6605 | int |
| 6606 | main () |
| 6607 | { |
| 6608 | static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)]; |
| 6609 | test_array [0] = 0 |
| 6610 | |
| 6611 | ; |
| 6612 | return 0; |
| 6613 | } |
| 6614 | _ACEOF |
| 6615 | rm -f conftest.$ac_objext |
| 6616 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6617 | (eval $ac_compile) 2>&5 |
| 6618 | ac_status=$? |
| 6619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6620 | (exit $ac_status); } && |
| 6621 | { ac_try='test -s conftest.$ac_objext' |
| 6622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6623 | (eval $ac_try) 2>&5 |
| 6624 | ac_status=$? |
| 6625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6626 | (exit $ac_status); }; }; then |
| 6627 | ac_hi=-1 ac_mid=-1 |
| 6628 | while :; do |
| 6629 | cat >conftest.$ac_ext <<_ACEOF |
| 6630 | #line $LINENO "configure" |
| 6631 | #include "confdefs.h" |
| 6632 | $ac_includes_default |
| 6633 | #ifdef F77_DUMMY_MAIN |
| 6634 | # ifdef __cplusplus |
| 6635 | extern "C" |
| 6636 | # endif |
| 6637 | int F77_DUMMY_MAIN() { return 1; } |
| 6638 | #endif |
| 6639 | int |
| 6640 | main () |
| 6641 | { |
| 6642 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)]; |
| 6643 | test_array [0] = 0 |
| 6644 | |
| 6645 | ; |
| 6646 | return 0; |
| 6647 | } |
| 6648 | _ACEOF |
| 6649 | rm -f conftest.$ac_objext |
| 6650 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6651 | (eval $ac_compile) 2>&5 |
| 6652 | ac_status=$? |
| 6653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6654 | (exit $ac_status); } && |
| 6655 | { ac_try='test -s conftest.$ac_objext' |
| 6656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6657 | (eval $ac_try) 2>&5 |
| 6658 | ac_status=$? |
| 6659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6660 | (exit $ac_status); }; }; then |
| 6661 | ac_lo=$ac_mid; break |
| 6662 | else |
| 6663 | echo "$as_me: failed program was:" >&5 |
| 6664 | cat conftest.$ac_ext >&5 |
| 6665 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6666 | if test $ac_mid -le $ac_hi; then |
| 6667 | ac_lo= ac_hi= |
| 6668 | break |
| 6669 | fi |
| 6670 | ac_mid=`expr 2 '*' $ac_mid` |
| 6671 | fi |
| 6672 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6673 | done |
| 6674 | else |
| 6675 | echo "$as_me: failed program was:" >&5 |
| 6676 | cat conftest.$ac_ext >&5 |
| 6677 | ac_lo= ac_hi= |
| 6678 | fi |
| 6679 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6680 | fi |
| 6681 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6682 | # Binary search between lo and hi bounds. |
| 6683 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6684 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6685 | cat >conftest.$ac_ext <<_ACEOF |
| 6686 | #line $LINENO "configure" |
| 6687 | #include "confdefs.h" |
| 6688 | $ac_includes_default |
| 6689 | #ifdef F77_DUMMY_MAIN |
| 6690 | # ifdef __cplusplus |
| 6691 | extern "C" |
| 6692 | # endif |
| 6693 | int F77_DUMMY_MAIN() { return 1; } |
| 6694 | #endif |
| 6695 | int |
| 6696 | main () |
| 6697 | { |
| 6698 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 6699 | test_array [0] = 0 |
| 6700 | |
| 6701 | ; |
| 6702 | return 0; |
| 6703 | } |
| 6704 | _ACEOF |
| 6705 | rm -f conftest.$ac_objext |
| 6706 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6707 | (eval $ac_compile) 2>&5 |
| 6708 | ac_status=$? |
| 6709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6710 | (exit $ac_status); } && |
| 6711 | { ac_try='test -s conftest.$ac_objext' |
| 6712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6713 | (eval $ac_try) 2>&5 |
| 6714 | ac_status=$? |
| 6715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6716 | (exit $ac_status); }; }; then |
| 6717 | ac_hi=$ac_mid |
| 6718 | else |
| 6719 | echo "$as_me: failed program was:" >&5 |
| 6720 | cat conftest.$ac_ext >&5 |
| 6721 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6722 | fi |
| 6723 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6724 | done |
| 6725 | case $ac_lo in |
| 6726 | ?*) ac_cv_sizeof_float=$ac_lo;; |
| 6727 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5 |
| 6728 | echo "$as_me: error: cannot compute sizeof (float), 77" >&2;} |
| 6729 | { (exit 1); exit 1; }; } ;; |
| 6730 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6731 | else |
| 6732 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6733 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6734 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6735 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6736 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6737 | cat >conftest.$ac_ext <<_ACEOF |
| 6738 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6739 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6740 | $ac_includes_default |
| 6741 | long longval () { return (long) (sizeof (float)); } |
| 6742 | unsigned long ulongval () { return (long) (sizeof (float)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6743 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6744 | #include <stdlib.h> |
| 6745 | #ifdef F77_DUMMY_MAIN |
| 6746 | # ifdef __cplusplus |
| 6747 | extern "C" |
| 6748 | # endif |
| 6749 | int F77_DUMMY_MAIN() { return 1; } |
| 6750 | #endif |
| 6751 | int |
| 6752 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6753 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6754 | |
| 6755 | FILE *f = fopen ("conftest.val", "w"); |
| 6756 | if (! f) |
| 6757 | exit (1); |
| 6758 | if (((long) (sizeof (float))) < 0) |
| 6759 | { |
| 6760 | long i = longval (); |
| 6761 | if (i != ((long) (sizeof (float)))) |
| 6762 | exit (1); |
| 6763 | fprintf (f, "%ld\n", i); |
| 6764 | } |
| 6765 | else |
| 6766 | { |
| 6767 | unsigned long i = ulongval (); |
| 6768 | if (i != ((long) (sizeof (float)))) |
| 6769 | exit (1); |
| 6770 | fprintf (f, "%lu\n", i); |
| 6771 | } |
| 6772 | exit (ferror (f) || fclose (f) != 0); |
| 6773 | |
| 6774 | ; |
| 6775 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6776 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6777 | _ACEOF |
| 6778 | rm -f conftest$ac_exeext |
| 6779 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6780 | (eval $ac_link) 2>&5 |
| 6781 | ac_status=$? |
| 6782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6783 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6785 | (eval $ac_try) 2>&5 |
| 6786 | ac_status=$? |
| 6787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6788 | (exit $ac_status); }; }; then |
| 6789 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6790 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6791 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6792 | echo "$as_me: failed program was:" >&5 |
| 6793 | cat conftest.$ac_ext >&5 |
| 6794 | ( exit $ac_status ) |
| 6795 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5 |
| 6796 | echo "$as_me: error: cannot compute sizeof (float), 77" >&2;} |
| 6797 | { (exit 1); exit 1; }; } |
| 6798 | fi |
| 6799 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6800 | fi |
| 6801 | fi |
| 6802 | rm -f conftest.val |
| 6803 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6804 | ac_cv_sizeof_float=0 |
| 6805 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6806 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6807 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 6808 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6 |
| 6809 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6810 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6811 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6812 | |
| 6813 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6814 | echo "$as_me:$LINENO: checking for double" >&5 |
| 6815 | echo $ECHO_N "checking for double... $ECHO_C" >&6 |
| 6816 | if test "${ac_cv_type_double+set}" = set; then |
| 6817 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6818 | else |
| 6819 | cat >conftest.$ac_ext <<_ACEOF |
| 6820 | #line $LINENO "configure" |
| 6821 | #include "confdefs.h" |
| 6822 | $ac_includes_default |
| 6823 | #ifdef F77_DUMMY_MAIN |
| 6824 | # ifdef __cplusplus |
| 6825 | extern "C" |
| 6826 | # endif |
| 6827 | int F77_DUMMY_MAIN() { return 1; } |
| 6828 | #endif |
| 6829 | int |
| 6830 | main () |
| 6831 | { |
| 6832 | if ((double *) 0) |
| 6833 | return 0; |
| 6834 | if (sizeof (double)) |
| 6835 | return 0; |
| 6836 | ; |
| 6837 | return 0; |
| 6838 | } |
| 6839 | _ACEOF |
| 6840 | rm -f conftest.$ac_objext |
| 6841 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6842 | (eval $ac_compile) 2>&5 |
| 6843 | ac_status=$? |
| 6844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6845 | (exit $ac_status); } && |
| 6846 | { ac_try='test -s conftest.$ac_objext' |
| 6847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6848 | (eval $ac_try) 2>&5 |
| 6849 | ac_status=$? |
| 6850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6851 | (exit $ac_status); }; }; then |
| 6852 | ac_cv_type_double=yes |
| 6853 | else |
| 6854 | echo "$as_me: failed program was:" >&5 |
| 6855 | cat conftest.$ac_ext >&5 |
| 6856 | ac_cv_type_double=no |
| 6857 | fi |
| 6858 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6859 | fi |
| 6860 | echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 6861 | echo "${ECHO_T}$ac_cv_type_double" >&6 |
| 6862 | |
| 6863 | echo "$as_me:$LINENO: checking size of double" >&5 |
| 6864 | echo $ECHO_N "checking size of double... $ECHO_C" >&6 |
| 6865 | if test "${ac_cv_sizeof_double+set}" = set; then |
| 6866 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6867 | else |
| 6868 | if test "$ac_cv_type_double" = yes; then |
| 6869 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6870 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6871 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6872 | # This bug is HP SR number 8606223364. |
| 6873 | if test "$cross_compiling" = yes; then |
| 6874 | # Depending upon the size, compute the lo and hi bounds. |
| 6875 | cat >conftest.$ac_ext <<_ACEOF |
| 6876 | #line $LINENO "configure" |
| 6877 | #include "confdefs.h" |
| 6878 | $ac_includes_default |
| 6879 | #ifdef F77_DUMMY_MAIN |
| 6880 | # ifdef __cplusplus |
| 6881 | extern "C" |
| 6882 | # endif |
| 6883 | int F77_DUMMY_MAIN() { return 1; } |
| 6884 | #endif |
| 6885 | int |
| 6886 | main () |
| 6887 | { |
| 6888 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)]; |
| 6889 | test_array [0] = 0 |
| 6890 | |
| 6891 | ; |
| 6892 | return 0; |
| 6893 | } |
| 6894 | _ACEOF |
| 6895 | rm -f conftest.$ac_objext |
| 6896 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6897 | (eval $ac_compile) 2>&5 |
| 6898 | ac_status=$? |
| 6899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6900 | (exit $ac_status); } && |
| 6901 | { ac_try='test -s conftest.$ac_objext' |
| 6902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6903 | (eval $ac_try) 2>&5 |
| 6904 | ac_status=$? |
| 6905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6906 | (exit $ac_status); }; }; then |
| 6907 | ac_lo=0 ac_mid=0 |
| 6908 | while :; do |
| 6909 | cat >conftest.$ac_ext <<_ACEOF |
| 6910 | #line $LINENO "configure" |
| 6911 | #include "confdefs.h" |
| 6912 | $ac_includes_default |
| 6913 | #ifdef F77_DUMMY_MAIN |
| 6914 | # ifdef __cplusplus |
| 6915 | extern "C" |
| 6916 | # endif |
| 6917 | int F77_DUMMY_MAIN() { return 1; } |
| 6918 | #endif |
| 6919 | int |
| 6920 | main () |
| 6921 | { |
| 6922 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 6923 | test_array [0] = 0 |
| 6924 | |
| 6925 | ; |
| 6926 | return 0; |
| 6927 | } |
| 6928 | _ACEOF |
| 6929 | rm -f conftest.$ac_objext |
| 6930 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6931 | (eval $ac_compile) 2>&5 |
| 6932 | ac_status=$? |
| 6933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6934 | (exit $ac_status); } && |
| 6935 | { ac_try='test -s conftest.$ac_objext' |
| 6936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6937 | (eval $ac_try) 2>&5 |
| 6938 | ac_status=$? |
| 6939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6940 | (exit $ac_status); }; }; then |
| 6941 | ac_hi=$ac_mid; break |
| 6942 | else |
| 6943 | echo "$as_me: failed program was:" >&5 |
| 6944 | cat conftest.$ac_ext >&5 |
| 6945 | ac_lo=`expr $ac_mid + 1` |
| 6946 | if test $ac_lo -le $ac_mid; then |
| 6947 | ac_lo= ac_hi= |
| 6948 | break |
| 6949 | fi |
| 6950 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6951 | fi |
| 6952 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6953 | done |
| 6954 | else |
| 6955 | echo "$as_me: failed program was:" >&5 |
| 6956 | cat conftest.$ac_ext >&5 |
| 6957 | cat >conftest.$ac_ext <<_ACEOF |
| 6958 | #line $LINENO "configure" |
| 6959 | #include "confdefs.h" |
| 6960 | $ac_includes_default |
| 6961 | #ifdef F77_DUMMY_MAIN |
| 6962 | # ifdef __cplusplus |
| 6963 | extern "C" |
| 6964 | # endif |
| 6965 | int F77_DUMMY_MAIN() { return 1; } |
| 6966 | #endif |
| 6967 | int |
| 6968 | main () |
| 6969 | { |
| 6970 | static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)]; |
| 6971 | test_array [0] = 0 |
| 6972 | |
| 6973 | ; |
| 6974 | return 0; |
| 6975 | } |
| 6976 | _ACEOF |
| 6977 | rm -f conftest.$ac_objext |
| 6978 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6979 | (eval $ac_compile) 2>&5 |
| 6980 | ac_status=$? |
| 6981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6982 | (exit $ac_status); } && |
| 6983 | { ac_try='test -s conftest.$ac_objext' |
| 6984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6985 | (eval $ac_try) 2>&5 |
| 6986 | ac_status=$? |
| 6987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6988 | (exit $ac_status); }; }; then |
| 6989 | ac_hi=-1 ac_mid=-1 |
| 6990 | while :; do |
| 6991 | cat >conftest.$ac_ext <<_ACEOF |
| 6992 | #line $LINENO "configure" |
| 6993 | #include "confdefs.h" |
| 6994 | $ac_includes_default |
| 6995 | #ifdef F77_DUMMY_MAIN |
| 6996 | # ifdef __cplusplus |
| 6997 | extern "C" |
| 6998 | # endif |
| 6999 | int F77_DUMMY_MAIN() { return 1; } |
| 7000 | #endif |
| 7001 | int |
| 7002 | main () |
| 7003 | { |
| 7004 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)]; |
| 7005 | test_array [0] = 0 |
| 7006 | |
| 7007 | ; |
| 7008 | return 0; |
| 7009 | } |
| 7010 | _ACEOF |
| 7011 | rm -f conftest.$ac_objext |
| 7012 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7013 | (eval $ac_compile) 2>&5 |
| 7014 | ac_status=$? |
| 7015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7016 | (exit $ac_status); } && |
| 7017 | { ac_try='test -s conftest.$ac_objext' |
| 7018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7019 | (eval $ac_try) 2>&5 |
| 7020 | ac_status=$? |
| 7021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7022 | (exit $ac_status); }; }; then |
| 7023 | ac_lo=$ac_mid; break |
| 7024 | else |
| 7025 | echo "$as_me: failed program was:" >&5 |
| 7026 | cat conftest.$ac_ext >&5 |
| 7027 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7028 | if test $ac_mid -le $ac_hi; then |
| 7029 | ac_lo= ac_hi= |
| 7030 | break |
| 7031 | fi |
| 7032 | ac_mid=`expr 2 '*' $ac_mid` |
| 7033 | fi |
| 7034 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7035 | done |
| 7036 | else |
| 7037 | echo "$as_me: failed program was:" >&5 |
| 7038 | cat conftest.$ac_ext >&5 |
| 7039 | ac_lo= ac_hi= |
| 7040 | fi |
| 7041 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7042 | fi |
| 7043 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7044 | # Binary search between lo and hi bounds. |
| 7045 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7046 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7047 | cat >conftest.$ac_ext <<_ACEOF |
| 7048 | #line $LINENO "configure" |
| 7049 | #include "confdefs.h" |
| 7050 | $ac_includes_default |
| 7051 | #ifdef F77_DUMMY_MAIN |
| 7052 | # ifdef __cplusplus |
| 7053 | extern "C" |
| 7054 | # endif |
| 7055 | int F77_DUMMY_MAIN() { return 1; } |
| 7056 | #endif |
| 7057 | int |
| 7058 | main () |
| 7059 | { |
| 7060 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 7061 | test_array [0] = 0 |
| 7062 | |
| 7063 | ; |
| 7064 | return 0; |
| 7065 | } |
| 7066 | _ACEOF |
| 7067 | rm -f conftest.$ac_objext |
| 7068 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7069 | (eval $ac_compile) 2>&5 |
| 7070 | ac_status=$? |
| 7071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7072 | (exit $ac_status); } && |
| 7073 | { ac_try='test -s conftest.$ac_objext' |
| 7074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7075 | (eval $ac_try) 2>&5 |
| 7076 | ac_status=$? |
| 7077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7078 | (exit $ac_status); }; }; then |
| 7079 | ac_hi=$ac_mid |
| 7080 | else |
| 7081 | echo "$as_me: failed program was:" >&5 |
| 7082 | cat conftest.$ac_ext >&5 |
| 7083 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7084 | fi |
| 7085 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7086 | done |
| 7087 | case $ac_lo in |
| 7088 | ?*) ac_cv_sizeof_double=$ac_lo;; |
| 7089 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5 |
| 7090 | echo "$as_me: error: cannot compute sizeof (double), 77" >&2;} |
| 7091 | { (exit 1); exit 1; }; } ;; |
| 7092 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7093 | else |
| 7094 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7095 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7096 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7097 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7098 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7099 | cat >conftest.$ac_ext <<_ACEOF |
| 7100 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7101 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7102 | $ac_includes_default |
| 7103 | long longval () { return (long) (sizeof (double)); } |
| 7104 | unsigned long ulongval () { return (long) (sizeof (double)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7105 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7106 | #include <stdlib.h> |
| 7107 | #ifdef F77_DUMMY_MAIN |
| 7108 | # ifdef __cplusplus |
| 7109 | extern "C" |
| 7110 | # endif |
| 7111 | int F77_DUMMY_MAIN() { return 1; } |
| 7112 | #endif |
| 7113 | int |
| 7114 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7115 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7116 | |
| 7117 | FILE *f = fopen ("conftest.val", "w"); |
| 7118 | if (! f) |
| 7119 | exit (1); |
| 7120 | if (((long) (sizeof (double))) < 0) |
| 7121 | { |
| 7122 | long i = longval (); |
| 7123 | if (i != ((long) (sizeof (double)))) |
| 7124 | exit (1); |
| 7125 | fprintf (f, "%ld\n", i); |
| 7126 | } |
| 7127 | else |
| 7128 | { |
| 7129 | unsigned long i = ulongval (); |
| 7130 | if (i != ((long) (sizeof (double)))) |
| 7131 | exit (1); |
| 7132 | fprintf (f, "%lu\n", i); |
| 7133 | } |
| 7134 | exit (ferror (f) || fclose (f) != 0); |
| 7135 | |
| 7136 | ; |
| 7137 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7138 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7139 | _ACEOF |
| 7140 | rm -f conftest$ac_exeext |
| 7141 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7142 | (eval $ac_link) 2>&5 |
| 7143 | ac_status=$? |
| 7144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7145 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7147 | (eval $ac_try) 2>&5 |
| 7148 | ac_status=$? |
| 7149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7150 | (exit $ac_status); }; }; then |
| 7151 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7152 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7153 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7154 | echo "$as_me: failed program was:" >&5 |
| 7155 | cat conftest.$ac_ext >&5 |
| 7156 | ( exit $ac_status ) |
| 7157 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5 |
| 7158 | echo "$as_me: error: cannot compute sizeof (double), 77" >&2;} |
| 7159 | { (exit 1); exit 1; }; } |
| 7160 | fi |
| 7161 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7162 | fi |
| 7163 | fi |
| 7164 | rm -f conftest.val |
| 7165 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7166 | ac_cv_sizeof_double=0 |
| 7167 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7168 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7169 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 7170 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6 |
| 7171 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7172 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7173 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7174 | |
| 7175 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7176 | echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 7177 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6 |
| 7178 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 7179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7180 | else |
| 7181 | cat >conftest.$ac_ext <<_ACEOF |
| 7182 | #line $LINENO "configure" |
| 7183 | #include "confdefs.h" |
| 7184 | $ac_includes_default |
| 7185 | #ifdef F77_DUMMY_MAIN |
| 7186 | # ifdef __cplusplus |
| 7187 | extern "C" |
| 7188 | # endif |
| 7189 | int F77_DUMMY_MAIN() { return 1; } |
| 7190 | #endif |
| 7191 | int |
| 7192 | main () |
| 7193 | { |
| 7194 | if ((fpos_t *) 0) |
| 7195 | return 0; |
| 7196 | if (sizeof (fpos_t)) |
| 7197 | return 0; |
| 7198 | ; |
| 7199 | return 0; |
| 7200 | } |
| 7201 | _ACEOF |
| 7202 | rm -f conftest.$ac_objext |
| 7203 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7204 | (eval $ac_compile) 2>&5 |
| 7205 | ac_status=$? |
| 7206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7207 | (exit $ac_status); } && |
| 7208 | { ac_try='test -s conftest.$ac_objext' |
| 7209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7210 | (eval $ac_try) 2>&5 |
| 7211 | ac_status=$? |
| 7212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7213 | (exit $ac_status); }; }; then |
| 7214 | ac_cv_type_fpos_t=yes |
| 7215 | else |
| 7216 | echo "$as_me: failed program was:" >&5 |
| 7217 | cat conftest.$ac_ext >&5 |
| 7218 | ac_cv_type_fpos_t=no |
| 7219 | fi |
| 7220 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7221 | fi |
| 7222 | echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 7223 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6 |
| 7224 | |
| 7225 | echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 7226 | echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6 |
| 7227 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| 7228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7229 | else |
| 7230 | if test "$ac_cv_type_fpos_t" = yes; then |
| 7231 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7232 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7233 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7234 | # This bug is HP SR number 8606223364. |
| 7235 | if test "$cross_compiling" = yes; then |
| 7236 | # Depending upon the size, compute the lo and hi bounds. |
| 7237 | cat >conftest.$ac_ext <<_ACEOF |
| 7238 | #line $LINENO "configure" |
| 7239 | #include "confdefs.h" |
| 7240 | $ac_includes_default |
| 7241 | #ifdef F77_DUMMY_MAIN |
| 7242 | # ifdef __cplusplus |
| 7243 | extern "C" |
| 7244 | # endif |
| 7245 | int F77_DUMMY_MAIN() { return 1; } |
| 7246 | #endif |
| 7247 | int |
| 7248 | main () |
| 7249 | { |
| 7250 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)]; |
| 7251 | test_array [0] = 0 |
| 7252 | |
| 7253 | ; |
| 7254 | return 0; |
| 7255 | } |
| 7256 | _ACEOF |
| 7257 | rm -f conftest.$ac_objext |
| 7258 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7259 | (eval $ac_compile) 2>&5 |
| 7260 | ac_status=$? |
| 7261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7262 | (exit $ac_status); } && |
| 7263 | { ac_try='test -s conftest.$ac_objext' |
| 7264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7265 | (eval $ac_try) 2>&5 |
| 7266 | ac_status=$? |
| 7267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7268 | (exit $ac_status); }; }; then |
| 7269 | ac_lo=0 ac_mid=0 |
| 7270 | while :; do |
| 7271 | cat >conftest.$ac_ext <<_ACEOF |
| 7272 | #line $LINENO "configure" |
| 7273 | #include "confdefs.h" |
| 7274 | $ac_includes_default |
| 7275 | #ifdef F77_DUMMY_MAIN |
| 7276 | # ifdef __cplusplus |
| 7277 | extern "C" |
| 7278 | # endif |
| 7279 | int F77_DUMMY_MAIN() { return 1; } |
| 7280 | #endif |
| 7281 | int |
| 7282 | main () |
| 7283 | { |
| 7284 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 7285 | test_array [0] = 0 |
| 7286 | |
| 7287 | ; |
| 7288 | return 0; |
| 7289 | } |
| 7290 | _ACEOF |
| 7291 | rm -f conftest.$ac_objext |
| 7292 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7293 | (eval $ac_compile) 2>&5 |
| 7294 | ac_status=$? |
| 7295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7296 | (exit $ac_status); } && |
| 7297 | { ac_try='test -s conftest.$ac_objext' |
| 7298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7299 | (eval $ac_try) 2>&5 |
| 7300 | ac_status=$? |
| 7301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7302 | (exit $ac_status); }; }; then |
| 7303 | ac_hi=$ac_mid; break |
| 7304 | else |
| 7305 | echo "$as_me: failed program was:" >&5 |
| 7306 | cat conftest.$ac_ext >&5 |
| 7307 | ac_lo=`expr $ac_mid + 1` |
| 7308 | if test $ac_lo -le $ac_mid; then |
| 7309 | ac_lo= ac_hi= |
| 7310 | break |
| 7311 | fi |
| 7312 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7313 | fi |
| 7314 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7315 | done |
| 7316 | else |
| 7317 | echo "$as_me: failed program was:" >&5 |
| 7318 | cat conftest.$ac_ext >&5 |
| 7319 | cat >conftest.$ac_ext <<_ACEOF |
| 7320 | #line $LINENO "configure" |
| 7321 | #include "confdefs.h" |
| 7322 | $ac_includes_default |
| 7323 | #ifdef F77_DUMMY_MAIN |
| 7324 | # ifdef __cplusplus |
| 7325 | extern "C" |
| 7326 | # endif |
| 7327 | int F77_DUMMY_MAIN() { return 1; } |
| 7328 | #endif |
| 7329 | int |
| 7330 | main () |
| 7331 | { |
| 7332 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)]; |
| 7333 | test_array [0] = 0 |
| 7334 | |
| 7335 | ; |
| 7336 | return 0; |
| 7337 | } |
| 7338 | _ACEOF |
| 7339 | rm -f conftest.$ac_objext |
| 7340 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7341 | (eval $ac_compile) 2>&5 |
| 7342 | ac_status=$? |
| 7343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7344 | (exit $ac_status); } && |
| 7345 | { ac_try='test -s conftest.$ac_objext' |
| 7346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7347 | (eval $ac_try) 2>&5 |
| 7348 | ac_status=$? |
| 7349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7350 | (exit $ac_status); }; }; then |
| 7351 | ac_hi=-1 ac_mid=-1 |
| 7352 | while :; do |
| 7353 | cat >conftest.$ac_ext <<_ACEOF |
| 7354 | #line $LINENO "configure" |
| 7355 | #include "confdefs.h" |
| 7356 | $ac_includes_default |
| 7357 | #ifdef F77_DUMMY_MAIN |
| 7358 | # ifdef __cplusplus |
| 7359 | extern "C" |
| 7360 | # endif |
| 7361 | int F77_DUMMY_MAIN() { return 1; } |
| 7362 | #endif |
| 7363 | int |
| 7364 | main () |
| 7365 | { |
| 7366 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)]; |
| 7367 | test_array [0] = 0 |
| 7368 | |
| 7369 | ; |
| 7370 | return 0; |
| 7371 | } |
| 7372 | _ACEOF |
| 7373 | rm -f conftest.$ac_objext |
| 7374 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7375 | (eval $ac_compile) 2>&5 |
| 7376 | ac_status=$? |
| 7377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7378 | (exit $ac_status); } && |
| 7379 | { ac_try='test -s conftest.$ac_objext' |
| 7380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7381 | (eval $ac_try) 2>&5 |
| 7382 | ac_status=$? |
| 7383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7384 | (exit $ac_status); }; }; then |
| 7385 | ac_lo=$ac_mid; break |
| 7386 | else |
| 7387 | echo "$as_me: failed program was:" >&5 |
| 7388 | cat conftest.$ac_ext >&5 |
| 7389 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7390 | if test $ac_mid -le $ac_hi; then |
| 7391 | ac_lo= ac_hi= |
| 7392 | break |
| 7393 | fi |
| 7394 | ac_mid=`expr 2 '*' $ac_mid` |
| 7395 | fi |
| 7396 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7397 | done |
| 7398 | else |
| 7399 | echo "$as_me: failed program was:" >&5 |
| 7400 | cat conftest.$ac_ext >&5 |
| 7401 | ac_lo= ac_hi= |
| 7402 | fi |
| 7403 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7404 | fi |
| 7405 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7406 | # Binary search between lo and hi bounds. |
| 7407 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7408 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7409 | cat >conftest.$ac_ext <<_ACEOF |
| 7410 | #line $LINENO "configure" |
| 7411 | #include "confdefs.h" |
| 7412 | $ac_includes_default |
| 7413 | #ifdef F77_DUMMY_MAIN |
| 7414 | # ifdef __cplusplus |
| 7415 | extern "C" |
| 7416 | # endif |
| 7417 | int F77_DUMMY_MAIN() { return 1; } |
| 7418 | #endif |
| 7419 | int |
| 7420 | main () |
| 7421 | { |
| 7422 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 7423 | test_array [0] = 0 |
| 7424 | |
| 7425 | ; |
| 7426 | return 0; |
| 7427 | } |
| 7428 | _ACEOF |
| 7429 | rm -f conftest.$ac_objext |
| 7430 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7431 | (eval $ac_compile) 2>&5 |
| 7432 | ac_status=$? |
| 7433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7434 | (exit $ac_status); } && |
| 7435 | { ac_try='test -s conftest.$ac_objext' |
| 7436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7437 | (eval $ac_try) 2>&5 |
| 7438 | ac_status=$? |
| 7439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7440 | (exit $ac_status); }; }; then |
| 7441 | ac_hi=$ac_mid |
| 7442 | else |
| 7443 | echo "$as_me: failed program was:" >&5 |
| 7444 | cat conftest.$ac_ext >&5 |
| 7445 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7446 | fi |
| 7447 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7448 | done |
| 7449 | case $ac_lo in |
| 7450 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
| 7451 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5 |
| 7452 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;} |
| 7453 | { (exit 1); exit 1; }; } ;; |
| 7454 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7455 | else |
| 7456 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7457 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7458 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7459 | { (exit 1); exit 1; }; } |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7460 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7461 | cat >conftest.$ac_ext <<_ACEOF |
| 7462 | #line $LINENO "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7463 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7464 | $ac_includes_default |
| 7465 | long longval () { return (long) (sizeof (fpos_t)); } |
| 7466 | unsigned long ulongval () { return (long) (sizeof (fpos_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7467 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7468 | #include <stdlib.h> |
| 7469 | #ifdef F77_DUMMY_MAIN |
| 7470 | # ifdef __cplusplus |
| 7471 | extern "C" |
| 7472 | # endif |
| 7473 | int F77_DUMMY_MAIN() { return 1; } |
| 7474 | #endif |
| 7475 | int |
| 7476 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7477 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7478 | |
| 7479 | FILE *f = fopen ("conftest.val", "w"); |
| 7480 | if (! f) |
| 7481 | exit (1); |
| 7482 | if (((long) (sizeof (fpos_t))) < 0) |
| 7483 | { |
| 7484 | long i = longval (); |
| 7485 | if (i != ((long) (sizeof (fpos_t)))) |
| 7486 | exit (1); |
| 7487 | fprintf (f, "%ld\n", i); |
| 7488 | } |
| 7489 | else |
| 7490 | { |
| 7491 | unsigned long i = ulongval (); |
| 7492 | if (i != ((long) (sizeof (fpos_t)))) |
| 7493 | exit (1); |
| 7494 | fprintf (f, "%lu\n", i); |
| 7495 | } |
| 7496 | exit (ferror (f) || fclose (f) != 0); |
| 7497 | |
| 7498 | ; |
| 7499 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7500 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7501 | _ACEOF |
| 7502 | rm -f conftest$ac_exeext |
| 7503 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7504 | (eval $ac_link) 2>&5 |
| 7505 | ac_status=$? |
| 7506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7507 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7509 | (eval $ac_try) 2>&5 |
| 7510 | ac_status=$? |
| 7511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7512 | (exit $ac_status); }; }; then |
| 7513 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7514 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7515 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7516 | echo "$as_me: failed program was:" >&5 |
| 7517 | cat conftest.$ac_ext >&5 |
| 7518 | ( exit $ac_status ) |
| 7519 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5 |
| 7520 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;} |
| 7521 | { (exit 1); exit 1; }; } |
| 7522 | fi |
| 7523 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7524 | fi |
| 7525 | fi |
| 7526 | rm -f conftest.val |
| 7527 | else |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7528 | ac_cv_sizeof_fpos_t=0 |
| 7529 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7530 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7531 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 7532 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6 |
| 7533 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7534 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7535 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7536 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7537 | |
| 7538 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7539 | echo "$as_me:$LINENO: checking for long long support" >&5 |
| 7540 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7541 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7542 | cat >conftest.$ac_ext <<_ACEOF |
| 7543 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7544 | #include "confdefs.h" |
| 7545 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7546 | #ifdef F77_DUMMY_MAIN |
| 7547 | # ifdef __cplusplus |
| 7548 | extern "C" |
| 7549 | # endif |
| 7550 | int F77_DUMMY_MAIN() { return 1; } |
| 7551 | #endif |
| 7552 | int |
| 7553 | main () |
| 7554 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7555 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7556 | ; |
| 7557 | return 0; |
| 7558 | } |
| 7559 | _ACEOF |
| 7560 | rm -f conftest.$ac_objext |
| 7561 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7562 | (eval $ac_compile) 2>&5 |
| 7563 | ac_status=$? |
| 7564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7565 | (exit $ac_status); } && |
| 7566 | { ac_try='test -s conftest.$ac_objext' |
| 7567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7568 | (eval $ac_try) 2>&5 |
| 7569 | ac_status=$? |
| 7570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7571 | (exit $ac_status); }; }; then |
| 7572 | |
| 7573 | |
| 7574 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7575 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7576 | _ACEOF |
| 7577 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 7578 | have_long_long=yes |
| 7579 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7580 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7581 | echo "$as_me: failed program was:" >&5 |
| 7582 | cat conftest.$ac_ext >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7583 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7584 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7585 | echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 7586 | echo "${ECHO_T}$have_long_long" >&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 7587 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7588 | echo "$as_me:$LINENO: checking for long long" >&5 |
| 7589 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 7590 | if test "${ac_cv_type_long_long+set}" = set; then |
| 7591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7592 | else |
| 7593 | cat >conftest.$ac_ext <<_ACEOF |
| 7594 | #line $LINENO "configure" |
| 7595 | #include "confdefs.h" |
| 7596 | $ac_includes_default |
| 7597 | #ifdef F77_DUMMY_MAIN |
| 7598 | # ifdef __cplusplus |
| 7599 | extern "C" |
| 7600 | # endif |
| 7601 | int F77_DUMMY_MAIN() { return 1; } |
| 7602 | #endif |
| 7603 | int |
| 7604 | main () |
| 7605 | { |
| 7606 | if ((long long *) 0) |
| 7607 | return 0; |
| 7608 | if (sizeof (long long)) |
| 7609 | return 0; |
| 7610 | ; |
| 7611 | return 0; |
| 7612 | } |
| 7613 | _ACEOF |
| 7614 | rm -f conftest.$ac_objext |
| 7615 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7616 | (eval $ac_compile) 2>&5 |
| 7617 | ac_status=$? |
| 7618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7619 | (exit $ac_status); } && |
| 7620 | { ac_try='test -s conftest.$ac_objext' |
| 7621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7622 | (eval $ac_try) 2>&5 |
| 7623 | ac_status=$? |
| 7624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7625 | (exit $ac_status); }; }; then |
| 7626 | ac_cv_type_long_long=yes |
| 7627 | else |
| 7628 | echo "$as_me: failed program was:" >&5 |
| 7629 | cat conftest.$ac_ext >&5 |
| 7630 | ac_cv_type_long_long=no |
| 7631 | fi |
| 7632 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7633 | fi |
| 7634 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 7635 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 7636 | |
| 7637 | echo "$as_me:$LINENO: checking size of long long" >&5 |
| 7638 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 7639 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 7640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7641 | else |
| 7642 | if test "$ac_cv_type_long_long" = yes; then |
| 7643 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7644 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7645 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7646 | # This bug is HP SR number 8606223364. |
| 7647 | if test "$cross_compiling" = yes; then |
| 7648 | # Depending upon the size, compute the lo and hi bounds. |
| 7649 | cat >conftest.$ac_ext <<_ACEOF |
| 7650 | #line $LINENO "configure" |
| 7651 | #include "confdefs.h" |
| 7652 | $ac_includes_default |
| 7653 | #ifdef F77_DUMMY_MAIN |
| 7654 | # ifdef __cplusplus |
| 7655 | extern "C" |
| 7656 | # endif |
| 7657 | int F77_DUMMY_MAIN() { return 1; } |
| 7658 | #endif |
| 7659 | int |
| 7660 | main () |
| 7661 | { |
| 7662 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
| 7663 | test_array [0] = 0 |
| 7664 | |
| 7665 | ; |
| 7666 | return 0; |
| 7667 | } |
| 7668 | _ACEOF |
| 7669 | rm -f conftest.$ac_objext |
| 7670 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7671 | (eval $ac_compile) 2>&5 |
| 7672 | ac_status=$? |
| 7673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7674 | (exit $ac_status); } && |
| 7675 | { ac_try='test -s conftest.$ac_objext' |
| 7676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7677 | (eval $ac_try) 2>&5 |
| 7678 | ac_status=$? |
| 7679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7680 | (exit $ac_status); }; }; then |
| 7681 | ac_lo=0 ac_mid=0 |
| 7682 | while :; do |
| 7683 | cat >conftest.$ac_ext <<_ACEOF |
| 7684 | #line $LINENO "configure" |
| 7685 | #include "confdefs.h" |
| 7686 | $ac_includes_default |
| 7687 | #ifdef F77_DUMMY_MAIN |
| 7688 | # ifdef __cplusplus |
| 7689 | extern "C" |
| 7690 | # endif |
| 7691 | int F77_DUMMY_MAIN() { return 1; } |
| 7692 | #endif |
| 7693 | int |
| 7694 | main () |
| 7695 | { |
| 7696 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 7697 | test_array [0] = 0 |
| 7698 | |
| 7699 | ; |
| 7700 | return 0; |
| 7701 | } |
| 7702 | _ACEOF |
| 7703 | rm -f conftest.$ac_objext |
| 7704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7705 | (eval $ac_compile) 2>&5 |
| 7706 | ac_status=$? |
| 7707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7708 | (exit $ac_status); } && |
| 7709 | { ac_try='test -s conftest.$ac_objext' |
| 7710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7711 | (eval $ac_try) 2>&5 |
| 7712 | ac_status=$? |
| 7713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7714 | (exit $ac_status); }; }; then |
| 7715 | ac_hi=$ac_mid; break |
| 7716 | else |
| 7717 | echo "$as_me: failed program was:" >&5 |
| 7718 | cat conftest.$ac_ext >&5 |
| 7719 | ac_lo=`expr $ac_mid + 1` |
| 7720 | if test $ac_lo -le $ac_mid; then |
| 7721 | ac_lo= ac_hi= |
| 7722 | break |
| 7723 | fi |
| 7724 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7725 | fi |
| 7726 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7727 | done |
| 7728 | else |
| 7729 | echo "$as_me: failed program was:" >&5 |
| 7730 | cat conftest.$ac_ext >&5 |
| 7731 | cat >conftest.$ac_ext <<_ACEOF |
| 7732 | #line $LINENO "configure" |
| 7733 | #include "confdefs.h" |
| 7734 | $ac_includes_default |
| 7735 | #ifdef F77_DUMMY_MAIN |
| 7736 | # ifdef __cplusplus |
| 7737 | extern "C" |
| 7738 | # endif |
| 7739 | int F77_DUMMY_MAIN() { return 1; } |
| 7740 | #endif |
| 7741 | int |
| 7742 | main () |
| 7743 | { |
| 7744 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| 7745 | test_array [0] = 0 |
| 7746 | |
| 7747 | ; |
| 7748 | return 0; |
| 7749 | } |
| 7750 | _ACEOF |
| 7751 | rm -f conftest.$ac_objext |
| 7752 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7753 | (eval $ac_compile) 2>&5 |
| 7754 | ac_status=$? |
| 7755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7756 | (exit $ac_status); } && |
| 7757 | { ac_try='test -s conftest.$ac_objext' |
| 7758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7759 | (eval $ac_try) 2>&5 |
| 7760 | ac_status=$? |
| 7761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7762 | (exit $ac_status); }; }; then |
| 7763 | ac_hi=-1 ac_mid=-1 |
| 7764 | while :; do |
| 7765 | cat >conftest.$ac_ext <<_ACEOF |
| 7766 | #line $LINENO "configure" |
| 7767 | #include "confdefs.h" |
| 7768 | $ac_includes_default |
| 7769 | #ifdef F77_DUMMY_MAIN |
| 7770 | # ifdef __cplusplus |
| 7771 | extern "C" |
| 7772 | # endif |
| 7773 | int F77_DUMMY_MAIN() { return 1; } |
| 7774 | #endif |
| 7775 | int |
| 7776 | main () |
| 7777 | { |
| 7778 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| 7779 | test_array [0] = 0 |
| 7780 | |
| 7781 | ; |
| 7782 | return 0; |
| 7783 | } |
| 7784 | _ACEOF |
| 7785 | rm -f conftest.$ac_objext |
| 7786 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7787 | (eval $ac_compile) 2>&5 |
| 7788 | ac_status=$? |
| 7789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7790 | (exit $ac_status); } && |
| 7791 | { ac_try='test -s conftest.$ac_objext' |
| 7792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7793 | (eval $ac_try) 2>&5 |
| 7794 | ac_status=$? |
| 7795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7796 | (exit $ac_status); }; }; then |
| 7797 | ac_lo=$ac_mid; break |
| 7798 | else |
| 7799 | echo "$as_me: failed program was:" >&5 |
| 7800 | cat conftest.$ac_ext >&5 |
| 7801 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7802 | if test $ac_mid -le $ac_hi; then |
| 7803 | ac_lo= ac_hi= |
| 7804 | break |
| 7805 | fi |
| 7806 | ac_mid=`expr 2 '*' $ac_mid` |
| 7807 | fi |
| 7808 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7809 | done |
| 7810 | else |
| 7811 | echo "$as_me: failed program was:" >&5 |
| 7812 | cat conftest.$ac_ext >&5 |
| 7813 | ac_lo= ac_hi= |
| 7814 | fi |
| 7815 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7816 | fi |
| 7817 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7818 | # Binary search between lo and hi bounds. |
| 7819 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7820 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7821 | cat >conftest.$ac_ext <<_ACEOF |
| 7822 | #line $LINENO "configure" |
| 7823 | #include "confdefs.h" |
| 7824 | $ac_includes_default |
| 7825 | #ifdef F77_DUMMY_MAIN |
| 7826 | # ifdef __cplusplus |
| 7827 | extern "C" |
| 7828 | # endif |
| 7829 | int F77_DUMMY_MAIN() { return 1; } |
| 7830 | #endif |
| 7831 | int |
| 7832 | main () |
| 7833 | { |
| 7834 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 7835 | test_array [0] = 0 |
| 7836 | |
| 7837 | ; |
| 7838 | return 0; |
| 7839 | } |
| 7840 | _ACEOF |
| 7841 | rm -f conftest.$ac_objext |
| 7842 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7843 | (eval $ac_compile) 2>&5 |
| 7844 | ac_status=$? |
| 7845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7846 | (exit $ac_status); } && |
| 7847 | { ac_try='test -s conftest.$ac_objext' |
| 7848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7849 | (eval $ac_try) 2>&5 |
| 7850 | ac_status=$? |
| 7851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7852 | (exit $ac_status); }; }; then |
| 7853 | ac_hi=$ac_mid |
| 7854 | else |
| 7855 | echo "$as_me: failed program was:" >&5 |
| 7856 | cat conftest.$ac_ext >&5 |
| 7857 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7858 | fi |
| 7859 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7860 | done |
| 7861 | case $ac_lo in |
| 7862 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
| 7863 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 7864 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 7865 | { (exit 1); exit 1; }; } ;; |
| 7866 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7867 | else |
| 7868 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7869 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7870 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7871 | { (exit 1); exit 1; }; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7872 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7873 | cat >conftest.$ac_ext <<_ACEOF |
| 7874 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7875 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7876 | $ac_includes_default |
| 7877 | long longval () { return (long) (sizeof (long long)); } |
| 7878 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7879 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7880 | #include <stdlib.h> |
| 7881 | #ifdef F77_DUMMY_MAIN |
| 7882 | # ifdef __cplusplus |
| 7883 | extern "C" |
| 7884 | # endif |
| 7885 | int F77_DUMMY_MAIN() { return 1; } |
| 7886 | #endif |
| 7887 | int |
| 7888 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7889 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7890 | |
| 7891 | FILE *f = fopen ("conftest.val", "w"); |
| 7892 | if (! f) |
| 7893 | exit (1); |
| 7894 | if (((long) (sizeof (long long))) < 0) |
| 7895 | { |
| 7896 | long i = longval (); |
| 7897 | if (i != ((long) (sizeof (long long)))) |
| 7898 | exit (1); |
| 7899 | fprintf (f, "%ld\n", i); |
| 7900 | } |
| 7901 | else |
| 7902 | { |
| 7903 | unsigned long i = ulongval (); |
| 7904 | if (i != ((long) (sizeof (long long)))) |
| 7905 | exit (1); |
| 7906 | fprintf (f, "%lu\n", i); |
| 7907 | } |
| 7908 | exit (ferror (f) || fclose (f) != 0); |
| 7909 | |
| 7910 | ; |
| 7911 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7912 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7913 | _ACEOF |
| 7914 | rm -f conftest$ac_exeext |
| 7915 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7916 | (eval $ac_link) 2>&5 |
| 7917 | ac_status=$? |
| 7918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7919 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7921 | (eval $ac_try) 2>&5 |
| 7922 | ac_status=$? |
| 7923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7924 | (exit $ac_status); }; }; then |
| 7925 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7926 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7927 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7928 | echo "$as_me: failed program was:" >&5 |
| 7929 | cat conftest.$ac_ext >&5 |
| 7930 | ( exit $ac_status ) |
| 7931 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 7932 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 7933 | { (exit 1); exit 1; }; } |
| 7934 | fi |
| 7935 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7936 | fi |
| 7937 | fi |
| 7938 | rm -f conftest.val |
| 7939 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7940 | ac_cv_sizeof_long_long=0 |
| 7941 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7942 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7943 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 7944 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
| 7945 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7946 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7947 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7948 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7949 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7950 | fi |
| 7951 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7952 | echo "$as_me:$LINENO: checking for uintptr_t support" >&5 |
| 7953 | echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7954 | have_uintptr_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7955 | cat >conftest.$ac_ext <<_ACEOF |
| 7956 | #line $LINENO "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7957 | #include "confdefs.h" |
| 7958 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7959 | #ifdef F77_DUMMY_MAIN |
| 7960 | # ifdef __cplusplus |
| 7961 | extern "C" |
| 7962 | # endif |
| 7963 | int F77_DUMMY_MAIN() { return 1; } |
| 7964 | #endif |
| 7965 | int |
| 7966 | main () |
| 7967 | { |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7968 | uintptr_t x; x = (uintptr_t)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7969 | ; |
| 7970 | return 0; |
| 7971 | } |
| 7972 | _ACEOF |
| 7973 | rm -f conftest.$ac_objext |
| 7974 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7975 | (eval $ac_compile) 2>&5 |
| 7976 | ac_status=$? |
| 7977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7978 | (exit $ac_status); } && |
| 7979 | { ac_try='test -s conftest.$ac_objext' |
| 7980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7981 | (eval $ac_try) 2>&5 |
| 7982 | ac_status=$? |
| 7983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7984 | (exit $ac_status); }; }; then |
| 7985 | |
| 7986 | |
| 7987 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7988 | #define HAVE_UINTPTR_T 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7989 | _ACEOF |
| 7990 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 7991 | have_uintptr_t=yes |
| 7992 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7993 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7994 | echo "$as_me: failed program was:" >&5 |
| 7995 | cat conftest.$ac_ext >&5 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7996 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7997 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7998 | echo "$as_me:$LINENO: result: $have_uintptr_t" >&5 |
| 7999 | echo "${ECHO_T}$have_uintptr_t" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8000 | if test "$have_uintptr_t" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8001 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 8002 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 8003 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 8004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8005 | else |
| 8006 | cat >conftest.$ac_ext <<_ACEOF |
| 8007 | #line $LINENO "configure" |
| 8008 | #include "confdefs.h" |
| 8009 | $ac_includes_default |
| 8010 | #ifdef F77_DUMMY_MAIN |
| 8011 | # ifdef __cplusplus |
| 8012 | extern "C" |
| 8013 | # endif |
| 8014 | int F77_DUMMY_MAIN() { return 1; } |
| 8015 | #endif |
| 8016 | int |
| 8017 | main () |
| 8018 | { |
| 8019 | if ((uintptr_t *) 0) |
| 8020 | return 0; |
| 8021 | if (sizeof (uintptr_t)) |
| 8022 | return 0; |
| 8023 | ; |
| 8024 | return 0; |
| 8025 | } |
| 8026 | _ACEOF |
| 8027 | rm -f conftest.$ac_objext |
| 8028 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8029 | (eval $ac_compile) 2>&5 |
| 8030 | ac_status=$? |
| 8031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8032 | (exit $ac_status); } && |
| 8033 | { ac_try='test -s conftest.$ac_objext' |
| 8034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8035 | (eval $ac_try) 2>&5 |
| 8036 | ac_status=$? |
| 8037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8038 | (exit $ac_status); }; }; then |
| 8039 | ac_cv_type_uintptr_t=yes |
| 8040 | else |
| 8041 | echo "$as_me: failed program was:" >&5 |
| 8042 | cat conftest.$ac_ext >&5 |
| 8043 | ac_cv_type_uintptr_t=no |
| 8044 | fi |
| 8045 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8046 | fi |
| 8047 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 8048 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 8049 | |
| 8050 | echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 8051 | echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6 |
| 8052 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| 8053 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8054 | else |
| 8055 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 8056 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8057 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8058 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8059 | # This bug is HP SR number 8606223364. |
| 8060 | if test "$cross_compiling" = yes; then |
| 8061 | # Depending upon the size, compute the lo and hi bounds. |
| 8062 | cat >conftest.$ac_ext <<_ACEOF |
| 8063 | #line $LINENO "configure" |
| 8064 | #include "confdefs.h" |
| 8065 | $ac_includes_default |
| 8066 | #ifdef F77_DUMMY_MAIN |
| 8067 | # ifdef __cplusplus |
| 8068 | extern "C" |
| 8069 | # endif |
| 8070 | int F77_DUMMY_MAIN() { return 1; } |
| 8071 | #endif |
| 8072 | int |
| 8073 | main () |
| 8074 | { |
| 8075 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)]; |
| 8076 | test_array [0] = 0 |
| 8077 | |
| 8078 | ; |
| 8079 | return 0; |
| 8080 | } |
| 8081 | _ACEOF |
| 8082 | rm -f conftest.$ac_objext |
| 8083 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8084 | (eval $ac_compile) 2>&5 |
| 8085 | ac_status=$? |
| 8086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8087 | (exit $ac_status); } && |
| 8088 | { ac_try='test -s conftest.$ac_objext' |
| 8089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8090 | (eval $ac_try) 2>&5 |
| 8091 | ac_status=$? |
| 8092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8093 | (exit $ac_status); }; }; then |
| 8094 | ac_lo=0 ac_mid=0 |
| 8095 | while :; do |
| 8096 | cat >conftest.$ac_ext <<_ACEOF |
| 8097 | #line $LINENO "configure" |
| 8098 | #include "confdefs.h" |
| 8099 | $ac_includes_default |
| 8100 | #ifdef F77_DUMMY_MAIN |
| 8101 | # ifdef __cplusplus |
| 8102 | extern "C" |
| 8103 | # endif |
| 8104 | int F77_DUMMY_MAIN() { return 1; } |
| 8105 | #endif |
| 8106 | int |
| 8107 | main () |
| 8108 | { |
| 8109 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 8110 | test_array [0] = 0 |
| 8111 | |
| 8112 | ; |
| 8113 | return 0; |
| 8114 | } |
| 8115 | _ACEOF |
| 8116 | rm -f conftest.$ac_objext |
| 8117 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8118 | (eval $ac_compile) 2>&5 |
| 8119 | ac_status=$? |
| 8120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8121 | (exit $ac_status); } && |
| 8122 | { ac_try='test -s conftest.$ac_objext' |
| 8123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8124 | (eval $ac_try) 2>&5 |
| 8125 | ac_status=$? |
| 8126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8127 | (exit $ac_status); }; }; then |
| 8128 | ac_hi=$ac_mid; break |
| 8129 | else |
| 8130 | echo "$as_me: failed program was:" >&5 |
| 8131 | cat conftest.$ac_ext >&5 |
| 8132 | ac_lo=`expr $ac_mid + 1` |
| 8133 | if test $ac_lo -le $ac_mid; then |
| 8134 | ac_lo= ac_hi= |
| 8135 | break |
| 8136 | fi |
| 8137 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8138 | fi |
| 8139 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8140 | done |
| 8141 | else |
| 8142 | echo "$as_me: failed program was:" >&5 |
| 8143 | cat conftest.$ac_ext >&5 |
| 8144 | cat >conftest.$ac_ext <<_ACEOF |
| 8145 | #line $LINENO "configure" |
| 8146 | #include "confdefs.h" |
| 8147 | $ac_includes_default |
| 8148 | #ifdef F77_DUMMY_MAIN |
| 8149 | # ifdef __cplusplus |
| 8150 | extern "C" |
| 8151 | # endif |
| 8152 | int F77_DUMMY_MAIN() { return 1; } |
| 8153 | #endif |
| 8154 | int |
| 8155 | main () |
| 8156 | { |
| 8157 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)]; |
| 8158 | test_array [0] = 0 |
| 8159 | |
| 8160 | ; |
| 8161 | return 0; |
| 8162 | } |
| 8163 | _ACEOF |
| 8164 | rm -f conftest.$ac_objext |
| 8165 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8166 | (eval $ac_compile) 2>&5 |
| 8167 | ac_status=$? |
| 8168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8169 | (exit $ac_status); } && |
| 8170 | { ac_try='test -s conftest.$ac_objext' |
| 8171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8172 | (eval $ac_try) 2>&5 |
| 8173 | ac_status=$? |
| 8174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8175 | (exit $ac_status); }; }; then |
| 8176 | ac_hi=-1 ac_mid=-1 |
| 8177 | while :; do |
| 8178 | cat >conftest.$ac_ext <<_ACEOF |
| 8179 | #line $LINENO "configure" |
| 8180 | #include "confdefs.h" |
| 8181 | $ac_includes_default |
| 8182 | #ifdef F77_DUMMY_MAIN |
| 8183 | # ifdef __cplusplus |
| 8184 | extern "C" |
| 8185 | # endif |
| 8186 | int F77_DUMMY_MAIN() { return 1; } |
| 8187 | #endif |
| 8188 | int |
| 8189 | main () |
| 8190 | { |
| 8191 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)]; |
| 8192 | test_array [0] = 0 |
| 8193 | |
| 8194 | ; |
| 8195 | return 0; |
| 8196 | } |
| 8197 | _ACEOF |
| 8198 | rm -f conftest.$ac_objext |
| 8199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8200 | (eval $ac_compile) 2>&5 |
| 8201 | ac_status=$? |
| 8202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8203 | (exit $ac_status); } && |
| 8204 | { ac_try='test -s conftest.$ac_objext' |
| 8205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8206 | (eval $ac_try) 2>&5 |
| 8207 | ac_status=$? |
| 8208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8209 | (exit $ac_status); }; }; then |
| 8210 | ac_lo=$ac_mid; break |
| 8211 | else |
| 8212 | echo "$as_me: failed program was:" >&5 |
| 8213 | cat conftest.$ac_ext >&5 |
| 8214 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8215 | if test $ac_mid -le $ac_hi; then |
| 8216 | ac_lo= ac_hi= |
| 8217 | break |
| 8218 | fi |
| 8219 | ac_mid=`expr 2 '*' $ac_mid` |
| 8220 | fi |
| 8221 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8222 | done |
| 8223 | else |
| 8224 | echo "$as_me: failed program was:" >&5 |
| 8225 | cat conftest.$ac_ext >&5 |
| 8226 | ac_lo= ac_hi= |
| 8227 | fi |
| 8228 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8229 | fi |
| 8230 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8231 | # Binary search between lo and hi bounds. |
| 8232 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8233 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8234 | cat >conftest.$ac_ext <<_ACEOF |
| 8235 | #line $LINENO "configure" |
| 8236 | #include "confdefs.h" |
| 8237 | $ac_includes_default |
| 8238 | #ifdef F77_DUMMY_MAIN |
| 8239 | # ifdef __cplusplus |
| 8240 | extern "C" |
| 8241 | # endif |
| 8242 | int F77_DUMMY_MAIN() { return 1; } |
| 8243 | #endif |
| 8244 | int |
| 8245 | main () |
| 8246 | { |
| 8247 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 8248 | test_array [0] = 0 |
| 8249 | |
| 8250 | ; |
| 8251 | return 0; |
| 8252 | } |
| 8253 | _ACEOF |
| 8254 | rm -f conftest.$ac_objext |
| 8255 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8256 | (eval $ac_compile) 2>&5 |
| 8257 | ac_status=$? |
| 8258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8259 | (exit $ac_status); } && |
| 8260 | { ac_try='test -s conftest.$ac_objext' |
| 8261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8262 | (eval $ac_try) 2>&5 |
| 8263 | ac_status=$? |
| 8264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8265 | (exit $ac_status); }; }; then |
| 8266 | ac_hi=$ac_mid |
| 8267 | else |
| 8268 | echo "$as_me: failed program was:" >&5 |
| 8269 | cat conftest.$ac_ext >&5 |
| 8270 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8271 | fi |
| 8272 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8273 | done |
| 8274 | case $ac_lo in |
| 8275 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
| 8276 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5 |
| 8277 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;} |
| 8278 | { (exit 1); exit 1; }; } ;; |
| 8279 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8280 | else |
| 8281 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8282 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 8283 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 8284 | { (exit 1); exit 1; }; } |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8285 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8286 | cat >conftest.$ac_ext <<_ACEOF |
| 8287 | #line $LINENO "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8288 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8289 | $ac_includes_default |
| 8290 | long longval () { return (long) (sizeof (uintptr_t)); } |
| 8291 | unsigned long ulongval () { return (long) (sizeof (uintptr_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8292 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8293 | #include <stdlib.h> |
| 8294 | #ifdef F77_DUMMY_MAIN |
| 8295 | # ifdef __cplusplus |
| 8296 | extern "C" |
| 8297 | # endif |
| 8298 | int F77_DUMMY_MAIN() { return 1; } |
| 8299 | #endif |
| 8300 | int |
| 8301 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8302 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8303 | |
| 8304 | FILE *f = fopen ("conftest.val", "w"); |
| 8305 | if (! f) |
| 8306 | exit (1); |
| 8307 | if (((long) (sizeof (uintptr_t))) < 0) |
| 8308 | { |
| 8309 | long i = longval (); |
| 8310 | if (i != ((long) (sizeof (uintptr_t)))) |
| 8311 | exit (1); |
| 8312 | fprintf (f, "%ld\n", i); |
| 8313 | } |
| 8314 | else |
| 8315 | { |
| 8316 | unsigned long i = ulongval (); |
| 8317 | if (i != ((long) (sizeof (uintptr_t)))) |
| 8318 | exit (1); |
| 8319 | fprintf (f, "%lu\n", i); |
| 8320 | } |
| 8321 | exit (ferror (f) || fclose (f) != 0); |
| 8322 | |
| 8323 | ; |
| 8324 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8325 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8326 | _ACEOF |
| 8327 | rm -f conftest$ac_exeext |
| 8328 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8329 | (eval $ac_link) 2>&5 |
| 8330 | ac_status=$? |
| 8331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8332 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8334 | (eval $ac_try) 2>&5 |
| 8335 | ac_status=$? |
| 8336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8337 | (exit $ac_status); }; }; then |
| 8338 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8339 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8340 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8341 | echo "$as_me: failed program was:" >&5 |
| 8342 | cat conftest.$ac_ext >&5 |
| 8343 | ( exit $ac_status ) |
| 8344 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5 |
| 8345 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;} |
| 8346 | { (exit 1); exit 1; }; } |
| 8347 | fi |
| 8348 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8349 | fi |
| 8350 | fi |
| 8351 | rm -f conftest.val |
| 8352 | else |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8353 | ac_cv_sizeof_uintptr_t=0 |
| 8354 | fi |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8355 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8356 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 8357 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6 |
| 8358 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8359 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8360 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8361 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8362 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8363 | fi |
| 8364 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8365 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8366 | echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 8367 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 |
| 8368 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 8369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8370 | else |
| 8371 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 8372 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8373 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8374 | cat >conftest.$ac_ext <<_ACEOF |
| 8375 | #line $LINENO "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8376 | #include "confdefs.h" |
| 8377 | #include <stdio.h> |
| 8378 | #include <sys/types.h> |
| 8379 | main() |
| 8380 | { |
| 8381 | FILE *f=fopen("conftestval", "w"); |
| 8382 | if (!f) exit(1); |
| 8383 | fprintf(f, "%d\n", sizeof(off_t)); |
| 8384 | exit(0); |
| 8385 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8386 | _ACEOF |
| 8387 | rm -f conftest$ac_exeext |
| 8388 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8389 | (eval $ac_link) 2>&5 |
| 8390 | ac_status=$? |
| 8391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8392 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8394 | (eval $ac_try) 2>&5 |
| 8395 | ac_status=$? |
| 8396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8397 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8398 | ac_cv_sizeof_off_t=`cat conftestval` |
| 8399 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8400 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8401 | echo "$as_me: failed program was:" >&5 |
| 8402 | cat conftest.$ac_ext >&5 |
| 8403 | ( exit $ac_status ) |
| 8404 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8405 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8406 | 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] | 8407 | fi |
| 8408 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8409 | fi |
| 8410 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8411 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 8412 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 |
| 8413 | |
| 8414 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8415 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8416 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8417 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8418 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8419 | echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 8420 | 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] | 8421 | if test "$have_long_long" = yes -a \ |
| 8422 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 8423 | "$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] | 8424 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8425 | cat >>confdefs.h <<\_ACEOF |
| 8426 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 8427 | _ACEOF |
| 8428 | |
| 8429 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8430 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8431 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8432 | echo "$as_me:$LINENO: result: no" >&5 |
| 8433 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8434 | fi |
| 8435 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8436 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8437 | echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 8438 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6 |
| 8439 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 8440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8441 | else |
| 8442 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 8443 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8444 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8445 | cat >conftest.$ac_ext <<_ACEOF |
| 8446 | #line $LINENO "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8447 | #include "confdefs.h" |
| 8448 | #include <stdio.h> |
| 8449 | #include <time.h> |
| 8450 | main() |
| 8451 | { |
| 8452 | FILE *f=fopen("conftestval", "w"); |
| 8453 | if (!f) exit(1); |
| 8454 | fprintf(f, "%d\n", sizeof(time_t)); |
| 8455 | exit(0); |
| 8456 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8457 | _ACEOF |
| 8458 | rm -f conftest$ac_exeext |
| 8459 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8460 | (eval $ac_link) 2>&5 |
| 8461 | ac_status=$? |
| 8462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8463 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8465 | (eval $ac_try) 2>&5 |
| 8466 | ac_status=$? |
| 8467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8468 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8469 | ac_cv_sizeof_time_t=`cat conftestval` |
| 8470 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8471 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8472 | echo "$as_me: failed program was:" >&5 |
| 8473 | cat conftest.$ac_ext >&5 |
| 8474 | ( exit $ac_status ) |
| 8475 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8476 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8477 | 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] | 8478 | fi |
| 8479 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8480 | fi |
| 8481 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8482 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 8483 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6 |
| 8484 | |
| 8485 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8486 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8487 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8488 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8489 | |
| 8490 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8491 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8492 | ac_save_cc="$CC" |
| 8493 | if test "$ac_cv_kpthread" = "yes" |
| 8494 | then CC="$CC -Kpthread" |
| 8495 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8496 | echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 8497 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8498 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8499 | cat >conftest.$ac_ext <<_ACEOF |
| 8500 | #line $LINENO "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8501 | #include "confdefs.h" |
| 8502 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8503 | #ifdef F77_DUMMY_MAIN |
| 8504 | # ifdef __cplusplus |
| 8505 | extern "C" |
| 8506 | # endif |
| 8507 | int F77_DUMMY_MAIN() { return 1; } |
| 8508 | #endif |
| 8509 | int |
| 8510 | main () |
| 8511 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 8512 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8513 | ; |
| 8514 | return 0; |
| 8515 | } |
| 8516 | _ACEOF |
| 8517 | rm -f conftest.$ac_objext |
| 8518 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8519 | (eval $ac_compile) 2>&5 |
| 8520 | ac_status=$? |
| 8521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8522 | (exit $ac_status); } && |
| 8523 | { ac_try='test -s conftest.$ac_objext' |
| 8524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8525 | (eval $ac_try) 2>&5 |
| 8526 | ac_status=$? |
| 8527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8528 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8529 | have_pthread_t=yes |
| 8530 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8531 | echo "$as_me: failed program was:" >&5 |
| 8532 | cat conftest.$ac_ext >&5 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8533 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8534 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8535 | echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 8536 | echo "${ECHO_T}$have_pthread_t" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8537 | if test "$have_pthread_t" = yes ; then |
| 8538 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8539 | echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 8540 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6 |
| 8541 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 8542 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8543 | else |
| 8544 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 8545 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8546 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8547 | cat >conftest.$ac_ext <<_ACEOF |
| 8548 | #line $LINENO "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8549 | #include "confdefs.h" |
| 8550 | #include <stdio.h> |
| 8551 | #include <pthread.h> |
| 8552 | main() |
| 8553 | { |
| 8554 | FILE *f=fopen("conftestval", "w"); |
| 8555 | if (!f) exit(1); |
| 8556 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 8557 | exit(0); |
| 8558 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8559 | _ACEOF |
| 8560 | rm -f conftest$ac_exeext |
| 8561 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8562 | (eval $ac_link) 2>&5 |
| 8563 | ac_status=$? |
| 8564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8565 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8567 | (eval $ac_try) 2>&5 |
| 8568 | ac_status=$? |
| 8569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8570 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8571 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 8572 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8573 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8574 | echo "$as_me: failed program was:" >&5 |
| 8575 | cat conftest.$ac_ext >&5 |
| 8576 | ( exit $ac_status ) |
| 8577 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8578 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8579 | 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] | 8580 | fi |
| 8581 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8582 | fi |
| 8583 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8584 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 8585 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6 |
| 8586 | |
| 8587 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8588 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8589 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8590 | |
| 8591 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8592 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8593 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8594 | echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 8595 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8596 | # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given. |
| 8597 | if test "${enable_toolbox_glue+set}" = set; then |
| 8598 | enableval="$enable_toolbox_glue" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8599 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8600 | fi; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8601 | |
| 8602 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8603 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8604 | case $ac_sys_system/$ac_sys_release in |
| 8605 | Darwin/*) |
| 8606 | enable_toolbox_glue="yes";; |
| 8607 | *) |
| 8608 | enable_toolbox_glue="no";; |
| 8609 | esac |
| 8610 | fi |
| 8611 | case "$enable_toolbox_glue" in |
| 8612 | yes) |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 8613 | extra_frameworks="-framework CoreServices -framework Foundation" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8614 | extra_machdep_objs="Python/mactoolboxglue.o" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 8615 | extra_undefs="-u __dummy -u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8616 | |
| 8617 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8618 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8619 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8620 | |
| 8621 | ;; |
| 8622 | *) |
| 8623 | extra_frameworks="" |
| 8624 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 8625 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8626 | ;; |
| 8627 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8628 | echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 8629 | echo "${ECHO_T}$enable_toolbox_glue" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8630 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8631 | |
| 8632 | case $ac_sys_system/$ac_sys_release in |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8633 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8634 | ns_undef_sym='_environ' |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8635 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc -U $ns_undef_sym" |
| 8636 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8637 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' |
| 8638 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 8639 | Darwin/*) |
| 8640 | ns_undef_sym='_environ' |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8641 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc -flat_namespace -U $ns_undef_sym" |
| 8642 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8643 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' |
| 8644 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8645 | esac |
| 8646 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8647 | echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 8648 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8649 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8650 | then |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 8651 | OPT="$OPT -fno-common -dynamic" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8652 | # -U __environ is needed since bundles don't have access |
| 8653 | # 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] | 8654 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8655 | # in the build location. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8656 | |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8657 | case $ac_sys_system/$ac_sys_release in |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8658 | Darwin/1.3*)LDFLAGS="$LDFLAGS -Wl,-F. -Wl,-U,$ns_undef_sym";; |
| 8659 | Darwin/*)LDFLAGS="$LDFLAGS -Wl,-F. -Wl,-flat_namespace,-U,$ns_undef_sym";; |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8660 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8661 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8662 | cat >>confdefs.h <<\_ACEOF |
| 8663 | #define WITH_NEXT_FRAMEWORK 1 |
| 8664 | _ACEOF |
| 8665 | |
| 8666 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8667 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8668 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8669 | echo "$as_me:$LINENO: result: no" >&5 |
| 8670 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8671 | fi |
| 8672 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8673 | echo "$as_me:$LINENO: checking for dyld" >&5 |
| 8674 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8675 | case $ac_sys_system/$ac_sys_release in |
| 8676 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8677 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8678 | cat >>confdefs.h <<\_ACEOF |
| 8679 | #define WITH_DYLD 1 |
| 8680 | _ACEOF |
| 8681 | |
| 8682 | echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 8683 | echo "${ECHO_T}always on for Darwin" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8684 | ;; |
| 8685 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8686 | echo "$as_me:$LINENO: result: no" >&5 |
| 8687 | echo "${ECHO_T}no" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8688 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8689 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8690 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8691 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8692 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8693 | |
| 8694 | |
| 8695 | |
| 8696 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8697 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 8698 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8699 | echo "$as_me:$LINENO: checking SO" >&5 |
| 8700 | echo $ECHO_N "checking SO... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8701 | if test -z "$SO" |
| 8702 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8703 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 8704 | hp*|HP*) SO=.sl;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 8705 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 8706 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8707 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8708 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8709 | echo "$as_me:$LINENO: result: $SO" >&5 |
| 8710 | echo "${ECHO_T}$SO" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8711 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 5b718fc | 2001-09-10 15:34:42 +0000 | [diff] [blame] | 8712 | # -- "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] | 8713 | # (Shared libraries in this instance are shared modules to be loaded into |
| 8714 | # 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] | 8715 | echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 8716 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8717 | if test -z "$LDSHARED" |
| 8718 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8719 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8720 | AIX*) |
| 8721 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 8722 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8723 | ;; |
| 8724 | BeOS*) |
| 8725 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 8726 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8727 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8728 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 8729 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8730 | SunOS/4*) LDSHARED="ld";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8731 | SunOS/5*) |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 8732 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 8733 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | 5b718fc | 2001-09-10 15:34:42 +0000 | [diff] [blame] | 8734 | else LDSHARED="$(CC) -G"; |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 8735 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8736 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8737 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 8738 | DYNIX/ptx*) LDSHARED="ld -G";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8739 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8740 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 8741 | if test "$enable_framework" ; then |
| 8742 | # Link against the framework. All externals should be defined. |
| 8743 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 8744 | else |
| 8745 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8746 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8747 | fi ;; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8748 | Darwin/*) |
| 8749 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 8750 | if test "$enable_framework" ; then |
| 8751 | # Link against the framework. All externals should be defined. |
| 8752 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 8753 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 8754 | # No framework, use the Python app as bundle-loader |
| 8755 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 8756 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/$(PYTHON)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8757 | fi ;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8758 | Linux*|GNU*) LDSHARED="gcc -shared";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 8759 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 8760 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 8761 | OpenBSD*|NetBSD*|FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 8762 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 8763 | then |
| 8764 | LDSHARED="cc -shared ${LDFLAGS}" |
| 8765 | else |
| 8766 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 8767 | fi;; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8768 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8769 | if test "$GCC" = "yes" |
| 8770 | then LDSHARED="$(CC) -shared" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8771 | else LDSHARED="$(CC) -G" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8772 | fi;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 8773 | SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8774 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 8775 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8776 | *) LDSHARED="ld";; |
| 8777 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8778 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8779 | echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 8780 | echo "${ECHO_T}$LDSHARED" >&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8781 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8782 | # 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] | 8783 | # library (module) -- this is only needed for a few systems |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8784 | echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 8785 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8786 | if test -z "$CCSHARED" |
| 8787 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8788 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 8789 | SunOS*) if test "$GCC" = yes; |
| 8790 | then CCSHARED="-fPIC"; |
| 8791 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 8792 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 8793 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 8794 | else CCSHARED="+z"; |
| 8795 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8796 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 8797 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 8798 | FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8799 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8800 | if test "$GCC" = "yes" |
| 8801 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8802 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8803 | fi;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 8804 | SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8805 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8806 | IRIX*/6*) case $CC in |
| 8807 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 8808 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8809 | esac;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 8810 | CYGWIN*) CCSHARED="-DUSE_DL_IMPORT";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8811 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8812 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8813 | echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 8814 | echo "${ECHO_T}$CCSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8815 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8816 | # 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] | 8817 | echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 8818 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8819 | if test -z "$LINKFORSHARED" |
| 8820 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8821 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8822 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8823 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 8824 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 8825 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 8826 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8827 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8828 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8829 | Darwin/*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8830 | # -u __dummy makes the linker aware of the objc runtime |
| 8831 | # in System.framework; otherwise, __objcInit (referenced in |
| 8832 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 8833 | # loading of any modules which reference it in System.framework. |
| 8834 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, which is |
| 8835 | # not used by the core itself but which needs to be in the core so |
| 8836 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 8837 | LINKFORSHARED="$extra_undefs -framework System" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8838 | if test "$enable_framework" |
| 8839 | then |
| 8840 | LINKFORSHARED="$LINKFORSHARED -framework Python" |
| 8841 | fi |
| 8842 | LINKFORSHARED="$LINKFORSHARED $extra_frameworks";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8843 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 8844 | SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 8845 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8846 | FreeBSD*|NetBSD*|OpenBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 8847 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 8848 | then |
| 8849 | LINKFORSHARED="-Wl,--export-dynamic" |
| 8850 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8851 | SunOS/5*) case $CC in |
| 8852 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 8853 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 8854 | then |
| 8855 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8856 | fi;; |
| 8857 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8858 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8859 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8860 | echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 8861 | echo "${ECHO_T}$LINKFORSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8862 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8863 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8864 | echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 8865 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 8866 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 8867 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 8868 | case $ac_sys_system in |
| 8869 | CYGWIN*) |
| 8870 | # Cygwin needs CCSHARED when building extension DLLs |
| 8871 | # but not when building the interpreter DLL. |
| 8872 | CFLAGSFORSHARED='';; |
| 8873 | *) |
| 8874 | CFLAGSFORSHARED='$(CCSHARED)' |
| 8875 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 8876 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8877 | echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 8878 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 8879 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8880 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8881 | |
| 8882 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 8883 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 8884 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 8885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8886 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8887 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8888 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8889 | cat >conftest.$ac_ext <<_ACEOF |
| 8890 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8891 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8892 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 8893 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8894 | #ifdef __cplusplus |
| 8895 | extern "C" |
| 8896 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 8897 | /* 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] | 8898 | builtin and then its argument prototype would still apply. */ |
| 8899 | char dlopen (); |
| 8900 | #ifdef F77_DUMMY_MAIN |
| 8901 | # ifdef __cplusplus |
| 8902 | extern "C" |
| 8903 | # endif |
| 8904 | int F77_DUMMY_MAIN() { return 1; } |
| 8905 | #endif |
| 8906 | int |
| 8907 | main () |
| 8908 | { |
| 8909 | dlopen (); |
| 8910 | ; |
| 8911 | return 0; |
| 8912 | } |
| 8913 | _ACEOF |
| 8914 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8915 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8916 | (eval $ac_link) 2>&5 |
| 8917 | ac_status=$? |
| 8918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8919 | (exit $ac_status); } && |
| 8920 | { ac_try='test -s conftest$ac_exeext' |
| 8921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8922 | (eval $ac_try) 2>&5 |
| 8923 | ac_status=$? |
| 8924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8925 | (exit $ac_status); }; }; then |
| 8926 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8927 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8928 | echo "$as_me: failed program was:" >&5 |
| 8929 | cat conftest.$ac_ext >&5 |
| 8930 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8931 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8932 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8933 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8934 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8935 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 8936 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 8937 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 8938 | cat >>confdefs.h <<_ACEOF |
| 8939 | #define HAVE_LIBDL 1 |
| 8940 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8941 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8942 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 8943 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8944 | fi |
| 8945 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8946 | |
| 8947 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 8948 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 8949 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 8950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8951 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8952 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8953 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8954 | cat >conftest.$ac_ext <<_ACEOF |
| 8955 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8956 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8957 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 8958 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8959 | #ifdef __cplusplus |
| 8960 | extern "C" |
| 8961 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 8962 | /* 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] | 8963 | builtin and then its argument prototype would still apply. */ |
| 8964 | char shl_load (); |
| 8965 | #ifdef F77_DUMMY_MAIN |
| 8966 | # ifdef __cplusplus |
| 8967 | extern "C" |
| 8968 | # endif |
| 8969 | int F77_DUMMY_MAIN() { return 1; } |
| 8970 | #endif |
| 8971 | int |
| 8972 | main () |
| 8973 | { |
| 8974 | shl_load (); |
| 8975 | ; |
| 8976 | return 0; |
| 8977 | } |
| 8978 | _ACEOF |
| 8979 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8980 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8981 | (eval $ac_link) 2>&5 |
| 8982 | ac_status=$? |
| 8983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8984 | (exit $ac_status); } && |
| 8985 | { ac_try='test -s conftest$ac_exeext' |
| 8986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8987 | (eval $ac_try) 2>&5 |
| 8988 | ac_status=$? |
| 8989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8990 | (exit $ac_status); }; }; then |
| 8991 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8992 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8993 | echo "$as_me: failed program was:" >&5 |
| 8994 | cat conftest.$ac_ext >&5 |
| 8995 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8996 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8997 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8998 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8999 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9000 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9001 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 9002 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 9003 | cat >>confdefs.h <<_ACEOF |
| 9004 | #define HAVE_LIBDLD 1 |
| 9005 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9006 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9007 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9008 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9009 | fi |
| 9010 | # Dynamic linking for HP-UX |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9011 | |
| 9012 | echo "$as_me:$LINENO: checking for sem_init in -lrt" >&5 |
| 9013 | echo $ECHO_N "checking for sem_init in -lrt... $ECHO_C" >&6 |
| 9014 | if test "${ac_cv_lib_rt_sem_init+set}" = set; then |
| 9015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9016 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9017 | ac_check_lib_save_LIBS=$LIBS |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9018 | LIBS="-lrt $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9019 | cat >conftest.$ac_ext <<_ACEOF |
| 9020 | #line $LINENO "configure" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9021 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9022 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9023 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9024 | #ifdef __cplusplus |
| 9025 | extern "C" |
| 9026 | #endif |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9027 | /* 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] | 9028 | builtin and then its argument prototype would still apply. */ |
| 9029 | char sem_init (); |
| 9030 | #ifdef F77_DUMMY_MAIN |
| 9031 | # ifdef __cplusplus |
| 9032 | extern "C" |
| 9033 | # endif |
| 9034 | int F77_DUMMY_MAIN() { return 1; } |
| 9035 | #endif |
| 9036 | int |
| 9037 | main () |
| 9038 | { |
| 9039 | sem_init (); |
| 9040 | ; |
| 9041 | return 0; |
| 9042 | } |
| 9043 | _ACEOF |
| 9044 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9045 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9046 | (eval $ac_link) 2>&5 |
| 9047 | ac_status=$? |
| 9048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9049 | (exit $ac_status); } && |
| 9050 | { ac_try='test -s conftest$ac_exeext' |
| 9051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9052 | (eval $ac_try) 2>&5 |
| 9053 | ac_status=$? |
| 9054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9055 | (exit $ac_status); }; }; then |
| 9056 | ac_cv_lib_rt_sem_init=yes |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9057 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9058 | echo "$as_me: failed program was:" >&5 |
| 9059 | cat conftest.$ac_ext >&5 |
| 9060 | ac_cv_lib_rt_sem_init=no |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9061 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9062 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9063 | LIBS=$ac_check_lib_save_LIBS |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9064 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9065 | echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sem_init" >&5 |
| 9066 | echo "${ECHO_T}$ac_cv_lib_rt_sem_init" >&6 |
| 9067 | if test $ac_cv_lib_rt_sem_init = yes; then |
| 9068 | cat >>confdefs.h <<_ACEOF |
| 9069 | #define HAVE_LIBRT 1 |
| 9070 | _ACEOF |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9071 | |
| 9072 | LIBS="-lrt $LIBS" |
| 9073 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9074 | fi |
| 9075 | # 'Real Time' functions on Solaris |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9076 | |
| 9077 | # checks for system dependent C++ extensions support |
| 9078 | case "$ac_sys_system" in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9079 | AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 9080 | echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6 |
| 9081 | cat >conftest.$ac_ext <<_ACEOF |
| 9082 | #line $LINENO "configure" |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9083 | #include "confdefs.h" |
| 9084 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9085 | #ifdef F77_DUMMY_MAIN |
| 9086 | # ifdef __cplusplus |
| 9087 | extern "C" |
| 9088 | # endif |
| 9089 | int F77_DUMMY_MAIN() { return 1; } |
| 9090 | #endif |
| 9091 | int |
| 9092 | main () |
| 9093 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9094 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9095 | ; |
| 9096 | return 0; |
| 9097 | } |
| 9098 | _ACEOF |
| 9099 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9100 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9101 | (eval $ac_link) 2>&5 |
| 9102 | ac_status=$? |
| 9103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9104 | (exit $ac_status); } && |
| 9105 | { ac_try='test -s conftest$ac_exeext' |
| 9106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9107 | (eval $ac_try) 2>&5 |
| 9108 | ac_status=$? |
| 9109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9110 | (exit $ac_status); }; }; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9111 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9112 | cat >>confdefs.h <<\_ACEOF |
| 9113 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 9114 | _ACEOF |
| 9115 | |
| 9116 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9117 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9118 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9119 | echo "$as_me: failed program was:" >&5 |
| 9120 | cat conftest.$ac_ext >&5 |
| 9121 | echo "$as_me:$LINENO: result: no" >&5 |
| 9122 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9123 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9124 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9125 | *) ;; |
| 9126 | esac |
| 9127 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9128 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
| 9129 | # However on SGI IRIX, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9130 | # BeOS' sockets are stashed in libnet. |
| 9131 | case "$ac_sys_system" in |
| 9132 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9133 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9134 | echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 9135 | echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6 |
| 9136 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 9137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9138 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9139 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9140 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9141 | cat >conftest.$ac_ext <<_ACEOF |
| 9142 | #line $LINENO "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9143 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9144 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9145 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9146 | #ifdef __cplusplus |
| 9147 | extern "C" |
| 9148 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9149 | /* 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] | 9150 | builtin and then its argument prototype would still apply. */ |
| 9151 | char t_open (); |
| 9152 | #ifdef F77_DUMMY_MAIN |
| 9153 | # ifdef __cplusplus |
| 9154 | extern "C" |
| 9155 | # endif |
| 9156 | int F77_DUMMY_MAIN() { return 1; } |
| 9157 | #endif |
| 9158 | int |
| 9159 | main () |
| 9160 | { |
| 9161 | t_open (); |
| 9162 | ; |
| 9163 | return 0; |
| 9164 | } |
| 9165 | _ACEOF |
| 9166 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9167 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9168 | (eval $ac_link) 2>&5 |
| 9169 | ac_status=$? |
| 9170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9171 | (exit $ac_status); } && |
| 9172 | { ac_try='test -s conftest$ac_exeext' |
| 9173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9174 | (eval $ac_try) 2>&5 |
| 9175 | ac_status=$? |
| 9176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9177 | (exit $ac_status); }; }; then |
| 9178 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9179 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9180 | echo "$as_me: failed program was:" >&5 |
| 9181 | cat conftest.$ac_ext >&5 |
| 9182 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9183 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9184 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9185 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9186 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9187 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 9188 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6 |
| 9189 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9190 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9191 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 9192 | # SVR4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9193 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 9194 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 9195 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 9196 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9197 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9198 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9199 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9200 | cat >conftest.$ac_ext <<_ACEOF |
| 9201 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9202 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9203 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9204 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9205 | #ifdef __cplusplus |
| 9206 | extern "C" |
| 9207 | #endif |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9208 | /* 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] | 9209 | builtin and then its argument prototype would still apply. */ |
| 9210 | char socket (); |
| 9211 | #ifdef F77_DUMMY_MAIN |
| 9212 | # ifdef __cplusplus |
| 9213 | extern "C" |
| 9214 | # endif |
| 9215 | int F77_DUMMY_MAIN() { return 1; } |
| 9216 | #endif |
| 9217 | int |
| 9218 | main () |
| 9219 | { |
| 9220 | socket (); |
| 9221 | ; |
| 9222 | return 0; |
| 9223 | } |
| 9224 | _ACEOF |
| 9225 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9226 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9227 | (eval $ac_link) 2>&5 |
| 9228 | ac_status=$? |
| 9229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9230 | (exit $ac_status); } && |
| 9231 | { ac_try='test -s conftest$ac_exeext' |
| 9232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9233 | (eval $ac_try) 2>&5 |
| 9234 | ac_status=$? |
| 9235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9236 | (exit $ac_status); }; }; then |
| 9237 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9238 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9239 | echo "$as_me: failed program was:" >&5 |
| 9240 | cat conftest.$ac_ext >&5 |
| 9241 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9242 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9243 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9244 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9245 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9246 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 9247 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 9248 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9249 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9250 | fi |
| 9251 | # SVR4 sockets |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 9252 | ;; |
| 9253 | esac |
| 9254 | case "$ac_sys_system" in |
| 9255 | BeOS*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9256 | echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 9257 | echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6 |
| 9258 | if test "${ac_cv_lib_net_socket+set}" = set; then |
| 9259 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9260 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9261 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9262 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9263 | cat >conftest.$ac_ext <<_ACEOF |
| 9264 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9265 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9266 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9267 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9268 | #ifdef __cplusplus |
| 9269 | extern "C" |
| 9270 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9271 | /* 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] | 9272 | builtin and then its argument prototype would still apply. */ |
| 9273 | char socket (); |
| 9274 | #ifdef F77_DUMMY_MAIN |
| 9275 | # ifdef __cplusplus |
| 9276 | extern "C" |
| 9277 | # endif |
| 9278 | int F77_DUMMY_MAIN() { return 1; } |
| 9279 | #endif |
| 9280 | int |
| 9281 | main () |
| 9282 | { |
| 9283 | socket (); |
| 9284 | ; |
| 9285 | return 0; |
| 9286 | } |
| 9287 | _ACEOF |
| 9288 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9289 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9290 | (eval $ac_link) 2>&5 |
| 9291 | ac_status=$? |
| 9292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9293 | (exit $ac_status); } && |
| 9294 | { ac_try='test -s conftest$ac_exeext' |
| 9295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9296 | (eval $ac_try) 2>&5 |
| 9297 | ac_status=$? |
| 9298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9299 | (exit $ac_status); }; }; then |
| 9300 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9301 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9302 | echo "$as_me: failed program was:" >&5 |
| 9303 | cat conftest.$ac_ext >&5 |
| 9304 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9305 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9306 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9307 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9308 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9309 | echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 9310 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6 |
| 9311 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9312 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9313 | fi |
| 9314 | # BeOS |
| 9315 | ;; |
| 9316 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9317 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9318 | echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 9319 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6 |
| 9320 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9321 | # Check whether --with-libs or --without-libs was given. |
| 9322 | if test "${with_libs+set}" = set; then |
| 9323 | withval="$with_libs" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9324 | |
| 9325 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 9326 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9327 | LIBS="$withval $LIBS" |
| 9328 | |
| 9329 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9330 | echo "$as_me:$LINENO: result: no" >&5 |
| 9331 | echo "${ECHO_T}no" >&6 |
| 9332 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9333 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9334 | # Determine if signalmodule should be used. |
| 9335 | |
| 9336 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9337 | echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 9338 | echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6 |
| 9339 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9340 | # Check whether --with-signal-module or --without-signal-module was given. |
| 9341 | if test "${with_signal_module+set}" = set; then |
| 9342 | withval="$with_signal_module" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9343 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9344 | fi; |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9345 | |
| 9346 | if test -z "$with_signal_module" |
| 9347 | then with_signal_module="yes" |
| 9348 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9349 | echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 9350 | echo "${ECHO_T}$with_signal_module" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9351 | |
| 9352 | if test "${with_signal_module}" = "yes"; then |
| 9353 | USE_SIGNAL_MODULE="" |
| 9354 | SIGNAL_OBJS="" |
| 9355 | else |
| 9356 | USE_SIGNAL_MODULE="#" |
| 9357 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 9358 | fi |
| 9359 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 9360 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9361 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9362 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9363 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9364 | echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 9365 | echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6 |
| 9366 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9367 | |
| 9368 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 9369 | if test "${with_dec_threads+set}" = set; then |
| 9370 | withval="$with_dec_threads" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9371 | |
| 9372 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 9373 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9374 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9375 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9376 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9377 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9378 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9379 | echo "$as_me:$LINENO: result: no" >&5 |
| 9380 | echo "${ECHO_T}no" >&6 |
| 9381 | fi; |
| 9382 | |
| 9383 | # Templates for things AC_DEFINEd more than once. |
| 9384 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9385 | |
| 9386 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9387 | |
| 9388 | |
| 9389 | |
| 9390 | |
| 9391 | |
| 9392 | echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 9393 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6 |
| 9394 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9395 | # Check whether --with-threads or --without-threads was given. |
| 9396 | if test "${with_threads+set}" = set; then |
| 9397 | withval="$with_threads" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9398 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9399 | fi; |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9400 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9401 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9402 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9403 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9404 | if test "${with_thread+set}" = set; then |
| 9405 | withval="$with_thread" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9406 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9407 | with_threads=$with_thread |
| 9408 | fi; |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9409 | |
| 9410 | if test -z "$with_threads" |
| 9411 | then with_threads="yes" |
| 9412 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9413 | echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 9414 | echo "${ECHO_T}$with_threads" >&6 |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9415 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9416 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9417 | if test "$with_threads" = "no" |
| 9418 | then |
| 9419 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9420 | elif test "$ac_cv_pthread_is_default" = yes |
| 9421 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9422 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9423 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9424 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9425 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9426 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9427 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9428 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9429 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9430 | |
| 9431 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9432 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9433 | elif test "$ac_cv_kpthread" = "yes" |
| 9434 | then |
| 9435 | CC="$CC -Kpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9436 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 9437 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9438 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 9439 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9440 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9441 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9442 | else |
| 9443 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 9444 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 9445 | fi |
| 9446 | if test ! -z "$withval" -a -d "$withval" |
| 9447 | then LDFLAGS="$LDFLAGS -L$withval" |
| 9448 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9449 | |
| 9450 | # According to the POSIX spec, a pthreads implementation must |
| 9451 | # 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] | 9452 | echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 9453 | echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6 |
| 9454 | cat >conftest.$ac_ext <<_ACEOF |
| 9455 | #line $LINENO "configure" |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9456 | #include "confdefs.h" |
| 9457 | #include <unistd.h> |
| 9458 | #ifdef _POSIX_THREADS |
| 9459 | yes |
| 9460 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9461 | |
| 9462 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9463 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 9464 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9465 | unistd_defines_pthreads=yes |
| 9466 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9467 | unistd_defines_pthreads=no |
| 9468 | fi |
| 9469 | rm -f conftest* |
| 9470 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9471 | echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 9472 | echo "${ECHO_T}$unistd_defines_pthreads" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9473 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9474 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 9475 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9476 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 9477 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9478 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 9479 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 9480 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 9481 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 9482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9483 | fi |
| 9484 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 9485 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9486 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9487 | # Is the header compilable? |
| 9488 | echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 9489 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6 |
| 9490 | cat >conftest.$ac_ext <<_ACEOF |
| 9491 | #line $LINENO "configure" |
| 9492 | #include "confdefs.h" |
| 9493 | $ac_includes_default |
| 9494 | #include <cthreads.h> |
| 9495 | _ACEOF |
| 9496 | rm -f conftest.$ac_objext |
| 9497 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9498 | (eval $ac_compile) 2>&5 |
| 9499 | ac_status=$? |
| 9500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9501 | (exit $ac_status); } && |
| 9502 | { ac_try='test -s conftest.$ac_objext' |
| 9503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9504 | (eval $ac_try) 2>&5 |
| 9505 | ac_status=$? |
| 9506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9507 | (exit $ac_status); }; }; then |
| 9508 | ac_header_compiler=yes |
| 9509 | else |
| 9510 | echo "$as_me: failed program was:" >&5 |
| 9511 | cat conftest.$ac_ext >&5 |
| 9512 | ac_header_compiler=no |
| 9513 | fi |
| 9514 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9515 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9516 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9517 | |
| 9518 | # Is the header present? |
| 9519 | echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 9520 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6 |
| 9521 | cat >conftest.$ac_ext <<_ACEOF |
| 9522 | #line $LINENO "configure" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9523 | #include "confdefs.h" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9524 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9525 | _ACEOF |
| 9526 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9527 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9528 | ac_status=$? |
| 9529 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 9530 | rm -f conftest.er1 |
| 9531 | cat conftest.err >&5 |
| 9532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9533 | (exit $ac_status); } >/dev/null; then |
| 9534 | if test -s conftest.err; then |
| 9535 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9536 | else |
| 9537 | ac_cpp_err= |
| 9538 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9539 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9540 | ac_cpp_err=yes |
| 9541 | fi |
| 9542 | if test -z "$ac_cpp_err"; then |
| 9543 | ac_header_preproc=yes |
| 9544 | else |
| 9545 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9546 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9547 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9548 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9549 | rm -f conftest.err conftest.$ac_ext |
| 9550 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9551 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9552 | |
| 9553 | # So? What about this header? |
| 9554 | case $ac_header_compiler:$ac_header_preproc in |
| 9555 | yes:no ) |
| 9556 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9557 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9558 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 9559 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 9560 | no:yes ) |
| 9561 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 9562 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 9563 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 9564 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 9565 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 9566 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 9567 | esac |
| 9568 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 9569 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 9570 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 9571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9572 | else |
| 9573 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9574 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9575 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 9576 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
| 9577 | |
| 9578 | fi |
| 9579 | if test $ac_cv_header_cthreads_h = yes; then |
| 9580 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9581 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9582 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9583 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9584 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9585 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9586 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9587 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9588 | |
| 9589 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9590 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9591 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9592 | |
| 9593 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9594 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9595 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9596 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9597 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 9598 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 9599 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 9600 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 9601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9602 | fi |
| 9603 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 9604 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9605 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9606 | # Is the header compilable? |
| 9607 | echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 9608 | echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6 |
| 9609 | cat >conftest.$ac_ext <<_ACEOF |
| 9610 | #line $LINENO "configure" |
| 9611 | #include "confdefs.h" |
| 9612 | $ac_includes_default |
| 9613 | #include <mach/cthreads.h> |
| 9614 | _ACEOF |
| 9615 | rm -f conftest.$ac_objext |
| 9616 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9617 | (eval $ac_compile) 2>&5 |
| 9618 | ac_status=$? |
| 9619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9620 | (exit $ac_status); } && |
| 9621 | { ac_try='test -s conftest.$ac_objext' |
| 9622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9623 | (eval $ac_try) 2>&5 |
| 9624 | ac_status=$? |
| 9625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9626 | (exit $ac_status); }; }; then |
| 9627 | ac_header_compiler=yes |
| 9628 | else |
| 9629 | echo "$as_me: failed program was:" >&5 |
| 9630 | cat conftest.$ac_ext >&5 |
| 9631 | ac_header_compiler=no |
| 9632 | fi |
| 9633 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9634 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9635 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9636 | |
| 9637 | # Is the header present? |
| 9638 | echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 9639 | echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6 |
| 9640 | cat >conftest.$ac_ext <<_ACEOF |
| 9641 | #line $LINENO "configure" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9642 | #include "confdefs.h" |
| 9643 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9644 | _ACEOF |
| 9645 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9646 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9647 | ac_status=$? |
| 9648 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 9649 | rm -f conftest.er1 |
| 9650 | cat conftest.err >&5 |
| 9651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9652 | (exit $ac_status); } >/dev/null; then |
| 9653 | if test -s conftest.err; then |
| 9654 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9655 | else |
| 9656 | ac_cpp_err= |
| 9657 | fi |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9658 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9659 | ac_cpp_err=yes |
| 9660 | fi |
| 9661 | if test -z "$ac_cpp_err"; then |
| 9662 | ac_header_preproc=yes |
| 9663 | else |
| 9664 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9665 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9666 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9667 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9668 | rm -f conftest.err conftest.$ac_ext |
| 9669 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9670 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9671 | |
| 9672 | # So? What about this header? |
| 9673 | case $ac_header_compiler:$ac_header_preproc in |
| 9674 | yes:no ) |
| 9675 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9676 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9677 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 9678 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 9679 | no:yes ) |
| 9680 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 9681 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 9682 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 9683 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 9684 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 9685 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 9686 | esac |
| 9687 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 9688 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 9689 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 9690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9691 | else |
| 9692 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9693 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9694 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 9695 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
| 9696 | |
| 9697 | fi |
| 9698 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 9699 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9700 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9701 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9702 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9703 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9704 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9705 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9706 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9707 | |
| 9708 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9709 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9710 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9711 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9712 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9713 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9714 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9715 | echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 9716 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6 |
| 9717 | |
| 9718 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9719 | if test "${with_pth+set}" = set; then |
| 9720 | withval="$with_pth" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9721 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9722 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 9723 | echo "${ECHO_T}$withval" >&6 |
| 9724 | cat >>confdefs.h <<\_ACEOF |
| 9725 | #define WITH_THREAD 1 |
| 9726 | _ACEOF |
| 9727 | |
| 9728 | |
| 9729 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9730 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9731 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9732 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9733 | LIBS="-lpth $LIBS" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9734 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9735 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9736 | |
| 9737 | echo "$as_me:$LINENO: result: no" >&5 |
| 9738 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9739 | |
| 9740 | # Just looking for pthread_create in libpthread is not enough: |
| 9741 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 9742 | # So we really have to include pthread.h, and then link. |
| 9743 | _libs=$LIBS |
| 9744 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9745 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 9746 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 9747 | cat >conftest.$ac_ext <<_ACEOF |
| 9748 | #line $LINENO "configure" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9749 | #include "confdefs.h" |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9750 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9751 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9752 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9753 | #ifdef F77_DUMMY_MAIN |
| 9754 | # ifdef __cplusplus |
| 9755 | extern "C" |
| 9756 | # endif |
| 9757 | int F77_DUMMY_MAIN() { return 1; } |
| 9758 | #endif |
| 9759 | int |
| 9760 | main () |
| 9761 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9762 | |
| 9763 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9764 | ; |
| 9765 | return 0; |
| 9766 | } |
| 9767 | _ACEOF |
| 9768 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9769 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9770 | (eval $ac_link) 2>&5 |
| 9771 | ac_status=$? |
| 9772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9773 | (exit $ac_status); } && |
| 9774 | { ac_try='test -s conftest$ac_exeext' |
| 9775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9776 | (eval $ac_try) 2>&5 |
| 9777 | ac_status=$? |
| 9778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9779 | (exit $ac_status); }; }; then |
| 9780 | |
| 9781 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9782 | echo "${ECHO_T}yes" >&6 |
| 9783 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9784 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9785 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9786 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9787 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9788 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9789 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9790 | echo "$as_me: failed program was:" >&5 |
| 9791 | cat conftest.$ac_ext >&5 |
| 9792 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9793 | LIBS=$_libs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9794 | echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 9795 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6 |
| 9796 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 9797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9798 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9799 | cat >conftest.$ac_ext <<_ACEOF |
| 9800 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9801 | #include "confdefs.h" |
| 9802 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9803 | which can conflict with char pthread_detach (); below. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9804 | #include <assert.h> |
| 9805 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9806 | #ifdef __cplusplus |
| 9807 | extern "C" |
| 9808 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9809 | /* 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] | 9810 | builtin and then its argument prototype would still apply. */ |
| 9811 | char pthread_detach (); |
| 9812 | char (*f) (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9813 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9814 | #ifdef F77_DUMMY_MAIN |
| 9815 | # ifdef __cplusplus |
| 9816 | extern "C" |
| 9817 | # endif |
| 9818 | int F77_DUMMY_MAIN() { return 1; } |
| 9819 | #endif |
| 9820 | int |
| 9821 | main () |
| 9822 | { |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9823 | /* The GNU C library defines this for functions which it implements |
| 9824 | to always fail with ENOSYS. Some functions are actually named |
| 9825 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 9826 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9827 | choke me |
| 9828 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9829 | f = pthread_detach; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9830 | #endif |
| 9831 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9832 | ; |
| 9833 | return 0; |
| 9834 | } |
| 9835 | _ACEOF |
| 9836 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9837 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9838 | (eval $ac_link) 2>&5 |
| 9839 | ac_status=$? |
| 9840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9841 | (exit $ac_status); } && |
| 9842 | { ac_try='test -s conftest$ac_exeext' |
| 9843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9844 | (eval $ac_try) 2>&5 |
| 9845 | ac_status=$? |
| 9846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9847 | (exit $ac_status); }; }; then |
| 9848 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9849 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9850 | echo "$as_me: failed program was:" >&5 |
| 9851 | cat conftest.$ac_ext >&5 |
| 9852 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9853 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9854 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9855 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9856 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 9857 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6 |
| 9858 | if test $ac_cv_func_pthread_detach = yes; then |
| 9859 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9860 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9861 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9862 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9863 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9864 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9865 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9866 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9867 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 9868 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 9869 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 9870 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 9871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9872 | fi |
| 9873 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 9874 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9875 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9876 | # Is the header compilable? |
| 9877 | echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 9878 | echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6 |
| 9879 | cat >conftest.$ac_ext <<_ACEOF |
| 9880 | #line $LINENO "configure" |
| 9881 | #include "confdefs.h" |
| 9882 | $ac_includes_default |
| 9883 | #include <kernel/OS.h> |
| 9884 | _ACEOF |
| 9885 | rm -f conftest.$ac_objext |
| 9886 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9887 | (eval $ac_compile) 2>&5 |
| 9888 | ac_status=$? |
| 9889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9890 | (exit $ac_status); } && |
| 9891 | { ac_try='test -s conftest.$ac_objext' |
| 9892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9893 | (eval $ac_try) 2>&5 |
| 9894 | ac_status=$? |
| 9895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9896 | (exit $ac_status); }; }; then |
| 9897 | ac_header_compiler=yes |
| 9898 | else |
| 9899 | echo "$as_me: failed program was:" >&5 |
| 9900 | cat conftest.$ac_ext >&5 |
| 9901 | ac_header_compiler=no |
| 9902 | fi |
| 9903 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9904 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9905 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9906 | |
| 9907 | # Is the header present? |
| 9908 | echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 9909 | echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6 |
| 9910 | cat >conftest.$ac_ext <<_ACEOF |
| 9911 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9912 | #include "confdefs.h" |
| 9913 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9914 | _ACEOF |
| 9915 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9916 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9917 | ac_status=$? |
| 9918 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 9919 | rm -f conftest.er1 |
| 9920 | cat conftest.err >&5 |
| 9921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9922 | (exit $ac_status); } >/dev/null; then |
| 9923 | if test -s conftest.err; then |
| 9924 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9925 | else |
| 9926 | ac_cpp_err= |
| 9927 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9928 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9929 | ac_cpp_err=yes |
| 9930 | fi |
| 9931 | if test -z "$ac_cpp_err"; then |
| 9932 | ac_header_preproc=yes |
| 9933 | else |
| 9934 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9935 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9936 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9937 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9938 | rm -f conftest.err conftest.$ac_ext |
| 9939 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9940 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9941 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9942 | # So? What about this header? |
| 9943 | case $ac_header_compiler:$ac_header_preproc in |
| 9944 | yes:no ) |
| 9945 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9946 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9947 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 9948 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};; |
| 9949 | no:yes ) |
| 9950 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 9951 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
| 9952 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 9953 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 9954 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 9955 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};; |
| 9956 | esac |
| 9957 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 9958 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 9959 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 9960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9961 | else |
| 9962 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 9963 | fi |
| 9964 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 9965 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
| 9966 | |
| 9967 | fi |
| 9968 | if test $ac_cv_header_kernel_OS_h = yes; then |
| 9969 | cat >>confdefs.h <<\_ACEOF |
| 9970 | #define WITH_THREAD 1 |
| 9971 | _ACEOF |
| 9972 | |
| 9973 | |
| 9974 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9975 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9976 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9977 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9978 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9979 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9980 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9981 | echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 9982 | echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6 |
| 9983 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 9984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9985 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9986 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9987 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9988 | cat >conftest.$ac_ext <<_ACEOF |
| 9989 | #line $LINENO "configure" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9990 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9991 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9992 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9993 | #ifdef __cplusplus |
| 9994 | extern "C" |
| 9995 | #endif |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9996 | /* 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] | 9997 | builtin and then its argument prototype would still apply. */ |
| 9998 | char pthread_create (); |
| 9999 | #ifdef F77_DUMMY_MAIN |
| 10000 | # ifdef __cplusplus |
| 10001 | extern "C" |
| 10002 | # endif |
| 10003 | int F77_DUMMY_MAIN() { return 1; } |
| 10004 | #endif |
| 10005 | int |
| 10006 | main () |
| 10007 | { |
| 10008 | pthread_create (); |
| 10009 | ; |
| 10010 | return 0; |
| 10011 | } |
| 10012 | _ACEOF |
| 10013 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10014 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10015 | (eval $ac_link) 2>&5 |
| 10016 | ac_status=$? |
| 10017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10018 | (exit $ac_status); } && |
| 10019 | { ac_try='test -s conftest$ac_exeext' |
| 10020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10021 | (eval $ac_try) 2>&5 |
| 10022 | ac_status=$? |
| 10023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10024 | (exit $ac_status); }; }; then |
| 10025 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10026 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10027 | echo "$as_me: failed program was:" >&5 |
| 10028 | cat conftest.$ac_ext >&5 |
| 10029 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10030 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10031 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10032 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10033 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10034 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 10035 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6 |
| 10036 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 10037 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10038 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10039 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10040 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10041 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10042 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10043 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10044 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10045 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10046 | echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 10047 | echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 |
| 10048 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 10049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10050 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10051 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10052 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10053 | cat >conftest.$ac_ext <<_ACEOF |
| 10054 | #line $LINENO "configure" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10055 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10056 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10057 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10058 | #ifdef __cplusplus |
| 10059 | extern "C" |
| 10060 | #endif |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10061 | /* 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] | 10062 | builtin and then its argument prototype would still apply. */ |
| 10063 | char pthread_create (); |
| 10064 | #ifdef F77_DUMMY_MAIN |
| 10065 | # ifdef __cplusplus |
| 10066 | extern "C" |
| 10067 | # endif |
| 10068 | int F77_DUMMY_MAIN() { return 1; } |
| 10069 | #endif |
| 10070 | int |
| 10071 | main () |
| 10072 | { |
| 10073 | pthread_create (); |
| 10074 | ; |
| 10075 | return 0; |
| 10076 | } |
| 10077 | _ACEOF |
| 10078 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10079 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10080 | (eval $ac_link) 2>&5 |
| 10081 | ac_status=$? |
| 10082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10083 | (exit $ac_status); } && |
| 10084 | { ac_try='test -s conftest$ac_exeext' |
| 10085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10086 | (eval $ac_try) 2>&5 |
| 10087 | ac_status=$? |
| 10088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10089 | (exit $ac_status); }; }; then |
| 10090 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10091 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10092 | echo "$as_me: failed program was:" >&5 |
| 10093 | cat conftest.$ac_ext >&5 |
| 10094 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10095 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10096 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10097 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10098 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10099 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 10100 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 |
| 10101 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 10102 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10103 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10104 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10105 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10106 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10107 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10108 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10109 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10110 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10111 | echo "$as_me:$LINENO: checking for __d6_pthread_create in -lthread" >&5 |
| 10112 | echo $ECHO_N "checking for __d6_pthread_create in -lthread... $ECHO_C" >&6 |
| 10113 | if test "${ac_cv_lib_thread___d6_pthread_create+set}" = set; then |
| 10114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10115 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10116 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10117 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10118 | cat >conftest.$ac_ext <<_ACEOF |
| 10119 | #line $LINENO "configure" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10120 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10121 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10122 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10123 | #ifdef __cplusplus |
| 10124 | extern "C" |
| 10125 | #endif |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10126 | /* 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] | 10127 | builtin and then its argument prototype would still apply. */ |
| 10128 | char __d6_pthread_create (); |
| 10129 | #ifdef F77_DUMMY_MAIN |
| 10130 | # ifdef __cplusplus |
| 10131 | extern "C" |
| 10132 | # endif |
| 10133 | int F77_DUMMY_MAIN() { return 1; } |
| 10134 | #endif |
| 10135 | int |
| 10136 | main () |
| 10137 | { |
| 10138 | __d6_pthread_create (); |
| 10139 | ; |
| 10140 | return 0; |
| 10141 | } |
| 10142 | _ACEOF |
| 10143 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10144 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10145 | (eval $ac_link) 2>&5 |
| 10146 | ac_status=$? |
| 10147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10148 | (exit $ac_status); } && |
| 10149 | { ac_try='test -s conftest$ac_exeext' |
| 10150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10151 | (eval $ac_try) 2>&5 |
| 10152 | ac_status=$? |
| 10153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10154 | (exit $ac_status); }; }; then |
| 10155 | ac_cv_lib_thread___d6_pthread_create=yes |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10156 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10157 | echo "$as_me: failed program was:" >&5 |
| 10158 | cat conftest.$ac_ext >&5 |
| 10159 | ac_cv_lib_thread___d6_pthread_create=no |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10160 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10161 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10162 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10163 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10164 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread___d6_pthread_create" >&5 |
| 10165 | echo "${ECHO_T}$ac_cv_lib_thread___d6_pthread_create" >&6 |
| 10166 | if test $ac_cv_lib_thread___d6_pthread_create = yes; then |
| 10167 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10168 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10169 | _ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10170 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10171 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10172 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10173 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10174 | else |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10175 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10176 | echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 10177 | echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6 |
| 10178 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 10179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10180 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10181 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10182 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10183 | cat >conftest.$ac_ext <<_ACEOF |
| 10184 | #line $LINENO "configure" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10185 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10186 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10187 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10188 | #ifdef __cplusplus |
| 10189 | extern "C" |
| 10190 | #endif |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10191 | /* 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] | 10192 | builtin and then its argument prototype would still apply. */ |
| 10193 | char __pthread_create_system (); |
| 10194 | #ifdef F77_DUMMY_MAIN |
| 10195 | # ifdef __cplusplus |
| 10196 | extern "C" |
| 10197 | # endif |
| 10198 | int F77_DUMMY_MAIN() { return 1; } |
| 10199 | #endif |
| 10200 | int |
| 10201 | main () |
| 10202 | { |
| 10203 | __pthread_create_system (); |
| 10204 | ; |
| 10205 | return 0; |
| 10206 | } |
| 10207 | _ACEOF |
| 10208 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10209 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10210 | (eval $ac_link) 2>&5 |
| 10211 | ac_status=$? |
| 10212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10213 | (exit $ac_status); } && |
| 10214 | { ac_try='test -s conftest$ac_exeext' |
| 10215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10216 | (eval $ac_try) 2>&5 |
| 10217 | ac_status=$? |
| 10218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10219 | (exit $ac_status); }; }; then |
| 10220 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10221 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10222 | echo "$as_me: failed program was:" >&5 |
| 10223 | cat conftest.$ac_ext >&5 |
| 10224 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10225 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10226 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10227 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10228 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10229 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 10230 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6 |
| 10231 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 10232 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10233 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10234 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10235 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10236 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10237 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10238 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10239 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10240 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10241 | echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 10242 | echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6 |
| 10243 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 10244 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10245 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10246 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10247 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10248 | cat >conftest.$ac_ext <<_ACEOF |
| 10249 | #line $LINENO "configure" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10250 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10251 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10252 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10253 | #ifdef __cplusplus |
| 10254 | extern "C" |
| 10255 | #endif |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10256 | /* 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] | 10257 | builtin and then its argument prototype would still apply. */ |
| 10258 | char pthread_create (); |
| 10259 | #ifdef F77_DUMMY_MAIN |
| 10260 | # ifdef __cplusplus |
| 10261 | extern "C" |
| 10262 | # endif |
| 10263 | int F77_DUMMY_MAIN() { return 1; } |
| 10264 | #endif |
| 10265 | int |
| 10266 | main () |
| 10267 | { |
| 10268 | pthread_create (); |
| 10269 | ; |
| 10270 | return 0; |
| 10271 | } |
| 10272 | _ACEOF |
| 10273 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10274 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10275 | (eval $ac_link) 2>&5 |
| 10276 | ac_status=$? |
| 10277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10278 | (exit $ac_status); } && |
| 10279 | { ac_try='test -s conftest$ac_exeext' |
| 10280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10281 | (eval $ac_try) 2>&5 |
| 10282 | ac_status=$? |
| 10283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10284 | (exit $ac_status); }; }; then |
| 10285 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10286 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10287 | echo "$as_me: failed program was:" >&5 |
| 10288 | cat conftest.$ac_ext >&5 |
| 10289 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10290 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10291 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10292 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10293 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10294 | echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 10295 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6 |
| 10296 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 10297 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10298 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10299 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10300 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10301 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10302 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10303 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10304 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 10305 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10306 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 10307 | fi |
| 10308 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10309 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10310 | fi |
| 10311 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 10312 | fi |
| 10313 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10314 | fi |
| 10315 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10316 | fi |
| 10317 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10318 | fi |
| 10319 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10320 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10321 | fi |
| 10322 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10323 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10324 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10325 | fi; |
| 10326 | fi |
| 10327 | |
| 10328 | |
| 10329 | fi |
| 10330 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10331 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10332 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10333 | if test "$posix_threads" = "yes"; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10334 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10335 | |
| 10336 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10337 | #define _POSIX_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10338 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10339 | |
| 10340 | fi |
| 10341 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10342 | echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 10343 | echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6 |
| 10344 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 10345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10346 | else |
| 10347 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 10348 | ac_cv_pthread_system_supported=no |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10349 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10350 | cat >conftest.$ac_ext <<_ACEOF |
| 10351 | #line $LINENO "configure" |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10352 | #include "confdefs.h" |
| 10353 | #include <pthread.h> |
| 10354 | void *foo(void *parm) { |
| 10355 | return NULL; |
| 10356 | } |
| 10357 | main() { |
| 10358 | pthread_attr_t attr; |
Martin v. Löwis | a82d347 | 2002-02-24 16:05:05 +0000 | [diff] [blame] | 10359 | pthread_t id; |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10360 | if (pthread_attr_init(&attr)) exit(-1); |
| 10361 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
Martin v. Löwis | a82d347 | 2002-02-24 16:05:05 +0000 | [diff] [blame] | 10362 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10363 | exit(0); |
| 10364 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10365 | _ACEOF |
| 10366 | rm -f conftest$ac_exeext |
| 10367 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10368 | (eval $ac_link) 2>&5 |
| 10369 | ac_status=$? |
| 10370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10371 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10373 | (eval $ac_try) 2>&5 |
| 10374 | ac_status=$? |
| 10375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10376 | (exit $ac_status); }; }; then |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10377 | ac_cv_pthread_system_supported=yes |
| 10378 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10379 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10380 | echo "$as_me: failed program was:" >&5 |
| 10381 | cat conftest.$ac_ext >&5 |
| 10382 | ( exit $ac_status ) |
| 10383 | ac_cv_pthread_system_supported=no |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10384 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10385 | 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] | 10386 | fi |
| 10387 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10388 | fi |
| 10389 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10390 | echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 10391 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10392 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10393 | |
| 10394 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10395 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10396 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10397 | |
| 10398 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10399 | |
| 10400 | for ac_func in pthread_sigmask |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10401 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10402 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10403 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10404 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 10405 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 10406 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10407 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10408 | cat >conftest.$ac_ext <<_ACEOF |
| 10409 | #line $LINENO "configure" |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10410 | #include "confdefs.h" |
| 10411 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10412 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10413 | #include <assert.h> |
| 10414 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10415 | #ifdef __cplusplus |
| 10416 | extern "C" |
| 10417 | #endif |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10418 | /* 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] | 10419 | builtin and then its argument prototype would still apply. */ |
| 10420 | char $ac_func (); |
| 10421 | char (*f) (); |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10422 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10423 | #ifdef F77_DUMMY_MAIN |
| 10424 | # ifdef __cplusplus |
| 10425 | extern "C" |
| 10426 | # endif |
| 10427 | int F77_DUMMY_MAIN() { return 1; } |
| 10428 | #endif |
| 10429 | int |
| 10430 | main () |
| 10431 | { |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10432 | /* The GNU C library defines this for functions which it implements |
| 10433 | to always fail with ENOSYS. Some functions are actually named |
| 10434 | something starting with __ and the normal name is an alias. */ |
| 10435 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 10436 | choke me |
| 10437 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10438 | f = $ac_func; |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10439 | #endif |
| 10440 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10441 | ; |
| 10442 | return 0; |
| 10443 | } |
| 10444 | _ACEOF |
| 10445 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10446 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10447 | (eval $ac_link) 2>&5 |
| 10448 | ac_status=$? |
| 10449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10450 | (exit $ac_status); } && |
| 10451 | { ac_try='test -s conftest$ac_exeext' |
| 10452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10453 | (eval $ac_try) 2>&5 |
| 10454 | ac_status=$? |
| 10455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10456 | (exit $ac_status); }; }; then |
| 10457 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10458 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10459 | echo "$as_me: failed program was:" >&5 |
| 10460 | cat conftest.$ac_ext >&5 |
| 10461 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10462 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10463 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10464 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10465 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 10466 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 10467 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10468 | cat >>confdefs.h <<_ACEOF |
| 10469 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10470 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10471 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10472 | fi |
| 10473 | done |
| 10474 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10475 | fi |
| 10476 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10477 | echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 10478 | echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6 |
| 10479 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 10480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10481 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10482 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10483 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10484 | cat >conftest.$ac_ext <<_ACEOF |
| 10485 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10486 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10487 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10488 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10489 | #ifdef __cplusplus |
| 10490 | extern "C" |
| 10491 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10492 | /* 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] | 10493 | builtin and then its argument prototype would still apply. */ |
| 10494 | char usconfig (); |
| 10495 | #ifdef F77_DUMMY_MAIN |
| 10496 | # ifdef __cplusplus |
| 10497 | extern "C" |
| 10498 | # endif |
| 10499 | int F77_DUMMY_MAIN() { return 1; } |
| 10500 | #endif |
| 10501 | int |
| 10502 | main () |
| 10503 | { |
| 10504 | usconfig (); |
| 10505 | ; |
| 10506 | return 0; |
| 10507 | } |
| 10508 | _ACEOF |
| 10509 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10510 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10511 | (eval $ac_link) 2>&5 |
| 10512 | ac_status=$? |
| 10513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10514 | (exit $ac_status); } && |
| 10515 | { ac_try='test -s conftest$ac_exeext' |
| 10516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10517 | (eval $ac_try) 2>&5 |
| 10518 | ac_status=$? |
| 10519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10520 | (exit $ac_status); }; }; then |
| 10521 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10522 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10523 | echo "$as_me: failed program was:" >&5 |
| 10524 | cat conftest.$ac_ext >&5 |
| 10525 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10526 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10527 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10528 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10529 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10530 | echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 10531 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6 |
| 10532 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 10533 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10534 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10535 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10536 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10537 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10538 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10539 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10540 | fi |
| 10541 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10542 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10543 | if test $posix_threads != "yes"; then |
| 10544 | echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 10545 | echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6 |
| 10546 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 10547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10548 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10549 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10550 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10551 | cat >conftest.$ac_ext <<_ACEOF |
| 10552 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10553 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10554 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10555 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10556 | #ifdef __cplusplus |
| 10557 | extern "C" |
| 10558 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10559 | /* 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] | 10560 | builtin and then its argument prototype would still apply. */ |
| 10561 | char thr_create (); |
| 10562 | #ifdef F77_DUMMY_MAIN |
| 10563 | # ifdef __cplusplus |
| 10564 | extern "C" |
| 10565 | # endif |
| 10566 | int F77_DUMMY_MAIN() { return 1; } |
| 10567 | #endif |
| 10568 | int |
| 10569 | main () |
| 10570 | { |
| 10571 | thr_create (); |
| 10572 | ; |
| 10573 | return 0; |
| 10574 | } |
| 10575 | _ACEOF |
| 10576 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10577 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10578 | (eval $ac_link) 2>&5 |
| 10579 | ac_status=$? |
| 10580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10581 | (exit $ac_status); } && |
| 10582 | { ac_try='test -s conftest$ac_exeext' |
| 10583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10584 | (eval $ac_try) 2>&5 |
| 10585 | ac_status=$? |
| 10586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10587 | (exit $ac_status); }; }; then |
| 10588 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10589 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10590 | echo "$as_me: failed program was:" >&5 |
| 10591 | cat conftest.$ac_ext >&5 |
| 10592 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10593 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10594 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10595 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10596 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10597 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 10598 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6 |
| 10599 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 10600 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10601 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10602 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10603 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10604 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10605 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10606 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10607 | fi |
| 10608 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10609 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10610 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10611 | if test "$USE_THREAD_MODULE" != "#" |
| 10612 | then |
| 10613 | # If the above checks didn't disable threads, (at least) OSF1 |
| 10614 | # needs this '-threads' argument during linking. |
| 10615 | case $ac_sys_system in |
| 10616 | OSF1) LDLAST=-threads;; |
| 10617 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 10618 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10619 | fi |
| 10620 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10621 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10622 | |
| 10623 | |
| 10624 | echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 10625 | 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] | 10626 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 10627 | if test "${enable_ipv6+set}" = set; then |
| 10628 | enableval="$enable_ipv6" |
| 10629 | case "$enableval" in |
| 10630 | no) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10631 | echo "$as_me:$LINENO: result: no" >&5 |
| 10632 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10633 | ipv6=no |
| 10634 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10635 | *) echo "$as_me:$LINENO: result: yes" >&5 |
| 10636 | echo "${ECHO_T}yes" >&6 |
| 10637 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10638 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10639 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10640 | |
| 10641 | ipv6=yes |
| 10642 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10643 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10644 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10645 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10646 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10647 | echo "$as_me:$LINENO: result: no" >&5 |
| 10648 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10649 | ipv6=no |
| 10650 | |
| 10651 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10652 | cat >conftest.$ac_ext <<_ACEOF |
| 10653 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10654 | #include "confdefs.h" |
| 10655 | /* AF_INET6 available check */ |
| 10656 | #include <sys/types.h> |
| 10657 | #include <sys/socket.h> |
| 10658 | main() |
| 10659 | { |
| 10660 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 10661 | exit(1); |
| 10662 | else |
| 10663 | exit(0); |
| 10664 | } |
| 10665 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10666 | _ACEOF |
| 10667 | rm -f conftest$ac_exeext |
| 10668 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10669 | (eval $ac_link) 2>&5 |
| 10670 | ac_status=$? |
| 10671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10672 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10674 | (eval $ac_try) 2>&5 |
| 10675 | ac_status=$? |
| 10676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10677 | (exit $ac_status); }; }; then |
| 10678 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10679 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10680 | ipv6=yes |
| 10681 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10682 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10683 | echo "$as_me: failed program was:" >&5 |
| 10684 | cat conftest.$ac_ext >&5 |
| 10685 | ( exit $ac_status ) |
| 10686 | echo "$as_me:$LINENO: result: no" >&5 |
| 10687 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10688 | ipv6=no |
| 10689 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10690 | 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] | 10691 | fi |
| 10692 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10693 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10694 | echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 10695 | echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6 |
| 10696 | cat >conftest.$ac_ext <<_ACEOF |
| 10697 | #line $LINENO "configure" |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10698 | #include "confdefs.h" |
| 10699 | #include <sys/types.h> |
| 10700 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10701 | #ifdef F77_DUMMY_MAIN |
| 10702 | # ifdef __cplusplus |
| 10703 | extern "C" |
| 10704 | # endif |
| 10705 | int F77_DUMMY_MAIN() { return 1; } |
| 10706 | #endif |
| 10707 | int |
| 10708 | main () |
| 10709 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10710 | struct sockaddr_in6 x; |
| 10711 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10712 | ; |
| 10713 | return 0; |
| 10714 | } |
| 10715 | _ACEOF |
| 10716 | rm -f conftest.$ac_objext |
| 10717 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10718 | (eval $ac_compile) 2>&5 |
| 10719 | ac_status=$? |
| 10720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10721 | (exit $ac_status); } && |
| 10722 | { ac_try='test -s conftest.$ac_objext' |
| 10723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10724 | (eval $ac_try) 2>&5 |
| 10725 | ac_status=$? |
| 10726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10727 | (exit $ac_status); }; }; then |
| 10728 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10729 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10730 | ipv6=yes |
| 10731 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10732 | echo "$as_me: failed program was:" >&5 |
| 10733 | cat conftest.$ac_ext >&5 |
| 10734 | echo "$as_me:$LINENO: result: no" >&5 |
| 10735 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10736 | ipv6=no |
| 10737 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10738 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10739 | fi |
| 10740 | |
| 10741 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10742 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10743 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10744 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10745 | |
| 10746 | fi |
| 10747 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10748 | fi; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10749 | |
| 10750 | ipv6type=unknown |
| 10751 | ipv6lib=none |
| 10752 | ipv6trylibc=no |
| 10753 | |
| 10754 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10755 | echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 10756 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 10757 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 10758 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10759 | case $i in |
| 10760 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10761 | cat >conftest.$ac_ext <<_ACEOF |
| 10762 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10763 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10764 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10765 | #include <netinet/in.h> |
| 10766 | #ifdef IPV6_INRIA_VERSION |
| 10767 | yes |
| 10768 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10769 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10770 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10771 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10772 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10773 | fi |
| 10774 | rm -f conftest* |
| 10775 | |
| 10776 | ;; |
| 10777 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10778 | cat >conftest.$ac_ext <<_ACEOF |
| 10779 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10780 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10781 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10782 | #include <netinet/in.h> |
| 10783 | #ifdef __KAME__ |
| 10784 | yes |
| 10785 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10786 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10787 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10788 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10789 | ipv6type=$i; |
| 10790 | ipv6lib=inet6 |
| 10791 | ipv6libdir=/usr/local/v6/lib |
| 10792 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10793 | fi |
| 10794 | rm -f conftest* |
| 10795 | |
| 10796 | ;; |
| 10797 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10798 | cat >conftest.$ac_ext <<_ACEOF |
| 10799 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10800 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10801 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10802 | #include <features.h> |
| 10803 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 10804 | yes |
| 10805 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10806 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10807 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10808 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10809 | ipv6type=$i; |
| 10810 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10811 | fi |
| 10812 | rm -f conftest* |
| 10813 | |
| 10814 | ;; |
| 10815 | linux-inet6) |
| 10816 | if test -d /usr/inet6; then |
| 10817 | ipv6type=$i |
| 10818 | ipv6lib=inet6 |
| 10819 | ipv6libdir=/usr/inet6/lib |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10820 | OPT="-I/usr/inet6/include $OPT" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10821 | fi |
| 10822 | ;; |
| 10823 | solaris) |
| 10824 | if test -f /etc/netconfig; then |
| 10825 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 10826 | ipv6type=$i |
| 10827 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10828 | fi |
| 10829 | fi |
| 10830 | ;; |
| 10831 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10832 | cat >conftest.$ac_ext <<_ACEOF |
| 10833 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10834 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10835 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10836 | #include <sys/param.h> |
| 10837 | #ifdef _TOSHIBA_INET6 |
| 10838 | yes |
| 10839 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10840 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10841 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10842 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10843 | ipv6type=$i; |
| 10844 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10845 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10846 | fi |
| 10847 | rm -f conftest* |
| 10848 | |
| 10849 | ;; |
| 10850 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10851 | cat >conftest.$ac_ext <<_ACEOF |
| 10852 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10853 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10854 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10855 | #include </usr/local/v6/include/sys/v6config.h> |
| 10856 | #ifdef __V6D__ |
| 10857 | yes |
| 10858 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10859 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10860 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10861 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10862 | ipv6type=$i; |
| 10863 | ipv6lib=v6; |
| 10864 | ipv6libdir=/usr/local/v6/lib; |
| 10865 | OPT="-I/usr/local/v6/include $OPT" |
| 10866 | fi |
| 10867 | rm -f conftest* |
| 10868 | |
| 10869 | ;; |
| 10870 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10871 | cat >conftest.$ac_ext <<_ACEOF |
| 10872 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10873 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10874 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10875 | #include <sys/param.h> |
| 10876 | #ifdef _ZETA_MINAMI_INET6 |
| 10877 | yes |
| 10878 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10879 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10880 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10881 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10882 | ipv6type=$i; |
| 10883 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10884 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10885 | fi |
| 10886 | rm -f conftest* |
| 10887 | |
| 10888 | ;; |
| 10889 | esac |
| 10890 | if test "$ipv6type" != "unknown"; then |
| 10891 | break |
| 10892 | fi |
| 10893 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10894 | echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 10895 | echo "${ECHO_T}$ipv6type" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10896 | fi |
| 10897 | |
| 10898 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 10899 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 10900 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 10901 | echo "using lib$ipv6lib" |
| 10902 | else |
| 10903 | if test $ipv6trylibc = "yes"; then |
| 10904 | echo "using libc" |
| 10905 | else |
| 10906 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 10907 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 10908 | echo 'ipv6 kit and compile beforehand.' |
| 10909 | exit 1 |
| 10910 | fi |
| 10911 | fi |
| 10912 | fi |
| 10913 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10914 | # Check for GC support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10915 | echo "$as_me:$LINENO: checking for --with-cycle-gc" >&5 |
| 10916 | echo $ECHO_N "checking for --with-cycle-gc... $ECHO_C" >&6 |
| 10917 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10918 | # Check whether --with-cycle-gc or --without-cycle-gc was given. |
| 10919 | if test "${with_cycle_gc+set}" = set; then |
| 10920 | withval="$with_cycle_gc" |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10921 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10922 | fi; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10923 | |
| 10924 | if test -z "$with_cycle_gc" |
| 10925 | then with_cycle_gc="yes" |
| 10926 | fi |
Neil Schemenauer | cf22946 | 2001-08-29 23:58:47 +0000 | [diff] [blame] | 10927 | if test "$with_cycle_gc" != "no" |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10928 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10929 | |
| 10930 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10931 | #define WITH_CYCLE_GC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10932 | _ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10933 | |
| 10934 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10935 | echo "$as_me:$LINENO: result: $with_cycle_gc" >&5 |
| 10936 | echo "${ECHO_T}$with_cycle_gc" >&6 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10937 | |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 10938 | # Check for universal newline support |
| 10939 | echo "$as_me:$LINENO: checking for --with-universal-newline" >&5 |
| 10940 | echo $ECHO_N "checking for --with-universal-newline... $ECHO_C" >&6 |
| 10941 | |
| 10942 | # Check whether --with-universal-newlines or --without-universal-newlines was given. |
| 10943 | if test "${with_universal_newlines+set}" = set; then |
| 10944 | withval="$with_universal_newlines" |
| 10945 | |
| 10946 | fi; |
| 10947 | |
| 10948 | if test -z "$with_universal_newlines" |
| 10949 | then with_universal_newlines="yes" |
| 10950 | fi |
| 10951 | if test "$with_universal_newlines" != "no" |
| 10952 | then |
Martin v. Löwis | e8aea58 | 2002-04-16 05:51:02 +0000 | [diff] [blame] | 10953 | |
| 10954 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 10955 | #define WITH_UNIVERSAL_NEWLINES 1 |
| 10956 | _ACEOF |
| 10957 | |
| 10958 | fi |
| 10959 | echo "$as_me:$LINENO: result: $with_universal_newlines" >&5 |
| 10960 | echo "${ECHO_T}$with_universal_newlines" >&6 |
| 10961 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 10962 | # Check for Python-specific malloc support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10963 | echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 10964 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6 |
| 10965 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 10966 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 10967 | if test "${with_pymalloc+set}" = set; then |
| 10968 | withval="$with_pymalloc" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10969 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10970 | fi; |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 10971 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10972 | if test -z "$with_pymalloc" |
| 10973 | then with_pymalloc="yes" |
| 10974 | fi |
| 10975 | if test "$with_pymalloc" != "no" |
| 10976 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10977 | |
| 10978 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10979 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10980 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10981 | |
| 10982 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10983 | echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 10984 | echo "${ECHO_T}$with_pymalloc" >&6 |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10985 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10986 | # Check for --with-wctype-functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10987 | echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 10988 | echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6 |
| 10989 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10990 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 10991 | if test "${with_wctype_functions+set}" = set; then |
| 10992 | withval="$with_wctype_functions" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10993 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10994 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10995 | then |
| 10996 | |
| 10997 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10998 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10999 | _ACEOF |
| 11000 | |
| 11001 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11002 | echo "${ECHO_T}yes" >&6 |
| 11003 | else echo "$as_me:$LINENO: result: no" >&5 |
| 11004 | echo "${ECHO_T}no" >&6 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11005 | fi |
| 11006 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11007 | echo "$as_me:$LINENO: result: no" >&5 |
| 11008 | echo "${ECHO_T}no" >&6 |
| 11009 | fi; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11010 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11011 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11012 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 11013 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11014 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11015 | echo "$as_me:$LINENO: checking for --with-sgi-dl" >&5 |
| 11016 | echo $ECHO_N "checking for --with-sgi-dl... $ECHO_C" >&6 |
| 11017 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11018 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11019 | if test "${with_sgi_dl+set}" = set; then |
| 11020 | withval="$with_sgi_dl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11021 | |
| 11022 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11023 | echo "${ECHO_T}$withval" >&6 |
| 11024 | |
| 11025 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11026 | #define WITH_SGI_DL 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11027 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11028 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11029 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11030 | dldir=$withval |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 11031 | if test ! -z "$dldir" -a -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 11032 | then LDFLAGS="$LDFLAGS -L$dldir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11033 | else { { echo "$as_me:$LINENO: error: proper usage is --with-sgi-dl=DIRECTORY" >&5 |
| 11034 | echo "$as_me: error: proper usage is --with-sgi-dl=DIRECTORY" >&2;} |
| 11035 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11036 | fi |
| 11037 | DLINCLDIR=${dldir} |
| 11038 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11039 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11040 | echo "$as_me:$LINENO: result: no" >&5 |
| 11041 | echo "${ECHO_T}no" >&6 |
| 11042 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11043 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11044 | echo "$as_me:$LINENO: checking for --with-dl-dld" >&5 |
| 11045 | echo $ECHO_N "checking for --with-dl-dld... $ECHO_C" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11046 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11047 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11048 | if test "${with_dl_dld+set}" = set; then |
| 11049 | withval="$with_dl_dld" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11050 | |
| 11051 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11052 | echo "${ECHO_T}$withval" >&6 |
| 11053 | |
| 11054 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11055 | #define WITH_DL_DLD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11056 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11057 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11058 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11059 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 11060 | dlddir=`echo "$withval" | sed 's/.*,//'` |
Barry Warsaw | 7d1219d | 2000-10-05 18:45:53 +0000 | [diff] [blame] | 11061 | 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] | 11062 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11063 | else { { echo "$as_me:$LINENO: error: proper usage is --with-dl-dld=DL_DIRECTORY" >&5 |
| 11064 | echo "$as_me: error: proper usage is --with-dl-dld=DL_DIRECTORY" >&2;} |
| 11065 | { (exit DLD_DIRECTORY); exit DLD_DIRECTORY; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11066 | fi |
| 11067 | DLINCLDIR=${dldir} |
| 11068 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11069 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11070 | echo "$as_me:$LINENO: result: no" >&5 |
| 11071 | echo "${ECHO_T}no" >&6 |
| 11072 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11073 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11074 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 11075 | # 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] | 11076 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11077 | for ac_func in dlopen |
| 11078 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11079 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11080 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11081 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11082 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11084 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11085 | cat >conftest.$ac_ext <<_ACEOF |
| 11086 | #line $LINENO "configure" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11087 | #include "confdefs.h" |
| 11088 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11089 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11090 | #include <assert.h> |
| 11091 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11092 | #ifdef __cplusplus |
| 11093 | extern "C" |
| 11094 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11095 | /* 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] | 11096 | builtin and then its argument prototype would still apply. */ |
| 11097 | char $ac_func (); |
| 11098 | char (*f) (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11099 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11100 | #ifdef F77_DUMMY_MAIN |
| 11101 | # ifdef __cplusplus |
| 11102 | extern "C" |
| 11103 | # endif |
| 11104 | int F77_DUMMY_MAIN() { return 1; } |
| 11105 | #endif |
| 11106 | int |
| 11107 | main () |
| 11108 | { |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11109 | /* The GNU C library defines this for functions which it implements |
| 11110 | to always fail with ENOSYS. Some functions are actually named |
| 11111 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11112 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11113 | choke me |
| 11114 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11115 | f = $ac_func; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11116 | #endif |
| 11117 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11118 | ; |
| 11119 | return 0; |
| 11120 | } |
| 11121 | _ACEOF |
| 11122 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11123 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11124 | (eval $ac_link) 2>&5 |
| 11125 | ac_status=$? |
| 11126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11127 | (exit $ac_status); } && |
| 11128 | { ac_try='test -s conftest$ac_exeext' |
| 11129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11130 | (eval $ac_try) 2>&5 |
| 11131 | ac_status=$? |
| 11132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11133 | (exit $ac_status); }; }; then |
| 11134 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11135 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11136 | echo "$as_me: failed program was:" >&5 |
| 11137 | cat conftest.$ac_ext >&5 |
| 11138 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11139 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11140 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11141 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11142 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11143 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11144 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11145 | cat >>confdefs.h <<_ACEOF |
| 11146 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11147 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11148 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11149 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11150 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11151 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11152 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11153 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 11154 | # loading of modules. |
| 11155 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11156 | echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 11157 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11158 | if test -z "$DYNLOADFILE" |
| 11159 | then |
| 11160 | case $ac_sys_system/$ac_sys_release in |
| 11161 | AIX*) DYNLOADFILE="dynload_aix.o";; |
| 11162 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 11163 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11164 | Darwin/*) DYNLOADFILE="dynload_next.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11165 | *) |
| 11166 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 11167 | # out any dynamic loading |
| 11168 | if test "$ac_cv_func_dlopen" = yes |
| 11169 | then DYNLOADFILE="dynload_shlib.o" |
| 11170 | else DYNLOADFILE="dynload_stub.o" |
| 11171 | fi |
| 11172 | ;; |
| 11173 | esac |
| 11174 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11175 | echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 11176 | echo "${ECHO_T}$DYNLOADFILE" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11177 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 11178 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11179 | |
| 11180 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11181 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11182 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11183 | |
| 11184 | fi |
| 11185 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11186 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 11187 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11188 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11189 | echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 11190 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11191 | if test -z "$MACHDEP_OBJS" |
| 11192 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11193 | MACHDEP_OBJS=$extra_machdep_objs |
| 11194 | else |
| 11195 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11196 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11197 | echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 11198 | echo "${ECHO_T}MACHDEP_OBJS" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11199 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11200 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | |
| 11273 | |
Martin v. Löwis | 06a83e9 | 2002-04-14 10:19:44 +0000 | [diff] [blame] | 11274 | |
Fred Drake | 6b3cc52 | 2002-04-15 19:20:27 +0000 | [diff] [blame] | 11275 | |
Martin v. Löwis | 244edc8 | 2001-10-04 22:44:26 +0000 | [diff] [blame] | 11276 | 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] | 11277 | fchdir flock fork fsync fdatasync fpathconf ftime ftruncate \ |
Martin v. Löwis | f95dd0a | 2001-08-15 17:14:33 +0000 | [diff] [blame] | 11278 | gai_strerror getgroups getlogin getpeername getpid getpwent getwd \ |
Martin v. Löwis | 06a83e9 | 2002-04-14 10:19:44 +0000 | [diff] [blame] | 11279 | hstrerror inet_pton kill killpg link lstat mkfifo mknod mktime mremap \ |
Andrew M. Kuchling | 5821b77 | 2000-08-25 01:14:08 +0000 | [diff] [blame] | 11280 | nice pathconf pause plock poll pthread_init \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 11281 | putenv readlink \ |
Martin v. Löwis | 61c5edf | 2001-10-18 04:06:00 +0000 | [diff] [blame] | 11282 | select setegid seteuid setgid setgroups \ |
Martin v. Löwis | 791bfda | 2001-07-24 06:33:08 +0000 | [diff] [blame] | 11283 | setlocale setregid setreuid setsid setpgid setuid setvbuf snprintf \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 11284 | sigaction siginterrupt sigrelse strftime strptime symlink sysconf \ |
Fred Drake | 89143df | 1999-12-09 22:03:25 +0000 | [diff] [blame] | 11285 | tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Guido van Rossum | c524d95 | 2001-10-19 01:31:59 +0000 | [diff] [blame] | 11286 | truncate uname unsetenv waitpid _getpty getpriority |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11287 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11288 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11289 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11290 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11291 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11293 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11294 | cat >conftest.$ac_ext <<_ACEOF |
| 11295 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11296 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11297 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11298 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11299 | #include <assert.h> |
| 11300 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11301 | #ifdef __cplusplus |
| 11302 | extern "C" |
| 11303 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11304 | /* 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] | 11305 | builtin and then its argument prototype would still apply. */ |
| 11306 | char $ac_func (); |
| 11307 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11308 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11309 | #ifdef F77_DUMMY_MAIN |
| 11310 | # ifdef __cplusplus |
| 11311 | extern "C" |
| 11312 | # endif |
| 11313 | int F77_DUMMY_MAIN() { return 1; } |
| 11314 | #endif |
| 11315 | int |
| 11316 | main () |
| 11317 | { |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11318 | /* The GNU C library defines this for functions which it implements |
| 11319 | to always fail with ENOSYS. Some functions are actually named |
| 11320 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11321 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11322 | choke me |
| 11323 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11324 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11325 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11326 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11327 | ; |
| 11328 | return 0; |
| 11329 | } |
| 11330 | _ACEOF |
| 11331 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11332 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11333 | (eval $ac_link) 2>&5 |
| 11334 | ac_status=$? |
| 11335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11336 | (exit $ac_status); } && |
| 11337 | { ac_try='test -s conftest$ac_exeext' |
| 11338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11339 | (eval $ac_try) 2>&5 |
| 11340 | ac_status=$? |
| 11341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11342 | (exit $ac_status); }; }; then |
| 11343 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11344 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11345 | echo "$as_me: failed program was:" >&5 |
| 11346 | cat conftest.$ac_ext >&5 |
| 11347 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11348 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11349 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11350 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11351 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11352 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11353 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11354 | cat >>confdefs.h <<_ACEOF |
| 11355 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11356 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11357 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11358 | fi |
| 11359 | done |
| 11360 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11361 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11362 | # check for openpty and forkpty |
| 11363 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11364 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11365 | for ac_func in openpty |
| 11366 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11367 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11368 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11369 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11370 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11371 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11372 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11373 | cat >conftest.$ac_ext <<_ACEOF |
| 11374 | #line $LINENO "configure" |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11375 | #include "confdefs.h" |
| 11376 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11377 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11378 | #include <assert.h> |
| 11379 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11380 | #ifdef __cplusplus |
| 11381 | extern "C" |
| 11382 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11383 | /* 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] | 11384 | builtin and then its argument prototype would still apply. */ |
| 11385 | char $ac_func (); |
| 11386 | char (*f) (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11387 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11388 | #ifdef F77_DUMMY_MAIN |
| 11389 | # ifdef __cplusplus |
| 11390 | extern "C" |
| 11391 | # endif |
| 11392 | int F77_DUMMY_MAIN() { return 1; } |
| 11393 | #endif |
| 11394 | int |
| 11395 | main () |
| 11396 | { |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11397 | /* The GNU C library defines this for functions which it implements |
| 11398 | to always fail with ENOSYS. Some functions are actually named |
| 11399 | something starting with __ and the normal name is an alias. */ |
| 11400 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11401 | choke me |
| 11402 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11403 | f = $ac_func; |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11404 | #endif |
| 11405 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11406 | ; |
| 11407 | return 0; |
| 11408 | } |
| 11409 | _ACEOF |
| 11410 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11411 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11412 | (eval $ac_link) 2>&5 |
| 11413 | ac_status=$? |
| 11414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11415 | (exit $ac_status); } && |
| 11416 | { ac_try='test -s conftest$ac_exeext' |
| 11417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11418 | (eval $ac_try) 2>&5 |
| 11419 | ac_status=$? |
| 11420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11421 | (exit $ac_status); }; }; then |
| 11422 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11423 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11424 | echo "$as_me: failed program was:" >&5 |
| 11425 | cat conftest.$ac_ext >&5 |
| 11426 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11427 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11428 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11429 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11430 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11431 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11432 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11433 | cat >>confdefs.h <<_ACEOF |
| 11434 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11435 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11436 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11437 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11438 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 11439 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
| 11440 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 11441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11442 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11443 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11444 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11445 | cat >conftest.$ac_ext <<_ACEOF |
| 11446 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11447 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11448 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11449 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11450 | #ifdef __cplusplus |
| 11451 | extern "C" |
| 11452 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11453 | /* 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] | 11454 | builtin and then its argument prototype would still apply. */ |
| 11455 | char openpty (); |
| 11456 | #ifdef F77_DUMMY_MAIN |
| 11457 | # ifdef __cplusplus |
| 11458 | extern "C" |
| 11459 | # endif |
| 11460 | int F77_DUMMY_MAIN() { return 1; } |
| 11461 | #endif |
| 11462 | int |
| 11463 | main () |
| 11464 | { |
| 11465 | openpty (); |
| 11466 | ; |
| 11467 | return 0; |
| 11468 | } |
| 11469 | _ACEOF |
| 11470 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11471 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11472 | (eval $ac_link) 2>&5 |
| 11473 | ac_status=$? |
| 11474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11475 | (exit $ac_status); } && |
| 11476 | { ac_try='test -s conftest$ac_exeext' |
| 11477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11478 | (eval $ac_try) 2>&5 |
| 11479 | ac_status=$? |
| 11480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11481 | (exit $ac_status); }; }; then |
| 11482 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11483 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11484 | echo "$as_me: failed program was:" >&5 |
| 11485 | cat conftest.$ac_ext >&5 |
| 11486 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11487 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11488 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11489 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11490 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11491 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 11492 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
| 11493 | if test $ac_cv_lib_util_openpty = yes; then |
| 11494 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11495 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11496 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11497 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11498 | fi |
| 11499 | |
| 11500 | fi |
| 11501 | done |
| 11502 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11503 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11504 | for ac_func in forkpty |
| 11505 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11506 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11507 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11508 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11509 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11510 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11511 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11512 | cat >conftest.$ac_ext <<_ACEOF |
| 11513 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11514 | #include "confdefs.h" |
| 11515 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11516 | which can conflict with char $ac_func (); below. */ |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11517 | #include <assert.h> |
| 11518 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11519 | #ifdef __cplusplus |
| 11520 | extern "C" |
| 11521 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11522 | /* 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] | 11523 | builtin and then its argument prototype would still apply. */ |
| 11524 | char $ac_func (); |
| 11525 | char (*f) (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11526 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11527 | #ifdef F77_DUMMY_MAIN |
| 11528 | # ifdef __cplusplus |
| 11529 | extern "C" |
| 11530 | # endif |
| 11531 | int F77_DUMMY_MAIN() { return 1; } |
| 11532 | #endif |
| 11533 | int |
| 11534 | main () |
| 11535 | { |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11536 | /* The GNU C library defines this for functions which it implements |
| 11537 | to always fail with ENOSYS. Some functions are actually named |
| 11538 | something starting with __ and the normal name is an alias. */ |
| 11539 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11540 | choke me |
| 11541 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11542 | f = $ac_func; |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11543 | #endif |
| 11544 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11545 | ; |
| 11546 | return 0; |
| 11547 | } |
| 11548 | _ACEOF |
| 11549 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11550 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11551 | (eval $ac_link) 2>&5 |
| 11552 | ac_status=$? |
| 11553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11554 | (exit $ac_status); } && |
| 11555 | { ac_try='test -s conftest$ac_exeext' |
| 11556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11557 | (eval $ac_try) 2>&5 |
| 11558 | ac_status=$? |
| 11559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11560 | (exit $ac_status); }; }; then |
| 11561 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11562 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11563 | echo "$as_me: failed program was:" >&5 |
| 11564 | cat conftest.$ac_ext >&5 |
| 11565 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11566 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11567 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11568 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11569 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11570 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11571 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11572 | cat >>confdefs.h <<_ACEOF |
| 11573 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11574 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11575 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11576 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11577 | echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 11578 | echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6 |
| 11579 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 11580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11581 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11582 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11583 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11584 | cat >conftest.$ac_ext <<_ACEOF |
| 11585 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11586 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11587 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11588 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11589 | #ifdef __cplusplus |
| 11590 | extern "C" |
| 11591 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11592 | /* 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] | 11593 | builtin and then its argument prototype would still apply. */ |
| 11594 | char forkpty (); |
| 11595 | #ifdef F77_DUMMY_MAIN |
| 11596 | # ifdef __cplusplus |
| 11597 | extern "C" |
| 11598 | # endif |
| 11599 | int F77_DUMMY_MAIN() { return 1; } |
| 11600 | #endif |
| 11601 | int |
| 11602 | main () |
| 11603 | { |
| 11604 | forkpty (); |
| 11605 | ; |
| 11606 | return 0; |
| 11607 | } |
| 11608 | _ACEOF |
| 11609 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11610 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11611 | (eval $ac_link) 2>&5 |
| 11612 | ac_status=$? |
| 11613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11614 | (exit $ac_status); } && |
| 11615 | { ac_try='test -s conftest$ac_exeext' |
| 11616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11617 | (eval $ac_try) 2>&5 |
| 11618 | ac_status=$? |
| 11619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11620 | (exit $ac_status); }; }; then |
| 11621 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11622 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11623 | echo "$as_me: failed program was:" >&5 |
| 11624 | cat conftest.$ac_ext >&5 |
| 11625 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11626 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11627 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11628 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11629 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11630 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 11631 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6 |
| 11632 | if test $ac_cv_lib_util_forkpty = yes; then |
| 11633 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11634 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11635 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11636 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11637 | fi |
| 11638 | |
| 11639 | fi |
| 11640 | done |
| 11641 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11642 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11643 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11644 | |
| 11645 | |
| 11646 | |
| 11647 | |
| 11648 | |
| 11649 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11650 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 11651 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11652 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11653 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11654 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11655 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11657 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11658 | cat >conftest.$ac_ext <<_ACEOF |
| 11659 | #line $LINENO "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11660 | #include "confdefs.h" |
| 11661 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11662 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11663 | #include <assert.h> |
| 11664 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11665 | #ifdef __cplusplus |
| 11666 | extern "C" |
| 11667 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11668 | /* 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] | 11669 | builtin and then its argument prototype would still apply. */ |
| 11670 | char $ac_func (); |
| 11671 | char (*f) (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11672 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11673 | #ifdef F77_DUMMY_MAIN |
| 11674 | # ifdef __cplusplus |
| 11675 | extern "C" |
| 11676 | # endif |
| 11677 | int F77_DUMMY_MAIN() { return 1; } |
| 11678 | #endif |
| 11679 | int |
| 11680 | main () |
| 11681 | { |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11682 | /* The GNU C library defines this for functions which it implements |
| 11683 | to always fail with ENOSYS. Some functions are actually named |
| 11684 | something starting with __ and the normal name is an alias. */ |
| 11685 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11686 | choke me |
| 11687 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11688 | f = $ac_func; |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11689 | #endif |
| 11690 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11691 | ; |
| 11692 | return 0; |
| 11693 | } |
| 11694 | _ACEOF |
| 11695 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11696 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11697 | (eval $ac_link) 2>&5 |
| 11698 | ac_status=$? |
| 11699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11700 | (exit $ac_status); } && |
| 11701 | { ac_try='test -s conftest$ac_exeext' |
| 11702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11703 | (eval $ac_try) 2>&5 |
| 11704 | ac_status=$? |
| 11705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11706 | (exit $ac_status); }; }; then |
| 11707 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11708 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11709 | echo "$as_me: failed program was:" >&5 |
| 11710 | cat conftest.$ac_ext >&5 |
| 11711 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11712 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11713 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11714 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11715 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11716 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11717 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11718 | cat >>confdefs.h <<_ACEOF |
| 11719 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11720 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11721 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11722 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11723 | done |
| 11724 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11725 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11726 | |
| 11727 | |
| 11728 | |
| 11729 | |
| 11730 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11731 | for ac_func in dup2 getcwd strdup strerror memmove |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11732 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11733 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11734 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11735 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11736 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11737 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11738 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11739 | cat >conftest.$ac_ext <<_ACEOF |
| 11740 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11741 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11742 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11743 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11744 | #include <assert.h> |
| 11745 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11746 | #ifdef __cplusplus |
| 11747 | extern "C" |
| 11748 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11749 | /* 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] | 11750 | builtin and then its argument prototype would still apply. */ |
| 11751 | char $ac_func (); |
| 11752 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11753 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11754 | #ifdef F77_DUMMY_MAIN |
| 11755 | # ifdef __cplusplus |
| 11756 | extern "C" |
| 11757 | # endif |
| 11758 | int F77_DUMMY_MAIN() { return 1; } |
| 11759 | #endif |
| 11760 | int |
| 11761 | main () |
| 11762 | { |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11763 | /* The GNU C library defines this for functions which it implements |
| 11764 | to always fail with ENOSYS. Some functions are actually named |
| 11765 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11766 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11767 | choke me |
| 11768 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11769 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11770 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11771 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11772 | ; |
| 11773 | return 0; |
| 11774 | } |
| 11775 | _ACEOF |
| 11776 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11777 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11778 | (eval $ac_link) 2>&5 |
| 11779 | ac_status=$? |
| 11780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11781 | (exit $ac_status); } && |
| 11782 | { ac_try='test -s conftest$ac_exeext' |
| 11783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11784 | (eval $ac_try) 2>&5 |
| 11785 | ac_status=$? |
| 11786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11787 | (exit $ac_status); }; }; then |
| 11788 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11789 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11790 | echo "$as_me: failed program was:" >&5 |
| 11791 | cat conftest.$ac_ext >&5 |
| 11792 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11793 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11794 | 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] | 11795 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11796 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11797 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11798 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11799 | cat >>confdefs.h <<_ACEOF |
| 11800 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11801 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11802 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11803 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11804 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11805 | fi |
| 11806 | done |
| 11807 | |
| 11808 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11809 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11810 | for ac_func in getpgrp |
| 11811 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11812 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11813 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11814 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11815 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11817 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11818 | cat >conftest.$ac_ext <<_ACEOF |
| 11819 | #line $LINENO "configure" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11820 | #include "confdefs.h" |
| 11821 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11822 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11823 | #include <assert.h> |
| 11824 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11825 | #ifdef __cplusplus |
| 11826 | extern "C" |
| 11827 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11828 | /* 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] | 11829 | builtin and then its argument prototype would still apply. */ |
| 11830 | char $ac_func (); |
| 11831 | char (*f) (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11832 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11833 | #ifdef F77_DUMMY_MAIN |
| 11834 | # ifdef __cplusplus |
| 11835 | extern "C" |
| 11836 | # endif |
| 11837 | int F77_DUMMY_MAIN() { return 1; } |
| 11838 | #endif |
| 11839 | int |
| 11840 | main () |
| 11841 | { |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11842 | /* The GNU C library defines this for functions which it implements |
| 11843 | to always fail with ENOSYS. Some functions are actually named |
| 11844 | something starting with __ and the normal name is an alias. */ |
| 11845 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11846 | choke me |
| 11847 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11848 | f = $ac_func; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11849 | #endif |
| 11850 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11851 | ; |
| 11852 | return 0; |
| 11853 | } |
| 11854 | _ACEOF |
| 11855 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11856 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11857 | (eval $ac_link) 2>&5 |
| 11858 | ac_status=$? |
| 11859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11860 | (exit $ac_status); } && |
| 11861 | { ac_try='test -s conftest$ac_exeext' |
| 11862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11863 | (eval $ac_try) 2>&5 |
| 11864 | ac_status=$? |
| 11865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11866 | (exit $ac_status); }; }; then |
| 11867 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11868 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11869 | echo "$as_me: failed program was:" >&5 |
| 11870 | cat conftest.$ac_ext >&5 |
| 11871 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11872 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11873 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11874 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11875 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11876 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11877 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11878 | cat >>confdefs.h <<_ACEOF |
| 11879 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11880 | _ACEOF |
| 11881 | cat >conftest.$ac_ext <<_ACEOF |
| 11882 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11883 | #include "confdefs.h" |
| 11884 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11885 | #ifdef F77_DUMMY_MAIN |
| 11886 | # ifdef __cplusplus |
| 11887 | extern "C" |
| 11888 | # endif |
| 11889 | int F77_DUMMY_MAIN() { return 1; } |
| 11890 | #endif |
| 11891 | int |
| 11892 | main () |
| 11893 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11894 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11895 | ; |
| 11896 | return 0; |
| 11897 | } |
| 11898 | _ACEOF |
| 11899 | rm -f conftest.$ac_objext |
| 11900 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11901 | (eval $ac_compile) 2>&5 |
| 11902 | ac_status=$? |
| 11903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11904 | (exit $ac_status); } && |
| 11905 | { ac_try='test -s conftest.$ac_objext' |
| 11906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11907 | (eval $ac_try) 2>&5 |
| 11908 | ac_status=$? |
| 11909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11910 | (exit $ac_status); }; }; then |
| 11911 | |
| 11912 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11913 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11914 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11915 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11916 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 11917 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11918 | echo "$as_me: failed program was:" >&5 |
| 11919 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11920 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11921 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11922 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11923 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11924 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11925 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11926 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11927 | for ac_func in setpgrp |
| 11928 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11929 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11930 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11931 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11932 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11934 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11935 | cat >conftest.$ac_ext <<_ACEOF |
| 11936 | #line $LINENO "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 11937 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11938 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11939 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11940 | #include <assert.h> |
| 11941 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11942 | #ifdef __cplusplus |
| 11943 | extern "C" |
| 11944 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11945 | /* 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] | 11946 | builtin and then its argument prototype would still apply. */ |
| 11947 | char $ac_func (); |
| 11948 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11949 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11950 | #ifdef F77_DUMMY_MAIN |
| 11951 | # ifdef __cplusplus |
| 11952 | extern "C" |
| 11953 | # endif |
| 11954 | int F77_DUMMY_MAIN() { return 1; } |
| 11955 | #endif |
| 11956 | int |
| 11957 | main () |
| 11958 | { |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 11959 | /* The GNU C library defines this for functions which it implements |
| 11960 | to always fail with ENOSYS. Some functions are actually named |
| 11961 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11962 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 11963 | choke me |
| 11964 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11965 | f = $ac_func; |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 11966 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11967 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11968 | ; |
| 11969 | return 0; |
| 11970 | } |
| 11971 | _ACEOF |
| 11972 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11973 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11974 | (eval $ac_link) 2>&5 |
| 11975 | ac_status=$? |
| 11976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11977 | (exit $ac_status); } && |
| 11978 | { ac_try='test -s conftest$ac_exeext' |
| 11979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11980 | (eval $ac_try) 2>&5 |
| 11981 | ac_status=$? |
| 11982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11983 | (exit $ac_status); }; }; then |
| 11984 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11985 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11986 | echo "$as_me: failed program was:" >&5 |
| 11987 | cat conftest.$ac_ext >&5 |
| 11988 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11989 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11990 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11991 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11992 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11993 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11994 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11995 | cat >>confdefs.h <<_ACEOF |
| 11996 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11997 | _ACEOF |
| 11998 | cat >conftest.$ac_ext <<_ACEOF |
| 11999 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12000 | #include "confdefs.h" |
| 12001 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12002 | #ifdef F77_DUMMY_MAIN |
| 12003 | # ifdef __cplusplus |
| 12004 | extern "C" |
| 12005 | # endif |
| 12006 | int F77_DUMMY_MAIN() { return 1; } |
| 12007 | #endif |
| 12008 | int |
| 12009 | main () |
| 12010 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12011 | setpgrp(0,0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12012 | ; |
| 12013 | return 0; |
| 12014 | } |
| 12015 | _ACEOF |
| 12016 | rm -f conftest.$ac_objext |
| 12017 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12018 | (eval $ac_compile) 2>&5 |
| 12019 | ac_status=$? |
| 12020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12021 | (exit $ac_status); } && |
| 12022 | { ac_try='test -s conftest.$ac_objext' |
| 12023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12024 | (eval $ac_try) 2>&5 |
| 12025 | ac_status=$? |
| 12026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12027 | (exit $ac_status); }; }; then |
| 12028 | |
| 12029 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12030 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12031 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12032 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12033 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 12034 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12035 | echo "$as_me: failed program was:" >&5 |
| 12036 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12037 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12038 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12039 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12040 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12041 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12042 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12043 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12044 | for ac_func in gettimeofday |
| 12045 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12046 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12047 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12048 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12049 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12051 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12052 | cat >conftest.$ac_ext <<_ACEOF |
| 12053 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12054 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12055 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12056 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12057 | #include <assert.h> |
| 12058 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12059 | #ifdef __cplusplus |
| 12060 | extern "C" |
| 12061 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12062 | /* 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] | 12063 | builtin and then its argument prototype would still apply. */ |
| 12064 | char $ac_func (); |
| 12065 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12066 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12067 | #ifdef F77_DUMMY_MAIN |
| 12068 | # ifdef __cplusplus |
| 12069 | extern "C" |
| 12070 | # endif |
| 12071 | int F77_DUMMY_MAIN() { return 1; } |
| 12072 | #endif |
| 12073 | int |
| 12074 | main () |
| 12075 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12076 | /* The GNU C library defines this for functions which it implements |
| 12077 | to always fail with ENOSYS. Some functions are actually named |
| 12078 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12079 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12080 | choke me |
| 12081 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12082 | f = $ac_func; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12083 | #endif |
| 12084 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12085 | ; |
| 12086 | return 0; |
| 12087 | } |
| 12088 | _ACEOF |
| 12089 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12090 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12091 | (eval $ac_link) 2>&5 |
| 12092 | ac_status=$? |
| 12093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12094 | (exit $ac_status); } && |
| 12095 | { ac_try='test -s conftest$ac_exeext' |
| 12096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12097 | (eval $ac_try) 2>&5 |
| 12098 | ac_status=$? |
| 12099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12100 | (exit $ac_status); }; }; then |
| 12101 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12102 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12103 | echo "$as_me: failed program was:" >&5 |
| 12104 | cat conftest.$ac_ext >&5 |
| 12105 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12106 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12107 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12108 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12109 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12110 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12111 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12112 | cat >>confdefs.h <<_ACEOF |
| 12113 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12114 | _ACEOF |
| 12115 | cat >conftest.$ac_ext <<_ACEOF |
| 12116 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12117 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12118 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12119 | #ifdef F77_DUMMY_MAIN |
| 12120 | # ifdef __cplusplus |
| 12121 | extern "C" |
| 12122 | # endif |
| 12123 | int F77_DUMMY_MAIN() { return 1; } |
| 12124 | #endif |
| 12125 | int |
| 12126 | main () |
| 12127 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12128 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12129 | ; |
| 12130 | return 0; |
| 12131 | } |
| 12132 | _ACEOF |
| 12133 | rm -f conftest.$ac_objext |
| 12134 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12135 | (eval $ac_compile) 2>&5 |
| 12136 | ac_status=$? |
| 12137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12138 | (exit $ac_status); } && |
| 12139 | { ac_try='test -s conftest.$ac_objext' |
| 12140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12141 | (eval $ac_try) 2>&5 |
| 12142 | ac_status=$? |
| 12143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12144 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12145 | : |
| 12146 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12147 | echo "$as_me: failed program was:" >&5 |
| 12148 | cat conftest.$ac_ext >&5 |
| 12149 | |
| 12150 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12151 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12152 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12153 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12154 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12155 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12156 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12157 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12158 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12159 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12160 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12161 | |
| 12162 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12163 | # 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] | 12164 | # for [no]getaddrinfo in netdb.h. |
| 12165 | echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 12166 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 |
| 12167 | cat >conftest.$ac_ext <<_ACEOF |
| 12168 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12169 | #include "confdefs.h" |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12170 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12171 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12172 | #include <sys/socket.h> |
| 12173 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12174 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12175 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12176 | #ifdef F77_DUMMY_MAIN |
| 12177 | # ifdef __cplusplus |
| 12178 | extern "C" |
| 12179 | # endif |
| 12180 | int F77_DUMMY_MAIN() { return 1; } |
| 12181 | #endif |
| 12182 | int |
| 12183 | main () |
| 12184 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12185 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12186 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12187 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12188 | ; |
| 12189 | return 0; |
| 12190 | } |
| 12191 | _ACEOF |
| 12192 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12193 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12194 | (eval $ac_link) 2>&5 |
| 12195 | ac_status=$? |
| 12196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12197 | (exit $ac_status); } && |
| 12198 | { ac_try='test -s conftest$ac_exeext' |
| 12199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12200 | (eval $ac_try) 2>&5 |
| 12201 | ac_status=$? |
| 12202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12203 | (exit $ac_status); }; }; then |
| 12204 | |
| 12205 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12206 | echo "${ECHO_T}yes" >&6 |
| 12207 | echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 12208 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12209 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12210 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 12211 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12212 | buggygetaddrinfo=yes |
| 12213 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12214 | cat >conftest.$ac_ext <<_ACEOF |
| 12215 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12216 | #include "confdefs.h" |
| 12217 | |
| 12218 | #include <sys/types.h> |
| 12219 | #include <netdb.h> |
| 12220 | #include <string.h> |
| 12221 | #include <sys/socket.h> |
| 12222 | #include <netinet/in.h> |
| 12223 | |
| 12224 | main() |
| 12225 | { |
| 12226 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 12227 | struct addrinfo hints, *ai, *aitop; |
| 12228 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 12229 | |
| 12230 | for (passive = 0; passive <= 1; passive++) { |
| 12231 | memset(&hints, 0, sizeof(hints)); |
| 12232 | hints.ai_family = AF_UNSPEC; |
| 12233 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 12234 | hints.ai_socktype = SOCK_STREAM; |
| 12235 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 12236 | (void)gai_strerror(gaierr); |
| 12237 | goto bad; |
| 12238 | } |
| 12239 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 12240 | if (ai->ai_addr == NULL || |
| 12241 | ai->ai_addrlen == 0 || |
| 12242 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 12243 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 12244 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 12245 | goto bad; |
| 12246 | } |
| 12247 | switch (ai->ai_family) { |
| 12248 | case AF_INET: |
| 12249 | if (strcmp(strport, "54321") != 0) { |
| 12250 | goto bad; |
| 12251 | } |
| 12252 | if (passive) { |
| 12253 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 12254 | goto bad; |
| 12255 | } |
| 12256 | } else { |
| 12257 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 12258 | goto bad; |
| 12259 | } |
| 12260 | } |
| 12261 | inet4++; |
| 12262 | break; |
| 12263 | case AF_INET6: |
| 12264 | if (strcmp(strport, "54321") != 0) { |
| 12265 | goto bad; |
| 12266 | } |
| 12267 | if (passive) { |
| 12268 | if (strcmp(straddr, "::") != 0) { |
| 12269 | goto bad; |
| 12270 | } |
| 12271 | } else { |
| 12272 | if (strcmp(straddr, "::1") != 0) { |
| 12273 | goto bad; |
| 12274 | } |
| 12275 | } |
| 12276 | inet6++; |
| 12277 | break; |
| 12278 | case AF_UNSPEC: |
| 12279 | goto bad; |
| 12280 | break; |
| 12281 | default: |
| 12282 | /* another family support? */ |
| 12283 | break; |
| 12284 | } |
| 12285 | } |
| 12286 | } |
| 12287 | |
| 12288 | if (!(inet4 == 0 || inet4 == 2)) |
| 12289 | goto bad; |
| 12290 | if (!(inet6 == 0 || inet6 == 2)) |
| 12291 | goto bad; |
| 12292 | |
| 12293 | if (aitop) |
| 12294 | freeaddrinfo(aitop); |
| 12295 | exit(0); |
| 12296 | |
| 12297 | bad: |
| 12298 | if (aitop) |
| 12299 | freeaddrinfo(aitop); |
| 12300 | exit(1); |
| 12301 | } |
| 12302 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12303 | _ACEOF |
| 12304 | rm -f conftest$ac_exeext |
| 12305 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12306 | (eval $ac_link) 2>&5 |
| 12307 | ac_status=$? |
| 12308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12309 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12311 | (eval $ac_try) 2>&5 |
| 12312 | ac_status=$? |
| 12313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12314 | (exit $ac_status); }; }; then |
| 12315 | echo "$as_me:$LINENO: result: good" >&5 |
| 12316 | echo "${ECHO_T}good" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12317 | buggygetaddrinfo=no |
| 12318 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12319 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12320 | echo "$as_me: failed program was:" >&5 |
| 12321 | cat conftest.$ac_ext >&5 |
| 12322 | ( exit $ac_status ) |
| 12323 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 12324 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12325 | buggygetaddrinfo=yes |
| 12326 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12327 | 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] | 12328 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12329 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12330 | echo "$as_me: failed program was:" >&5 |
| 12331 | cat conftest.$ac_ext >&5 |
| 12332 | |
| 12333 | echo "$as_me:$LINENO: result: no" >&5 |
| 12334 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12335 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12336 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12337 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12338 | 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] | 12339 | |
| 12340 | if test "$buggygetaddrinfo" = "yes"; then |
| 12341 | if test "$ipv6" = "yes"; then |
| 12342 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 12343 | echo ' or you can specify "--disable-ipv6"'. |
| 12344 | exit 1 |
| 12345 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12346 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12347 | |
| 12348 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12349 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12350 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12351 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12352 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12353 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 12354 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12355 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12356 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12357 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12358 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12359 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12361 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12362 | cat >conftest.$ac_ext <<_ACEOF |
| 12363 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12364 | #include "confdefs.h" |
| 12365 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12366 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12367 | #include <assert.h> |
| 12368 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12369 | #ifdef __cplusplus |
| 12370 | extern "C" |
| 12371 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12372 | /* 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] | 12373 | builtin and then its argument prototype would still apply. */ |
| 12374 | char $ac_func (); |
| 12375 | char (*f) (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12376 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12377 | #ifdef F77_DUMMY_MAIN |
| 12378 | # ifdef __cplusplus |
| 12379 | extern "C" |
| 12380 | # endif |
| 12381 | int F77_DUMMY_MAIN() { return 1; } |
| 12382 | #endif |
| 12383 | int |
| 12384 | main () |
| 12385 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12386 | /* The GNU C library defines this for functions which it implements |
| 12387 | to always fail with ENOSYS. Some functions are actually named |
| 12388 | something starting with __ and the normal name is an alias. */ |
| 12389 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12390 | choke me |
| 12391 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12392 | f = $ac_func; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12393 | #endif |
| 12394 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12395 | ; |
| 12396 | return 0; |
| 12397 | } |
| 12398 | _ACEOF |
| 12399 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12400 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12401 | (eval $ac_link) 2>&5 |
| 12402 | ac_status=$? |
| 12403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12404 | (exit $ac_status); } && |
| 12405 | { ac_try='test -s conftest$ac_exeext' |
| 12406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12407 | (eval $ac_try) 2>&5 |
| 12408 | ac_status=$? |
| 12409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12410 | (exit $ac_status); }; }; then |
| 12411 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12412 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12413 | echo "$as_me: failed program was:" >&5 |
| 12414 | cat conftest.$ac_ext >&5 |
| 12415 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12416 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12417 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12418 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12419 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12420 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12421 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12422 | cat >>confdefs.h <<_ACEOF |
| 12423 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12424 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12425 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12426 | fi |
| 12427 | done |
| 12428 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12429 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12430 | # checks for structures |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12431 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 12432 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 12433 | if test "${ac_cv_header_time+set}" = set; then |
| 12434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12435 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12436 | cat >conftest.$ac_ext <<_ACEOF |
| 12437 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12438 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12439 | #include <sys/types.h> |
| 12440 | #include <sys/time.h> |
| 12441 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12442 | |
| 12443 | #ifdef F77_DUMMY_MAIN |
| 12444 | # ifdef __cplusplus |
| 12445 | extern "C" |
| 12446 | # endif |
| 12447 | int F77_DUMMY_MAIN() { return 1; } |
| 12448 | #endif |
| 12449 | int |
| 12450 | main () |
| 12451 | { |
| 12452 | if ((struct tm *) 0) |
| 12453 | return 0; |
| 12454 | ; |
| 12455 | return 0; |
| 12456 | } |
| 12457 | _ACEOF |
| 12458 | rm -f conftest.$ac_objext |
| 12459 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12460 | (eval $ac_compile) 2>&5 |
| 12461 | ac_status=$? |
| 12462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12463 | (exit $ac_status); } && |
| 12464 | { ac_try='test -s conftest.$ac_objext' |
| 12465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12466 | (eval $ac_try) 2>&5 |
| 12467 | ac_status=$? |
| 12468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12469 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12470 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12471 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12472 | echo "$as_me: failed program was:" >&5 |
| 12473 | cat conftest.$ac_ext >&5 |
| 12474 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12475 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12476 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12477 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12478 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 12479 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12480 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12481 | |
| 12482 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12483 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12484 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12485 | |
| 12486 | fi |
| 12487 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12488 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 12489 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 12490 | if test "${ac_cv_struct_tm+set}" = set; then |
| 12491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12492 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12493 | cat >conftest.$ac_ext <<_ACEOF |
| 12494 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12495 | #include "confdefs.h" |
| 12496 | #include <sys/types.h> |
| 12497 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12498 | |
| 12499 | #ifdef F77_DUMMY_MAIN |
| 12500 | # ifdef __cplusplus |
| 12501 | extern "C" |
| 12502 | # endif |
| 12503 | int F77_DUMMY_MAIN() { return 1; } |
| 12504 | #endif |
| 12505 | int |
| 12506 | main () |
| 12507 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12508 | struct tm *tp; tp->tm_sec; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12509 | ; |
| 12510 | return 0; |
| 12511 | } |
| 12512 | _ACEOF |
| 12513 | rm -f conftest.$ac_objext |
| 12514 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12515 | (eval $ac_compile) 2>&5 |
| 12516 | ac_status=$? |
| 12517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12518 | (exit $ac_status); } && |
| 12519 | { ac_try='test -s conftest.$ac_objext' |
| 12520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12521 | (eval $ac_try) 2>&5 |
| 12522 | ac_status=$? |
| 12523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12524 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12525 | ac_cv_struct_tm=time.h |
| 12526 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12527 | echo "$as_me: failed program was:" >&5 |
| 12528 | cat conftest.$ac_ext >&5 |
| 12529 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12530 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12531 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12532 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12533 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 12534 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12535 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12536 | |
| 12537 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12538 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12539 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12540 | |
| 12541 | fi |
| 12542 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12543 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 12544 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 12545 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 12546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12547 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12548 | cat >conftest.$ac_ext <<_ACEOF |
| 12549 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12550 | #include "confdefs.h" |
| 12551 | #include <sys/types.h> |
| 12552 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12553 | |
| 12554 | |
| 12555 | #ifdef F77_DUMMY_MAIN |
| 12556 | # ifdef __cplusplus |
| 12557 | extern "C" |
| 12558 | # endif |
| 12559 | int F77_DUMMY_MAIN() { return 1; } |
| 12560 | #endif |
| 12561 | int |
| 12562 | main () |
| 12563 | { |
| 12564 | static struct tm ac_aggr; |
| 12565 | if (ac_aggr.tm_zone) |
| 12566 | return 0; |
| 12567 | ; |
| 12568 | return 0; |
| 12569 | } |
| 12570 | _ACEOF |
| 12571 | rm -f conftest.$ac_objext |
| 12572 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12573 | (eval $ac_compile) 2>&5 |
| 12574 | ac_status=$? |
| 12575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12576 | (exit $ac_status); } && |
| 12577 | { ac_try='test -s conftest.$ac_objext' |
| 12578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12579 | (eval $ac_try) 2>&5 |
| 12580 | ac_status=$? |
| 12581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12582 | (exit $ac_status); }; }; then |
| 12583 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12584 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12585 | echo "$as_me: failed program was:" >&5 |
| 12586 | cat conftest.$ac_ext >&5 |
| 12587 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12588 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12589 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12590 | fi |
| 12591 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 12592 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 12593 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 12594 | |
| 12595 | cat >>confdefs.h <<_ACEOF |
| 12596 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 12597 | _ACEOF |
| 12598 | |
| 12599 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12600 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12601 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12602 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 12603 | |
| 12604 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12605 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12606 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12607 | |
| 12608 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12609 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 12610 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 12611 | if test "${ac_cv_var_tzname+set}" = set; then |
| 12612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12613 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12614 | cat >conftest.$ac_ext <<_ACEOF |
| 12615 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12616 | #include "confdefs.h" |
| 12617 | #include <time.h> |
| 12618 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12619 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12620 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12621 | |
| 12622 | #ifdef F77_DUMMY_MAIN |
| 12623 | # ifdef __cplusplus |
| 12624 | extern "C" |
| 12625 | # endif |
| 12626 | int F77_DUMMY_MAIN() { return 1; } |
| 12627 | #endif |
| 12628 | int |
| 12629 | main () |
| 12630 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12631 | atoi(*tzname); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12632 | ; |
| 12633 | return 0; |
| 12634 | } |
| 12635 | _ACEOF |
| 12636 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12637 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12638 | (eval $ac_link) 2>&5 |
| 12639 | ac_status=$? |
| 12640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12641 | (exit $ac_status); } && |
| 12642 | { ac_try='test -s conftest$ac_exeext' |
| 12643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12644 | (eval $ac_try) 2>&5 |
| 12645 | ac_status=$? |
| 12646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12647 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12648 | ac_cv_var_tzname=yes |
| 12649 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12650 | echo "$as_me: failed program was:" >&5 |
| 12651 | cat conftest.$ac_ext >&5 |
| 12652 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12653 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12654 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12655 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12656 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 12657 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12658 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12659 | |
| 12660 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12661 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12662 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12663 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12664 | fi |
| 12665 | fi |
| 12666 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12667 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12668 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 12669 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 |
| 12670 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 12671 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12672 | else |
| 12673 | cat >conftest.$ac_ext <<_ACEOF |
| 12674 | #line $LINENO "configure" |
| 12675 | #include "confdefs.h" |
| 12676 | $ac_includes_default |
| 12677 | #ifdef F77_DUMMY_MAIN |
| 12678 | # ifdef __cplusplus |
| 12679 | extern "C" |
| 12680 | # endif |
| 12681 | int F77_DUMMY_MAIN() { return 1; } |
| 12682 | #endif |
| 12683 | int |
| 12684 | main () |
| 12685 | { |
| 12686 | static struct stat ac_aggr; |
| 12687 | if (ac_aggr.st_rdev) |
| 12688 | return 0; |
| 12689 | ; |
| 12690 | return 0; |
| 12691 | } |
| 12692 | _ACEOF |
| 12693 | rm -f conftest.$ac_objext |
| 12694 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12695 | (eval $ac_compile) 2>&5 |
| 12696 | ac_status=$? |
| 12697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12698 | (exit $ac_status); } && |
| 12699 | { ac_try='test -s conftest.$ac_objext' |
| 12700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12701 | (eval $ac_try) 2>&5 |
| 12702 | ac_status=$? |
| 12703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12704 | (exit $ac_status); }; }; then |
| 12705 | ac_cv_member_struct_stat_st_rdev=yes |
| 12706 | else |
| 12707 | echo "$as_me: failed program was:" >&5 |
| 12708 | cat conftest.$ac_ext >&5 |
| 12709 | ac_cv_member_struct_stat_st_rdev=no |
| 12710 | fi |
| 12711 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12712 | fi |
| 12713 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 12714 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 |
| 12715 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 12716 | |
| 12717 | cat >>confdefs.h <<_ACEOF |
| 12718 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 12719 | _ACEOF |
| 12720 | |
| 12721 | |
| 12722 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12723 | #define HAVE_ST_RDEV 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12724 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12725 | |
| 12726 | fi |
| 12727 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12728 | |
| 12729 | |
| 12730 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 12731 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| 12732 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 12733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12734 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12735 | cat >conftest.$ac_ext <<_ACEOF |
| 12736 | #line $LINENO "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12737 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12738 | $ac_includes_default |
| 12739 | #ifdef F77_DUMMY_MAIN |
| 12740 | # ifdef __cplusplus |
| 12741 | extern "C" |
| 12742 | # endif |
| 12743 | int F77_DUMMY_MAIN() { return 1; } |
| 12744 | #endif |
| 12745 | int |
| 12746 | main () |
| 12747 | { |
| 12748 | static struct stat ac_aggr; |
| 12749 | if (ac_aggr.st_blksize) |
| 12750 | return 0; |
| 12751 | ; |
| 12752 | return 0; |
| 12753 | } |
| 12754 | _ACEOF |
| 12755 | rm -f conftest.$ac_objext |
| 12756 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12757 | (eval $ac_compile) 2>&5 |
| 12758 | ac_status=$? |
| 12759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12760 | (exit $ac_status); } && |
| 12761 | { ac_try='test -s conftest.$ac_objext' |
| 12762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12763 | (eval $ac_try) 2>&5 |
| 12764 | ac_status=$? |
| 12765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12766 | (exit $ac_status); }; }; then |
| 12767 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12768 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12769 | echo "$as_me: failed program was:" >&5 |
| 12770 | cat conftest.$ac_ext >&5 |
| 12771 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12772 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12773 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12774 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12775 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 12776 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| 12777 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12778 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12779 | cat >>confdefs.h <<_ACEOF |
| 12780 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 12781 | _ACEOF |
| 12782 | |
| 12783 | |
| 12784 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12785 | #define HAVE_ST_BLKSIZE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12786 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12787 | |
| 12788 | fi |
| 12789 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12790 | |
| 12791 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 12792 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 12793 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 12794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12795 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12796 | cat >conftest.$ac_ext <<_ACEOF |
| 12797 | #line $LINENO "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12798 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12799 | $ac_includes_default |
| 12800 | #ifdef F77_DUMMY_MAIN |
| 12801 | # ifdef __cplusplus |
| 12802 | extern "C" |
| 12803 | # endif |
| 12804 | int F77_DUMMY_MAIN() { return 1; } |
| 12805 | #endif |
| 12806 | int |
| 12807 | main () |
| 12808 | { |
| 12809 | static struct stat ac_aggr; |
| 12810 | if (ac_aggr.st_blocks) |
| 12811 | return 0; |
| 12812 | ; |
| 12813 | return 0; |
| 12814 | } |
| 12815 | _ACEOF |
| 12816 | rm -f conftest.$ac_objext |
| 12817 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12818 | (eval $ac_compile) 2>&5 |
| 12819 | ac_status=$? |
| 12820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12821 | (exit $ac_status); } && |
| 12822 | { ac_try='test -s conftest.$ac_objext' |
| 12823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12824 | (eval $ac_try) 2>&5 |
| 12825 | ac_status=$? |
| 12826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12827 | (exit $ac_status); }; }; then |
| 12828 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12829 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12830 | echo "$as_me: failed program was:" >&5 |
| 12831 | cat conftest.$ac_ext >&5 |
| 12832 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12833 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12834 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12835 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12836 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 12837 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 12838 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12839 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12840 | cat >>confdefs.h <<_ACEOF |
| 12841 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 12842 | _ACEOF |
| 12843 | |
| 12844 | |
| 12845 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12846 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12847 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12848 | |
| 12849 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12850 | LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12851 | fi |
| 12852 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12853 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12854 | |
| 12855 | echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 12856 | echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6 |
| 12857 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 12858 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12859 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12860 | cat >conftest.$ac_ext <<_ACEOF |
| 12861 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12862 | #include "confdefs.h" |
| 12863 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12864 | #ifdef F77_DUMMY_MAIN |
| 12865 | # ifdef __cplusplus |
| 12866 | extern "C" |
| 12867 | # endif |
| 12868 | int F77_DUMMY_MAIN() { return 1; } |
| 12869 | #endif |
| 12870 | int |
| 12871 | main () |
| 12872 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12873 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12874 | ; |
| 12875 | return 0; |
| 12876 | } |
| 12877 | _ACEOF |
| 12878 | rm -f conftest.$ac_objext |
| 12879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12880 | (eval $ac_compile) 2>&5 |
| 12881 | ac_status=$? |
| 12882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12883 | (exit $ac_status); } && |
| 12884 | { ac_try='test -s conftest.$ac_objext' |
| 12885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12886 | (eval $ac_try) 2>&5 |
| 12887 | ac_status=$? |
| 12888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12889 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12890 | ac_cv_header_time_altzone=yes |
| 12891 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12892 | echo "$as_me: failed program was:" >&5 |
| 12893 | cat conftest.$ac_ext >&5 |
| 12894 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12895 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12896 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12897 | fi |
| 12898 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12899 | echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 12900 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12901 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12902 | |
| 12903 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12904 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12905 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12906 | |
| 12907 | fi |
| 12908 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12909 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12910 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 12911 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 12912 | cat >conftest.$ac_ext <<_ACEOF |
| 12913 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12914 | #include "confdefs.h" |
| 12915 | |
| 12916 | #include <sys/types.h> |
| 12917 | #include <sys/select.h> |
| 12918 | #include <sys/time.h> |
| 12919 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12920 | #ifdef F77_DUMMY_MAIN |
| 12921 | # ifdef __cplusplus |
| 12922 | extern "C" |
| 12923 | # endif |
| 12924 | int F77_DUMMY_MAIN() { return 1; } |
| 12925 | #endif |
| 12926 | int |
| 12927 | main () |
| 12928 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12929 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12930 | ; |
| 12931 | return 0; |
| 12932 | } |
| 12933 | _ACEOF |
| 12934 | rm -f conftest.$ac_objext |
| 12935 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12936 | (eval $ac_compile) 2>&5 |
| 12937 | ac_status=$? |
| 12938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12939 | (exit $ac_status); } && |
| 12940 | { ac_try='test -s conftest.$ac_objext' |
| 12941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12942 | (eval $ac_try) 2>&5 |
| 12943 | ac_status=$? |
| 12944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12945 | (exit $ac_status); }; }; then |
| 12946 | |
| 12947 | |
| 12948 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12949 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12950 | _ACEOF |
| 12951 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12952 | was_it_defined=yes |
| 12953 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 12954 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12955 | echo "$as_me: failed program was:" >&5 |
| 12956 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12957 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12958 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12959 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 12960 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12961 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12962 | echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 12963 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6 |
| 12964 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 12965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12966 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12967 | cat >conftest.$ac_ext <<_ACEOF |
| 12968 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12969 | #include "confdefs.h" |
| 12970 | |
| 12971 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12972 | #ifdef F77_DUMMY_MAIN |
| 12973 | # ifdef __cplusplus |
| 12974 | extern "C" |
| 12975 | # endif |
| 12976 | int F77_DUMMY_MAIN() { return 1; } |
| 12977 | #endif |
| 12978 | int |
| 12979 | main () |
| 12980 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12981 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12982 | ; |
| 12983 | return 0; |
| 12984 | } |
| 12985 | _ACEOF |
| 12986 | rm -f conftest.$ac_objext |
| 12987 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12988 | (eval $ac_compile) 2>&5 |
| 12989 | ac_status=$? |
| 12990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12991 | (exit $ac_status); } && |
| 12992 | { ac_try='test -s conftest.$ac_objext' |
| 12993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12994 | (eval $ac_try) 2>&5 |
| 12995 | ac_status=$? |
| 12996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12997 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12998 | ac_cv_struct_addrinfo=yes |
| 12999 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13000 | echo "$as_me: failed program was:" >&5 |
| 13001 | cat conftest.$ac_ext >&5 |
| 13002 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13003 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13004 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13005 | fi |
| 13006 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13007 | echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 13008 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13009 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13010 | |
| 13011 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13012 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13013 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13014 | |
| 13015 | fi |
| 13016 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13017 | echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 13018 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 |
| 13019 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 13020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13021 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13022 | cat >conftest.$ac_ext <<_ACEOF |
| 13023 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13024 | #include "confdefs.h" |
| 13025 | |
| 13026 | # include <sys/types.h> |
| 13027 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13028 | #ifdef F77_DUMMY_MAIN |
| 13029 | # ifdef __cplusplus |
| 13030 | extern "C" |
| 13031 | # endif |
| 13032 | int F77_DUMMY_MAIN() { return 1; } |
| 13033 | #endif |
| 13034 | int |
| 13035 | main () |
| 13036 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13037 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13038 | ; |
| 13039 | return 0; |
| 13040 | } |
| 13041 | _ACEOF |
| 13042 | rm -f conftest.$ac_objext |
| 13043 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13044 | (eval $ac_compile) 2>&5 |
| 13045 | ac_status=$? |
| 13046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13047 | (exit $ac_status); } && |
| 13048 | { ac_try='test -s conftest.$ac_objext' |
| 13049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13050 | (eval $ac_try) 2>&5 |
| 13051 | ac_status=$? |
| 13052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13053 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13054 | ac_cv_struct_sockaddr_storage=yes |
| 13055 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13056 | echo "$as_me: failed program was:" >&5 |
| 13057 | cat conftest.$ac_ext >&5 |
| 13058 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13059 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13060 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13061 | fi |
| 13062 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13063 | echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 13064 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13065 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13066 | |
| 13067 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13068 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13069 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13070 | |
| 13071 | fi |
| 13072 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13073 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13074 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13075 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13076 | echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 13077 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
| 13078 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 13079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13080 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13081 | cat >conftest.$ac_ext <<_ACEOF |
| 13082 | #line $LINENO "configure" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13083 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13084 | $ac_includes_default |
| 13085 | #ifdef F77_DUMMY_MAIN |
| 13086 | # ifdef __cplusplus |
| 13087 | extern "C" |
| 13088 | # endif |
| 13089 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13090 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13091 | int |
| 13092 | main () |
| 13093 | { |
| 13094 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 13095 | test_array [0] = 0 |
| 13096 | |
| 13097 | ; |
| 13098 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13099 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13100 | _ACEOF |
| 13101 | rm -f conftest.$ac_objext |
| 13102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13103 | (eval $ac_compile) 2>&5 |
| 13104 | ac_status=$? |
| 13105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13106 | (exit $ac_status); } && |
| 13107 | { ac_try='test -s conftest.$ac_objext' |
| 13108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13109 | (eval $ac_try) 2>&5 |
| 13110 | ac_status=$? |
| 13111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13112 | (exit $ac_status); }; }; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13113 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13114 | else |
| 13115 | echo "$as_me: failed program was:" >&5 |
| 13116 | cat conftest.$ac_ext >&5 |
| 13117 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13118 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13119 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13120 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13121 | echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 13122 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13123 | 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] | 13124 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13125 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13126 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13127 | |
| 13128 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13129 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13130 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 13131 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 13132 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 13133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13134 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13135 | ac_cv_prog_cc_stdc=no |
| 13136 | ac_save_CC=$CC |
| 13137 | cat >conftest.$ac_ext <<_ACEOF |
| 13138 | #line $LINENO "configure" |
| 13139 | #include "confdefs.h" |
| 13140 | #include <stdarg.h> |
| 13141 | #include <stdio.h> |
| 13142 | #include <sys/types.h> |
| 13143 | #include <sys/stat.h> |
| 13144 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 13145 | struct buf { int x; }; |
| 13146 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 13147 | static char *e (p, i) |
| 13148 | char **p; |
| 13149 | int i; |
| 13150 | { |
| 13151 | return p[i]; |
| 13152 | } |
| 13153 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 13154 | { |
| 13155 | char *s; |
| 13156 | va_list v; |
| 13157 | va_start (v,p); |
| 13158 | s = g (p, va_arg (v,int)); |
| 13159 | va_end (v); |
| 13160 | return s; |
| 13161 | } |
| 13162 | int test (int i, double x); |
| 13163 | struct s1 {int (*f) (int a);}; |
| 13164 | struct s2 {int (*f) (double a);}; |
| 13165 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 13166 | int argc; |
| 13167 | char **argv; |
| 13168 | #ifdef F77_DUMMY_MAIN |
| 13169 | # ifdef __cplusplus |
| 13170 | extern "C" |
| 13171 | # endif |
| 13172 | int F77_DUMMY_MAIN() { return 1; } |
| 13173 | #endif |
| 13174 | int |
| 13175 | main () |
| 13176 | { |
| 13177 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 13178 | ; |
| 13179 | return 0; |
| 13180 | } |
| 13181 | _ACEOF |
| 13182 | # Don't try gcc -ansi; that turns off useful extensions and |
| 13183 | # breaks some systems' header files. |
| 13184 | # AIX -qlanglvl=ansi |
| 13185 | # Ultrix and OSF/1 -std1 |
| 13186 | # HP-UX 10.20 and later -Ae |
| 13187 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 13188 | # SVR4 -Xc -D__EXTENSIONS__ |
| 13189 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 13190 | do |
| 13191 | CC="$ac_save_CC $ac_arg" |
| 13192 | rm -f conftest.$ac_objext |
| 13193 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13194 | (eval $ac_compile) 2>&5 |
| 13195 | ac_status=$? |
| 13196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13197 | (exit $ac_status); } && |
| 13198 | { ac_try='test -s conftest.$ac_objext' |
| 13199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13200 | (eval $ac_try) 2>&5 |
| 13201 | ac_status=$? |
| 13202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13203 | (exit $ac_status); }; }; then |
| 13204 | ac_cv_prog_cc_stdc=$ac_arg |
| 13205 | break |
| 13206 | else |
| 13207 | echo "$as_me: failed program was:" >&5 |
| 13208 | cat conftest.$ac_ext >&5 |
| 13209 | fi |
| 13210 | rm -f conftest.$ac_objext |
| 13211 | done |
| 13212 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 13213 | CC=$ac_save_CC |
| 13214 | |
| 13215 | fi |
| 13216 | |
| 13217 | case "x$ac_cv_prog_cc_stdc" in |
| 13218 | x|xno) |
| 13219 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 13220 | echo "${ECHO_T}none needed" >&6 ;; |
| 13221 | *) |
| 13222 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 13223 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 13224 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 13225 | esac |
| 13226 | |
| 13227 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 13228 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 13229 | if test "${ac_cv_c_const+set}" = set; then |
| 13230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13231 | else |
| 13232 | cat >conftest.$ac_ext <<_ACEOF |
| 13233 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13234 | #include "confdefs.h" |
| 13235 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13236 | #ifdef F77_DUMMY_MAIN |
| 13237 | # ifdef __cplusplus |
| 13238 | extern "C" |
| 13239 | # endif |
| 13240 | int F77_DUMMY_MAIN() { return 1; } |
| 13241 | #endif |
| 13242 | int |
| 13243 | main () |
| 13244 | { |
| 13245 | /* FIXME: Include the comments suggested by Paul. */ |
| 13246 | #ifndef __cplusplus |
| 13247 | /* Ultrix mips cc rejects this. */ |
| 13248 | typedef int charset[2]; |
| 13249 | const charset x; |
| 13250 | /* SunOS 4.1.1 cc rejects this. */ |
| 13251 | char const *const *ccp; |
| 13252 | char **p; |
| 13253 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 13254 | struct point {int x, y;}; |
| 13255 | static struct point const zero = {0,0}; |
| 13256 | /* AIX XL C 1.02.0.0 rejects this. |
| 13257 | It does not let you subtract one const X* pointer from another in |
| 13258 | an arm of an if-expression whose if-part is not a constant |
| 13259 | expression */ |
| 13260 | const char *g = "string"; |
| 13261 | ccp = &g + (g ? g-g : 0); |
| 13262 | /* HPUX 7.0 cc rejects these. */ |
| 13263 | ++ccp; |
| 13264 | p = (char**) ccp; |
| 13265 | ccp = (char const *const *) p; |
| 13266 | { /* SCO 3.2v4 cc rejects this. */ |
| 13267 | char *t; |
| 13268 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13269 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13270 | *t++ = 0; |
| 13271 | } |
| 13272 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 13273 | int x[] = {25, 17}; |
| 13274 | const int *foo = &x[0]; |
| 13275 | ++foo; |
| 13276 | } |
| 13277 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 13278 | typedef const int *iptr; |
| 13279 | iptr p = 0; |
| 13280 | ++p; |
| 13281 | } |
| 13282 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 13283 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 13284 | struct s { int j; const int *ap[3]; }; |
| 13285 | struct s *b; b->j = 5; |
| 13286 | } |
| 13287 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 13288 | const int foo = 10; |
| 13289 | } |
| 13290 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13291 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13292 | ; |
| 13293 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13294 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13295 | _ACEOF |
| 13296 | rm -f conftest.$ac_objext |
| 13297 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13298 | (eval $ac_compile) 2>&5 |
| 13299 | ac_status=$? |
| 13300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13301 | (exit $ac_status); } && |
| 13302 | { ac_try='test -s conftest.$ac_objext' |
| 13303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13304 | (eval $ac_try) 2>&5 |
| 13305 | ac_status=$? |
| 13306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13307 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13308 | ac_cv_c_const=yes |
| 13309 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13310 | echo "$as_me: failed program was:" >&5 |
| 13311 | cat conftest.$ac_ext >&5 |
| 13312 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13313 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13314 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13315 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13316 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 13317 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13318 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13319 | |
| 13320 | cat >>confdefs.h <<\_ACEOF |
| 13321 | #define const |
| 13322 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13323 | |
| 13324 | fi |
| 13325 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13326 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13327 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13328 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 13329 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| 13330 | cat >conftest.$ac_ext <<_ACEOF |
| 13331 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13332 | #include "confdefs.h" |
| 13333 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13334 | #ifdef F77_DUMMY_MAIN |
| 13335 | # ifdef __cplusplus |
| 13336 | extern "C" |
| 13337 | # endif |
| 13338 | int F77_DUMMY_MAIN() { return 1; } |
| 13339 | #endif |
| 13340 | int |
| 13341 | main () |
| 13342 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13343 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13344 | ; |
| 13345 | return 0; |
| 13346 | } |
| 13347 | _ACEOF |
| 13348 | rm -f conftest.$ac_objext |
| 13349 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13350 | (eval $ac_compile) 2>&5 |
| 13351 | ac_status=$? |
| 13352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13353 | (exit $ac_status); } && |
| 13354 | { ac_try='test -s conftest.$ac_objext' |
| 13355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13356 | (eval $ac_try) 2>&5 |
| 13357 | ac_status=$? |
| 13358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13359 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13360 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13361 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13362 | echo "$as_me: failed program was:" >&5 |
| 13363 | cat conftest.$ac_ext >&5 |
| 13364 | |
| 13365 | cat >>confdefs.h <<\_ACEOF |
| 13366 | #define volatile |
| 13367 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13368 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13369 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13370 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13371 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13372 | echo "$as_me:$LINENO: result: $works" >&5 |
| 13373 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13374 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13375 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13376 | echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 13377 | echo $ECHO_N "checking for working signed char... $ECHO_C" >&6 |
| 13378 | cat >conftest.$ac_ext <<_ACEOF |
| 13379 | #line $LINENO "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13380 | #include "confdefs.h" |
| 13381 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13382 | #ifdef F77_DUMMY_MAIN |
| 13383 | # ifdef __cplusplus |
| 13384 | extern "C" |
| 13385 | # endif |
| 13386 | int F77_DUMMY_MAIN() { return 1; } |
| 13387 | #endif |
| 13388 | int |
| 13389 | main () |
| 13390 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13391 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13392 | ; |
| 13393 | return 0; |
| 13394 | } |
| 13395 | _ACEOF |
| 13396 | rm -f conftest.$ac_objext |
| 13397 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13398 | (eval $ac_compile) 2>&5 |
| 13399 | ac_status=$? |
| 13400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13401 | (exit $ac_status); } && |
| 13402 | { ac_try='test -s conftest.$ac_objext' |
| 13403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13404 | (eval $ac_try) 2>&5 |
| 13405 | ac_status=$? |
| 13406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13407 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13408 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13409 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13410 | echo "$as_me: failed program was:" >&5 |
| 13411 | cat conftest.$ac_ext >&5 |
| 13412 | |
| 13413 | cat >>confdefs.h <<\_ACEOF |
| 13414 | #define signed |
| 13415 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13416 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13417 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13418 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13419 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13420 | echo "$as_me:$LINENO: result: $works" >&5 |
| 13421 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13422 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13423 | have_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13424 | echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 13425 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6 |
| 13426 | cat >conftest.$ac_ext <<_ACEOF |
| 13427 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13428 | #include "confdefs.h" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13429 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13430 | #ifdef F77_DUMMY_MAIN |
| 13431 | # ifdef __cplusplus |
| 13432 | extern "C" |
| 13433 | # endif |
| 13434 | int F77_DUMMY_MAIN() { return 1; } |
| 13435 | #endif |
| 13436 | int |
| 13437 | main () |
| 13438 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13439 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13440 | ; |
| 13441 | return 0; |
| 13442 | } |
| 13443 | _ACEOF |
| 13444 | rm -f conftest.$ac_objext |
| 13445 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13446 | (eval $ac_compile) 2>&5 |
| 13447 | ac_status=$? |
| 13448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13449 | (exit $ac_status); } && |
| 13450 | { ac_try='test -s conftest.$ac_objext' |
| 13451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13452 | (eval $ac_try) 2>&5 |
| 13453 | ac_status=$? |
| 13454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13455 | (exit $ac_status); }; }; then |
| 13456 | |
| 13457 | |
| 13458 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13459 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13460 | _ACEOF |
| 13461 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13462 | have_prototypes=yes |
| 13463 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13464 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13465 | echo "$as_me: failed program was:" >&5 |
| 13466 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13467 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13468 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13469 | echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 13470 | echo "${ECHO_T}$have_prototypes" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13471 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13472 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13473 | echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 13474 | echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6 |
| 13475 | cat >conftest.$ac_ext <<_ACEOF |
| 13476 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13477 | #include "confdefs.h" |
| 13478 | |
| 13479 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13480 | int foo(int x, ...) { |
| 13481 | va_list va; |
| 13482 | va_start(va, x); |
| 13483 | va_arg(va, int); |
| 13484 | va_arg(va, char *); |
| 13485 | va_arg(va, double); |
| 13486 | return 0; |
| 13487 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13488 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13489 | #ifdef F77_DUMMY_MAIN |
| 13490 | # ifdef __cplusplus |
| 13491 | extern "C" |
| 13492 | # endif |
| 13493 | int F77_DUMMY_MAIN() { return 1; } |
| 13494 | #endif |
| 13495 | int |
| 13496 | main () |
| 13497 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13498 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13499 | ; |
| 13500 | return 0; |
| 13501 | } |
| 13502 | _ACEOF |
| 13503 | rm -f conftest.$ac_objext |
| 13504 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13505 | (eval $ac_compile) 2>&5 |
| 13506 | ac_status=$? |
| 13507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13508 | (exit $ac_status); } && |
| 13509 | { ac_try='test -s conftest.$ac_objext' |
| 13510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13511 | (eval $ac_try) 2>&5 |
| 13512 | ac_status=$? |
| 13513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13514 | (exit $ac_status); }; }; then |
| 13515 | |
| 13516 | |
| 13517 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13518 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13519 | _ACEOF |
| 13520 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13521 | works=yes |
| 13522 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13523 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13524 | echo "$as_me: failed program was:" >&5 |
| 13525 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13526 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13527 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13528 | echo "$as_me:$LINENO: result: $works" >&5 |
| 13529 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13530 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13531 | if test "$have_prototypes" = yes; then |
| 13532 | bad_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13533 | echo "$as_me:$LINENO: checking for bad exec* prototypes" >&5 |
| 13534 | echo $ECHO_N "checking for bad exec* prototypes... $ECHO_C" >&6 |
| 13535 | cat >conftest.$ac_ext <<_ACEOF |
| 13536 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13537 | #include "confdefs.h" |
| 13538 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13539 | #ifdef F77_DUMMY_MAIN |
| 13540 | # ifdef __cplusplus |
| 13541 | extern "C" |
| 13542 | # endif |
| 13543 | int F77_DUMMY_MAIN() { return 1; } |
| 13544 | #endif |
| 13545 | int |
| 13546 | main () |
| 13547 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13548 | char **t;execve("@",t,t); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13549 | ; |
| 13550 | return 0; |
| 13551 | } |
| 13552 | _ACEOF |
| 13553 | rm -f conftest.$ac_objext |
| 13554 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13555 | (eval $ac_compile) 2>&5 |
| 13556 | ac_status=$? |
| 13557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13558 | (exit $ac_status); } && |
| 13559 | { ac_try='test -s conftest.$ac_objext' |
| 13560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13561 | (eval $ac_try) 2>&5 |
| 13562 | ac_status=$? |
| 13563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13564 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13565 | : |
| 13566 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13567 | echo "$as_me: failed program was:" >&5 |
| 13568 | cat conftest.$ac_ext >&5 |
| 13569 | |
| 13570 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13571 | #define BAD_EXEC_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13572 | _ACEOF |
| 13573 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13574 | bad_prototypes=yes |
| 13575 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13576 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13577 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13578 | echo "$as_me:$LINENO: result: $bad_prototypes" >&5 |
| 13579 | echo "${ECHO_T}$bad_prototypes" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13580 | fi |
| 13581 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13582 | # check if sockaddr has sa_len member |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13583 | echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 13584 | echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6 |
| 13585 | cat >conftest.$ac_ext <<_ACEOF |
| 13586 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13587 | #include "confdefs.h" |
| 13588 | #include <sys/types.h> |
| 13589 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13590 | #ifdef F77_DUMMY_MAIN |
| 13591 | # ifdef __cplusplus |
| 13592 | extern "C" |
| 13593 | # endif |
| 13594 | int F77_DUMMY_MAIN() { return 1; } |
| 13595 | #endif |
| 13596 | int |
| 13597 | main () |
| 13598 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13599 | struct sockaddr x; |
| 13600 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13601 | ; |
| 13602 | return 0; |
| 13603 | } |
| 13604 | _ACEOF |
| 13605 | rm -f conftest.$ac_objext |
| 13606 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13607 | (eval $ac_compile) 2>&5 |
| 13608 | ac_status=$? |
| 13609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13610 | (exit $ac_status); } && |
| 13611 | { ac_try='test -s conftest.$ac_objext' |
| 13612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13613 | (eval $ac_try) 2>&5 |
| 13614 | ac_status=$? |
| 13615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13616 | (exit $ac_status); }; }; then |
| 13617 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13618 | echo "${ECHO_T}yes" >&6 |
| 13619 | |
| 13620 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13621 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13622 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13623 | |
| 13624 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13625 | echo "$as_me: failed program was:" >&5 |
| 13626 | cat conftest.$ac_ext >&5 |
| 13627 | echo "$as_me:$LINENO: result: no" >&5 |
| 13628 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13629 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13630 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13631 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13632 | echo "$as_me:$LINENO: checking for bad static forward" >&5 |
| 13633 | echo $ECHO_N "checking for bad static forward... $ECHO_C" >&6 |
| 13634 | if test "${ac_cv_bad_static_forward+set}" = set; then |
| 13635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 13636 | else |
| 13637 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 13638 | ac_cv_bad_static_forward=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13639 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13640 | cat >conftest.$ac_ext <<_ACEOF |
| 13641 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13642 | #include "confdefs.h" |
| 13643 | |
| 13644 | struct s { int a; int b; }; |
| 13645 | static struct s foo; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13646 | int foobar() { |
| 13647 | static int random; |
| 13648 | random = (int) &foo; |
| 13649 | return random; |
| 13650 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13651 | static struct s foo = { 1, 2 }; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13652 | main() { |
| 13653 | exit(!((int)&foo == foobar())); |
| 13654 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13655 | _ACEOF |
| 13656 | rm -f conftest$ac_exeext |
| 13657 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13658 | (eval $ac_link) 2>&5 |
| 13659 | ac_status=$? |
| 13660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13661 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13663 | (eval $ac_try) 2>&5 |
| 13664 | ac_status=$? |
| 13665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13666 | (exit $ac_status); }; }; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 13667 | ac_cv_bad_static_forward=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13668 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13669 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13670 | echo "$as_me: failed program was:" >&5 |
| 13671 | cat conftest.$ac_ext >&5 |
| 13672 | ( exit $ac_status ) |
| 13673 | ac_cv_bad_static_forward=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13674 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13675 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 13676 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13677 | fi |
| 13678 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13679 | echo "$as_me:$LINENO: result: $ac_cv_bad_static_forward" >&5 |
| 13680 | echo "${ECHO_T}$ac_cv_bad_static_forward" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 13681 | if test "$ac_cv_bad_static_forward" = yes |
| 13682 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13683 | |
| 13684 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 13685 | #define BAD_STATIC_FORWARD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13686 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 13687 | |
| 13688 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13689 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13690 | va_list_is_array=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13691 | echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 13692 | echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6 |
| 13693 | cat >conftest.$ac_ext <<_ACEOF |
| 13694 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13695 | #include "confdefs.h" |
| 13696 | |
| 13697 | #ifdef HAVE_STDARG_PROTOTYPES |
| 13698 | #include <stdarg.h> |
| 13699 | #else |
| 13700 | #include <varargs.h> |
| 13701 | #endif |
| 13702 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13703 | #ifdef F77_DUMMY_MAIN |
| 13704 | # ifdef __cplusplus |
| 13705 | extern "C" |
| 13706 | # endif |
| 13707 | int F77_DUMMY_MAIN() { return 1; } |
| 13708 | #endif |
| 13709 | int |
| 13710 | main () |
| 13711 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13712 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13713 | ; |
| 13714 | return 0; |
| 13715 | } |
| 13716 | _ACEOF |
| 13717 | rm -f conftest.$ac_objext |
| 13718 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13719 | (eval $ac_compile) 2>&5 |
| 13720 | ac_status=$? |
| 13721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13722 | (exit $ac_status); } && |
| 13723 | { ac_try='test -s conftest.$ac_objext' |
| 13724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13725 | (eval $ac_try) 2>&5 |
| 13726 | ac_status=$? |
| 13727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13728 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13729 | : |
| 13730 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13731 | echo "$as_me: failed program was:" >&5 |
| 13732 | cat conftest.$ac_ext >&5 |
| 13733 | |
| 13734 | |
| 13735 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13736 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13737 | _ACEOF |
| 13738 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13739 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13740 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13741 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13742 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13743 | echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 13744 | echo "${ECHO_T}$va_list_is_array" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13745 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13746 | # 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] | 13747 | |
| 13748 | |
| 13749 | |
| 13750 | echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 13751 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6 |
| 13752 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 13753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13754 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13755 | cat >conftest.$ac_ext <<_ACEOF |
| 13756 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13757 | #include "confdefs.h" |
| 13758 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13759 | which can conflict with char gethostbyname_r (); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13760 | #include <assert.h> |
| 13761 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13762 | #ifdef __cplusplus |
| 13763 | extern "C" |
| 13764 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13765 | /* 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] | 13766 | builtin and then its argument prototype would still apply. */ |
| 13767 | char gethostbyname_r (); |
| 13768 | char (*f) (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13769 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13770 | #ifdef F77_DUMMY_MAIN |
| 13771 | # ifdef __cplusplus |
| 13772 | extern "C" |
| 13773 | # endif |
| 13774 | int F77_DUMMY_MAIN() { return 1; } |
| 13775 | #endif |
| 13776 | int |
| 13777 | main () |
| 13778 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13779 | /* The GNU C library defines this for functions which it implements |
| 13780 | to always fail with ENOSYS. Some functions are actually named |
| 13781 | something starting with __ and the normal name is an alias. */ |
| 13782 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 13783 | choke me |
| 13784 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13785 | f = gethostbyname_r; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13786 | #endif |
| 13787 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13788 | ; |
| 13789 | return 0; |
| 13790 | } |
| 13791 | _ACEOF |
| 13792 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13793 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13794 | (eval $ac_link) 2>&5 |
| 13795 | ac_status=$? |
| 13796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13797 | (exit $ac_status); } && |
| 13798 | { ac_try='test -s conftest$ac_exeext' |
| 13799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13800 | (eval $ac_try) 2>&5 |
| 13801 | ac_status=$? |
| 13802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13803 | (exit $ac_status); }; }; then |
| 13804 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13805 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13806 | echo "$as_me: failed program was:" >&5 |
| 13807 | cat conftest.$ac_ext >&5 |
| 13808 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13809 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13810 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13811 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13812 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 13813 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6 |
| 13814 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13815 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13816 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13817 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13818 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13819 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13820 | echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 13821 | 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] | 13822 | OLD_CFLAGS=$CFLAGS |
| 13823 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13824 | cat >conftest.$ac_ext <<_ACEOF |
| 13825 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13826 | #include "confdefs.h" |
| 13827 | |
| 13828 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13829 | |
| 13830 | #ifdef F77_DUMMY_MAIN |
| 13831 | # ifdef __cplusplus |
| 13832 | extern "C" |
| 13833 | # endif |
| 13834 | int F77_DUMMY_MAIN() { return 1; } |
| 13835 | #endif |
| 13836 | int |
| 13837 | main () |
| 13838 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13839 | |
| 13840 | char *name; |
| 13841 | struct hostent *he, *res; |
| 13842 | char buffer[2048]; |
| 13843 | int buflen = 2048; |
| 13844 | int h_errnop; |
| 13845 | |
| 13846 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13847 | |
| 13848 | ; |
| 13849 | return 0; |
| 13850 | } |
| 13851 | _ACEOF |
| 13852 | rm -f conftest.$ac_objext |
| 13853 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13854 | (eval $ac_compile) 2>&5 |
| 13855 | ac_status=$? |
| 13856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13857 | (exit $ac_status); } && |
| 13858 | { ac_try='test -s conftest.$ac_objext' |
| 13859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13860 | (eval $ac_try) 2>&5 |
| 13861 | ac_status=$? |
| 13862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13863 | (exit $ac_status); }; }; then |
| 13864 | |
| 13865 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13866 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13867 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13868 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13869 | |
| 13870 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13871 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13872 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13873 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13874 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13875 | echo "${ECHO_T}yes" >&6 |
| 13876 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13877 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13878 | echo "$as_me: failed program was:" >&5 |
| 13879 | cat conftest.$ac_ext >&5 |
| 13880 | |
| 13881 | echo "$as_me:$LINENO: result: no" >&5 |
| 13882 | echo "${ECHO_T}no" >&6 |
| 13883 | echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 13884 | echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6 |
| 13885 | cat >conftest.$ac_ext <<_ACEOF |
| 13886 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13887 | #include "confdefs.h" |
| 13888 | |
| 13889 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13890 | |
| 13891 | #ifdef F77_DUMMY_MAIN |
| 13892 | # ifdef __cplusplus |
| 13893 | extern "C" |
| 13894 | # endif |
| 13895 | int F77_DUMMY_MAIN() { return 1; } |
| 13896 | #endif |
| 13897 | int |
| 13898 | main () |
| 13899 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13900 | |
| 13901 | char *name; |
| 13902 | struct hostent *he; |
| 13903 | char buffer[2048]; |
| 13904 | int buflen = 2048; |
| 13905 | int h_errnop; |
| 13906 | |
| 13907 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13908 | |
| 13909 | ; |
| 13910 | return 0; |
| 13911 | } |
| 13912 | _ACEOF |
| 13913 | rm -f conftest.$ac_objext |
| 13914 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13915 | (eval $ac_compile) 2>&5 |
| 13916 | ac_status=$? |
| 13917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13918 | (exit $ac_status); } && |
| 13919 | { ac_try='test -s conftest.$ac_objext' |
| 13920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13921 | (eval $ac_try) 2>&5 |
| 13922 | ac_status=$? |
| 13923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13924 | (exit $ac_status); }; }; then |
| 13925 | |
| 13926 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13927 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13928 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13929 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13930 | |
| 13931 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13932 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13933 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13934 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13935 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13936 | echo "${ECHO_T}yes" >&6 |
| 13937 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13938 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13939 | echo "$as_me: failed program was:" >&5 |
| 13940 | cat conftest.$ac_ext >&5 |
| 13941 | |
| 13942 | echo "$as_me:$LINENO: result: no" >&5 |
| 13943 | echo "${ECHO_T}no" >&6 |
| 13944 | echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 13945 | echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6 |
| 13946 | cat >conftest.$ac_ext <<_ACEOF |
| 13947 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13948 | #include "confdefs.h" |
| 13949 | |
| 13950 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13951 | |
| 13952 | #ifdef F77_DUMMY_MAIN |
| 13953 | # ifdef __cplusplus |
| 13954 | extern "C" |
| 13955 | # endif |
| 13956 | int F77_DUMMY_MAIN() { return 1; } |
| 13957 | #endif |
| 13958 | int |
| 13959 | main () |
| 13960 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13961 | |
| 13962 | char *name; |
| 13963 | struct hostent *he; |
| 13964 | struct hostent_data data; |
| 13965 | |
| 13966 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13967 | |
| 13968 | ; |
| 13969 | return 0; |
| 13970 | } |
| 13971 | _ACEOF |
| 13972 | rm -f conftest.$ac_objext |
| 13973 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13974 | (eval $ac_compile) 2>&5 |
| 13975 | ac_status=$? |
| 13976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13977 | (exit $ac_status); } && |
| 13978 | { ac_try='test -s conftest.$ac_objext' |
| 13979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13980 | (eval $ac_try) 2>&5 |
| 13981 | ac_status=$? |
| 13982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13983 | (exit $ac_status); }; }; then |
| 13984 | |
| 13985 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13986 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13987 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13988 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13989 | |
| 13990 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13991 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13992 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13993 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13994 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13995 | echo "${ECHO_T}yes" >&6 |
| 13996 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13997 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13998 | echo "$as_me: failed program was:" >&5 |
| 13999 | cat conftest.$ac_ext >&5 |
| 14000 | |
| 14001 | echo "$as_me:$LINENO: result: no" >&5 |
| 14002 | echo "${ECHO_T}no" >&6 |
| 14003 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14004 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14005 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14006 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14007 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14008 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14009 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14010 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14011 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14012 | CFLAGS=$OLD_CFLAGS |
| 14013 | |
| 14014 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14015 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14016 | |
| 14017 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14018 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14019 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14020 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14021 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14022 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14023 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14024 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14025 | cat >conftest.$ac_ext <<_ACEOF |
| 14026 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14027 | #include "confdefs.h" |
| 14028 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14029 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14030 | #include <assert.h> |
| 14031 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14032 | #ifdef __cplusplus |
| 14033 | extern "C" |
| 14034 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14035 | /* 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] | 14036 | builtin and then its argument prototype would still apply. */ |
| 14037 | char $ac_func (); |
| 14038 | char (*f) (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14039 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14040 | #ifdef F77_DUMMY_MAIN |
| 14041 | # ifdef __cplusplus |
| 14042 | extern "C" |
| 14043 | # endif |
| 14044 | int F77_DUMMY_MAIN() { return 1; } |
| 14045 | #endif |
| 14046 | int |
| 14047 | main () |
| 14048 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14049 | /* The GNU C library defines this for functions which it implements |
| 14050 | to always fail with ENOSYS. Some functions are actually named |
| 14051 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14052 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14053 | choke me |
| 14054 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14055 | f = $ac_func; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14056 | #endif |
| 14057 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14058 | ; |
| 14059 | return 0; |
| 14060 | } |
| 14061 | _ACEOF |
| 14062 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14063 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14064 | (eval $ac_link) 2>&5 |
| 14065 | ac_status=$? |
| 14066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14067 | (exit $ac_status); } && |
| 14068 | { ac_try='test -s conftest$ac_exeext' |
| 14069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14070 | (eval $ac_try) 2>&5 |
| 14071 | ac_status=$? |
| 14072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14073 | (exit $ac_status); }; }; then |
| 14074 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14075 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14076 | echo "$as_me: failed program was:" >&5 |
| 14077 | cat conftest.$ac_ext >&5 |
| 14078 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14079 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14080 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14081 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14082 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14083 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14084 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14085 | cat >>confdefs.h <<_ACEOF |
| 14086 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14087 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14088 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14089 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14090 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14091 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14092 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14093 | fi |
| 14094 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14095 | |
| 14096 | |
| 14097 | |
| 14098 | |
| 14099 | |
| 14100 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14101 | # checks for system services |
| 14102 | # (none yet) |
| 14103 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14104 | # Linux requires this for correct f.p. operations |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14105 | echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 14106 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6 |
| 14107 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 14108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14109 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14110 | cat >conftest.$ac_ext <<_ACEOF |
| 14111 | #line $LINENO "configure" |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14112 | #include "confdefs.h" |
| 14113 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14114 | which can conflict with char __fpu_control (); below. */ |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14115 | #include <assert.h> |
| 14116 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14117 | #ifdef __cplusplus |
| 14118 | extern "C" |
| 14119 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14120 | /* 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] | 14121 | builtin and then its argument prototype would still apply. */ |
| 14122 | char __fpu_control (); |
| 14123 | char (*f) (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14124 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14125 | #ifdef F77_DUMMY_MAIN |
| 14126 | # ifdef __cplusplus |
| 14127 | extern "C" |
| 14128 | # endif |
| 14129 | int F77_DUMMY_MAIN() { return 1; } |
| 14130 | #endif |
| 14131 | int |
| 14132 | main () |
| 14133 | { |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14134 | /* The GNU C library defines this for functions which it implements |
| 14135 | to always fail with ENOSYS. Some functions are actually named |
| 14136 | something starting with __ and the normal name is an alias. */ |
| 14137 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 14138 | choke me |
| 14139 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14140 | f = __fpu_control; |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14141 | #endif |
| 14142 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14143 | ; |
| 14144 | return 0; |
| 14145 | } |
| 14146 | _ACEOF |
| 14147 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14148 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14149 | (eval $ac_link) 2>&5 |
| 14150 | ac_status=$? |
| 14151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14152 | (exit $ac_status); } && |
| 14153 | { ac_try='test -s conftest$ac_exeext' |
| 14154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14155 | (eval $ac_try) 2>&5 |
| 14156 | ac_status=$? |
| 14157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14158 | (exit $ac_status); }; }; then |
| 14159 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14160 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14161 | echo "$as_me: failed program was:" >&5 |
| 14162 | cat conftest.$ac_ext >&5 |
| 14163 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14164 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14165 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14166 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14167 | echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 14168 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6 |
| 14169 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14170 | : |
| 14171 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14172 | |
| 14173 | echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 14174 | echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6 |
| 14175 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 14176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14177 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14178 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14179 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14180 | cat >conftest.$ac_ext <<_ACEOF |
| 14181 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14182 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14183 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14184 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14185 | #ifdef __cplusplus |
| 14186 | extern "C" |
| 14187 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14188 | /* 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] | 14189 | builtin and then its argument prototype would still apply. */ |
| 14190 | char __fpu_control (); |
| 14191 | #ifdef F77_DUMMY_MAIN |
| 14192 | # ifdef __cplusplus |
| 14193 | extern "C" |
| 14194 | # endif |
| 14195 | int F77_DUMMY_MAIN() { return 1; } |
| 14196 | #endif |
| 14197 | int |
| 14198 | main () |
| 14199 | { |
| 14200 | __fpu_control (); |
| 14201 | ; |
| 14202 | return 0; |
| 14203 | } |
| 14204 | _ACEOF |
| 14205 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14206 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14207 | (eval $ac_link) 2>&5 |
| 14208 | ac_status=$? |
| 14209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14210 | (exit $ac_status); } && |
| 14211 | { ac_try='test -s conftest$ac_exeext' |
| 14212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14213 | (eval $ac_try) 2>&5 |
| 14214 | ac_status=$? |
| 14215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14216 | (exit $ac_status); }; }; then |
| 14217 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14218 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14219 | echo "$as_me: failed program was:" >&5 |
| 14220 | cat conftest.$ac_ext >&5 |
| 14221 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14222 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14223 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 14224 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14225 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14226 | echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 14227 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6 |
| 14228 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 14229 | cat >>confdefs.h <<_ACEOF |
| 14230 | #define HAVE_LIBIEEE 1 |
| 14231 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14232 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14233 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14234 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14235 | fi |
| 14236 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14237 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14238 | fi |
| 14239 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14240 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14241 | # Check for --with-fpectl |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14242 | echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 14243 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6 |
| 14244 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14245 | # Check whether --with-fpectl or --without-fpectl was given. |
| 14246 | if test "${with_fpectl+set}" = set; then |
| 14247 | withval="$with_fpectl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14248 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14249 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14250 | then |
| 14251 | |
| 14252 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14253 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14254 | _ACEOF |
| 14255 | |
| 14256 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14257 | echo "${ECHO_T}yes" >&6 |
| 14258 | else echo "$as_me:$LINENO: result: no" >&5 |
| 14259 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14260 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14261 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14262 | echo "$as_me:$LINENO: result: no" >&5 |
| 14263 | echo "${ECHO_T}no" >&6 |
| 14264 | fi; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14265 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14266 | # check for --with-libm=... |
| 14267 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 14268 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 14269 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 14270 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 14271 | *) LIBM=-lm |
| 14272 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14273 | echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 14274 | echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6 |
| 14275 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14276 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14277 | if test "${with_libm+set}" = set; then |
| 14278 | withval="$with_libm" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14279 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14280 | if test "$withval" = no |
| 14281 | then LIBM= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14282 | echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 14283 | echo "${ECHO_T}force LIBM empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14284 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14285 | then LIBM=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14286 | echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 14287 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6 |
| 14288 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 14289 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 14290 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14291 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14292 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14293 | echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 14294 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6 |
| 14295 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14296 | |
| 14297 | # check for --with-libc=... |
| 14298 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14299 | echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 14300 | echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6 |
| 14301 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14302 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14303 | if test "${with_libc+set}" = set; then |
| 14304 | withval="$with_libc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14305 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14306 | if test "$withval" = no |
| 14307 | then LIBC= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14308 | echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 14309 | echo "${ECHO_T}force LIBC empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14310 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14311 | then LIBC=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14312 | echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 14313 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6 |
| 14314 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 14315 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 14316 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14317 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14318 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14319 | echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 14320 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6 |
| 14321 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14322 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14323 | # check for hypot() in math library |
| 14324 | LIBS_SAVE=$LIBS |
| 14325 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14326 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14327 | for ac_func in hypot |
| 14328 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14329 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14330 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14331 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14332 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14333 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14334 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14335 | cat >conftest.$ac_ext <<_ACEOF |
| 14336 | #line $LINENO "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14337 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14338 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14339 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14340 | #include <assert.h> |
| 14341 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14342 | #ifdef __cplusplus |
| 14343 | extern "C" |
| 14344 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14345 | /* 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] | 14346 | builtin and then its argument prototype would still apply. */ |
| 14347 | char $ac_func (); |
| 14348 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14349 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14350 | #ifdef F77_DUMMY_MAIN |
| 14351 | # ifdef __cplusplus |
| 14352 | extern "C" |
| 14353 | # endif |
| 14354 | int F77_DUMMY_MAIN() { return 1; } |
| 14355 | #endif |
| 14356 | int |
| 14357 | main () |
| 14358 | { |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14359 | /* The GNU C library defines this for functions which it implements |
| 14360 | to always fail with ENOSYS. Some functions are actually named |
| 14361 | something starting with __ and the normal name is an alias. */ |
| 14362 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14363 | choke me |
| 14364 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14365 | f = $ac_func; |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14366 | #endif |
| 14367 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14368 | ; |
| 14369 | return 0; |
| 14370 | } |
| 14371 | _ACEOF |
| 14372 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14373 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14374 | (eval $ac_link) 2>&5 |
| 14375 | ac_status=$? |
| 14376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14377 | (exit $ac_status); } && |
| 14378 | { ac_try='test -s conftest$ac_exeext' |
| 14379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14380 | (eval $ac_try) 2>&5 |
| 14381 | ac_status=$? |
| 14382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14383 | (exit $ac_status); }; }; then |
| 14384 | eval "$as_ac_var=yes" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 14385 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14386 | echo "$as_me: failed program was:" >&5 |
| 14387 | cat conftest.$ac_ext >&5 |
| 14388 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14389 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14390 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14391 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14392 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14393 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14394 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14395 | cat >>confdefs.h <<_ACEOF |
| 14396 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14397 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14398 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14399 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14400 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 14401 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 14402 | done |
| 14403 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14404 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14405 | LIBS=$LIBS_SAVE |
| 14406 | |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14407 | # check whether malloc(0) returns NULL or not |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14408 | echo "$as_me:$LINENO: checking what malloc(0) returns" >&5 |
| 14409 | echo $ECHO_N "checking what malloc(0) returns... $ECHO_C" >&6 |
| 14410 | if test "${ac_cv_malloc_zero+set}" = set; then |
| 14411 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14412 | else |
| 14413 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 14414 | ac_cv_malloc_zero=nonnull |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14415 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14416 | cat >conftest.$ac_ext <<_ACEOF |
| 14417 | #line $LINENO "configure" |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14418 | #include "confdefs.h" |
| 14419 | #include <stdio.h> |
| 14420 | #ifdef HAVE_STDLIB |
| 14421 | #include <stdlib.h> |
| 14422 | #else |
| 14423 | char *malloc(), *realloc(); |
| 14424 | int *free(); |
| 14425 | #endif |
| 14426 | main() { |
| 14427 | char *p; |
| 14428 | p = malloc(0); |
| 14429 | if (p == NULL) exit(1); |
| 14430 | p = realloc(p, 0); |
| 14431 | if (p == NULL) exit(1); |
| 14432 | free(p); |
| 14433 | exit(0); |
| 14434 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14435 | _ACEOF |
| 14436 | rm -f conftest$ac_exeext |
| 14437 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14438 | (eval $ac_link) 2>&5 |
| 14439 | ac_status=$? |
| 14440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14441 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 14442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14443 | (eval $ac_try) 2>&5 |
| 14444 | ac_status=$? |
| 14445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14446 | (exit $ac_status); }; }; then |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14447 | ac_cv_malloc_zero=nonnull |
| 14448 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14449 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14450 | echo "$as_me: failed program was:" >&5 |
| 14451 | cat conftest.$ac_ext >&5 |
| 14452 | ( exit $ac_status ) |
| 14453 | ac_cv_malloc_zero=null |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14454 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14455 | 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] | 14456 | fi |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14457 | fi |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 14458 | # XXX arm cross-compile? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14459 | echo "$as_me:$LINENO: result: $ac_cv_malloc_zero" >&5 |
| 14460 | echo "${ECHO_T}$ac_cv_malloc_zero" >&6 |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14461 | if test "$ac_cv_malloc_zero" = null |
| 14462 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14463 | |
| 14464 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14465 | #define MALLOC_ZERO_RETURNS_NULL 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14466 | _ACEOF |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14467 | |
| 14468 | fi |
| 14469 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14470 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14471 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 14472 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 14473 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 14474 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 14475 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14476 | fi |
| 14477 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 14478 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14479 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14480 | # Is the header compilable? |
| 14481 | echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 14482 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 |
| 14483 | cat >conftest.$ac_ext <<_ACEOF |
| 14484 | #line $LINENO "configure" |
| 14485 | #include "confdefs.h" |
| 14486 | $ac_includes_default |
| 14487 | #include <wchar.h> |
| 14488 | _ACEOF |
| 14489 | rm -f conftest.$ac_objext |
| 14490 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14491 | (eval $ac_compile) 2>&5 |
| 14492 | ac_status=$? |
| 14493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14494 | (exit $ac_status); } && |
| 14495 | { ac_try='test -s conftest.$ac_objext' |
| 14496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14497 | (eval $ac_try) 2>&5 |
| 14498 | ac_status=$? |
| 14499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14500 | (exit $ac_status); }; }; then |
| 14501 | ac_header_compiler=yes |
| 14502 | else |
| 14503 | echo "$as_me: failed program was:" >&5 |
| 14504 | cat conftest.$ac_ext >&5 |
| 14505 | ac_header_compiler=no |
| 14506 | fi |
| 14507 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14508 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14509 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 14510 | |
| 14511 | # Is the header present? |
| 14512 | echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 14513 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 |
| 14514 | cat >conftest.$ac_ext <<_ACEOF |
| 14515 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14516 | #include "confdefs.h" |
| 14517 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14518 | _ACEOF |
| 14519 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 14520 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 14521 | ac_status=$? |
| 14522 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 14523 | rm -f conftest.er1 |
| 14524 | cat conftest.err >&5 |
| 14525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14526 | (exit $ac_status); } >/dev/null; then |
| 14527 | if test -s conftest.err; then |
| 14528 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14529 | else |
| 14530 | ac_cpp_err= |
| 14531 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14532 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14533 | ac_cpp_err=yes |
| 14534 | fi |
| 14535 | if test -z "$ac_cpp_err"; then |
| 14536 | ac_header_preproc=yes |
| 14537 | else |
| 14538 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14539 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14540 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14541 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14542 | rm -f conftest.err conftest.$ac_ext |
| 14543 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14544 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 14545 | |
| 14546 | # So? What about this header? |
| 14547 | case $ac_header_compiler:$ac_header_preproc in |
| 14548 | yes:no ) |
| 14549 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14550 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14551 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 14552 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};; |
| 14553 | no:yes ) |
| 14554 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 14555 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 14556 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 14557 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 14558 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 14559 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};; |
| 14560 | esac |
| 14561 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 14562 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 14563 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 14564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14565 | else |
| 14566 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14567 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14568 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 14569 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
| 14570 | |
| 14571 | fi |
| 14572 | if test $ac_cv_header_wchar_h = yes; then |
| 14573 | |
| 14574 | |
| 14575 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14576 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14577 | _ACEOF |
| 14578 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14579 | wchar_h="yes" |
| 14580 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14581 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14582 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14583 | |
| 14584 | fi |
| 14585 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14586 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14587 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14588 | # determine wchar_t size |
| 14589 | if test "$wchar_h" = yes |
| 14590 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14591 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 14592 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 |
| 14593 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 14594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14595 | else |
| 14596 | cat >conftest.$ac_ext <<_ACEOF |
| 14597 | #line $LINENO "configure" |
| 14598 | #include "confdefs.h" |
| 14599 | #include <wchar.h> |
| 14600 | |
| 14601 | #ifdef F77_DUMMY_MAIN |
| 14602 | # ifdef __cplusplus |
| 14603 | extern "C" |
| 14604 | # endif |
| 14605 | int F77_DUMMY_MAIN() { return 1; } |
| 14606 | #endif |
| 14607 | int |
| 14608 | main () |
| 14609 | { |
| 14610 | if ((wchar_t *) 0) |
| 14611 | return 0; |
| 14612 | if (sizeof (wchar_t)) |
| 14613 | return 0; |
| 14614 | ; |
| 14615 | return 0; |
| 14616 | } |
| 14617 | _ACEOF |
| 14618 | rm -f conftest.$ac_objext |
| 14619 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14620 | (eval $ac_compile) 2>&5 |
| 14621 | ac_status=$? |
| 14622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14623 | (exit $ac_status); } && |
| 14624 | { ac_try='test -s conftest.$ac_objext' |
| 14625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14626 | (eval $ac_try) 2>&5 |
| 14627 | ac_status=$? |
| 14628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14629 | (exit $ac_status); }; }; then |
| 14630 | ac_cv_type_wchar_t=yes |
| 14631 | else |
| 14632 | echo "$as_me: failed program was:" >&5 |
| 14633 | cat conftest.$ac_ext >&5 |
| 14634 | ac_cv_type_wchar_t=no |
| 14635 | fi |
| 14636 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14637 | fi |
| 14638 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 14639 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 |
| 14640 | |
| 14641 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 14642 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 |
| 14643 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 14644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14645 | else |
| 14646 | if test "$ac_cv_type_wchar_t" = yes; then |
| 14647 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 14648 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 14649 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 14650 | # This bug is HP SR number 8606223364. |
| 14651 | if test "$cross_compiling" = yes; then |
| 14652 | # Depending upon the size, compute the lo and hi bounds. |
| 14653 | cat >conftest.$ac_ext <<_ACEOF |
| 14654 | #line $LINENO "configure" |
| 14655 | #include "confdefs.h" |
| 14656 | #include <wchar.h> |
| 14657 | |
| 14658 | #ifdef F77_DUMMY_MAIN |
| 14659 | # ifdef __cplusplus |
| 14660 | extern "C" |
| 14661 | # endif |
| 14662 | int F77_DUMMY_MAIN() { return 1; } |
| 14663 | #endif |
| 14664 | int |
| 14665 | main () |
| 14666 | { |
| 14667 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; |
| 14668 | test_array [0] = 0 |
| 14669 | |
| 14670 | ; |
| 14671 | return 0; |
| 14672 | } |
| 14673 | _ACEOF |
| 14674 | rm -f conftest.$ac_objext |
| 14675 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14676 | (eval $ac_compile) 2>&5 |
| 14677 | ac_status=$? |
| 14678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14679 | (exit $ac_status); } && |
| 14680 | { ac_try='test -s conftest.$ac_objext' |
| 14681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14682 | (eval $ac_try) 2>&5 |
| 14683 | ac_status=$? |
| 14684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14685 | (exit $ac_status); }; }; then |
| 14686 | ac_lo=0 ac_mid=0 |
| 14687 | while :; do |
| 14688 | cat >conftest.$ac_ext <<_ACEOF |
| 14689 | #line $LINENO "configure" |
| 14690 | #include "confdefs.h" |
| 14691 | #include <wchar.h> |
| 14692 | |
| 14693 | #ifdef F77_DUMMY_MAIN |
| 14694 | # ifdef __cplusplus |
| 14695 | extern "C" |
| 14696 | # endif |
| 14697 | int F77_DUMMY_MAIN() { return 1; } |
| 14698 | #endif |
| 14699 | int |
| 14700 | main () |
| 14701 | { |
| 14702 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 14703 | test_array [0] = 0 |
| 14704 | |
| 14705 | ; |
| 14706 | return 0; |
| 14707 | } |
| 14708 | _ACEOF |
| 14709 | rm -f conftest.$ac_objext |
| 14710 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14711 | (eval $ac_compile) 2>&5 |
| 14712 | ac_status=$? |
| 14713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14714 | (exit $ac_status); } && |
| 14715 | { ac_try='test -s conftest.$ac_objext' |
| 14716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14717 | (eval $ac_try) 2>&5 |
| 14718 | ac_status=$? |
| 14719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14720 | (exit $ac_status); }; }; then |
| 14721 | ac_hi=$ac_mid; break |
| 14722 | else |
| 14723 | echo "$as_me: failed program was:" >&5 |
| 14724 | cat conftest.$ac_ext >&5 |
| 14725 | ac_lo=`expr $ac_mid + 1` |
| 14726 | if test $ac_lo -le $ac_mid; then |
| 14727 | ac_lo= ac_hi= |
| 14728 | break |
| 14729 | fi |
| 14730 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 14731 | fi |
| 14732 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14733 | done |
| 14734 | else |
| 14735 | echo "$as_me: failed program was:" >&5 |
| 14736 | cat conftest.$ac_ext >&5 |
| 14737 | cat >conftest.$ac_ext <<_ACEOF |
| 14738 | #line $LINENO "configure" |
| 14739 | #include "confdefs.h" |
| 14740 | #include <wchar.h> |
| 14741 | |
| 14742 | #ifdef F77_DUMMY_MAIN |
| 14743 | # ifdef __cplusplus |
| 14744 | extern "C" |
| 14745 | # endif |
| 14746 | int F77_DUMMY_MAIN() { return 1; } |
| 14747 | #endif |
| 14748 | int |
| 14749 | main () |
| 14750 | { |
| 14751 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; |
| 14752 | test_array [0] = 0 |
| 14753 | |
| 14754 | ; |
| 14755 | return 0; |
| 14756 | } |
| 14757 | _ACEOF |
| 14758 | rm -f conftest.$ac_objext |
| 14759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14760 | (eval $ac_compile) 2>&5 |
| 14761 | ac_status=$? |
| 14762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14763 | (exit $ac_status); } && |
| 14764 | { ac_try='test -s conftest.$ac_objext' |
| 14765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14766 | (eval $ac_try) 2>&5 |
| 14767 | ac_status=$? |
| 14768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14769 | (exit $ac_status); }; }; then |
| 14770 | ac_hi=-1 ac_mid=-1 |
| 14771 | while :; do |
| 14772 | cat >conftest.$ac_ext <<_ACEOF |
| 14773 | #line $LINENO "configure" |
| 14774 | #include "confdefs.h" |
| 14775 | #include <wchar.h> |
| 14776 | |
| 14777 | #ifdef F77_DUMMY_MAIN |
| 14778 | # ifdef __cplusplus |
| 14779 | extern "C" |
| 14780 | # endif |
| 14781 | int F77_DUMMY_MAIN() { return 1; } |
| 14782 | #endif |
| 14783 | int |
| 14784 | main () |
| 14785 | { |
| 14786 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; |
| 14787 | test_array [0] = 0 |
| 14788 | |
| 14789 | ; |
| 14790 | return 0; |
| 14791 | } |
| 14792 | _ACEOF |
| 14793 | rm -f conftest.$ac_objext |
| 14794 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14795 | (eval $ac_compile) 2>&5 |
| 14796 | ac_status=$? |
| 14797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14798 | (exit $ac_status); } && |
| 14799 | { ac_try='test -s conftest.$ac_objext' |
| 14800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14801 | (eval $ac_try) 2>&5 |
| 14802 | ac_status=$? |
| 14803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14804 | (exit $ac_status); }; }; then |
| 14805 | ac_lo=$ac_mid; break |
| 14806 | else |
| 14807 | echo "$as_me: failed program was:" >&5 |
| 14808 | cat conftest.$ac_ext >&5 |
| 14809 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 14810 | if test $ac_mid -le $ac_hi; then |
| 14811 | ac_lo= ac_hi= |
| 14812 | break |
| 14813 | fi |
| 14814 | ac_mid=`expr 2 '*' $ac_mid` |
| 14815 | fi |
| 14816 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14817 | done |
| 14818 | else |
| 14819 | echo "$as_me: failed program was:" >&5 |
| 14820 | cat conftest.$ac_ext >&5 |
| 14821 | ac_lo= ac_hi= |
| 14822 | fi |
| 14823 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14824 | fi |
| 14825 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14826 | # Binary search between lo and hi bounds. |
| 14827 | while test "x$ac_lo" != "x$ac_hi"; do |
| 14828 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 14829 | cat >conftest.$ac_ext <<_ACEOF |
| 14830 | #line $LINENO "configure" |
| 14831 | #include "confdefs.h" |
| 14832 | #include <wchar.h> |
| 14833 | |
| 14834 | #ifdef F77_DUMMY_MAIN |
| 14835 | # ifdef __cplusplus |
| 14836 | extern "C" |
| 14837 | # endif |
| 14838 | int F77_DUMMY_MAIN() { return 1; } |
| 14839 | #endif |
| 14840 | int |
| 14841 | main () |
| 14842 | { |
| 14843 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 14844 | test_array [0] = 0 |
| 14845 | |
| 14846 | ; |
| 14847 | return 0; |
| 14848 | } |
| 14849 | _ACEOF |
| 14850 | rm -f conftest.$ac_objext |
| 14851 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14852 | (eval $ac_compile) 2>&5 |
| 14853 | ac_status=$? |
| 14854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14855 | (exit $ac_status); } && |
| 14856 | { ac_try='test -s conftest.$ac_objext' |
| 14857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14858 | (eval $ac_try) 2>&5 |
| 14859 | ac_status=$? |
| 14860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14861 | (exit $ac_status); }; }; then |
| 14862 | ac_hi=$ac_mid |
| 14863 | else |
| 14864 | echo "$as_me: failed program was:" >&5 |
| 14865 | cat conftest.$ac_ext >&5 |
| 14866 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 14867 | fi |
| 14868 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14869 | done |
| 14870 | case $ac_lo in |
| 14871 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
| 14872 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5 |
| 14873 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;} |
| 14874 | { (exit 1); exit 1; }; } ;; |
| 14875 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14876 | else |
| 14877 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14878 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 14879 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 14880 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14881 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14882 | cat >conftest.$ac_ext <<_ACEOF |
| 14883 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14884 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14885 | #include <wchar.h> |
| 14886 | |
| 14887 | long longval () { return (long) (sizeof (wchar_t)); } |
| 14888 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14889 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14890 | #include <stdlib.h> |
| 14891 | #ifdef F77_DUMMY_MAIN |
| 14892 | # ifdef __cplusplus |
| 14893 | extern "C" |
| 14894 | # endif |
| 14895 | int F77_DUMMY_MAIN() { return 1; } |
| 14896 | #endif |
| 14897 | int |
| 14898 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14899 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14900 | |
| 14901 | FILE *f = fopen ("conftest.val", "w"); |
| 14902 | if (! f) |
| 14903 | exit (1); |
| 14904 | if (((long) (sizeof (wchar_t))) < 0) |
| 14905 | { |
| 14906 | long i = longval (); |
| 14907 | if (i != ((long) (sizeof (wchar_t)))) |
| 14908 | exit (1); |
| 14909 | fprintf (f, "%ld\n", i); |
| 14910 | } |
| 14911 | else |
| 14912 | { |
| 14913 | unsigned long i = ulongval (); |
| 14914 | if (i != ((long) (sizeof (wchar_t)))) |
| 14915 | exit (1); |
| 14916 | fprintf (f, "%lu\n", i); |
| 14917 | } |
| 14918 | exit (ferror (f) || fclose (f) != 0); |
| 14919 | |
| 14920 | ; |
| 14921 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14922 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14923 | _ACEOF |
| 14924 | rm -f conftest$ac_exeext |
| 14925 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14926 | (eval $ac_link) 2>&5 |
| 14927 | ac_status=$? |
| 14928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14929 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 14930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14931 | (eval $ac_try) 2>&5 |
| 14932 | ac_status=$? |
| 14933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14934 | (exit $ac_status); }; }; then |
| 14935 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14936 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14937 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14938 | echo "$as_me: failed program was:" >&5 |
| 14939 | cat conftest.$ac_ext >&5 |
| 14940 | ( exit $ac_status ) |
| 14941 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5 |
| 14942 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;} |
| 14943 | { (exit 1); exit 1; }; } |
| 14944 | fi |
| 14945 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 14946 | fi |
| 14947 | fi |
| 14948 | rm -f conftest.val |
| 14949 | else |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14950 | ac_cv_sizeof_wchar_t=0 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14951 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14952 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14953 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 14954 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 |
| 14955 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14956 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14957 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14958 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14959 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14960 | fi |
| 14961 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14962 | echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 14963 | 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] | 14964 | # Check whether --enable-unicode or --disable-unicode was given. |
| 14965 | if test "${enable_unicode+set}" = set; then |
| 14966 | enableval="$enable_unicode" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14967 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14968 | else |
| 14969 | enable_unicode=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14970 | fi; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14971 | |
| 14972 | if test $enable_unicode = yes |
| 14973 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 14974 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
| 14975 | enable_unicode="ucs2" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14976 | fi |
| 14977 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 14978 | |
| 14979 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14980 | case "$enable_unicode" in |
| 14981 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14982 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14983 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14984 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14985 | |
| 14986 | ;; |
| 14987 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14988 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14989 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14990 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14991 | |
| 14992 | ;; |
| 14993 | esac |
| 14994 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14995 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14996 | |
| 14997 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 14998 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14999 | if test "$enable_unicode" = "no" |
| 15000 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 15001 | UNICODE_OBJS="" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15002 | echo "$as_me:$LINENO: result: not used" >&5 |
| 15003 | echo "${ECHO_T}not used" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15004 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 15005 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15006 | |
| 15007 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15008 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15009 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15010 | |
| 15011 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" |
| 15012 | then |
| 15013 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15014 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15015 | cat >>confdefs.h <<\_ACEOF |
| 15016 | #define HAVE_USABLE_WCHAR_T 1 |
| 15017 | _ACEOF |
| 15018 | |
| 15019 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15020 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15021 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15022 | |
| 15023 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 15024 | then |
| 15025 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15026 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15027 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15028 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15029 | |
| 15030 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 15031 | then |
| 15032 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15033 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15034 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15035 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15036 | |
| 15037 | else |
| 15038 | PY_UNICODE_TYPE="no type found" |
| 15039 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15040 | echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 15041 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15042 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15043 | |
| 15044 | # check for endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15045 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 15046 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 15047 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 15048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15049 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15050 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 15051 | cat >conftest.$ac_ext <<_ACEOF |
| 15052 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15053 | #include "confdefs.h" |
| 15054 | #include <sys/types.h> |
| 15055 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15056 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15057 | #ifdef F77_DUMMY_MAIN |
| 15058 | # ifdef __cplusplus |
| 15059 | extern "C" |
| 15060 | # endif |
| 15061 | int F77_DUMMY_MAIN() { return 1; } |
| 15062 | #endif |
| 15063 | int |
| 15064 | main () |
| 15065 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15066 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 15067 | bogus endian macros |
| 15068 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15069 | |
| 15070 | ; |
| 15071 | return 0; |
| 15072 | } |
| 15073 | _ACEOF |
| 15074 | rm -f conftest.$ac_objext |
| 15075 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15076 | (eval $ac_compile) 2>&5 |
| 15077 | ac_status=$? |
| 15078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15079 | (exit $ac_status); } && |
| 15080 | { ac_try='test -s conftest.$ac_objext' |
| 15081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15082 | (eval $ac_try) 2>&5 |
| 15083 | ac_status=$? |
| 15084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15085 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15086 | # 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] | 15087 | cat >conftest.$ac_ext <<_ACEOF |
| 15088 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15089 | #include "confdefs.h" |
| 15090 | #include <sys/types.h> |
| 15091 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15092 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15093 | #ifdef F77_DUMMY_MAIN |
| 15094 | # ifdef __cplusplus |
| 15095 | extern "C" |
| 15096 | # endif |
| 15097 | int F77_DUMMY_MAIN() { return 1; } |
| 15098 | #endif |
| 15099 | int |
| 15100 | main () |
| 15101 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15102 | #if BYTE_ORDER != BIG_ENDIAN |
| 15103 | not big endian |
| 15104 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15105 | |
| 15106 | ; |
| 15107 | return 0; |
| 15108 | } |
| 15109 | _ACEOF |
| 15110 | rm -f conftest.$ac_objext |
| 15111 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15112 | (eval $ac_compile) 2>&5 |
| 15113 | ac_status=$? |
| 15114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15115 | (exit $ac_status); } && |
| 15116 | { ac_try='test -s conftest.$ac_objext' |
| 15117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15118 | (eval $ac_try) 2>&5 |
| 15119 | ac_status=$? |
| 15120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15121 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15122 | ac_cv_c_bigendian=yes |
| 15123 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15124 | echo "$as_me: failed program was:" >&5 |
| 15125 | cat conftest.$ac_ext >&5 |
| 15126 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15127 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15128 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15129 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15130 | echo "$as_me: failed program was:" >&5 |
| 15131 | cat conftest.$ac_ext >&5 |
| 15132 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15133 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15134 | # try to guess the endianess by grep'ing values into an object file |
| 15135 | ac_cv_c_bigendian=unknown |
| 15136 | cat >conftest.$ac_ext <<_ACEOF |
| 15137 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15138 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15139 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 15140 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 15141 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 15142 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 15143 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 15144 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 15145 | #ifdef F77_DUMMY_MAIN |
| 15146 | # ifdef __cplusplus |
| 15147 | extern "C" |
| 15148 | # endif |
| 15149 | int F77_DUMMY_MAIN() { return 1; } |
| 15150 | #endif |
| 15151 | int |
| 15152 | main () |
| 15153 | { |
| 15154 | _ascii (); _ebcdic (); |
| 15155 | ; |
| 15156 | return 0; |
| 15157 | } |
| 15158 | _ACEOF |
| 15159 | rm -f conftest.$ac_objext |
| 15160 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15161 | (eval $ac_compile) 2>&5 |
| 15162 | ac_status=$? |
| 15163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15164 | (exit $ac_status); } && |
| 15165 | { ac_try='test -s conftest.$ac_objext' |
| 15166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15167 | (eval $ac_try) 2>&5 |
| 15168 | ac_status=$? |
| 15169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15170 | (exit $ac_status); }; }; then |
| 15171 | if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 15172 | ac_cv_c_bigendian=yes |
| 15173 | fi |
| 15174 | if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 15175 | if test "$ac_cv_c_bigendian" = unknown; then |
| 15176 | ac_cv_c_bigendian=no |
| 15177 | else |
| 15178 | # finding both strings is unlikely to happen, but who knows? |
| 15179 | ac_cv_c_bigendian=unknown |
| 15180 | fi |
| 15181 | fi |
| 15182 | else |
| 15183 | echo "$as_me: failed program was:" >&5 |
| 15184 | cat conftest.$ac_ext >&5 |
| 15185 | fi |
| 15186 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15187 | else |
| 15188 | cat >conftest.$ac_ext <<_ACEOF |
| 15189 | #line $LINENO "configure" |
| 15190 | #include "confdefs.h" |
| 15191 | int |
| 15192 | main () |
| 15193 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15194 | /* Are we little or big endian? From Harbison&Steele. */ |
| 15195 | union |
| 15196 | { |
| 15197 | long l; |
| 15198 | char c[sizeof (long)]; |
| 15199 | } u; |
| 15200 | u.l = 1; |
| 15201 | exit (u.c[sizeof (long) - 1] == 1); |
| 15202 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15203 | _ACEOF |
| 15204 | rm -f conftest$ac_exeext |
| 15205 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15206 | (eval $ac_link) 2>&5 |
| 15207 | ac_status=$? |
| 15208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15209 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15211 | (eval $ac_try) 2>&5 |
| 15212 | ac_status=$? |
| 15213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15214 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15215 | ac_cv_c_bigendian=no |
| 15216 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15217 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15218 | echo "$as_me: failed program was:" >&5 |
| 15219 | cat conftest.$ac_ext >&5 |
| 15220 | ( exit $ac_status ) |
| 15221 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15222 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15223 | 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] | 15224 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15225 | fi |
| 15226 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15227 | fi |
| 15228 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 15229 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 15230 | case $ac_cv_c_bigendian in |
| 15231 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15232 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15233 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15234 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15235 | _ACEOF |
| 15236 | ;; |
| 15237 | no) |
| 15238 | ;; |
| 15239 | *) |
| 15240 | { { echo "$as_me:$LINENO: error: unknown endianess |
| 15241 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 15242 | echo "$as_me: error: unknown endianess |
| 15243 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 15244 | { (exit 1); exit 1; }; } ;; |
| 15245 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15246 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15247 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15248 | # Check whether right shifting a negative integer extends the sign bit |
| 15249 | # 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] | 15250 | echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 15251 | echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6 |
| 15252 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 15253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15254 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15255 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15256 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15257 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15258 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15259 | cat >conftest.$ac_ext <<_ACEOF |
| 15260 | #line $LINENO "configure" |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15261 | #include "confdefs.h" |
| 15262 | |
| 15263 | int main() |
| 15264 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15265 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15266 | } |
| 15267 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15268 | _ACEOF |
| 15269 | rm -f conftest$ac_exeext |
| 15270 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15271 | (eval $ac_link) 2>&5 |
| 15272 | ac_status=$? |
| 15273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15274 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15276 | (eval $ac_try) 2>&5 |
| 15277 | ac_status=$? |
| 15278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15279 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15280 | ac_cv_rshift_extends_sign=yes |
| 15281 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15282 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15283 | echo "$as_me: failed program was:" >&5 |
| 15284 | cat conftest.$ac_ext >&5 |
| 15285 | ( exit $ac_status ) |
| 15286 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15287 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15288 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15289 | fi |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15290 | fi |
| 15291 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15292 | echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 15293 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15294 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15295 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15296 | |
| 15297 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15298 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15299 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15300 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15301 | fi |
| 15302 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15303 | # check for getc_unlocked and related locking functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15304 | echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 15305 | echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6 |
| 15306 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 15307 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15308 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15309 | |
| 15310 | cat >conftest.$ac_ext <<_ACEOF |
| 15311 | #line $LINENO "configure" |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15312 | #include "confdefs.h" |
| 15313 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15314 | #ifdef F77_DUMMY_MAIN |
| 15315 | # ifdef __cplusplus |
| 15316 | extern "C" |
| 15317 | # endif |
| 15318 | int F77_DUMMY_MAIN() { return 1; } |
| 15319 | #endif |
| 15320 | int |
| 15321 | main () |
| 15322 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15323 | |
| 15324 | FILE *f = fopen("/dev/null", "r"); |
| 15325 | flockfile(f); |
| 15326 | getc_unlocked(f); |
| 15327 | funlockfile(f); |
| 15328 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15329 | ; |
| 15330 | return 0; |
| 15331 | } |
| 15332 | _ACEOF |
| 15333 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15334 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15335 | (eval $ac_link) 2>&5 |
| 15336 | ac_status=$? |
| 15337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15338 | (exit $ac_status); } && |
| 15339 | { ac_try='test -s conftest$ac_exeext' |
| 15340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15341 | (eval $ac_try) 2>&5 |
| 15342 | ac_status=$? |
| 15343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15344 | (exit $ac_status); }; }; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15345 | ac_cv_have_getc_unlocked=yes |
| 15346 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15347 | echo "$as_me: failed program was:" >&5 |
| 15348 | cat conftest.$ac_ext >&5 |
| 15349 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15350 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15351 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15352 | fi |
| 15353 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15354 | echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 15355 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15356 | if test "$ac_cv_have_getc_unlocked" = yes |
| 15357 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15358 | |
| 15359 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15360 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15361 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15362 | |
| 15363 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15364 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15365 | # check for readline 4.0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15366 | echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 15367 | echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6 |
| 15368 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 15369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15370 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15371 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15372 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15373 | cat >conftest.$ac_ext <<_ACEOF |
| 15374 | #line $LINENO "configure" |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15375 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15376 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15377 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15378 | #ifdef __cplusplus |
| 15379 | extern "C" |
| 15380 | #endif |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15381 | /* 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] | 15382 | builtin and then its argument prototype would still apply. */ |
| 15383 | char rl_pre_input_hook (); |
| 15384 | #ifdef F77_DUMMY_MAIN |
| 15385 | # ifdef __cplusplus |
| 15386 | extern "C" |
| 15387 | # endif |
| 15388 | int F77_DUMMY_MAIN() { return 1; } |
| 15389 | #endif |
| 15390 | int |
| 15391 | main () |
| 15392 | { |
| 15393 | rl_pre_input_hook (); |
| 15394 | ; |
| 15395 | return 0; |
| 15396 | } |
| 15397 | _ACEOF |
| 15398 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15399 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15400 | (eval $ac_link) 2>&5 |
| 15401 | ac_status=$? |
| 15402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15403 | (exit $ac_status); } && |
| 15404 | { ac_try='test -s conftest$ac_exeext' |
| 15405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15406 | (eval $ac_try) 2>&5 |
| 15407 | ac_status=$? |
| 15408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15409 | (exit $ac_status); }; }; then |
| 15410 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15411 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15412 | echo "$as_me: failed program was:" >&5 |
| 15413 | cat conftest.$ac_ext >&5 |
| 15414 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15415 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15416 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 15417 | LIBS=$ac_check_lib_save_LIBS |
| 15418 | fi |
| 15419 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 15420 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6 |
| 15421 | 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] | 15422 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15423 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15424 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15425 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15426 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15427 | fi |
| 15428 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15429 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15430 | # check for readline 4.2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15431 | echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 15432 | echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6 |
| 15433 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 15434 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15435 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15436 | ac_check_lib_save_LIBS=$LIBS |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15437 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15438 | cat >conftest.$ac_ext <<_ACEOF |
| 15439 | #line $LINENO "configure" |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15440 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15441 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15442 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15443 | #ifdef __cplusplus |
| 15444 | extern "C" |
| 15445 | #endif |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15446 | /* 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] | 15447 | builtin and then its argument prototype would still apply. */ |
| 15448 | char rl_completion_matches (); |
| 15449 | #ifdef F77_DUMMY_MAIN |
| 15450 | # ifdef __cplusplus |
| 15451 | extern "C" |
| 15452 | # endif |
| 15453 | int F77_DUMMY_MAIN() { return 1; } |
| 15454 | #endif |
| 15455 | int |
| 15456 | main () |
| 15457 | { |
| 15458 | rl_completion_matches (); |
| 15459 | ; |
| 15460 | return 0; |
| 15461 | } |
| 15462 | _ACEOF |
| 15463 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15464 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15465 | (eval $ac_link) 2>&5 |
| 15466 | ac_status=$? |
| 15467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15468 | (exit $ac_status); } && |
| 15469 | { ac_try='test -s conftest$ac_exeext' |
| 15470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15471 | (eval $ac_try) 2>&5 |
| 15472 | ac_status=$? |
| 15473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15474 | (exit $ac_status); }; }; then |
| 15475 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15476 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15477 | echo "$as_me: failed program was:" >&5 |
| 15478 | cat conftest.$ac_ext >&5 |
| 15479 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15480 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15481 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 15482 | LIBS=$ac_check_lib_save_LIBS |
| 15483 | fi |
| 15484 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 15485 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6 |
| 15486 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15487 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15488 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15489 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15490 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15491 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15492 | fi |
| 15493 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15494 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15495 | echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 15496 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6 |
| 15497 | if test "${ac_cv_broken_nice+set}" = set; then |
| 15498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15499 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15500 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15501 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15502 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15503 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15504 | cat >conftest.$ac_ext <<_ACEOF |
| 15505 | #line $LINENO "configure" |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15506 | #include "confdefs.h" |
| 15507 | |
| 15508 | int main() |
| 15509 | { |
| 15510 | int val1 = nice(1); |
| 15511 | if (val1 != -1 && val1 == nice(2)) |
| 15512 | exit(0); |
| 15513 | exit(1); |
| 15514 | } |
| 15515 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15516 | _ACEOF |
| 15517 | rm -f conftest$ac_exeext |
| 15518 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15519 | (eval $ac_link) 2>&5 |
| 15520 | ac_status=$? |
| 15521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15522 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15524 | (eval $ac_try) 2>&5 |
| 15525 | ac_status=$? |
| 15526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15527 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15528 | ac_cv_broken_nice=yes |
| 15529 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15530 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15531 | echo "$as_me: failed program was:" >&5 |
| 15532 | cat conftest.$ac_ext >&5 |
| 15533 | ( exit $ac_status ) |
| 15534 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15535 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15536 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15537 | fi |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15538 | fi |
| 15539 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15540 | echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 15541 | echo "${ECHO_T}$ac_cv_broken_nice" >&6 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15542 | if test "$ac_cv_broken_nice" = yes |
| 15543 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15544 | |
| 15545 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15546 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15547 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15548 | |
| 15549 | fi |
| 15550 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15551 | # 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] | 15552 | echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 15553 | echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6 |
| 15554 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 15555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15556 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15557 | cat >conftest.$ac_ext <<_ACEOF |
| 15558 | #line $LINENO "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15559 | #include "confdefs.h" |
| 15560 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15561 | #ifdef F77_DUMMY_MAIN |
| 15562 | # ifdef __cplusplus |
| 15563 | extern "C" |
| 15564 | # endif |
| 15565 | int F77_DUMMY_MAIN() { return 1; } |
| 15566 | #endif |
| 15567 | int |
| 15568 | main () |
| 15569 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15570 | |
| 15571 | int rtn; |
| 15572 | rtn = mvwdelch(0,0,0); |
| 15573 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15574 | ; |
| 15575 | return 0; |
| 15576 | } |
| 15577 | _ACEOF |
| 15578 | rm -f conftest.$ac_objext |
| 15579 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15580 | (eval $ac_compile) 2>&5 |
| 15581 | ac_status=$? |
| 15582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15583 | (exit $ac_status); } && |
| 15584 | { ac_try='test -s conftest.$ac_objext' |
| 15585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15586 | (eval $ac_try) 2>&5 |
| 15587 | ac_status=$? |
| 15588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15589 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15590 | ac_cv_mvwdelch_is_expression=yes |
| 15591 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15592 | echo "$as_me: failed program was:" >&5 |
| 15593 | cat conftest.$ac_ext >&5 |
| 15594 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15595 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15596 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15597 | fi |
| 15598 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15599 | echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 15600 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15601 | |
| 15602 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 15603 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15604 | |
| 15605 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15606 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15607 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15608 | |
| 15609 | fi |
| 15610 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15611 | echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 15612 | echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6 |
| 15613 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 15614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15615 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15616 | cat >conftest.$ac_ext <<_ACEOF |
| 15617 | #line $LINENO "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15618 | #include "confdefs.h" |
| 15619 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15620 | #ifdef F77_DUMMY_MAIN |
| 15621 | # ifdef __cplusplus |
| 15622 | extern "C" |
| 15623 | # endif |
| 15624 | int F77_DUMMY_MAIN() { return 1; } |
| 15625 | #endif |
| 15626 | int |
| 15627 | main () |
| 15628 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15629 | |
| 15630 | WINDOW *w; |
| 15631 | w->_flags = 0; |
| 15632 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15633 | ; |
| 15634 | return 0; |
| 15635 | } |
| 15636 | _ACEOF |
| 15637 | rm -f conftest.$ac_objext |
| 15638 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15639 | (eval $ac_compile) 2>&5 |
| 15640 | ac_status=$? |
| 15641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15642 | (exit $ac_status); } && |
| 15643 | { ac_try='test -s conftest.$ac_objext' |
| 15644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15645 | (eval $ac_try) 2>&5 |
| 15646 | ac_status=$? |
| 15647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15648 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15649 | ac_cv_window_has_flags=yes |
| 15650 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15651 | echo "$as_me: failed program was:" >&5 |
| 15652 | cat conftest.$ac_ext >&5 |
| 15653 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15654 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15655 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15656 | fi |
| 15657 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15658 | echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 15659 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15660 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15661 | |
| 15662 | if test "$ac_cv_window_has_flags" = yes |
| 15663 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15664 | |
| 15665 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15666 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15667 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15668 | |
| 15669 | fi |
| 15670 | |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15671 | # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS! |
| 15672 | # Add sys/socket.h to confdefs.h |
| 15673 | cat >> confdefs.h <<\EOF |
| 15674 | #ifdef HAVE_SYS_SOCKET_H |
| 15675 | #include <sys/socket.h> |
| 15676 | #endif |
| 15677 | EOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15678 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 15679 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 15680 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 15681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15682 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15683 | cat >conftest.$ac_ext <<_ACEOF |
| 15684 | #line $LINENO "configure" |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15685 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15686 | $ac_includes_default |
| 15687 | #ifdef F77_DUMMY_MAIN |
| 15688 | # ifdef __cplusplus |
| 15689 | extern "C" |
| 15690 | # endif |
| 15691 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15692 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15693 | int |
| 15694 | main () |
| 15695 | { |
| 15696 | if ((socklen_t *) 0) |
| 15697 | return 0; |
| 15698 | if (sizeof (socklen_t)) |
| 15699 | return 0; |
| 15700 | ; |
| 15701 | return 0; |
| 15702 | } |
| 15703 | _ACEOF |
| 15704 | rm -f conftest.$ac_objext |
| 15705 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15706 | (eval $ac_compile) 2>&5 |
| 15707 | ac_status=$? |
| 15708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15709 | (exit $ac_status); } && |
| 15710 | { ac_try='test -s conftest.$ac_objext' |
| 15711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15712 | (eval $ac_try) 2>&5 |
| 15713 | ac_status=$? |
| 15714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15715 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15716 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15717 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15718 | echo "$as_me: failed program was:" >&5 |
| 15719 | cat conftest.$ac_ext >&5 |
| 15720 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15721 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15722 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15723 | fi |
| 15724 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 15725 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| 15726 | if test $ac_cv_type_socklen_t = yes; then |
| 15727 | : |
| 15728 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15729 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15730 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15731 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15732 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15733 | |
| 15734 | fi |
| 15735 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15736 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15737 | #AC_MSG_CHECKING(for Modules/Setup) |
| 15738 | #if test ! -f Modules/Setup ; then |
| 15739 | # if test ! -d Modules ; then |
| 15740 | # mkdir Modules |
| 15741 | # fi |
| 15742 | # cp "$srcdir/Modules/Setup.dist" Modules/Setup |
| 15743 | # AC_MSG_RESULT(creating) |
| 15744 | #else |
| 15745 | # AC_MSG_RESULT(already exists) |
| 15746 | #fi |
| 15747 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15748 | |
| 15749 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 15750 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 15751 | do |
| 15752 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 15753 | done |
| 15754 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15755 | |
Neil Schemenauer | acbf9ef | 2001-02-27 02:15:14 +0000 | [diff] [blame] | 15756 | SRCDIRS="Parser Grammar Objects Python Modules" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15757 | echo "$as_me:$LINENO: checking for build directories" >&5 |
| 15758 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15759 | for dir in $SRCDIRS; do |
| 15760 | if test ! -d $dir; then |
| 15761 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 15762 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15763 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15764 | echo "$as_me:$LINENO: result: done" >&5 |
| 15765 | echo "${ECHO_T}done" >&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 15766 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15767 | # generate output files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15768 | ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config" |
| 15769 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15770 | # This file is a shell script that caches the results of configure |
| 15771 | # 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] | 15772 | # scripts and configure runs, see configure's option --config-cache. |
| 15773 | # It is not useful on other systems. If it contains results you don't |
| 15774 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15775 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15776 | # config.status only pays attention to the cache file if you give it |
| 15777 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15778 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15779 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
| 15780 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 15781 | # following values. |
| 15782 | |
| 15783 | _ACEOF |
| 15784 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15785 | # The following way of writing the cache mishandles newlines in values, |
| 15786 | # but we know of no workaround that is simple, portable, and efficient. |
| 15787 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15788 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 15789 | # 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] | 15790 | { |
| 15791 | (set) 2>&1 | |
| 15792 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 15793 | *ac_space=\ *) |
| 15794 | # `set' does not quote correctly, so add quotes (double-quote |
| 15795 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 15796 | sed -n \ |
| 15797 | "s/'/'\\\\''/g; |
| 15798 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 15799 | ;; |
| 15800 | *) |
| 15801 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 15802 | sed -n \ |
| 15803 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 15804 | ;; |
| 15805 | esac; |
| 15806 | } | |
| 15807 | sed ' |
| 15808 | t clear |
| 15809 | : clear |
| 15810 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 15811 | t end |
| 15812 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 15813 | : end' >>confcache |
| 15814 | if cmp -s $cache_file confcache; then :; else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15815 | if test -w $cache_file; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15816 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 15817 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15818 | else |
| 15819 | echo "not updating unwritable cache $cache_file" |
| 15820 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15821 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15822 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 15823 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15824 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 15825 | # Let make expand exec_prefix. |
| 15826 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 15827 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15828 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 15829 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 15830 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 15831 | # (actually we leave an empty line to preserve line numbers). |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15832 | if test "x$srcdir" = x.; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15833 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 15834 | s/:*\$(srcdir):*/:/; |
| 15835 | s/:*\${srcdir}:*/:/; |
| 15836 | s/:*@srcdir@:*/:/; |
| 15837 | s/^\([^=]*=[ ]*\):*/\1/; |
| 15838 | s/:*$//; |
| 15839 | s/^[^=]*=[ ]*$//; |
| 15840 | }' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15841 | fi |
| 15842 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15843 | DEFS=-DHAVE_CONFIG_H |
| 15844 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15845 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15846 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15847 | ac_clean_files_save=$ac_clean_files |
| 15848 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 15849 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 15850 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 15851 | cat >$CONFIG_STATUS <<_ACEOF |
| 15852 | #! $SHELL |
| 15853 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15854 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15855 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15856 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15857 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15858 | debug=false |
| 15859 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 15860 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15861 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15862 | cat >>$CONFIG_STATUS <<\_ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15863 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15864 | ## --------------------- ## |
| 15865 | ## M4sh Initialization. ## |
| 15866 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15867 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15868 | # Be Bourne compatible |
| 15869 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 15870 | emulate sh |
| 15871 | NULLCMD=: |
| 15872 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 15873 | set -o posix |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15874 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15875 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15876 | # NLS nuisances. |
| 15877 | # Support unset when possible. |
| 15878 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 15879 | as_unset=unset |
| 15880 | else |
| 15881 | as_unset=false |
| 15882 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15883 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15884 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && |
| 15885 | { $as_unset LANG || test "${LANG+set}" != set; } || |
| 15886 | { LANG=C; export LANG; } |
| 15887 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && |
| 15888 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || |
| 15889 | { LC_ALL=C; export LC_ALL; } |
| 15890 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && |
| 15891 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || |
| 15892 | { LC_TIME=C; export LC_TIME; } |
| 15893 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && |
| 15894 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || |
| 15895 | { LC_CTYPE=C; export LC_CTYPE; } |
| 15896 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && |
| 15897 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || |
| 15898 | { LANGUAGE=C; export LANGUAGE; } |
| 15899 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && |
| 15900 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || |
| 15901 | { LC_COLLATE=C; export LC_COLLATE; } |
| 15902 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && |
| 15903 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || |
| 15904 | { LC_NUMERIC=C; export LC_NUMERIC; } |
| 15905 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && |
| 15906 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || |
| 15907 | { LC_MESSAGES=C; export LC_MESSAGES; } |
| 15908 | |
| 15909 | |
| 15910 | # Name of the executable. |
| 15911 | as_me=`(basename "$0") 2>/dev/null || |
| 15912 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 15913 | X"$0" : 'X\(//\)$' \| \ |
| 15914 | X"$0" : 'X\(/\)$' \| \ |
| 15915 | . : '\(.\)' 2>/dev/null || |
| 15916 | echo X/"$0" | |
| 15917 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 15918 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 15919 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 15920 | s/.*/./; q'` |
| 15921 | |
| 15922 | # PATH needs CR, and LINENO needs CR and PATH. |
| 15923 | # Avoid depending upon Character Ranges. |
| 15924 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 15925 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 15926 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 15927 | as_cr_digits='0123456789' |
| 15928 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 15929 | |
| 15930 | # The user is always right. |
| 15931 | if test "${PATH_SEPARATOR+set}" != set; then |
| 15932 | echo "#! /bin/sh" >conftest.sh |
| 15933 | echo "exit 0" >>conftest.sh |
| 15934 | chmod +x conftest.sh |
| 15935 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
| 15936 | PATH_SEPARATOR=';' |
| 15937 | else |
| 15938 | PATH_SEPARATOR=: |
| 15939 | fi |
| 15940 | rm -f conftest.sh |
| 15941 | fi |
| 15942 | |
| 15943 | |
| 15944 | as_lineno_1=$LINENO |
| 15945 | as_lineno_2=$LINENO |
| 15946 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 15947 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 15948 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 15949 | # Find who we are. Look in the path if we contain no path at all |
| 15950 | # relative or not. |
| 15951 | case $0 in |
| 15952 | *[\\/]* ) as_myself=$0 ;; |
| 15953 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15954 | for as_dir in $PATH |
| 15955 | do |
| 15956 | IFS=$as_save_IFS |
| 15957 | test -z "$as_dir" && as_dir=. |
| 15958 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 15959 | done |
| 15960 | |
| 15961 | ;; |
| 15962 | esac |
| 15963 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 15964 | # in which case we are not to be found in the path. |
| 15965 | if test "x$as_myself" = x; then |
| 15966 | as_myself=$0 |
| 15967 | fi |
| 15968 | if test ! -f "$as_myself"; then |
| 15969 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 15970 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 15971 | { (exit 1); exit 1; }; } |
| 15972 | fi |
| 15973 | case $CONFIG_SHELL in |
| 15974 | '') |
| 15975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15976 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 15977 | do |
| 15978 | IFS=$as_save_IFS |
| 15979 | test -z "$as_dir" && as_dir=. |
| 15980 | for as_base in sh bash ksh sh5; do |
| 15981 | case $as_dir in |
| 15982 | /*) |
| 15983 | if ("$as_dir/$as_base" -c ' |
| 15984 | as_lineno_1=$LINENO |
| 15985 | as_lineno_2=$LINENO |
| 15986 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 15987 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 15988 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 15989 | CONFIG_SHELL=$as_dir/$as_base |
| 15990 | export CONFIG_SHELL |
| 15991 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 15992 | fi;; |
| 15993 | esac |
| 15994 | done |
| 15995 | done |
| 15996 | ;; |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15997 | esac |
| 15998 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15999 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 16000 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 16001 | # line-number line before each line; the second 'sed' does the real |
| 16002 | # work. The second script uses 'N' to pair each line-number line |
| 16003 | # with the numbered line, and appends trailing '-' during |
| 16004 | # substitution so that $LINENO is not a special case at line end. |
| 16005 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 16006 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 16007 | sed '=' <$as_myself | |
| 16008 | sed ' |
| 16009 | N |
| 16010 | s,$,-, |
| 16011 | : loop |
| 16012 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 16013 | t loop |
| 16014 | s,-$,, |
| 16015 | s,^['$as_cr_digits']*\n,, |
| 16016 | ' >$as_me.lineno && |
| 16017 | chmod +x $as_me.lineno || |
| 16018 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 16019 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 16020 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16021 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16022 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 16023 | # (the dirname of $[0] is not the place where we might find the |
| 16024 | # original and so on. Autoconf is especially sensible to this). |
| 16025 | . ./$as_me.lineno |
| 16026 | # Exit status is that of the last command. |
| 16027 | exit |
| 16028 | } |
| 16029 | |
| 16030 | |
| 16031 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 16032 | *c*,-n*) ECHO_N= ECHO_C=' |
| 16033 | ' ECHO_T=' ' ;; |
| 16034 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 16035 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 16036 | esac |
| 16037 | |
| 16038 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 16039 | as_expr=expr |
| 16040 | else |
| 16041 | as_expr=false |
| 16042 | fi |
| 16043 | |
| 16044 | rm -f conf$$ conf$$.exe conf$$.file |
| 16045 | echo >conf$$.file |
| 16046 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 16047 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 16048 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 16049 | if test -f conf$$.exe; then |
| 16050 | # Don't use ln at all; we don't have any links |
| 16051 | as_ln_s='cp -p' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16052 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16053 | as_ln_s='ln -s' |
| 16054 | fi |
| 16055 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 16056 | as_ln_s=ln |
| 16057 | else |
| 16058 | as_ln_s='cp -p' |
| 16059 | fi |
| 16060 | rm -f conf$$ conf$$.exe conf$$.file |
| 16061 | |
| 16062 | as_executable_p="test -f" |
| 16063 | |
| 16064 | # Sed expression to map a string onto a valid CPP name. |
| 16065 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 16066 | |
| 16067 | # Sed expression to map a string onto a valid variable name. |
| 16068 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 16069 | |
| 16070 | |
| 16071 | # IFS |
| 16072 | # We need space, tab and new line, in precisely that order. |
| 16073 | as_nl=' |
| 16074 | ' |
| 16075 | IFS=" $as_nl" |
| 16076 | |
| 16077 | # CDPATH. |
| 16078 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
| 16079 | |
| 16080 | exec 6>&1 |
| 16081 | |
| 16082 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 16083 | # report actual input values of CONFIG_FILES etc. instead of their |
| 16084 | # values after options handling. Logging --version etc. is OK. |
| 16085 | exec 5>>config.log |
| 16086 | { |
| 16087 | echo |
| 16088 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 16089 | ## Running $as_me. ## |
| 16090 | _ASBOX |
| 16091 | } >&5 |
| 16092 | cat >&5 <<_CSEOF |
| 16093 | |
| 16094 | This file was extended by $as_me, which was |
| 16095 | generated by GNU Autoconf 2.53. Invocation command line was |
| 16096 | |
| 16097 | CONFIG_FILES = $CONFIG_FILES |
| 16098 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 16099 | CONFIG_LINKS = $CONFIG_LINKS |
| 16100 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 16101 | $ $0 $@ |
| 16102 | |
| 16103 | _CSEOF |
| 16104 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 16105 | echo >&5 |
| 16106 | _ACEOF |
| 16107 | |
| 16108 | # Files that config.status was made for. |
| 16109 | if test -n "$ac_config_files"; then |
| 16110 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 16111 | fi |
| 16112 | |
| 16113 | if test -n "$ac_config_headers"; then |
| 16114 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 16115 | fi |
| 16116 | |
| 16117 | if test -n "$ac_config_links"; then |
| 16118 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 16119 | fi |
| 16120 | |
| 16121 | if test -n "$ac_config_commands"; then |
| 16122 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 16123 | fi |
| 16124 | |
| 16125 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16126 | |
| 16127 | ac_cs_usage="\ |
| 16128 | \`$as_me' instantiates files from templates according to the |
| 16129 | current configuration. |
| 16130 | |
| 16131 | Usage: $0 [OPTIONS] [FILE]... |
| 16132 | |
| 16133 | -h, --help print this help, then exit |
| 16134 | -V, --version print version number, then exit |
| 16135 | -d, --debug don't remove temporary files |
| 16136 | --recheck update $as_me by reconfiguring in the same conditions |
| 16137 | --file=FILE[:TEMPLATE] |
| 16138 | instantiate the configuration file FILE |
| 16139 | --header=FILE[:TEMPLATE] |
| 16140 | instantiate the configuration header FILE |
| 16141 | |
| 16142 | Configuration files: |
| 16143 | $config_files |
| 16144 | |
| 16145 | Configuration headers: |
| 16146 | $config_headers |
| 16147 | |
| 16148 | Report bugs to <bug-autoconf@gnu.org>." |
| 16149 | _ACEOF |
| 16150 | |
| 16151 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16152 | ac_cs_version="\\ |
| 16153 | config.status |
| 16154 | configured by $0, generated by GNU Autoconf 2.53, |
| 16155 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 16156 | |
| 16157 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 16158 | Free Software Foundation, Inc. |
| 16159 | This config.status script is free software; the Free Software Foundation |
| 16160 | gives unlimited permission to copy, distribute and modify it." |
| 16161 | srcdir=$srcdir |
| 16162 | INSTALL="$INSTALL" |
| 16163 | _ACEOF |
| 16164 | |
| 16165 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16166 | # If no file are specified by the user, then we need to provide default |
| 16167 | # value. By we need to know if files were specified by the user. |
| 16168 | ac_need_defaults=: |
| 16169 | while test $# != 0 |
| 16170 | do |
| 16171 | case $1 in |
| 16172 | --*=*) |
| 16173 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 16174 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 16175 | shift |
| 16176 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} |
| 16177 | shift |
| 16178 | ;; |
| 16179 | -*);; |
| 16180 | *) # This is not an option, so the user has probably given explicit |
| 16181 | # arguments. |
| 16182 | ac_need_defaults=false;; |
| 16183 | esac |
| 16184 | |
| 16185 | case $1 in |
| 16186 | # Handling of the options. |
| 16187 | _ACEOF |
| 16188 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16189 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 16190 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
| 16191 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; |
| 16192 | _ACEOF |
| 16193 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16194 | --version | --vers* | -V ) |
| 16195 | echo "$ac_cs_version"; exit 0 ;; |
| 16196 | --he | --h) |
| 16197 | # Conflict between --help and --header |
| 16198 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 16199 | Try \`$0 --help' for more information." >&5 |
| 16200 | echo "$as_me: error: ambiguous option: $1 |
| 16201 | Try \`$0 --help' for more information." >&2;} |
| 16202 | { (exit 1); exit 1; }; };; |
| 16203 | --help | --hel | -h ) |
| 16204 | echo "$ac_cs_usage"; exit 0 ;; |
| 16205 | --debug | --d* | -d ) |
| 16206 | debug=: ;; |
| 16207 | --file | --fil | --fi | --f ) |
| 16208 | shift |
| 16209 | CONFIG_FILES="$CONFIG_FILES $1" |
| 16210 | ac_need_defaults=false;; |
| 16211 | --header | --heade | --head | --hea ) |
| 16212 | shift |
| 16213 | CONFIG_HEADERS="$CONFIG_HEADERS $1" |
| 16214 | ac_need_defaults=false;; |
| 16215 | |
| 16216 | # This is an error. |
| 16217 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 16218 | Try \`$0 --help' for more information." >&5 |
| 16219 | echo "$as_me: error: unrecognized option: $1 |
| 16220 | Try \`$0 --help' for more information." >&2;} |
| 16221 | { (exit 1); exit 1; }; } ;; |
| 16222 | |
| 16223 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 16224 | |
| 16225 | esac |
| 16226 | shift |
| 16227 | done |
| 16228 | |
| 16229 | _ACEOF |
| 16230 | |
| 16231 | |
| 16232 | |
| 16233 | |
| 16234 | |
| 16235 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16236 | for ac_config_target in $ac_config_targets |
| 16237 | do |
| 16238 | case "$ac_config_target" in |
| 16239 | # Handling of arguments. |
| 16240 | "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 16241 | "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 16242 | "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 16243 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 16244 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 16245 | { (exit 1); exit 1; }; };; |
| 16246 | esac |
| 16247 | done |
| 16248 | |
| 16249 | # If the user did not use the arguments to specify the items to instantiate, |
| 16250 | # then the envvar interface is used. Set only those that are not. |
| 16251 | # We use the long form for the default assignment because of an extremely |
| 16252 | # bizarre bug on SunOS 4.1.3. |
| 16253 | if $ac_need_defaults; then |
| 16254 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 16255 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 16256 | fi |
| 16257 | |
| 16258 | # Create a temporary directory, and hook for its removal unless debugging. |
| 16259 | $debug || |
| 16260 | { |
| 16261 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 16262 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 16263 | } |
| 16264 | |
| 16265 | # Create a (secure) tmp directory for tmp files. |
| 16266 | : ${TMPDIR=/tmp} |
| 16267 | { |
| 16268 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && |
| 16269 | test -n "$tmp" && test -d "$tmp" |
| 16270 | } || |
| 16271 | { |
| 16272 | tmp=$TMPDIR/cs$$-$RANDOM |
| 16273 | (umask 077 && mkdir $tmp) |
| 16274 | } || |
| 16275 | { |
| 16276 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
| 16277 | { (exit 1); exit 1; } |
| 16278 | } |
| 16279 | |
| 16280 | _ACEOF |
| 16281 | |
| 16282 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16283 | |
| 16284 | # |
| 16285 | # CONFIG_FILES section. |
| 16286 | # |
| 16287 | |
| 16288 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 16289 | # This happens for instance when ./config.status config.h |
| 16290 | if test -n "\$CONFIG_FILES"; then |
| 16291 | # Protect against being on the right side of a sed subst in config.status. |
| 16292 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 16293 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 16294 | s,@SHELL@,$SHELL,;t t |
| 16295 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 16296 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 16297 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 16298 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 16299 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 16300 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 16301 | s,@exec_prefix@,$exec_prefix,;t t |
| 16302 | s,@prefix@,$prefix,;t t |
| 16303 | s,@program_transform_name@,$program_transform_name,;t t |
| 16304 | s,@bindir@,$bindir,;t t |
| 16305 | s,@sbindir@,$sbindir,;t t |
| 16306 | s,@libexecdir@,$libexecdir,;t t |
| 16307 | s,@datadir@,$datadir,;t t |
| 16308 | s,@sysconfdir@,$sysconfdir,;t t |
| 16309 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 16310 | s,@localstatedir@,$localstatedir,;t t |
| 16311 | s,@libdir@,$libdir,;t t |
| 16312 | s,@includedir@,$includedir,;t t |
| 16313 | s,@oldincludedir@,$oldincludedir,;t t |
| 16314 | s,@infodir@,$infodir,;t t |
| 16315 | s,@mandir@,$mandir,;t t |
| 16316 | s,@build_alias@,$build_alias,;t t |
| 16317 | s,@host_alias@,$host_alias,;t t |
| 16318 | s,@target_alias@,$target_alias,;t t |
| 16319 | s,@DEFS@,$DEFS,;t t |
| 16320 | s,@ECHO_C@,$ECHO_C,;t t |
| 16321 | s,@ECHO_N@,$ECHO_N,;t t |
| 16322 | s,@ECHO_T@,$ECHO_T,;t t |
| 16323 | s,@LIBS@,$LIBS,;t t |
| 16324 | s,@VERSION@,$VERSION,;t t |
| 16325 | s,@SOVERSION@,$SOVERSION,;t t |
| 16326 | s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t |
| 16327 | s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t |
| 16328 | s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t |
| 16329 | s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t |
| 16330 | s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t |
| 16331 | s,@MACHDEP@,$MACHDEP,;t t |
| 16332 | s,@SGI_ABI@,$SGI_ABI,;t t |
| 16333 | s,@CXX@,$CXX,;t t |
| 16334 | s,@MAINOBJ@,$MAINOBJ,;t t |
| 16335 | s,@EXEEXT@,$EXEEXT,;t t |
| 16336 | s,@CC@,$CC,;t t |
| 16337 | s,@CFLAGS@,$CFLAGS,;t t |
| 16338 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 16339 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 16340 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 16341 | s,@OBJEXT@,$OBJEXT,;t t |
| 16342 | s,@CPP@,$CPP,;t t |
| 16343 | s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t |
| 16344 | s,@LIBRARY@,$LIBRARY,;t t |
| 16345 | s,@LDLIBRARY@,$LDLIBRARY,;t t |
| 16346 | s,@DLLLIBRARY@,$DLLLIBRARY,;t t |
| 16347 | s,@BLDLIBRARY@,$BLDLIBRARY,;t t |
| 16348 | s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t |
| 16349 | s,@INSTSONAME@,$INSTSONAME,;t t |
| 16350 | s,@RUNSHARED@,$RUNSHARED,;t t |
| 16351 | s,@LINKCC@,$LINKCC,;t t |
| 16352 | s,@RANLIB@,$RANLIB,;t t |
| 16353 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 16354 | s,@AR@,$AR,;t t |
| 16355 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 16356 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 16357 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 16358 | s,@LN@,$LN,;t t |
| 16359 | s,@OPT@,$OPT,;t t |
| 16360 | s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t |
| 16361 | s,@SO@,$SO,;t t |
| 16362 | s,@LDSHARED@,$LDSHARED,;t t |
| 16363 | s,@BLDSHARED@,$BLDSHARED,;t t |
| 16364 | s,@CCSHARED@,$CCSHARED,;t t |
| 16365 | s,@LINKFORSHARED@,$LINKFORSHARED,;t t |
| 16366 | s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t |
| 16367 | s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t |
| 16368 | s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t |
| 16369 | s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t |
| 16370 | s,@LDLAST@,$LDLAST,;t t |
| 16371 | s,@THREADOBJ@,$THREADOBJ,;t t |
| 16372 | s,@DLINCLDIR@,$DLINCLDIR,;t t |
| 16373 | s,@DYNLOADFILE@,$DYNLOADFILE,;t t |
| 16374 | s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t |
| 16375 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 16376 | s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t |
| 16377 | s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t |
| 16378 | s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t |
| 16379 | s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t |
| 16380 | s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t |
| 16381 | s,@LIBM@,$LIBM,;t t |
| 16382 | s,@LIBC@,$LIBC,;t t |
| 16383 | s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t |
| 16384 | s,@THREADHEADERS@,$THREADHEADERS,;t t |
| 16385 | s,@SRCDIRS@,$SRCDIRS,;t t |
| 16386 | CEOF |
| 16387 | |
| 16388 | _ACEOF |
| 16389 | |
| 16390 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16391 | # Split the substitutions into bite-sized pieces for seds with |
| 16392 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 16393 | ac_max_sed_lines=48 |
| 16394 | ac_sed_frag=1 # Number of current file. |
| 16395 | ac_beg=1 # First line for current file. |
| 16396 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 16397 | ac_more_lines=: |
| 16398 | ac_sed_cmds= |
| 16399 | while $ac_more_lines; do |
| 16400 | if test $ac_beg -gt 1; then |
| 16401 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 16402 | else |
| 16403 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 16404 | fi |
| 16405 | if test ! -s $tmp/subs.frag; then |
| 16406 | ac_more_lines=false |
| 16407 | else |
| 16408 | # The purpose of the label and of the branching condition is to |
| 16409 | # speed up the sed processing (if there are no `@' at all, there |
| 16410 | # is no need to browse any of the substitutions). |
| 16411 | # These are the two extra sed commands mentioned above. |
| 16412 | (echo ':t |
| 16413 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 16414 | if test -z "$ac_sed_cmds"; then |
| 16415 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 16416 | else |
| 16417 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 16418 | fi |
| 16419 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 16420 | ac_beg=$ac_end |
| 16421 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 16422 | fi |
| 16423 | done |
| 16424 | if test -z "$ac_sed_cmds"; then |
| 16425 | ac_sed_cmds=cat |
| 16426 | fi |
| 16427 | fi # test -n "$CONFIG_FILES" |
| 16428 | |
| 16429 | _ACEOF |
| 16430 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16431 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 16432 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 16433 | case $ac_file in |
| 16434 | - | *:- | *:-:* ) # input from stdin |
| 16435 | cat >$tmp/stdin |
| 16436 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16437 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16438 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16439 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16440 | * ) ac_file_in=$ac_file.in ;; |
| 16441 | esac |
| 16442 | |
| 16443 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 16444 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 16445 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16446 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16447 | X"$ac_file" : 'X\(//\)$' \| \ |
| 16448 | X"$ac_file" : 'X\(/\)' \| \ |
| 16449 | . : '\(.\)' 2>/dev/null || |
| 16450 | echo X"$ac_file" | |
| 16451 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16452 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16453 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16454 | /^X\(\/\).*/{ s//\1/; q; } |
| 16455 | s/.*/./; q'` |
| 16456 | { case "$ac_dir" in |
| 16457 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 16458 | *) as_incr_dir=.;; |
| 16459 | esac |
| 16460 | as_dummy="$ac_dir" |
| 16461 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 16462 | case $as_mkdir_dir in |
| 16463 | # Skip DOS drivespec |
| 16464 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 16465 | *) |
| 16466 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 16467 | test -d "$as_incr_dir" || |
| 16468 | mkdir "$as_incr_dir" || |
| 16469 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 16470 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 16471 | { (exit 1); exit 1; }; } |
| 16472 | ;; |
| 16473 | esac |
| 16474 | done; } |
| 16475 | |
| 16476 | ac_builddir=. |
| 16477 | |
| 16478 | if test "$ac_dir" != .; then |
| 16479 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 16480 | # A "../" for each directory in $ac_dir_suffix. |
| 16481 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 16482 | else |
| 16483 | ac_dir_suffix= ac_top_builddir= |
| 16484 | fi |
| 16485 | |
| 16486 | case $srcdir in |
| 16487 | .) # No --srcdir option. We are building in place. |
| 16488 | ac_srcdir=. |
| 16489 | if test -z "$ac_top_builddir"; then |
| 16490 | ac_top_srcdir=. |
| 16491 | else |
| 16492 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 16493 | fi ;; |
| 16494 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 16495 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 16496 | ac_top_srcdir=$srcdir ;; |
| 16497 | *) # Relative path. |
| 16498 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 16499 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 16500 | esac |
| 16501 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 16502 | # absolute. |
| 16503 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 16504 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` |
| 16505 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 16506 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 16507 | |
| 16508 | |
| 16509 | case $INSTALL in |
| 16510 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 16511 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 16512 | esac |
| 16513 | |
| 16514 | if test x"$ac_file" != x-; then |
| 16515 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 16516 | echo "$as_me: creating $ac_file" >&6;} |
| 16517 | rm -f "$ac_file" |
| 16518 | fi |
| 16519 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16520 | # use $as_me), people would be surprised to read: |
| 16521 | # /* config.h. Generated by config.status. */ |
| 16522 | if test x"$ac_file" = x-; then |
| 16523 | configure_input= |
| 16524 | else |
| 16525 | configure_input="$ac_file. " |
| 16526 | fi |
| 16527 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 16528 | sed 's,.*/,,'` by configure." |
| 16529 | |
| 16530 | # First look for the input files in the build tree, otherwise in the |
| 16531 | # src tree. |
| 16532 | ac_file_inputs=`IFS=: |
| 16533 | for f in $ac_file_in; do |
| 16534 | case $f in |
| 16535 | -) echo $tmp/stdin ;; |
| 16536 | [\\/$]*) |
| 16537 | # Absolute (can't be DOS-style, as IFS=:) |
| 16538 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16539 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16540 | { (exit 1); exit 1; }; } |
| 16541 | echo $f;; |
| 16542 | *) # Relative |
| 16543 | if test -f "$f"; then |
| 16544 | # Build tree |
| 16545 | echo $f |
| 16546 | elif test -f "$srcdir/$f"; then |
| 16547 | # Source tree |
| 16548 | echo $srcdir/$f |
| 16549 | else |
| 16550 | # /dev/null tree |
| 16551 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16552 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16553 | { (exit 1); exit 1; }; } |
| 16554 | fi;; |
| 16555 | esac |
| 16556 | done` || { (exit 1); exit 1; } |
| 16557 | _ACEOF |
| 16558 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16559 | sed "$ac_vpsub |
| 16560 | $extrasub |
| 16561 | _ACEOF |
| 16562 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16563 | :t |
| 16564 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 16565 | s,@configure_input@,$configure_input,;t t |
| 16566 | s,@srcdir@,$ac_srcdir,;t t |
| 16567 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 16568 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 16569 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 16570 | s,@builddir@,$ac_builddir,;t t |
| 16571 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 16572 | s,@top_builddir@,$ac_top_builddir,;t t |
| 16573 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 16574 | s,@INSTALL@,$ac_INSTALL,;t t |
| 16575 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 16576 | rm -f $tmp/stdin |
| 16577 | if test x"$ac_file" != x-; then |
| 16578 | mv $tmp/out $ac_file |
| 16579 | else |
| 16580 | cat $tmp/out |
| 16581 | rm -f $tmp/out |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16582 | fi |
| 16583 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16584 | done |
| 16585 | _ACEOF |
| 16586 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16587 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16588 | # |
| 16589 | # CONFIG_HEADER section. |
| 16590 | # |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16591 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16592 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 16593 | # 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] | 16594 | # |
| 16595 | # ac_d sets the value in "#define NAME VALUE" lines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16596 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 16597 | ac_dB='[ ].*$,\1#\2' |
| 16598 | ac_dC=' ' |
| 16599 | ac_dD=',;t' |
| 16600 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 16601 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 16602 | ac_uB='$,\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16603 | ac_uC=' ' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16604 | ac_uD=',;t' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16605 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16606 | 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] | 16607 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16608 | case $ac_file in |
| 16609 | - | *:- | *:-:* ) # input from stdin |
| 16610 | cat >$tmp/stdin |
| 16611 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16612 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16613 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16614 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16615 | * ) ac_file_in=$ac_file.in ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16616 | esac |
| 16617 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16618 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 16619 | echo "$as_me: creating $ac_file" >&6;} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16620 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16621 | # First look for the input files in the build tree, otherwise in the |
| 16622 | # src tree. |
| 16623 | ac_file_inputs=`IFS=: |
| 16624 | for f in $ac_file_in; do |
| 16625 | case $f in |
| 16626 | -) echo $tmp/stdin ;; |
| 16627 | [\\/$]*) |
| 16628 | # Absolute (can't be DOS-style, as IFS=:) |
| 16629 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16630 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16631 | { (exit 1); exit 1; }; } |
| 16632 | echo $f;; |
| 16633 | *) # Relative |
| 16634 | if test -f "$f"; then |
| 16635 | # Build tree |
| 16636 | echo $f |
| 16637 | elif test -f "$srcdir/$f"; then |
| 16638 | # Source tree |
| 16639 | echo $srcdir/$f |
| 16640 | else |
| 16641 | # /dev/null tree |
| 16642 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16643 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16644 | { (exit 1); exit 1; }; } |
| 16645 | fi;; |
| 16646 | esac |
| 16647 | done` || { (exit 1); exit 1; } |
| 16648 | # Remove the trailing spaces. |
| 16649 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16650 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16651 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16652 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16653 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 16654 | # `conftest.undefs', that substitutes the proper values into |
| 16655 | # config.h.in to produce config.h. The first handles `#define' |
| 16656 | # templates, and the second `#undef' templates. |
| 16657 | # And first: Protect against being on the right side of a sed subst in |
| 16658 | # config.status. Protect against being in an unquoted here document |
| 16659 | # in config.status. |
| 16660 | rm -f conftest.defines conftest.undefs |
| 16661 | # Using a here document instead of a string reduces the quoting nightmare. |
| 16662 | # Putting comments in sed scripts is not portable. |
| 16663 | # |
| 16664 | # `end' is used to avoid that the second main sed command (meant for |
| 16665 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 16666 | # See the Autoconf documentation for `clear'. |
| 16667 | cat >confdef2sed.sed <<\_ACEOF |
| 16668 | s/[\\&,]/\\&/g |
| 16669 | s,[\\$`],\\&,g |
| 16670 | t clear |
| 16671 | : clear |
| 16672 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 16673 | t end |
| 16674 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 16675 | : end |
| 16676 | _ACEOF |
| 16677 | # If some macros were called several times there might be several times |
| 16678 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 16679 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 16680 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 16681 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 16682 | rm -f confdef2sed.sed |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16683 | |
| 16684 | # This sed command replaces #undef with comments. This is necessary, for |
| 16685 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 16686 | # 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] | 16687 | cat >>conftest.undefs <<\_ACEOF |
| 16688 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 16689 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16690 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16691 | # Break up conftest.defines because some shells have a limit on the size |
| 16692 | # of here documents, and old seds have small limits too (100 cmds). |
| 16693 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 16694 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 16695 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 16696 | echo ' :' >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16697 | rm -f conftest.tail |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16698 | while grep . conftest.defines >/dev/null |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16699 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16700 | # Write a limited-size here document to $tmp/defines.sed. |
| 16701 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 16702 | # Speed up: don't consider the non `#define' lines. |
| 16703 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 16704 | # Work around the forget-to-reset-the-flag bug. |
| 16705 | echo 't clr' >>$CONFIG_STATUS |
| 16706 | echo ': clr' >>$CONFIG_STATUS |
| 16707 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16708 | echo 'CEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16709 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 16710 | rm -f $tmp/in |
| 16711 | mv $tmp/out $tmp/in |
| 16712 | ' >>$CONFIG_STATUS |
| 16713 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 16714 | rm -f conftest.defines |
| 16715 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16716 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16717 | rm -f conftest.defines |
| 16718 | echo ' fi # egrep' >>$CONFIG_STATUS |
| 16719 | echo >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16720 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16721 | # Break up conftest.undefs because some shells have a limit on the size |
| 16722 | # of here documents, and old seds have small limits too (100 cmds). |
| 16723 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 16724 | rm -f conftest.tail |
| 16725 | while grep . conftest.undefs >/dev/null |
| 16726 | do |
| 16727 | # Write a limited-size here document to $tmp/undefs.sed. |
| 16728 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 16729 | # Speed up: don't consider the non `#undef' |
| 16730 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 16731 | # Work around the forget-to-reset-the-flag bug. |
| 16732 | echo 't clr' >>$CONFIG_STATUS |
| 16733 | echo ': clr' >>$CONFIG_STATUS |
| 16734 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 16735 | echo 'CEOF |
| 16736 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 16737 | rm -f $tmp/in |
| 16738 | mv $tmp/out $tmp/in |
| 16739 | ' >>$CONFIG_STATUS |
| 16740 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 16741 | rm -f conftest.undefs |
| 16742 | mv conftest.tail conftest.undefs |
| 16743 | done |
| 16744 | rm -f conftest.undefs |
| 16745 | |
| 16746 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16747 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16748 | # use $as_me), people would be surprised to read: |
| 16749 | # /* config.h. Generated by config.status. */ |
| 16750 | if test x"$ac_file" = x-; then |
| 16751 | echo "/* Generated by configure. */" >$tmp/config.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16752 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16753 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16754 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16755 | cat $tmp/in >>$tmp/config.h |
| 16756 | rm -f $tmp/in |
| 16757 | if test x"$ac_file" != x-; then |
| 16758 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then |
| 16759 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 16760 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 16761 | else |
| 16762 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 16763 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16764 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16765 | X"$ac_file" : 'X\(//\)$' \| \ |
| 16766 | X"$ac_file" : 'X\(/\)' \| \ |
| 16767 | . : '\(.\)' 2>/dev/null || |
| 16768 | echo X"$ac_file" | |
| 16769 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16770 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16771 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16772 | /^X\(\/\).*/{ s//\1/; q; } |
| 16773 | s/.*/./; q'` |
| 16774 | { case "$ac_dir" in |
| 16775 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 16776 | *) as_incr_dir=.;; |
| 16777 | esac |
| 16778 | as_dummy="$ac_dir" |
| 16779 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 16780 | case $as_mkdir_dir in |
| 16781 | # Skip DOS drivespec |
| 16782 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 16783 | *) |
| 16784 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 16785 | test -d "$as_incr_dir" || |
| 16786 | mkdir "$as_incr_dir" || |
| 16787 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 16788 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 16789 | { (exit 1); exit 1; }; } |
| 16790 | ;; |
| 16791 | esac |
| 16792 | done; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16793 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16794 | rm -f $ac_file |
| 16795 | mv $tmp/config.h $ac_file |
| 16796 | fi |
| 16797 | else |
| 16798 | cat $tmp/config.h |
| 16799 | rm -f $tmp/config.h |
| 16800 | fi |
| 16801 | done |
| 16802 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16803 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16804 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16805 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16806 | { (exit 0); exit 0; } |
| 16807 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16808 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16809 | ac_clean_files=$ac_clean_files_save |
| 16810 | |
| 16811 | |
| 16812 | # configure is writing to config.log, and then calls config.status. |
| 16813 | # config.status does its own redirection, appending to config.log. |
| 16814 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 16815 | # by configure, so config.status won't be able to write to it; its |
| 16816 | # output is simply discarded. So we exec the FD to /dev/null, |
| 16817 | # effectively closing config.log, so it can be properly (re)opened and |
| 16818 | # appended to by config.status. When coming back to configure, we |
| 16819 | # need to make the FD available again. |
| 16820 | if test "$no_create" != yes; then |
| 16821 | ac_cs_success=: |
| 16822 | exec 5>/dev/null |
| 16823 | $SHELL $CONFIG_STATUS || ac_cs_success=false |
| 16824 | exec 5>>config.log |
| 16825 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 16826 | # would make configure fail if this is the last instruction. |
| 16827 | $ac_cs_success || { (exit 1); exit 1; } |
| 16828 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16829 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 16830 | |
| 16831 | echo "creating Setup" |
| 16832 | if test ! -f Modules/Setup |
| 16833 | then |
| 16834 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 16835 | fi |
| 16836 | |
| 16837 | echo "creating Setup.local" |
| 16838 | if test ! -f Modules/Setup.local |
| 16839 | then |
| 16840 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 16841 | fi |
| 16842 | |
| 16843 | echo "creating Makefile" |
| 16844 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 16845 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 16846 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 16847 | mv config.c Modules |