Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Michael W. Hudson | 065c1a2 | 2002-06-06 13:03:44 +0000 | [diff] [blame^] | 2 | # From configure.in Revision: 1.320 . |
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 | 09bdf72 | 2002-05-08 08:51:29 +0000 | [diff] [blame] | 3021 | INSTSONAME='$(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 |
Martin v. Löwis | 1931ca7 | 2002-06-01 21:39:58 +0000 | [diff] [blame] | 3040 | echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 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 | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3073 | case $ac_sys_system in |
| 3074 | CYGWIN*) |
| 3075 | enable_shared="yes";; |
| 3076 | *) |
| 3077 | enable_shared="no";; |
| 3078 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3079 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3080 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 3081 | echo "${ECHO_T}$enable_shared" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3082 | |
| 3083 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3084 | echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 3085 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3086 | |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 3087 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 3088 | # library that we build, but we do not want to link against it (we |
| 3089 | # will find it with a -framework option). For this reason there is an |
| 3090 | # extra variable BLDLIBRARY against which Python and the extension |
| 3091 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 3092 | # LDLIBRARY, but empty for MacOSX framework builds. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3093 | if test "$enable_framework" |
| 3094 | then |
| 3095 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 3096 | LDLIBRARYDIR='$(PYTHONFRAMEWORKDIR)' |
| 3097 | BLDLIBRARY='' |
| 3098 | else |
| 3099 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3100 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3101 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3102 | # Other platforms follow |
| 3103 | if test $enable_shared = "yes"; then |
| 3104 | case $ac_sys_system in |
| 3105 | BeOS*) |
| 3106 | LDLIBRARY='libpython$(VERSION).so' |
| 3107 | ;; |
| 3108 | CYGWIN*) |
| 3109 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3110 | DLLLIBRARY='libpython$(VERSION).dll' |
| 3111 | ;; |
| 3112 | SunOS*) |
| 3113 | LDLIBRARY='libpython$(VERSION).so' |
| 3114 | BLDLIBRARY='-Wl,-rpath,$(LIBDIR) -L. -lpython$(VERSION)' |
| 3115 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3116 | ;; |
| 3117 | Linux*) |
| 3118 | LDLIBRARY='libpython$(VERSION).so' |
| 3119 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3120 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3121 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 3122 | ;; |
| 3123 | hp*|HP*) |
| 3124 | LDLIBRARY='libpython$(VERSION).sl' |
| 3125 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| 3126 | RUNSHARED=SHLIB_PATH=`pwd`:$SHLIB_PATH |
| 3127 | ;; |
| 3128 | OSF*) |
| 3129 | LDLIBRARY='libpython$(VERSION).so' |
| 3130 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| 3131 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3132 | ;; |
| 3133 | esac |
| 3134 | # DG/UX requires some fancy ld contortions to produce a .so from an .a |
| 3135 | case $MACHDEP in |
| 3136 | dguxR4) |
| 3137 | LDLIBRARY='libpython$(VERSION).so' |
| 3138 | OPT="$OPT -pic" |
| 3139 | ;; |
| 3140 | esac |
| 3141 | fi |
| 3142 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3143 | echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 3144 | echo "${ECHO_T}$LDLIBRARY" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3145 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3146 | if test -n "$ac_tool_prefix"; then |
| 3147 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3148 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3149 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3150 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3151 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3153 | else |
| 3154 | if test -n "$RANLIB"; then |
| 3155 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3156 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3158 | for as_dir in $PATH |
| 3159 | do |
| 3160 | IFS=$as_save_IFS |
| 3161 | test -z "$as_dir" && as_dir=. |
| 3162 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3163 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3164 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3165 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3166 | break 2 |
| 3167 | fi |
| 3168 | done |
| 3169 | done |
| 3170 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3171 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3172 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3173 | RANLIB=$ac_cv_prog_RANLIB |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3174 | if test -n "$RANLIB"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3175 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3176 | echo "${ECHO_T}$RANLIB" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3177 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3178 | echo "$as_me:$LINENO: result: no" >&5 |
| 3179 | echo "${ECHO_T}no" >&6 |
| 3180 | fi |
| 3181 | |
| 3182 | fi |
| 3183 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3184 | ac_ct_RANLIB=$RANLIB |
| 3185 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3186 | set dummy ranlib; ac_word=$2 |
| 3187 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3188 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3189 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3191 | else |
| 3192 | if test -n "$ac_ct_RANLIB"; then |
| 3193 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3194 | else |
| 3195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3196 | for as_dir in $PATH |
| 3197 | do |
| 3198 | IFS=$as_save_IFS |
| 3199 | test -z "$as_dir" && as_dir=. |
| 3200 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3201 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3202 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3203 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3204 | break 2 |
| 3205 | fi |
| 3206 | done |
| 3207 | done |
| 3208 | |
| 3209 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3210 | fi |
| 3211 | fi |
| 3212 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3213 | if test -n "$ac_ct_RANLIB"; then |
| 3214 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3215 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3216 | else |
| 3217 | echo "$as_me:$LINENO: result: no" >&5 |
| 3218 | echo "${ECHO_T}no" >&6 |
| 3219 | fi |
| 3220 | |
| 3221 | RANLIB=$ac_ct_RANLIB |
| 3222 | else |
| 3223 | RANLIB="$ac_cv_prog_RANLIB" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3224 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3225 | |
| 3226 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3227 | for ac_prog in ar aal |
| 3228 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3229 | # 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] | 3230 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3231 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3232 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3233 | if test "${ac_cv_prog_AR+set}" = set; then |
| 3234 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3235 | else |
| 3236 | if test -n "$AR"; then |
| 3237 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3238 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3239 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3240 | for as_dir in $PATH |
| 3241 | do |
| 3242 | IFS=$as_save_IFS |
| 3243 | test -z "$as_dir" && as_dir=. |
| 3244 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3245 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3246 | ac_cv_prog_AR="$ac_prog" |
| 3247 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3248 | break 2 |
| 3249 | fi |
| 3250 | done |
| 3251 | done |
| 3252 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3253 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3254 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3255 | AR=$ac_cv_prog_AR |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3256 | if test -n "$AR"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3257 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 3258 | echo "${ECHO_T}$AR" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3259 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3260 | echo "$as_me:$LINENO: result: no" >&5 |
| 3261 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3262 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3263 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3264 | test -n "$AR" && break |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3265 | done |
| 3266 | test -n "$AR" || AR="ar" |
| 3267 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3268 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3269 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 3270 | bsdos*|hp*|HP*) |
| 3271 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3272 | if test -z "$INSTALL" |
| 3273 | then |
| 3274 | INSTALL="${srcdir}/install-sh -c" |
| 3275 | fi |
| 3276 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3277 | ac_aux_dir= |
| 3278 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 3279 | if test -f $ac_dir/install-sh; then |
| 3280 | ac_aux_dir=$ac_dir |
| 3281 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3282 | break |
| 3283 | elif test -f $ac_dir/install.sh; then |
| 3284 | ac_aux_dir=$ac_dir |
| 3285 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3286 | break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3287 | elif test -f $ac_dir/shtool; then |
| 3288 | ac_aux_dir=$ac_dir |
| 3289 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3290 | break |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3291 | fi |
| 3292 | done |
| 3293 | if test -z "$ac_aux_dir"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3294 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 3295 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 3296 | { (exit 1); exit 1; }; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3297 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3298 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 3299 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 3300 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3301 | |
| 3302 | # Find a good install program. We prefer a C program (faster), |
| 3303 | # so one script is as good as another. But avoid the broken or |
| 3304 | # incompatible versions: |
| 3305 | # SysV /etc/install, /usr/sbin/install |
| 3306 | # SunOS /usr/etc/install |
| 3307 | # IRIX /sbin/install |
| 3308 | # AIX /bin/install |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3309 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3310 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3311 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3312 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3313 | # ./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] | 3314 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 3315 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3316 | if test -z "$INSTALL"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3317 | if test "${ac_cv_path_install+set}" = set; then |
| 3318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3319 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3320 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3321 | for as_dir in $PATH |
| 3322 | do |
| 3323 | IFS=$as_save_IFS |
| 3324 | test -z "$as_dir" && as_dir=. |
| 3325 | # Account for people who put trailing slashes in PATH elements. |
| 3326 | case $as_dir/ in |
| 3327 | ./ | .// | /cC/* | \ |
| 3328 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3329 | /usr/ucb/* ) ;; |
| 3330 | *) |
| 3331 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3332 | # Don't use installbsd from OSF since it installs stuff as root |
| 3333 | # by default. |
| 3334 | for ac_prog in ginstall scoinst install; do |
| 3335 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3336 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3337 | if test $ac_prog = install && |
| 3338 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3339 | # AIX install. It has an incompatible calling convention. |
| 3340 | : |
| 3341 | elif test $ac_prog = install && |
| 3342 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3343 | # program-specific install script used by HP pwplus--don't use. |
| 3344 | : |
| 3345 | else |
| 3346 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3347 | break 3 |
| 3348 | fi |
| 3349 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3350 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3351 | done |
| 3352 | ;; |
| 3353 | esac |
| 3354 | done |
| 3355 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3356 | |
| 3357 | fi |
| 3358 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3359 | INSTALL=$ac_cv_path_install |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3360 | else |
| 3361 | # As a last resort, use the slow shell script. We don't cache a |
| 3362 | # path for INSTALL within a source directory, because that will |
| 3363 | # break other packages using the cache if that directory is |
| 3364 | # removed, or if the path is relative. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3365 | INSTALL=$ac_install_sh |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3366 | fi |
| 3367 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3368 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 3369 | echo "${ECHO_T}$INSTALL" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3370 | |
| 3371 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3372 | # It thinks the first close brace ends the variable substitution. |
| 3373 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3374 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3375 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3376 | |
| 3377 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3378 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3379 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3380 | # Not every filesystem supports hard links |
| 3381 | |
| 3382 | if test -z "$LN" ; then |
| 3383 | case $ac_sys_system in |
| 3384 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3385 | CYGWIN*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3386 | *) LN=ln;; |
| 3387 | esac |
| 3388 | fi |
| 3389 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3390 | # Check for --with-pydebug |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3391 | echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 3392 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6 |
| 3393 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3394 | # Check whether --with-pydebug or --without-pydebug was given. |
| 3395 | if test "${with_pydebug+set}" = set; then |
| 3396 | withval="$with_pydebug" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3397 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3398 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3399 | then |
| 3400 | |
| 3401 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3402 | #define Py_DEBUG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3403 | _ACEOF |
| 3404 | |
| 3405 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3406 | echo "${ECHO_T}yes" >&6; |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 3407 | Py_DEBUG='true' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3408 | else echo "$as_me:$LINENO: result: no" >&5 |
| 3409 | echo "${ECHO_T}no" >&6; Py_DEBUG='false' |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3410 | fi |
| 3411 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3412 | echo "$as_me:$LINENO: result: no" >&5 |
| 3413 | echo "${ECHO_T}no" >&6 |
| 3414 | fi; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3415 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3416 | # Optimizer/debugger flags |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3417 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3418 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3419 | then |
Guido van Rossum | edca74a | 1997-07-18 23:29:40 +0000 | [diff] [blame] | 3420 | case $GCC in |
| 3421 | yes) |
| 3422 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3423 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3424 | if test "$Py_DEBUG" = 'true' ; then |
| 3425 | # Optimization messes up debuggers, so turn it off for |
| 3426 | # debug builds. |
| 3427 | OPT="-g -Wall -Wstrict-prototypes" |
| 3428 | else |
| 3429 | OPT="-g -O3 -Wall -Wstrict-prototypes" |
| 3430 | fi;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3431 | *) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3432 | OPT="-O3 -Wall -Wstrict-prototypes";; |
| 3433 | esac |
| 3434 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3435 | *) |
| 3436 | case $ac_sys_system in |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 3437 | OpenUNIX*|UnixWare*) |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3438 | OPT="-O -K pentium,host,inline,loop_unroll,alloca ";; |
| 3439 | *) |
| 3440 | OPT="-O";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3441 | esac |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3442 | esac |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3443 | case $ac_sys_system in |
| 3444 | Darwin*) |
Jack Jansen | 524a098 | 2002-03-12 15:25:52 +0000 | [diff] [blame] | 3445 | OPT="$OPT -Wno-long-double -no-cpp-precomp";; |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3446 | esac |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3447 | fi |
| 3448 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 3449 | if test "$Py_DEBUG" = 'true'; then |
| 3450 | : |
| 3451 | else |
| 3452 | OPT="-DNDEBUG $OPT" |
| 3453 | fi |
| 3454 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3455 | # The current (beta) Monterey compiler dies with optimizations |
| 3456 | case $ac_sys_system in |
| 3457 | Monterey*) OPT="";; |
| 3458 | esac |
| 3459 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3460 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3461 | then |
| 3462 | OPT="$OPT $ac_arch_flags" |
| 3463 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3464 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3465 | echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 3466 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6 |
| 3467 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 3468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3469 | else |
| 3470 | ac_save_cc="$CC" |
| 3471 | CC="$CC -OPT:Olimit=0" |
| 3472 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3473 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3474 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3475 | cat >conftest.$ac_ext <<_ACEOF |
| 3476 | #line $LINENO "configure" |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3477 | #include "confdefs.h" |
| 3478 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3479 | _ACEOF |
| 3480 | rm -f conftest$ac_exeext |
| 3481 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3482 | (eval $ac_link) 2>&5 |
| 3483 | ac_status=$? |
| 3484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3485 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3487 | (eval $ac_try) 2>&5 |
| 3488 | ac_status=$? |
| 3489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3490 | (exit $ac_status); }; }; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3491 | ac_cv_opt_olimit_ok=yes |
| 3492 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3493 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3494 | echo "$as_me: failed program was:" >&5 |
| 3495 | cat conftest.$ac_ext >&5 |
| 3496 | ( exit $ac_status ) |
| 3497 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3498 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3499 | 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] | 3500 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3501 | CC="$ac_save_cc" |
| 3502 | fi |
| 3503 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3504 | echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 3505 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 3506 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3507 | case $ac_sys_system in |
| 3508 | Darwin*) OPT="$OPT" ;; |
| 3509 | *) OPT="$OPT -OPT:Olimit=0";; |
| 3510 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3511 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3512 | echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 3513 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6 |
| 3514 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 3515 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3516 | else |
| 3517 | ac_save_cc="$CC" |
| 3518 | CC="$CC -Olimit 1500" |
| 3519 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3520 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3521 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3522 | cat >conftest.$ac_ext <<_ACEOF |
| 3523 | #line $LINENO "configure" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3524 | #include "confdefs.h" |
| 3525 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3526 | _ACEOF |
| 3527 | rm -f conftest$ac_exeext |
| 3528 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3529 | (eval $ac_link) 2>&5 |
| 3530 | ac_status=$? |
| 3531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3532 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3534 | (eval $ac_try) 2>&5 |
| 3535 | ac_status=$? |
| 3536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3537 | (exit $ac_status); }; }; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3538 | ac_cv_olimit_ok=yes |
| 3539 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3540 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3541 | echo "$as_me: failed program was:" >&5 |
| 3542 | cat conftest.$ac_ext >&5 |
| 3543 | ( exit $ac_status ) |
| 3544 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 3545 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3546 | 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] | 3547 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3548 | CC="$ac_save_cc" |
| 3549 | fi |
| 3550 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3551 | echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 3552 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3553 | if test $ac_cv_olimit_ok = yes; then |
| 3554 | OPT="$OPT -Olimit 1500" |
| 3555 | fi |
| 3556 | fi |
| 3557 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3558 | # On some compilers, pthreads are available without further options |
| 3559 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 3560 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 3561 | # So we have to see first whether pthreads are available without |
| 3562 | # options before we can check whether -Kpthread improves anything. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3563 | echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 3564 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6 |
| 3565 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 3566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3567 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3568 | if test "$cross_compiling" = yes; then |
| 3569 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3570 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3571 | cat >conftest.$ac_ext <<_ACEOF |
| 3572 | #line $LINENO "configure" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3573 | #include "confdefs.h" |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3574 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3575 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3576 | |
| 3577 | void* routine(void* p){return NULL;} |
| 3578 | |
| 3579 | int main(){ |
| 3580 | pthread_t p; |
| 3581 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3582 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3583 | (void)pthread_detach(p); |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3584 | return 0; |
| 3585 | } |
| 3586 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3587 | _ACEOF |
| 3588 | rm -f conftest$ac_exeext |
| 3589 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3590 | (eval $ac_link) 2>&5 |
| 3591 | ac_status=$? |
| 3592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3593 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3595 | (eval $ac_try) 2>&5 |
| 3596 | ac_status=$? |
| 3597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3598 | (exit $ac_status); }; }; then |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3599 | ac_cv_pthread_is_default=yes |
| 3600 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3601 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3602 | echo "$as_me: failed program was:" >&5 |
| 3603 | cat conftest.$ac_ext >&5 |
| 3604 | ( exit $ac_status ) |
| 3605 | ac_cv_pthread_is_default=no |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3606 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3607 | 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] | 3608 | fi |
| 3609 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3610 | fi |
| 3611 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3612 | echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 3613 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3614 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3615 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3616 | if test $ac_cv_pthread_is_default = yes |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3617 | then |
| 3618 | ac_cv_kpthread=no |
| 3619 | else |
| 3620 | # -Kpthread, if available, provides the right #defines |
| 3621 | # and linker options to make pthread_create available |
| 3622 | # Some compilers won't report that they do not support -Kpthread, |
| 3623 | # so we need to run a program to see whether it really made the |
| 3624 | # function available. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3625 | echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 3626 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6 |
| 3627 | if test "${ac_cv_kpthread+set}" = set; then |
| 3628 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3629 | else |
| 3630 | ac_save_cc="$CC" |
| 3631 | CC="$CC -Kpthread" |
| 3632 | if test "$cross_compiling" = yes; then |
| 3633 | ac_cv_kpthread=no |
| 3634 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3635 | cat >conftest.$ac_ext <<_ACEOF |
| 3636 | #line $LINENO "configure" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3637 | #include "confdefs.h" |
| 3638 | |
| 3639 | #include <pthread.h> |
| 3640 | |
| 3641 | void* routine(void* p){return NULL;} |
| 3642 | |
| 3643 | int main(){ |
| 3644 | pthread_t p; |
| 3645 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3646 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3647 | (void)pthread_detach(p); |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3648 | return 0; |
| 3649 | } |
| 3650 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3651 | _ACEOF |
| 3652 | rm -f conftest$ac_exeext |
| 3653 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3654 | (eval $ac_link) 2>&5 |
| 3655 | ac_status=$? |
| 3656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3657 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3659 | (eval $ac_try) 2>&5 |
| 3660 | ac_status=$? |
| 3661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3662 | (exit $ac_status); }; }; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3663 | ac_cv_kpthread=yes |
| 3664 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3665 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3666 | echo "$as_me: failed program was:" >&5 |
| 3667 | cat conftest.$ac_ext >&5 |
| 3668 | ( exit $ac_status ) |
| 3669 | ac_cv_kpthread=no |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3670 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3671 | 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] | 3672 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3673 | CC="$ac_save_cc" |
| 3674 | fi |
| 3675 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3676 | echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 3677 | echo "${ECHO_T}$ac_cv_kpthread" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3678 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3679 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3680 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3681 | # checks for header files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3682 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3683 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3684 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3686 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3687 | cat >conftest.$ac_ext <<_ACEOF |
| 3688 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3689 | #include "confdefs.h" |
| 3690 | #include <stdlib.h> |
| 3691 | #include <stdarg.h> |
| 3692 | #include <string.h> |
| 3693 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3694 | |
| 3695 | _ACEOF |
| 3696 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3697 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3698 | ac_status=$? |
| 3699 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 3700 | rm -f conftest.er1 |
| 3701 | cat conftest.err >&5 |
| 3702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3703 | (exit $ac_status); } >/dev/null; then |
| 3704 | if test -s conftest.err; then |
| 3705 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3706 | else |
| 3707 | ac_cpp_err= |
| 3708 | fi |
| 3709 | else |
| 3710 | ac_cpp_err=yes |
| 3711 | fi |
| 3712 | if test -z "$ac_cpp_err"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3713 | ac_cv_header_stdc=yes |
| 3714 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3715 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3716 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3717 | ac_cv_header_stdc=no |
| 3718 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3719 | rm -f conftest.err conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3720 | |
| 3721 | if test $ac_cv_header_stdc = yes; then |
| 3722 | # 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] | 3723 | cat >conftest.$ac_ext <<_ACEOF |
| 3724 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3725 | #include "confdefs.h" |
| 3726 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3727 | |
| 3728 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3729 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3730 | egrep "memchr" >/dev/null 2>&1; then |
| 3731 | : |
| 3732 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3733 | ac_cv_header_stdc=no |
| 3734 | fi |
| 3735 | rm -f conftest* |
| 3736 | |
| 3737 | fi |
| 3738 | |
| 3739 | if test $ac_cv_header_stdc = yes; then |
| 3740 | # 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] | 3741 | cat >conftest.$ac_ext <<_ACEOF |
| 3742 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3743 | #include "confdefs.h" |
| 3744 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3745 | |
| 3746 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3747 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3748 | egrep "free" >/dev/null 2>&1; then |
| 3749 | : |
| 3750 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3751 | ac_cv_header_stdc=no |
| 3752 | fi |
| 3753 | rm -f conftest* |
| 3754 | |
| 3755 | fi |
| 3756 | |
| 3757 | if test $ac_cv_header_stdc = yes; then |
| 3758 | # /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] | 3759 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3760 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3761 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3762 | cat >conftest.$ac_ext <<_ACEOF |
| 3763 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3764 | #include "confdefs.h" |
| 3765 | #include <ctype.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3766 | #if ((' ' & 0x0FF) == 0x020) |
| 3767 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3768 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3769 | #else |
| 3770 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 3771 | || ('j' <= (c) && (c) <= 'r') \ |
| 3772 | || ('s' <= (c) && (c) <= 'z')) |
| 3773 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3774 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3775 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3776 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3777 | int |
| 3778 | main () |
| 3779 | { |
| 3780 | int i; |
| 3781 | for (i = 0; i < 256; i++) |
| 3782 | if (XOR (islower (i), ISLOWER (i)) |
| 3783 | || toupper (i) != TOUPPER (i)) |
| 3784 | exit(2); |
| 3785 | exit (0); |
| 3786 | } |
| 3787 | _ACEOF |
| 3788 | rm -f conftest$ac_exeext |
| 3789 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3790 | (eval $ac_link) 2>&5 |
| 3791 | ac_status=$? |
| 3792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3793 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3795 | (eval $ac_try) 2>&5 |
| 3796 | ac_status=$? |
| 3797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3798 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3799 | : |
| 3800 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3801 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3802 | echo "$as_me: failed program was:" >&5 |
| 3803 | cat conftest.$ac_ext >&5 |
| 3804 | ( exit $ac_status ) |
| 3805 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3806 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3807 | 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] | 3808 | fi |
| 3809 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3810 | fi |
| 3811 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3812 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3813 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3814 | |
| 3815 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3816 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3817 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3818 | |
| 3819 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3820 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3821 | |
| 3822 | |
| 3823 | |
| 3824 | |
| 3825 | |
| 3826 | |
| 3827 | |
| 3828 | |
| 3829 | |
| 3830 | |
| 3831 | |
| 3832 | |
| 3833 | |
| 3834 | |
| 3835 | |
| 3836 | |
| 3837 | |
| 3838 | |
| 3839 | |
| 3840 | |
| 3841 | |
| 3842 | |
| 3843 | |
| 3844 | |
| 3845 | |
| 3846 | |
| 3847 | |
| 3848 | |
| 3849 | |
| 3850 | |
| 3851 | |
| 3852 | |
| 3853 | |
| 3854 | |
| 3855 | |
| 3856 | |
| 3857 | |
| 3858 | |
| 3859 | |
| 3860 | |
| 3861 | |
Neal Norwitz | 3d94942 | 2002-04-20 13:46:43 +0000 | [diff] [blame] | 3862 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3863 | 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] | 3864 | libintl.h locale.h ncurses.h poll.h pthread.h \ |
Eric S. Raymond | d2d75d3 | 2001-01-16 15:26:34 +0000 | [diff] [blame] | 3865 | 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] | 3866 | 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] | 3867 | 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] | 3868 | 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] | 3869 | 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] | 3870 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3871 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3872 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3873 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3874 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3875 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3877 | fi |
| 3878 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3879 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3880 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3881 | # Is the header compilable? |
| 3882 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 3883 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 3884 | cat >conftest.$ac_ext <<_ACEOF |
| 3885 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3886 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3887 | $ac_includes_default |
| 3888 | #include <$ac_header> |
| 3889 | _ACEOF |
| 3890 | rm -f conftest.$ac_objext |
| 3891 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3892 | (eval $ac_compile) 2>&5 |
| 3893 | ac_status=$? |
| 3894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3895 | (exit $ac_status); } && |
| 3896 | { ac_try='test -s conftest.$ac_objext' |
| 3897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3898 | (eval $ac_try) 2>&5 |
| 3899 | ac_status=$? |
| 3900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3901 | (exit $ac_status); }; }; then |
| 3902 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3903 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3904 | echo "$as_me: failed program was:" >&5 |
| 3905 | cat conftest.$ac_ext >&5 |
| 3906 | ac_header_compiler=no |
| 3907 | fi |
| 3908 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3909 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3910 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3911 | |
| 3912 | # Is the header present? |
| 3913 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 3914 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 3915 | cat >conftest.$ac_ext <<_ACEOF |
| 3916 | #line $LINENO "configure" |
| 3917 | #include "confdefs.h" |
| 3918 | #include <$ac_header> |
| 3919 | _ACEOF |
| 3920 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3921 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3922 | ac_status=$? |
| 3923 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 3924 | rm -f conftest.er1 |
| 3925 | cat conftest.err >&5 |
| 3926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3927 | (exit $ac_status); } >/dev/null; then |
| 3928 | if test -s conftest.err; then |
| 3929 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3930 | else |
| 3931 | ac_cpp_err= |
| 3932 | fi |
| 3933 | else |
| 3934 | ac_cpp_err=yes |
| 3935 | fi |
| 3936 | if test -z "$ac_cpp_err"; then |
| 3937 | ac_header_preproc=yes |
| 3938 | else |
| 3939 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3940 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3941 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3942 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3943 | rm -f conftest.err conftest.$ac_ext |
| 3944 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3945 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3946 | |
| 3947 | # So? What about this header? |
| 3948 | case $ac_header_compiler:$ac_header_preproc in |
| 3949 | yes:no ) |
| 3950 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3951 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3952 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3953 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 3954 | no:yes ) |
| 3955 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 3956 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 3957 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 3958 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 3959 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3960 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 3961 | esac |
| 3962 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3963 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3964 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3966 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3967 | eval "$as_ac_Header=$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3968 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3969 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3970 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3971 | |
| 3972 | fi |
| 3973 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3974 | cat >>confdefs.h <<_ACEOF |
| 3975 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3976 | _ACEOF |
| 3977 | |
| 3978 | fi |
| 3979 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3980 | done |
| 3981 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3982 | |
| 3983 | |
| 3984 | |
| 3985 | |
| 3986 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3987 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3988 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 3989 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 3990 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 3991 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 3992 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3994 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3995 | cat >conftest.$ac_ext <<_ACEOF |
| 3996 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3997 | #include "confdefs.h" |
| 3998 | #include <sys/types.h> |
| 3999 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4000 | |
| 4001 | #ifdef F77_DUMMY_MAIN |
| 4002 | # ifdef __cplusplus |
| 4003 | extern "C" |
| 4004 | # endif |
| 4005 | int F77_DUMMY_MAIN() { return 1; } |
| 4006 | #endif |
| 4007 | int |
| 4008 | main () |
| 4009 | { |
| 4010 | if ((DIR *) 0) |
| 4011 | return 0; |
| 4012 | ; |
| 4013 | return 0; |
| 4014 | } |
| 4015 | _ACEOF |
| 4016 | rm -f conftest.$ac_objext |
| 4017 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4018 | (eval $ac_compile) 2>&5 |
| 4019 | ac_status=$? |
| 4020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4021 | (exit $ac_status); } && |
| 4022 | { ac_try='test -s conftest.$ac_objext' |
| 4023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4024 | (eval $ac_try) 2>&5 |
| 4025 | ac_status=$? |
| 4026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4027 | (exit $ac_status); }; }; then |
| 4028 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4029 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4030 | echo "$as_me: failed program was:" >&5 |
| 4031 | cat conftest.$ac_ext >&5 |
| 4032 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4033 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4034 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4035 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4036 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4037 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4038 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4039 | cat >>confdefs.h <<_ACEOF |
| 4040 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 4041 | _ACEOF |
| 4042 | |
| 4043 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4044 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4045 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4046 | done |
| 4047 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 4048 | if test $ac_header_dirent = dirent.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4049 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4050 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4051 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4053 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4054 | ac_func_search_save_LIBS=$LIBS |
| 4055 | ac_cv_search_opendir=no |
| 4056 | cat >conftest.$ac_ext <<_ACEOF |
| 4057 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4058 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4059 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4060 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4061 | #ifdef __cplusplus |
| 4062 | extern "C" |
| 4063 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4064 | /* 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] | 4065 | builtin and then its argument prototype would still apply. */ |
| 4066 | char opendir (); |
| 4067 | #ifdef F77_DUMMY_MAIN |
| 4068 | # ifdef __cplusplus |
| 4069 | extern "C" |
| 4070 | # endif |
| 4071 | int F77_DUMMY_MAIN() { return 1; } |
| 4072 | #endif |
| 4073 | int |
| 4074 | main () |
| 4075 | { |
| 4076 | opendir (); |
| 4077 | ; |
| 4078 | return 0; |
| 4079 | } |
| 4080 | _ACEOF |
| 4081 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4082 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4083 | (eval $ac_link) 2>&5 |
| 4084 | ac_status=$? |
| 4085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4086 | (exit $ac_status); } && |
| 4087 | { ac_try='test -s conftest$ac_exeext' |
| 4088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4089 | (eval $ac_try) 2>&5 |
| 4090 | ac_status=$? |
| 4091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4092 | (exit $ac_status); }; }; then |
| 4093 | ac_cv_search_opendir="none required" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4094 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4095 | echo "$as_me: failed program was:" >&5 |
| 4096 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4097 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4098 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4099 | if test "$ac_cv_search_opendir" = no; then |
| 4100 | for ac_lib in dir; do |
| 4101 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4102 | cat >conftest.$ac_ext <<_ACEOF |
| 4103 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4104 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4105 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4106 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4107 | #ifdef __cplusplus |
| 4108 | extern "C" |
| 4109 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4110 | /* 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] | 4111 | builtin and then its argument prototype would still apply. */ |
| 4112 | char opendir (); |
| 4113 | #ifdef F77_DUMMY_MAIN |
| 4114 | # ifdef __cplusplus |
| 4115 | extern "C" |
| 4116 | # endif |
| 4117 | int F77_DUMMY_MAIN() { return 1; } |
| 4118 | #endif |
| 4119 | int |
| 4120 | main () |
| 4121 | { |
| 4122 | opendir (); |
| 4123 | ; |
| 4124 | return 0; |
| 4125 | } |
| 4126 | _ACEOF |
| 4127 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4128 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4129 | (eval $ac_link) 2>&5 |
| 4130 | ac_status=$? |
| 4131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4132 | (exit $ac_status); } && |
| 4133 | { ac_try='test -s conftest$ac_exeext' |
| 4134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4135 | (eval $ac_try) 2>&5 |
| 4136 | ac_status=$? |
| 4137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4138 | (exit $ac_status); }; }; then |
| 4139 | ac_cv_search_opendir="-l$ac_lib" |
| 4140 | break |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4141 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4142 | echo "$as_me: failed program was:" >&5 |
| 4143 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4144 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4145 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4146 | done |
| 4147 | fi |
| 4148 | LIBS=$ac_func_search_save_LIBS |
| 4149 | fi |
| 4150 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4151 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4152 | if test "$ac_cv_search_opendir" != no; then |
| 4153 | 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] | 4154 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4155 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4156 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4157 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4158 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4159 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4160 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4162 | else |
| 4163 | ac_func_search_save_LIBS=$LIBS |
| 4164 | ac_cv_search_opendir=no |
| 4165 | cat >conftest.$ac_ext <<_ACEOF |
| 4166 | #line $LINENO "configure" |
| 4167 | #include "confdefs.h" |
| 4168 | |
| 4169 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4170 | #ifdef __cplusplus |
| 4171 | extern "C" |
| 4172 | #endif |
| 4173 | /* We use char because int might match the return type of a gcc2 |
| 4174 | builtin and then its argument prototype would still apply. */ |
| 4175 | char opendir (); |
| 4176 | #ifdef F77_DUMMY_MAIN |
| 4177 | # ifdef __cplusplus |
| 4178 | extern "C" |
| 4179 | # endif |
| 4180 | int F77_DUMMY_MAIN() { return 1; } |
| 4181 | #endif |
| 4182 | int |
| 4183 | main () |
| 4184 | { |
| 4185 | opendir (); |
| 4186 | ; |
| 4187 | return 0; |
| 4188 | } |
| 4189 | _ACEOF |
| 4190 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4191 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4192 | (eval $ac_link) 2>&5 |
| 4193 | ac_status=$? |
| 4194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4195 | (exit $ac_status); } && |
| 4196 | { ac_try='test -s conftest$ac_exeext' |
| 4197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4198 | (eval $ac_try) 2>&5 |
| 4199 | ac_status=$? |
| 4200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4201 | (exit $ac_status); }; }; then |
| 4202 | ac_cv_search_opendir="none required" |
| 4203 | else |
| 4204 | echo "$as_me: failed program was:" >&5 |
| 4205 | cat conftest.$ac_ext >&5 |
| 4206 | fi |
| 4207 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4208 | if test "$ac_cv_search_opendir" = no; then |
| 4209 | for ac_lib in x; do |
| 4210 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4211 | cat >conftest.$ac_ext <<_ACEOF |
| 4212 | #line $LINENO "configure" |
| 4213 | #include "confdefs.h" |
| 4214 | |
| 4215 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4216 | #ifdef __cplusplus |
| 4217 | extern "C" |
| 4218 | #endif |
| 4219 | /* We use char because int might match the return type of a gcc2 |
| 4220 | builtin and then its argument prototype would still apply. */ |
| 4221 | char opendir (); |
| 4222 | #ifdef F77_DUMMY_MAIN |
| 4223 | # ifdef __cplusplus |
| 4224 | extern "C" |
| 4225 | # endif |
| 4226 | int F77_DUMMY_MAIN() { return 1; } |
| 4227 | #endif |
| 4228 | int |
| 4229 | main () |
| 4230 | { |
| 4231 | opendir (); |
| 4232 | ; |
| 4233 | return 0; |
| 4234 | } |
| 4235 | _ACEOF |
| 4236 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4237 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4238 | (eval $ac_link) 2>&5 |
| 4239 | ac_status=$? |
| 4240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4241 | (exit $ac_status); } && |
| 4242 | { ac_try='test -s conftest$ac_exeext' |
| 4243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4244 | (eval $ac_try) 2>&5 |
| 4245 | ac_status=$? |
| 4246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4247 | (exit $ac_status); }; }; then |
| 4248 | ac_cv_search_opendir="-l$ac_lib" |
| 4249 | break |
| 4250 | else |
| 4251 | echo "$as_me: failed program was:" >&5 |
| 4252 | cat conftest.$ac_ext >&5 |
| 4253 | fi |
| 4254 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4255 | done |
| 4256 | fi |
| 4257 | LIBS=$ac_func_search_save_LIBS |
| 4258 | fi |
| 4259 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4260 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4261 | if test "$ac_cv_search_opendir" != no; then |
| 4262 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 4263 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4264 | fi |
| 4265 | |
| 4266 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4267 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4268 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4269 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4270 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4271 | echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 4272 | echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6 |
| 4273 | cat >conftest.$ac_ext <<_ACEOF |
| 4274 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4275 | #include "confdefs.h" |
| 4276 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4277 | |
| 4278 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4279 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4280 | egrep "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4281 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4282 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4283 | |
| 4284 | |
| 4285 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4286 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4287 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4288 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 4289 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4290 | fi |
| 4291 | rm -f conftest* |
| 4292 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4293 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 4294 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4295 | |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4296 | # Two defines needed to enable largefile support on various platforms |
| 4297 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4298 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4299 | cat >>confdefs.h <<\_ACEOF |
| 4300 | #define _LARGEFILE_SOURCE 1 |
| 4301 | _ACEOF |
| 4302 | |
| 4303 | |
| 4304 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4305 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4306 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4307 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4308 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 4309 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 4310 | cat >> confdefs.h <<\EOF |
| 4311 | #if defined(SCO_DS) |
| 4312 | #undef _OFF_T |
| 4313 | #endif |
| 4314 | EOF |
| 4315 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4316 | # Type availability checks |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4317 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 4318 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 4319 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 4320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4321 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4322 | cat >conftest.$ac_ext <<_ACEOF |
| 4323 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4324 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4325 | $ac_includes_default |
| 4326 | #ifdef F77_DUMMY_MAIN |
| 4327 | # ifdef __cplusplus |
| 4328 | extern "C" |
| 4329 | # endif |
| 4330 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4331 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4332 | int |
| 4333 | main () |
| 4334 | { |
| 4335 | if ((mode_t *) 0) |
| 4336 | return 0; |
| 4337 | if (sizeof (mode_t)) |
| 4338 | return 0; |
| 4339 | ; |
| 4340 | return 0; |
| 4341 | } |
| 4342 | _ACEOF |
| 4343 | rm -f conftest.$ac_objext |
| 4344 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4345 | (eval $ac_compile) 2>&5 |
| 4346 | ac_status=$? |
| 4347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4348 | (exit $ac_status); } && |
| 4349 | { ac_try='test -s conftest.$ac_objext' |
| 4350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4351 | (eval $ac_try) 2>&5 |
| 4352 | ac_status=$? |
| 4353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4354 | (exit $ac_status); }; }; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4355 | ac_cv_type_mode_t=yes |
| 4356 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4357 | echo "$as_me: failed program was:" >&5 |
| 4358 | cat conftest.$ac_ext >&5 |
| 4359 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4360 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4361 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4362 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4363 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 4364 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 4365 | if test $ac_cv_type_mode_t = yes; then |
| 4366 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4367 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4368 | |
| 4369 | cat >>confdefs.h <<_ACEOF |
| 4370 | #define mode_t int |
| 4371 | _ACEOF |
| 4372 | |
| 4373 | fi |
| 4374 | |
| 4375 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 4376 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 4377 | if test "${ac_cv_type_off_t+set}" = set; then |
| 4378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4379 | else |
| 4380 | cat >conftest.$ac_ext <<_ACEOF |
| 4381 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4382 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4383 | $ac_includes_default |
| 4384 | #ifdef F77_DUMMY_MAIN |
| 4385 | # ifdef __cplusplus |
| 4386 | extern "C" |
| 4387 | # endif |
| 4388 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4389 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4390 | int |
| 4391 | main () |
| 4392 | { |
| 4393 | if ((off_t *) 0) |
| 4394 | return 0; |
| 4395 | if (sizeof (off_t)) |
| 4396 | return 0; |
| 4397 | ; |
| 4398 | return 0; |
| 4399 | } |
| 4400 | _ACEOF |
| 4401 | rm -f conftest.$ac_objext |
| 4402 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4403 | (eval $ac_compile) 2>&5 |
| 4404 | ac_status=$? |
| 4405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4406 | (exit $ac_status); } && |
| 4407 | { ac_try='test -s conftest.$ac_objext' |
| 4408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4409 | (eval $ac_try) 2>&5 |
| 4410 | ac_status=$? |
| 4411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4412 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4413 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4414 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4415 | echo "$as_me: failed program was:" >&5 |
| 4416 | cat conftest.$ac_ext >&5 |
| 4417 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4418 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4419 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4420 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4421 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 4422 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 4423 | if test $ac_cv_type_off_t = yes; then |
| 4424 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4425 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4426 | |
| 4427 | cat >>confdefs.h <<_ACEOF |
| 4428 | #define off_t long |
| 4429 | _ACEOF |
| 4430 | |
| 4431 | fi |
| 4432 | |
| 4433 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 4434 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 4435 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 4436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4437 | else |
| 4438 | cat >conftest.$ac_ext <<_ACEOF |
| 4439 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4440 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4441 | $ac_includes_default |
| 4442 | #ifdef F77_DUMMY_MAIN |
| 4443 | # ifdef __cplusplus |
| 4444 | extern "C" |
| 4445 | # endif |
| 4446 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4447 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4448 | int |
| 4449 | main () |
| 4450 | { |
| 4451 | if ((pid_t *) 0) |
| 4452 | return 0; |
| 4453 | if (sizeof (pid_t)) |
| 4454 | return 0; |
| 4455 | ; |
| 4456 | return 0; |
| 4457 | } |
| 4458 | _ACEOF |
| 4459 | rm -f conftest.$ac_objext |
| 4460 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4461 | (eval $ac_compile) 2>&5 |
| 4462 | ac_status=$? |
| 4463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4464 | (exit $ac_status); } && |
| 4465 | { ac_try='test -s conftest.$ac_objext' |
| 4466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4467 | (eval $ac_try) 2>&5 |
| 4468 | ac_status=$? |
| 4469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4470 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4471 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4472 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4473 | echo "$as_me: failed program was:" >&5 |
| 4474 | cat conftest.$ac_ext >&5 |
| 4475 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4476 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4477 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4478 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4479 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 4480 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 4481 | if test $ac_cv_type_pid_t = yes; then |
| 4482 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4483 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4484 | |
| 4485 | cat >>confdefs.h <<_ACEOF |
| 4486 | #define pid_t int |
| 4487 | _ACEOF |
| 4488 | |
| 4489 | fi |
| 4490 | |
| 4491 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 4492 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 4493 | if test "${ac_cv_type_signal+set}" = set; then |
| 4494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4495 | else |
| 4496 | cat >conftest.$ac_ext <<_ACEOF |
| 4497 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4498 | #include "confdefs.h" |
| 4499 | #include <sys/types.h> |
| 4500 | #include <signal.h> |
| 4501 | #ifdef signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4502 | # undef signal |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4503 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4504 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4505 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 4506 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4507 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4508 | #endif |
| 4509 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4510 | #ifdef F77_DUMMY_MAIN |
| 4511 | # ifdef __cplusplus |
| 4512 | extern "C" |
| 4513 | # endif |
| 4514 | int F77_DUMMY_MAIN() { return 1; } |
| 4515 | #endif |
| 4516 | int |
| 4517 | main () |
| 4518 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4519 | int i; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4520 | ; |
| 4521 | return 0; |
| 4522 | } |
| 4523 | _ACEOF |
| 4524 | rm -f conftest.$ac_objext |
| 4525 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4526 | (eval $ac_compile) 2>&5 |
| 4527 | ac_status=$? |
| 4528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4529 | (exit $ac_status); } && |
| 4530 | { ac_try='test -s conftest.$ac_objext' |
| 4531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4532 | (eval $ac_try) 2>&5 |
| 4533 | ac_status=$? |
| 4534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4535 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4536 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4537 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4538 | echo "$as_me: failed program was:" >&5 |
| 4539 | cat conftest.$ac_ext >&5 |
| 4540 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4541 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4542 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4543 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4544 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 4545 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4546 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4547 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4548 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4549 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4550 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4551 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4552 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 4553 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 4554 | if test "${ac_cv_type_size_t+set}" = set; then |
| 4555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4556 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4557 | cat >conftest.$ac_ext <<_ACEOF |
| 4558 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4559 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4560 | $ac_includes_default |
| 4561 | #ifdef F77_DUMMY_MAIN |
| 4562 | # ifdef __cplusplus |
| 4563 | extern "C" |
| 4564 | # endif |
| 4565 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4566 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4567 | int |
| 4568 | main () |
| 4569 | { |
| 4570 | if ((size_t *) 0) |
| 4571 | return 0; |
| 4572 | if (sizeof (size_t)) |
| 4573 | return 0; |
| 4574 | ; |
| 4575 | return 0; |
| 4576 | } |
| 4577 | _ACEOF |
| 4578 | rm -f conftest.$ac_objext |
| 4579 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4580 | (eval $ac_compile) 2>&5 |
| 4581 | ac_status=$? |
| 4582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4583 | (exit $ac_status); } && |
| 4584 | { ac_try='test -s conftest.$ac_objext' |
| 4585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4586 | (eval $ac_try) 2>&5 |
| 4587 | ac_status=$? |
| 4588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4589 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4590 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4591 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4592 | echo "$as_me: failed program was:" >&5 |
| 4593 | cat conftest.$ac_ext >&5 |
| 4594 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4595 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4596 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4597 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4598 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 4599 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 4600 | if test $ac_cv_type_size_t = yes; then |
| 4601 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4602 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4603 | |
| 4604 | cat >>confdefs.h <<_ACEOF |
| 4605 | #define size_t unsigned |
| 4606 | _ACEOF |
| 4607 | |
| 4608 | fi |
| 4609 | |
| 4610 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 4611 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 4612 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 4613 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4614 | else |
| 4615 | cat >conftest.$ac_ext <<_ACEOF |
| 4616 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4617 | #include "confdefs.h" |
| 4618 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4619 | |
| 4620 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4621 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4622 | egrep "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4623 | ac_cv_type_uid_t=yes |
| 4624 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4625 | ac_cv_type_uid_t=no |
| 4626 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4627 | rm -f conftest* |
| 4628 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4629 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4630 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 4631 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4632 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4633 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4634 | cat >>confdefs.h <<\_ACEOF |
| 4635 | #define uid_t int |
| 4636 | _ACEOF |
| 4637 | |
| 4638 | |
| 4639 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4640 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4641 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4642 | |
| 4643 | fi |
| 4644 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4645 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4646 | # Sizes of various common basic types |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4647 | echo "$as_me:$LINENO: checking for int" >&5 |
| 4648 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
| 4649 | if test "${ac_cv_type_int+set}" = set; then |
| 4650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4651 | else |
| 4652 | cat >conftest.$ac_ext <<_ACEOF |
| 4653 | #line $LINENO "configure" |
| 4654 | #include "confdefs.h" |
| 4655 | $ac_includes_default |
| 4656 | #ifdef F77_DUMMY_MAIN |
| 4657 | # ifdef __cplusplus |
| 4658 | extern "C" |
| 4659 | # endif |
| 4660 | int F77_DUMMY_MAIN() { return 1; } |
| 4661 | #endif |
| 4662 | int |
| 4663 | main () |
| 4664 | { |
| 4665 | if ((int *) 0) |
| 4666 | return 0; |
| 4667 | if (sizeof (int)) |
| 4668 | return 0; |
| 4669 | ; |
| 4670 | return 0; |
| 4671 | } |
| 4672 | _ACEOF |
| 4673 | rm -f conftest.$ac_objext |
| 4674 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4675 | (eval $ac_compile) 2>&5 |
| 4676 | ac_status=$? |
| 4677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4678 | (exit $ac_status); } && |
| 4679 | { ac_try='test -s conftest.$ac_objext' |
| 4680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4681 | (eval $ac_try) 2>&5 |
| 4682 | ac_status=$? |
| 4683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4684 | (exit $ac_status); }; }; then |
| 4685 | ac_cv_type_int=yes |
| 4686 | else |
| 4687 | echo "$as_me: failed program was:" >&5 |
| 4688 | cat conftest.$ac_ext >&5 |
| 4689 | ac_cv_type_int=no |
| 4690 | fi |
| 4691 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4692 | fi |
| 4693 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 4694 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
| 4695 | |
| 4696 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 4697 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 4698 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 4699 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4700 | else |
| 4701 | if test "$ac_cv_type_int" = yes; then |
| 4702 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 4703 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 4704 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 4705 | # This bug is HP SR number 8606223364. |
| 4706 | if test "$cross_compiling" = yes; then |
| 4707 | # Depending upon the size, compute the lo and hi bounds. |
| 4708 | cat >conftest.$ac_ext <<_ACEOF |
| 4709 | #line $LINENO "configure" |
| 4710 | #include "confdefs.h" |
| 4711 | $ac_includes_default |
| 4712 | #ifdef F77_DUMMY_MAIN |
| 4713 | # ifdef __cplusplus |
| 4714 | extern "C" |
| 4715 | # endif |
| 4716 | int F77_DUMMY_MAIN() { return 1; } |
| 4717 | #endif |
| 4718 | int |
| 4719 | main () |
| 4720 | { |
| 4721 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
| 4722 | test_array [0] = 0 |
| 4723 | |
| 4724 | ; |
| 4725 | return 0; |
| 4726 | } |
| 4727 | _ACEOF |
| 4728 | rm -f conftest.$ac_objext |
| 4729 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4730 | (eval $ac_compile) 2>&5 |
| 4731 | ac_status=$? |
| 4732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4733 | (exit $ac_status); } && |
| 4734 | { ac_try='test -s conftest.$ac_objext' |
| 4735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4736 | (eval $ac_try) 2>&5 |
| 4737 | ac_status=$? |
| 4738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4739 | (exit $ac_status); }; }; then |
| 4740 | ac_lo=0 ac_mid=0 |
| 4741 | while :; do |
| 4742 | cat >conftest.$ac_ext <<_ACEOF |
| 4743 | #line $LINENO "configure" |
| 4744 | #include "confdefs.h" |
| 4745 | $ac_includes_default |
| 4746 | #ifdef F77_DUMMY_MAIN |
| 4747 | # ifdef __cplusplus |
| 4748 | extern "C" |
| 4749 | # endif |
| 4750 | int F77_DUMMY_MAIN() { return 1; } |
| 4751 | #endif |
| 4752 | int |
| 4753 | main () |
| 4754 | { |
| 4755 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 4756 | test_array [0] = 0 |
| 4757 | |
| 4758 | ; |
| 4759 | return 0; |
| 4760 | } |
| 4761 | _ACEOF |
| 4762 | rm -f conftest.$ac_objext |
| 4763 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4764 | (eval $ac_compile) 2>&5 |
| 4765 | ac_status=$? |
| 4766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4767 | (exit $ac_status); } && |
| 4768 | { ac_try='test -s conftest.$ac_objext' |
| 4769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4770 | (eval $ac_try) 2>&5 |
| 4771 | ac_status=$? |
| 4772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4773 | (exit $ac_status); }; }; then |
| 4774 | ac_hi=$ac_mid; break |
| 4775 | else |
| 4776 | echo "$as_me: failed program was:" >&5 |
| 4777 | cat conftest.$ac_ext >&5 |
| 4778 | ac_lo=`expr $ac_mid + 1` |
| 4779 | if test $ac_lo -le $ac_mid; then |
| 4780 | ac_lo= ac_hi= |
| 4781 | break |
| 4782 | fi |
| 4783 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 4784 | fi |
| 4785 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4786 | done |
| 4787 | else |
| 4788 | echo "$as_me: failed program was:" >&5 |
| 4789 | cat conftest.$ac_ext >&5 |
| 4790 | cat >conftest.$ac_ext <<_ACEOF |
| 4791 | #line $LINENO "configure" |
| 4792 | #include "confdefs.h" |
| 4793 | $ac_includes_default |
| 4794 | #ifdef F77_DUMMY_MAIN |
| 4795 | # ifdef __cplusplus |
| 4796 | extern "C" |
| 4797 | # endif |
| 4798 | int F77_DUMMY_MAIN() { return 1; } |
| 4799 | #endif |
| 4800 | int |
| 4801 | main () |
| 4802 | { |
| 4803 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
| 4804 | test_array [0] = 0 |
| 4805 | |
| 4806 | ; |
| 4807 | return 0; |
| 4808 | } |
| 4809 | _ACEOF |
| 4810 | rm -f conftest.$ac_objext |
| 4811 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4812 | (eval $ac_compile) 2>&5 |
| 4813 | ac_status=$? |
| 4814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4815 | (exit $ac_status); } && |
| 4816 | { ac_try='test -s conftest.$ac_objext' |
| 4817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4818 | (eval $ac_try) 2>&5 |
| 4819 | ac_status=$? |
| 4820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4821 | (exit $ac_status); }; }; then |
| 4822 | ac_hi=-1 ac_mid=-1 |
| 4823 | while :; do |
| 4824 | cat >conftest.$ac_ext <<_ACEOF |
| 4825 | #line $LINENO "configure" |
| 4826 | #include "confdefs.h" |
| 4827 | $ac_includes_default |
| 4828 | #ifdef F77_DUMMY_MAIN |
| 4829 | # ifdef __cplusplus |
| 4830 | extern "C" |
| 4831 | # endif |
| 4832 | int F77_DUMMY_MAIN() { return 1; } |
| 4833 | #endif |
| 4834 | int |
| 4835 | main () |
| 4836 | { |
| 4837 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
| 4838 | test_array [0] = 0 |
| 4839 | |
| 4840 | ; |
| 4841 | return 0; |
| 4842 | } |
| 4843 | _ACEOF |
| 4844 | rm -f conftest.$ac_objext |
| 4845 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4846 | (eval $ac_compile) 2>&5 |
| 4847 | ac_status=$? |
| 4848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4849 | (exit $ac_status); } && |
| 4850 | { ac_try='test -s conftest.$ac_objext' |
| 4851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4852 | (eval $ac_try) 2>&5 |
| 4853 | ac_status=$? |
| 4854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4855 | (exit $ac_status); }; }; then |
| 4856 | ac_lo=$ac_mid; break |
| 4857 | else |
| 4858 | echo "$as_me: failed program was:" >&5 |
| 4859 | cat conftest.$ac_ext >&5 |
| 4860 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 4861 | if test $ac_mid -le $ac_hi; then |
| 4862 | ac_lo= ac_hi= |
| 4863 | break |
| 4864 | fi |
| 4865 | ac_mid=`expr 2 '*' $ac_mid` |
| 4866 | fi |
| 4867 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4868 | done |
| 4869 | else |
| 4870 | echo "$as_me: failed program was:" >&5 |
| 4871 | cat conftest.$ac_ext >&5 |
| 4872 | ac_lo= ac_hi= |
| 4873 | fi |
| 4874 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4875 | fi |
| 4876 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4877 | # Binary search between lo and hi bounds. |
| 4878 | while test "x$ac_lo" != "x$ac_hi"; do |
| 4879 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 4880 | cat >conftest.$ac_ext <<_ACEOF |
| 4881 | #line $LINENO "configure" |
| 4882 | #include "confdefs.h" |
| 4883 | $ac_includes_default |
| 4884 | #ifdef F77_DUMMY_MAIN |
| 4885 | # ifdef __cplusplus |
| 4886 | extern "C" |
| 4887 | # endif |
| 4888 | int F77_DUMMY_MAIN() { return 1; } |
| 4889 | #endif |
| 4890 | int |
| 4891 | main () |
| 4892 | { |
| 4893 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 4894 | test_array [0] = 0 |
| 4895 | |
| 4896 | ; |
| 4897 | return 0; |
| 4898 | } |
| 4899 | _ACEOF |
| 4900 | rm -f conftest.$ac_objext |
| 4901 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4902 | (eval $ac_compile) 2>&5 |
| 4903 | ac_status=$? |
| 4904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4905 | (exit $ac_status); } && |
| 4906 | { ac_try='test -s conftest.$ac_objext' |
| 4907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4908 | (eval $ac_try) 2>&5 |
| 4909 | ac_status=$? |
| 4910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4911 | (exit $ac_status); }; }; then |
| 4912 | ac_hi=$ac_mid |
| 4913 | else |
| 4914 | echo "$as_me: failed program was:" >&5 |
| 4915 | cat conftest.$ac_ext >&5 |
| 4916 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 4917 | fi |
| 4918 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4919 | done |
| 4920 | case $ac_lo in |
| 4921 | ?*) ac_cv_sizeof_int=$ac_lo;; |
| 4922 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 |
| 4923 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} |
| 4924 | { (exit 1); exit 1; }; } ;; |
| 4925 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4926 | else |
| 4927 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4928 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 4929 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 4930 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4931 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4932 | cat >conftest.$ac_ext <<_ACEOF |
| 4933 | #line $LINENO "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4934 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4935 | $ac_includes_default |
| 4936 | long longval () { return (long) (sizeof (int)); } |
| 4937 | unsigned long ulongval () { return (long) (sizeof (int)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4938 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4939 | #include <stdlib.h> |
| 4940 | #ifdef F77_DUMMY_MAIN |
| 4941 | # ifdef __cplusplus |
| 4942 | extern "C" |
| 4943 | # endif |
| 4944 | int F77_DUMMY_MAIN() { return 1; } |
| 4945 | #endif |
| 4946 | int |
| 4947 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4948 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4949 | |
| 4950 | FILE *f = fopen ("conftest.val", "w"); |
| 4951 | if (! f) |
| 4952 | exit (1); |
| 4953 | if (((long) (sizeof (int))) < 0) |
| 4954 | { |
| 4955 | long i = longval (); |
| 4956 | if (i != ((long) (sizeof (int)))) |
| 4957 | exit (1); |
| 4958 | fprintf (f, "%ld\n", i); |
| 4959 | } |
| 4960 | else |
| 4961 | { |
| 4962 | unsigned long i = ulongval (); |
| 4963 | if (i != ((long) (sizeof (int)))) |
| 4964 | exit (1); |
| 4965 | fprintf (f, "%lu\n", i); |
| 4966 | } |
| 4967 | exit (ferror (f) || fclose (f) != 0); |
| 4968 | |
| 4969 | ; |
| 4970 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4971 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4972 | _ACEOF |
| 4973 | rm -f conftest$ac_exeext |
| 4974 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4975 | (eval $ac_link) 2>&5 |
| 4976 | ac_status=$? |
| 4977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4978 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4980 | (eval $ac_try) 2>&5 |
| 4981 | ac_status=$? |
| 4982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4983 | (exit $ac_status); }; }; then |
| 4984 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4985 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4986 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4987 | echo "$as_me: failed program was:" >&5 |
| 4988 | cat conftest.$ac_ext >&5 |
| 4989 | ( exit $ac_status ) |
| 4990 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 |
| 4991 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} |
| 4992 | { (exit 1); exit 1; }; } |
| 4993 | fi |
| 4994 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4995 | fi |
| 4996 | fi |
| 4997 | rm -f conftest.val |
| 4998 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4999 | ac_cv_sizeof_int=0 |
| 5000 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5001 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5002 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 5003 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 5004 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5005 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5006 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5007 | |
| 5008 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5009 | echo "$as_me:$LINENO: checking for long" >&5 |
| 5010 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 5011 | if test "${ac_cv_type_long+set}" = set; then |
| 5012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5013 | else |
| 5014 | cat >conftest.$ac_ext <<_ACEOF |
| 5015 | #line $LINENO "configure" |
| 5016 | #include "confdefs.h" |
| 5017 | $ac_includes_default |
| 5018 | #ifdef F77_DUMMY_MAIN |
| 5019 | # ifdef __cplusplus |
| 5020 | extern "C" |
| 5021 | # endif |
| 5022 | int F77_DUMMY_MAIN() { return 1; } |
| 5023 | #endif |
| 5024 | int |
| 5025 | main () |
| 5026 | { |
| 5027 | if ((long *) 0) |
| 5028 | return 0; |
| 5029 | if (sizeof (long)) |
| 5030 | return 0; |
| 5031 | ; |
| 5032 | return 0; |
| 5033 | } |
| 5034 | _ACEOF |
| 5035 | rm -f conftest.$ac_objext |
| 5036 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5037 | (eval $ac_compile) 2>&5 |
| 5038 | ac_status=$? |
| 5039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5040 | (exit $ac_status); } && |
| 5041 | { ac_try='test -s conftest.$ac_objext' |
| 5042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5043 | (eval $ac_try) 2>&5 |
| 5044 | ac_status=$? |
| 5045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5046 | (exit $ac_status); }; }; then |
| 5047 | ac_cv_type_long=yes |
| 5048 | else |
| 5049 | echo "$as_me: failed program was:" >&5 |
| 5050 | cat conftest.$ac_ext >&5 |
| 5051 | ac_cv_type_long=no |
| 5052 | fi |
| 5053 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5054 | fi |
| 5055 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 5056 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 5057 | |
| 5058 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 5059 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 5060 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 5061 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5062 | else |
| 5063 | if test "$ac_cv_type_long" = yes; then |
| 5064 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5065 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5066 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5067 | # This bug is HP SR number 8606223364. |
| 5068 | if test "$cross_compiling" = yes; then |
| 5069 | # Depending upon the size, compute the lo and hi bounds. |
| 5070 | cat >conftest.$ac_ext <<_ACEOF |
| 5071 | #line $LINENO "configure" |
| 5072 | #include "confdefs.h" |
| 5073 | $ac_includes_default |
| 5074 | #ifdef F77_DUMMY_MAIN |
| 5075 | # ifdef __cplusplus |
| 5076 | extern "C" |
| 5077 | # endif |
| 5078 | int F77_DUMMY_MAIN() { return 1; } |
| 5079 | #endif |
| 5080 | int |
| 5081 | main () |
| 5082 | { |
| 5083 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 5084 | test_array [0] = 0 |
| 5085 | |
| 5086 | ; |
| 5087 | return 0; |
| 5088 | } |
| 5089 | _ACEOF |
| 5090 | rm -f conftest.$ac_objext |
| 5091 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5092 | (eval $ac_compile) 2>&5 |
| 5093 | ac_status=$? |
| 5094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5095 | (exit $ac_status); } && |
| 5096 | { ac_try='test -s conftest.$ac_objext' |
| 5097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5098 | (eval $ac_try) 2>&5 |
| 5099 | ac_status=$? |
| 5100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5101 | (exit $ac_status); }; }; then |
| 5102 | ac_lo=0 ac_mid=0 |
| 5103 | while :; do |
| 5104 | cat >conftest.$ac_ext <<_ACEOF |
| 5105 | #line $LINENO "configure" |
| 5106 | #include "confdefs.h" |
| 5107 | $ac_includes_default |
| 5108 | #ifdef F77_DUMMY_MAIN |
| 5109 | # ifdef __cplusplus |
| 5110 | extern "C" |
| 5111 | # endif |
| 5112 | int F77_DUMMY_MAIN() { return 1; } |
| 5113 | #endif |
| 5114 | int |
| 5115 | main () |
| 5116 | { |
| 5117 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 5118 | test_array [0] = 0 |
| 5119 | |
| 5120 | ; |
| 5121 | return 0; |
| 5122 | } |
| 5123 | _ACEOF |
| 5124 | rm -f conftest.$ac_objext |
| 5125 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5126 | (eval $ac_compile) 2>&5 |
| 5127 | ac_status=$? |
| 5128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5129 | (exit $ac_status); } && |
| 5130 | { ac_try='test -s conftest.$ac_objext' |
| 5131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5132 | (eval $ac_try) 2>&5 |
| 5133 | ac_status=$? |
| 5134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5135 | (exit $ac_status); }; }; then |
| 5136 | ac_hi=$ac_mid; break |
| 5137 | else |
| 5138 | echo "$as_me: failed program was:" >&5 |
| 5139 | cat conftest.$ac_ext >&5 |
| 5140 | ac_lo=`expr $ac_mid + 1` |
| 5141 | if test $ac_lo -le $ac_mid; then |
| 5142 | ac_lo= ac_hi= |
| 5143 | break |
| 5144 | fi |
| 5145 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5146 | fi |
| 5147 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5148 | done |
| 5149 | else |
| 5150 | echo "$as_me: failed program was:" >&5 |
| 5151 | cat conftest.$ac_ext >&5 |
| 5152 | cat >conftest.$ac_ext <<_ACEOF |
| 5153 | #line $LINENO "configure" |
| 5154 | #include "confdefs.h" |
| 5155 | $ac_includes_default |
| 5156 | #ifdef F77_DUMMY_MAIN |
| 5157 | # ifdef __cplusplus |
| 5158 | extern "C" |
| 5159 | # endif |
| 5160 | int F77_DUMMY_MAIN() { return 1; } |
| 5161 | #endif |
| 5162 | int |
| 5163 | main () |
| 5164 | { |
| 5165 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 5166 | test_array [0] = 0 |
| 5167 | |
| 5168 | ; |
| 5169 | return 0; |
| 5170 | } |
| 5171 | _ACEOF |
| 5172 | rm -f conftest.$ac_objext |
| 5173 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5174 | (eval $ac_compile) 2>&5 |
| 5175 | ac_status=$? |
| 5176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5177 | (exit $ac_status); } && |
| 5178 | { ac_try='test -s conftest.$ac_objext' |
| 5179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5180 | (eval $ac_try) 2>&5 |
| 5181 | ac_status=$? |
| 5182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5183 | (exit $ac_status); }; }; then |
| 5184 | ac_hi=-1 ac_mid=-1 |
| 5185 | while :; do |
| 5186 | cat >conftest.$ac_ext <<_ACEOF |
| 5187 | #line $LINENO "configure" |
| 5188 | #include "confdefs.h" |
| 5189 | $ac_includes_default |
| 5190 | #ifdef F77_DUMMY_MAIN |
| 5191 | # ifdef __cplusplus |
| 5192 | extern "C" |
| 5193 | # endif |
| 5194 | int F77_DUMMY_MAIN() { return 1; } |
| 5195 | #endif |
| 5196 | int |
| 5197 | main () |
| 5198 | { |
| 5199 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 5200 | test_array [0] = 0 |
| 5201 | |
| 5202 | ; |
| 5203 | return 0; |
| 5204 | } |
| 5205 | _ACEOF |
| 5206 | rm -f conftest.$ac_objext |
| 5207 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5208 | (eval $ac_compile) 2>&5 |
| 5209 | ac_status=$? |
| 5210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5211 | (exit $ac_status); } && |
| 5212 | { ac_try='test -s conftest.$ac_objext' |
| 5213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5214 | (eval $ac_try) 2>&5 |
| 5215 | ac_status=$? |
| 5216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5217 | (exit $ac_status); }; }; then |
| 5218 | ac_lo=$ac_mid; break |
| 5219 | else |
| 5220 | echo "$as_me: failed program was:" >&5 |
| 5221 | cat conftest.$ac_ext >&5 |
| 5222 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5223 | if test $ac_mid -le $ac_hi; then |
| 5224 | ac_lo= ac_hi= |
| 5225 | break |
| 5226 | fi |
| 5227 | ac_mid=`expr 2 '*' $ac_mid` |
| 5228 | fi |
| 5229 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5230 | done |
| 5231 | else |
| 5232 | echo "$as_me: failed program was:" >&5 |
| 5233 | cat conftest.$ac_ext >&5 |
| 5234 | ac_lo= ac_hi= |
| 5235 | fi |
| 5236 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5237 | fi |
| 5238 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5239 | # Binary search between lo and hi bounds. |
| 5240 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5241 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5242 | cat >conftest.$ac_ext <<_ACEOF |
| 5243 | #line $LINENO "configure" |
| 5244 | #include "confdefs.h" |
| 5245 | $ac_includes_default |
| 5246 | #ifdef F77_DUMMY_MAIN |
| 5247 | # ifdef __cplusplus |
| 5248 | extern "C" |
| 5249 | # endif |
| 5250 | int F77_DUMMY_MAIN() { return 1; } |
| 5251 | #endif |
| 5252 | int |
| 5253 | main () |
| 5254 | { |
| 5255 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 5256 | test_array [0] = 0 |
| 5257 | |
| 5258 | ; |
| 5259 | return 0; |
| 5260 | } |
| 5261 | _ACEOF |
| 5262 | rm -f conftest.$ac_objext |
| 5263 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5264 | (eval $ac_compile) 2>&5 |
| 5265 | ac_status=$? |
| 5266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5267 | (exit $ac_status); } && |
| 5268 | { ac_try='test -s conftest.$ac_objext' |
| 5269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5270 | (eval $ac_try) 2>&5 |
| 5271 | ac_status=$? |
| 5272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5273 | (exit $ac_status); }; }; then |
| 5274 | ac_hi=$ac_mid |
| 5275 | else |
| 5276 | echo "$as_me: failed program was:" >&5 |
| 5277 | cat conftest.$ac_ext >&5 |
| 5278 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5279 | fi |
| 5280 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5281 | done |
| 5282 | case $ac_lo in |
| 5283 | ?*) ac_cv_sizeof_long=$ac_lo;; |
| 5284 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 |
| 5285 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} |
| 5286 | { (exit 1); exit 1; }; } ;; |
| 5287 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5288 | else |
| 5289 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5290 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 5291 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 5292 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5293 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5294 | cat >conftest.$ac_ext <<_ACEOF |
| 5295 | #line $LINENO "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5296 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5297 | $ac_includes_default |
| 5298 | long longval () { return (long) (sizeof (long)); } |
| 5299 | unsigned long ulongval () { return (long) (sizeof (long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5300 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5301 | #include <stdlib.h> |
| 5302 | #ifdef F77_DUMMY_MAIN |
| 5303 | # ifdef __cplusplus |
| 5304 | extern "C" |
| 5305 | # endif |
| 5306 | int F77_DUMMY_MAIN() { return 1; } |
| 5307 | #endif |
| 5308 | int |
| 5309 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5310 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5311 | |
| 5312 | FILE *f = fopen ("conftest.val", "w"); |
| 5313 | if (! f) |
| 5314 | exit (1); |
| 5315 | if (((long) (sizeof (long))) < 0) |
| 5316 | { |
| 5317 | long i = longval (); |
| 5318 | if (i != ((long) (sizeof (long)))) |
| 5319 | exit (1); |
| 5320 | fprintf (f, "%ld\n", i); |
| 5321 | } |
| 5322 | else |
| 5323 | { |
| 5324 | unsigned long i = ulongval (); |
| 5325 | if (i != ((long) (sizeof (long)))) |
| 5326 | exit (1); |
| 5327 | fprintf (f, "%lu\n", i); |
| 5328 | } |
| 5329 | exit (ferror (f) || fclose (f) != 0); |
| 5330 | |
| 5331 | ; |
| 5332 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5333 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5334 | _ACEOF |
| 5335 | rm -f conftest$ac_exeext |
| 5336 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5337 | (eval $ac_link) 2>&5 |
| 5338 | ac_status=$? |
| 5339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5340 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5342 | (eval $ac_try) 2>&5 |
| 5343 | ac_status=$? |
| 5344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5345 | (exit $ac_status); }; }; then |
| 5346 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5347 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5348 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5349 | echo "$as_me: failed program was:" >&5 |
| 5350 | cat conftest.$ac_ext >&5 |
| 5351 | ( exit $ac_status ) |
| 5352 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 |
| 5353 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} |
| 5354 | { (exit 1); exit 1; }; } |
| 5355 | fi |
| 5356 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5357 | fi |
| 5358 | fi |
| 5359 | rm -f conftest.val |
| 5360 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5361 | ac_cv_sizeof_long=0 |
| 5362 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5363 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5364 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 5365 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 5366 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5367 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5368 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5369 | |
| 5370 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5371 | echo "$as_me:$LINENO: checking for void *" >&5 |
| 5372 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
| 5373 | if test "${ac_cv_type_void_p+set}" = set; then |
| 5374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5375 | else |
| 5376 | cat >conftest.$ac_ext <<_ACEOF |
| 5377 | #line $LINENO "configure" |
| 5378 | #include "confdefs.h" |
| 5379 | $ac_includes_default |
| 5380 | #ifdef F77_DUMMY_MAIN |
| 5381 | # ifdef __cplusplus |
| 5382 | extern "C" |
| 5383 | # endif |
| 5384 | int F77_DUMMY_MAIN() { return 1; } |
| 5385 | #endif |
| 5386 | int |
| 5387 | main () |
| 5388 | { |
| 5389 | if ((void * *) 0) |
| 5390 | return 0; |
| 5391 | if (sizeof (void *)) |
| 5392 | return 0; |
| 5393 | ; |
| 5394 | return 0; |
| 5395 | } |
| 5396 | _ACEOF |
| 5397 | rm -f conftest.$ac_objext |
| 5398 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5399 | (eval $ac_compile) 2>&5 |
| 5400 | ac_status=$? |
| 5401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5402 | (exit $ac_status); } && |
| 5403 | { ac_try='test -s conftest.$ac_objext' |
| 5404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5405 | (eval $ac_try) 2>&5 |
| 5406 | ac_status=$? |
| 5407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5408 | (exit $ac_status); }; }; then |
| 5409 | ac_cv_type_void_p=yes |
| 5410 | else |
| 5411 | echo "$as_me: failed program was:" >&5 |
| 5412 | cat conftest.$ac_ext >&5 |
| 5413 | ac_cv_type_void_p=no |
| 5414 | fi |
| 5415 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5416 | fi |
| 5417 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 5418 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
| 5419 | |
| 5420 | echo "$as_me:$LINENO: checking size of void *" >&5 |
| 5421 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
| 5422 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 5423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5424 | else |
| 5425 | if test "$ac_cv_type_void_p" = yes; then |
| 5426 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5427 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5428 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5429 | # This bug is HP SR number 8606223364. |
| 5430 | if test "$cross_compiling" = yes; then |
| 5431 | # Depending upon the size, compute the lo and hi bounds. |
| 5432 | cat >conftest.$ac_ext <<_ACEOF |
| 5433 | #line $LINENO "configure" |
| 5434 | #include "confdefs.h" |
| 5435 | $ac_includes_default |
| 5436 | #ifdef F77_DUMMY_MAIN |
| 5437 | # ifdef __cplusplus |
| 5438 | extern "C" |
| 5439 | # endif |
| 5440 | int F77_DUMMY_MAIN() { return 1; } |
| 5441 | #endif |
| 5442 | int |
| 5443 | main () |
| 5444 | { |
| 5445 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
| 5446 | test_array [0] = 0 |
| 5447 | |
| 5448 | ; |
| 5449 | return 0; |
| 5450 | } |
| 5451 | _ACEOF |
| 5452 | rm -f conftest.$ac_objext |
| 5453 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5454 | (eval $ac_compile) 2>&5 |
| 5455 | ac_status=$? |
| 5456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5457 | (exit $ac_status); } && |
| 5458 | { ac_try='test -s conftest.$ac_objext' |
| 5459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5460 | (eval $ac_try) 2>&5 |
| 5461 | ac_status=$? |
| 5462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5463 | (exit $ac_status); }; }; then |
| 5464 | ac_lo=0 ac_mid=0 |
| 5465 | while :; do |
| 5466 | cat >conftest.$ac_ext <<_ACEOF |
| 5467 | #line $LINENO "configure" |
| 5468 | #include "confdefs.h" |
| 5469 | $ac_includes_default |
| 5470 | #ifdef F77_DUMMY_MAIN |
| 5471 | # ifdef __cplusplus |
| 5472 | extern "C" |
| 5473 | # endif |
| 5474 | int F77_DUMMY_MAIN() { return 1; } |
| 5475 | #endif |
| 5476 | int |
| 5477 | main () |
| 5478 | { |
| 5479 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 5480 | test_array [0] = 0 |
| 5481 | |
| 5482 | ; |
| 5483 | return 0; |
| 5484 | } |
| 5485 | _ACEOF |
| 5486 | rm -f conftest.$ac_objext |
| 5487 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5488 | (eval $ac_compile) 2>&5 |
| 5489 | ac_status=$? |
| 5490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5491 | (exit $ac_status); } && |
| 5492 | { ac_try='test -s conftest.$ac_objext' |
| 5493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5494 | (eval $ac_try) 2>&5 |
| 5495 | ac_status=$? |
| 5496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5497 | (exit $ac_status); }; }; then |
| 5498 | ac_hi=$ac_mid; break |
| 5499 | else |
| 5500 | echo "$as_me: failed program was:" >&5 |
| 5501 | cat conftest.$ac_ext >&5 |
| 5502 | ac_lo=`expr $ac_mid + 1` |
| 5503 | if test $ac_lo -le $ac_mid; then |
| 5504 | ac_lo= ac_hi= |
| 5505 | break |
| 5506 | fi |
| 5507 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5508 | fi |
| 5509 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5510 | done |
| 5511 | else |
| 5512 | echo "$as_me: failed program was:" >&5 |
| 5513 | cat conftest.$ac_ext >&5 |
| 5514 | cat >conftest.$ac_ext <<_ACEOF |
| 5515 | #line $LINENO "configure" |
| 5516 | #include "confdefs.h" |
| 5517 | $ac_includes_default |
| 5518 | #ifdef F77_DUMMY_MAIN |
| 5519 | # ifdef __cplusplus |
| 5520 | extern "C" |
| 5521 | # endif |
| 5522 | int F77_DUMMY_MAIN() { return 1; } |
| 5523 | #endif |
| 5524 | int |
| 5525 | main () |
| 5526 | { |
| 5527 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
| 5528 | test_array [0] = 0 |
| 5529 | |
| 5530 | ; |
| 5531 | return 0; |
| 5532 | } |
| 5533 | _ACEOF |
| 5534 | rm -f conftest.$ac_objext |
| 5535 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5536 | (eval $ac_compile) 2>&5 |
| 5537 | ac_status=$? |
| 5538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5539 | (exit $ac_status); } && |
| 5540 | { ac_try='test -s conftest.$ac_objext' |
| 5541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5542 | (eval $ac_try) 2>&5 |
| 5543 | ac_status=$? |
| 5544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5545 | (exit $ac_status); }; }; then |
| 5546 | ac_hi=-1 ac_mid=-1 |
| 5547 | while :; do |
| 5548 | cat >conftest.$ac_ext <<_ACEOF |
| 5549 | #line $LINENO "configure" |
| 5550 | #include "confdefs.h" |
| 5551 | $ac_includes_default |
| 5552 | #ifdef F77_DUMMY_MAIN |
| 5553 | # ifdef __cplusplus |
| 5554 | extern "C" |
| 5555 | # endif |
| 5556 | int F77_DUMMY_MAIN() { return 1; } |
| 5557 | #endif |
| 5558 | int |
| 5559 | main () |
| 5560 | { |
| 5561 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
| 5562 | test_array [0] = 0 |
| 5563 | |
| 5564 | ; |
| 5565 | return 0; |
| 5566 | } |
| 5567 | _ACEOF |
| 5568 | rm -f conftest.$ac_objext |
| 5569 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5570 | (eval $ac_compile) 2>&5 |
| 5571 | ac_status=$? |
| 5572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5573 | (exit $ac_status); } && |
| 5574 | { ac_try='test -s conftest.$ac_objext' |
| 5575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5576 | (eval $ac_try) 2>&5 |
| 5577 | ac_status=$? |
| 5578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5579 | (exit $ac_status); }; }; then |
| 5580 | ac_lo=$ac_mid; break |
| 5581 | else |
| 5582 | echo "$as_me: failed program was:" >&5 |
| 5583 | cat conftest.$ac_ext >&5 |
| 5584 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5585 | if test $ac_mid -le $ac_hi; then |
| 5586 | ac_lo= ac_hi= |
| 5587 | break |
| 5588 | fi |
| 5589 | ac_mid=`expr 2 '*' $ac_mid` |
| 5590 | fi |
| 5591 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5592 | done |
| 5593 | else |
| 5594 | echo "$as_me: failed program was:" >&5 |
| 5595 | cat conftest.$ac_ext >&5 |
| 5596 | ac_lo= ac_hi= |
| 5597 | fi |
| 5598 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5599 | fi |
| 5600 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5601 | # Binary search between lo and hi bounds. |
| 5602 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5603 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5604 | cat >conftest.$ac_ext <<_ACEOF |
| 5605 | #line $LINENO "configure" |
| 5606 | #include "confdefs.h" |
| 5607 | $ac_includes_default |
| 5608 | #ifdef F77_DUMMY_MAIN |
| 5609 | # ifdef __cplusplus |
| 5610 | extern "C" |
| 5611 | # endif |
| 5612 | int F77_DUMMY_MAIN() { return 1; } |
| 5613 | #endif |
| 5614 | int |
| 5615 | main () |
| 5616 | { |
| 5617 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 5618 | test_array [0] = 0 |
| 5619 | |
| 5620 | ; |
| 5621 | return 0; |
| 5622 | } |
| 5623 | _ACEOF |
| 5624 | rm -f conftest.$ac_objext |
| 5625 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5626 | (eval $ac_compile) 2>&5 |
| 5627 | ac_status=$? |
| 5628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5629 | (exit $ac_status); } && |
| 5630 | { ac_try='test -s conftest.$ac_objext' |
| 5631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5632 | (eval $ac_try) 2>&5 |
| 5633 | ac_status=$? |
| 5634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5635 | (exit $ac_status); }; }; then |
| 5636 | ac_hi=$ac_mid |
| 5637 | else |
| 5638 | echo "$as_me: failed program was:" >&5 |
| 5639 | cat conftest.$ac_ext >&5 |
| 5640 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5641 | fi |
| 5642 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5643 | done |
| 5644 | case $ac_lo in |
| 5645 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
| 5646 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 |
| 5647 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} |
| 5648 | { (exit 1); exit 1; }; } ;; |
| 5649 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5650 | else |
| 5651 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5652 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 5653 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 5654 | { (exit 1); exit 1; }; } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5655 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5656 | cat >conftest.$ac_ext <<_ACEOF |
| 5657 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5658 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5659 | $ac_includes_default |
| 5660 | long longval () { return (long) (sizeof (void *)); } |
| 5661 | unsigned long ulongval () { return (long) (sizeof (void *)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5662 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5663 | #include <stdlib.h> |
| 5664 | #ifdef F77_DUMMY_MAIN |
| 5665 | # ifdef __cplusplus |
| 5666 | extern "C" |
| 5667 | # endif |
| 5668 | int F77_DUMMY_MAIN() { return 1; } |
| 5669 | #endif |
| 5670 | int |
| 5671 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5672 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5673 | |
| 5674 | FILE *f = fopen ("conftest.val", "w"); |
| 5675 | if (! f) |
| 5676 | exit (1); |
| 5677 | if (((long) (sizeof (void *))) < 0) |
| 5678 | { |
| 5679 | long i = longval (); |
| 5680 | if (i != ((long) (sizeof (void *)))) |
| 5681 | exit (1); |
| 5682 | fprintf (f, "%ld\n", i); |
| 5683 | } |
| 5684 | else |
| 5685 | { |
| 5686 | unsigned long i = ulongval (); |
| 5687 | if (i != ((long) (sizeof (void *)))) |
| 5688 | exit (1); |
| 5689 | fprintf (f, "%lu\n", i); |
| 5690 | } |
| 5691 | exit (ferror (f) || fclose (f) != 0); |
| 5692 | |
| 5693 | ; |
| 5694 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5695 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5696 | _ACEOF |
| 5697 | rm -f conftest$ac_exeext |
| 5698 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5699 | (eval $ac_link) 2>&5 |
| 5700 | ac_status=$? |
| 5701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5702 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5704 | (eval $ac_try) 2>&5 |
| 5705 | ac_status=$? |
| 5706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5707 | (exit $ac_status); }; }; then |
| 5708 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5709 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5710 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5711 | echo "$as_me: failed program was:" >&5 |
| 5712 | cat conftest.$ac_ext >&5 |
| 5713 | ( exit $ac_status ) |
| 5714 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 |
| 5715 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} |
| 5716 | { (exit 1); exit 1; }; } |
| 5717 | fi |
| 5718 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5719 | fi |
| 5720 | fi |
| 5721 | rm -f conftest.val |
| 5722 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5723 | ac_cv_sizeof_void_p=0 |
| 5724 | fi |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5725 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5726 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 5727 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
| 5728 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5729 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5730 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5731 | |
| 5732 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5733 | echo "$as_me:$LINENO: checking for char" >&5 |
| 5734 | echo $ECHO_N "checking for char... $ECHO_C" >&6 |
| 5735 | if test "${ac_cv_type_char+set}" = set; then |
| 5736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5737 | else |
| 5738 | cat >conftest.$ac_ext <<_ACEOF |
| 5739 | #line $LINENO "configure" |
| 5740 | #include "confdefs.h" |
| 5741 | $ac_includes_default |
| 5742 | #ifdef F77_DUMMY_MAIN |
| 5743 | # ifdef __cplusplus |
| 5744 | extern "C" |
| 5745 | # endif |
| 5746 | int F77_DUMMY_MAIN() { return 1; } |
| 5747 | #endif |
| 5748 | int |
| 5749 | main () |
| 5750 | { |
| 5751 | if ((char *) 0) |
| 5752 | return 0; |
| 5753 | if (sizeof (char)) |
| 5754 | return 0; |
| 5755 | ; |
| 5756 | return 0; |
| 5757 | } |
| 5758 | _ACEOF |
| 5759 | rm -f conftest.$ac_objext |
| 5760 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5761 | (eval $ac_compile) 2>&5 |
| 5762 | ac_status=$? |
| 5763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5764 | (exit $ac_status); } && |
| 5765 | { ac_try='test -s conftest.$ac_objext' |
| 5766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5767 | (eval $ac_try) 2>&5 |
| 5768 | ac_status=$? |
| 5769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5770 | (exit $ac_status); }; }; then |
| 5771 | ac_cv_type_char=yes |
| 5772 | else |
| 5773 | echo "$as_me: failed program was:" >&5 |
| 5774 | cat conftest.$ac_ext >&5 |
| 5775 | ac_cv_type_char=no |
| 5776 | fi |
| 5777 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5778 | fi |
| 5779 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
| 5780 | echo "${ECHO_T}$ac_cv_type_char" >&6 |
| 5781 | |
| 5782 | echo "$as_me:$LINENO: checking size of char" >&5 |
| 5783 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 |
| 5784 | if test "${ac_cv_sizeof_char+set}" = set; then |
| 5785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5786 | else |
| 5787 | if test "$ac_cv_type_char" = yes; then |
| 5788 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5789 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5790 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5791 | # This bug is HP SR number 8606223364. |
| 5792 | if test "$cross_compiling" = yes; then |
| 5793 | # Depending upon the size, compute the lo and hi bounds. |
| 5794 | cat >conftest.$ac_ext <<_ACEOF |
| 5795 | #line $LINENO "configure" |
| 5796 | #include "confdefs.h" |
| 5797 | $ac_includes_default |
| 5798 | #ifdef F77_DUMMY_MAIN |
| 5799 | # ifdef __cplusplus |
| 5800 | extern "C" |
| 5801 | # endif |
| 5802 | int F77_DUMMY_MAIN() { return 1; } |
| 5803 | #endif |
| 5804 | int |
| 5805 | main () |
| 5806 | { |
| 5807 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
| 5808 | test_array [0] = 0 |
| 5809 | |
| 5810 | ; |
| 5811 | return 0; |
| 5812 | } |
| 5813 | _ACEOF |
| 5814 | rm -f conftest.$ac_objext |
| 5815 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5816 | (eval $ac_compile) 2>&5 |
| 5817 | ac_status=$? |
| 5818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5819 | (exit $ac_status); } && |
| 5820 | { ac_try='test -s conftest.$ac_objext' |
| 5821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5822 | (eval $ac_try) 2>&5 |
| 5823 | ac_status=$? |
| 5824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5825 | (exit $ac_status); }; }; then |
| 5826 | ac_lo=0 ac_mid=0 |
| 5827 | while :; do |
| 5828 | cat >conftest.$ac_ext <<_ACEOF |
| 5829 | #line $LINENO "configure" |
| 5830 | #include "confdefs.h" |
| 5831 | $ac_includes_default |
| 5832 | #ifdef F77_DUMMY_MAIN |
| 5833 | # ifdef __cplusplus |
| 5834 | extern "C" |
| 5835 | # endif |
| 5836 | int F77_DUMMY_MAIN() { return 1; } |
| 5837 | #endif |
| 5838 | int |
| 5839 | main () |
| 5840 | { |
| 5841 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 5842 | test_array [0] = 0 |
| 5843 | |
| 5844 | ; |
| 5845 | return 0; |
| 5846 | } |
| 5847 | _ACEOF |
| 5848 | rm -f conftest.$ac_objext |
| 5849 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5850 | (eval $ac_compile) 2>&5 |
| 5851 | ac_status=$? |
| 5852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5853 | (exit $ac_status); } && |
| 5854 | { ac_try='test -s conftest.$ac_objext' |
| 5855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5856 | (eval $ac_try) 2>&5 |
| 5857 | ac_status=$? |
| 5858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5859 | (exit $ac_status); }; }; then |
| 5860 | ac_hi=$ac_mid; break |
| 5861 | else |
| 5862 | echo "$as_me: failed program was:" >&5 |
| 5863 | cat conftest.$ac_ext >&5 |
| 5864 | ac_lo=`expr $ac_mid + 1` |
| 5865 | if test $ac_lo -le $ac_mid; then |
| 5866 | ac_lo= ac_hi= |
| 5867 | break |
| 5868 | fi |
| 5869 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5870 | fi |
| 5871 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5872 | done |
| 5873 | else |
| 5874 | echo "$as_me: failed program was:" >&5 |
| 5875 | cat conftest.$ac_ext >&5 |
| 5876 | cat >conftest.$ac_ext <<_ACEOF |
| 5877 | #line $LINENO "configure" |
| 5878 | #include "confdefs.h" |
| 5879 | $ac_includes_default |
| 5880 | #ifdef F77_DUMMY_MAIN |
| 5881 | # ifdef __cplusplus |
| 5882 | extern "C" |
| 5883 | # endif |
| 5884 | int F77_DUMMY_MAIN() { return 1; } |
| 5885 | #endif |
| 5886 | int |
| 5887 | main () |
| 5888 | { |
| 5889 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
| 5890 | test_array [0] = 0 |
| 5891 | |
| 5892 | ; |
| 5893 | return 0; |
| 5894 | } |
| 5895 | _ACEOF |
| 5896 | rm -f conftest.$ac_objext |
| 5897 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5898 | (eval $ac_compile) 2>&5 |
| 5899 | ac_status=$? |
| 5900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5901 | (exit $ac_status); } && |
| 5902 | { ac_try='test -s conftest.$ac_objext' |
| 5903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5904 | (eval $ac_try) 2>&5 |
| 5905 | ac_status=$? |
| 5906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5907 | (exit $ac_status); }; }; then |
| 5908 | ac_hi=-1 ac_mid=-1 |
| 5909 | while :; do |
| 5910 | cat >conftest.$ac_ext <<_ACEOF |
| 5911 | #line $LINENO "configure" |
| 5912 | #include "confdefs.h" |
| 5913 | $ac_includes_default |
| 5914 | #ifdef F77_DUMMY_MAIN |
| 5915 | # ifdef __cplusplus |
| 5916 | extern "C" |
| 5917 | # endif |
| 5918 | int F77_DUMMY_MAIN() { return 1; } |
| 5919 | #endif |
| 5920 | int |
| 5921 | main () |
| 5922 | { |
| 5923 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
| 5924 | test_array [0] = 0 |
| 5925 | |
| 5926 | ; |
| 5927 | return 0; |
| 5928 | } |
| 5929 | _ACEOF |
| 5930 | rm -f conftest.$ac_objext |
| 5931 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5932 | (eval $ac_compile) 2>&5 |
| 5933 | ac_status=$? |
| 5934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5935 | (exit $ac_status); } && |
| 5936 | { ac_try='test -s conftest.$ac_objext' |
| 5937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5938 | (eval $ac_try) 2>&5 |
| 5939 | ac_status=$? |
| 5940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5941 | (exit $ac_status); }; }; then |
| 5942 | ac_lo=$ac_mid; break |
| 5943 | else |
| 5944 | echo "$as_me: failed program was:" >&5 |
| 5945 | cat conftest.$ac_ext >&5 |
| 5946 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5947 | if test $ac_mid -le $ac_hi; then |
| 5948 | ac_lo= ac_hi= |
| 5949 | break |
| 5950 | fi |
| 5951 | ac_mid=`expr 2 '*' $ac_mid` |
| 5952 | fi |
| 5953 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5954 | done |
| 5955 | else |
| 5956 | echo "$as_me: failed program was:" >&5 |
| 5957 | cat conftest.$ac_ext >&5 |
| 5958 | ac_lo= ac_hi= |
| 5959 | fi |
| 5960 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5961 | fi |
| 5962 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5963 | # Binary search between lo and hi bounds. |
| 5964 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5965 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5966 | cat >conftest.$ac_ext <<_ACEOF |
| 5967 | #line $LINENO "configure" |
| 5968 | #include "confdefs.h" |
| 5969 | $ac_includes_default |
| 5970 | #ifdef F77_DUMMY_MAIN |
| 5971 | # ifdef __cplusplus |
| 5972 | extern "C" |
| 5973 | # endif |
| 5974 | int F77_DUMMY_MAIN() { return 1; } |
| 5975 | #endif |
| 5976 | int |
| 5977 | main () |
| 5978 | { |
| 5979 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 5980 | test_array [0] = 0 |
| 5981 | |
| 5982 | ; |
| 5983 | return 0; |
| 5984 | } |
| 5985 | _ACEOF |
| 5986 | rm -f conftest.$ac_objext |
| 5987 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5988 | (eval $ac_compile) 2>&5 |
| 5989 | ac_status=$? |
| 5990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5991 | (exit $ac_status); } && |
| 5992 | { ac_try='test -s conftest.$ac_objext' |
| 5993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5994 | (eval $ac_try) 2>&5 |
| 5995 | ac_status=$? |
| 5996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5997 | (exit $ac_status); }; }; then |
| 5998 | ac_hi=$ac_mid |
| 5999 | else |
| 6000 | echo "$as_me: failed program was:" >&5 |
| 6001 | cat conftest.$ac_ext >&5 |
| 6002 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6003 | fi |
| 6004 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6005 | done |
| 6006 | case $ac_lo in |
| 6007 | ?*) ac_cv_sizeof_char=$ac_lo;; |
| 6008 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 |
| 6009 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} |
| 6010 | { (exit 1); exit 1; }; } ;; |
| 6011 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6012 | else |
| 6013 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6014 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6015 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6016 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6017 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6018 | cat >conftest.$ac_ext <<_ACEOF |
| 6019 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6020 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6021 | $ac_includes_default |
| 6022 | long longval () { return (long) (sizeof (char)); } |
| 6023 | unsigned long ulongval () { return (long) (sizeof (char)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6024 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6025 | #include <stdlib.h> |
| 6026 | #ifdef F77_DUMMY_MAIN |
| 6027 | # ifdef __cplusplus |
| 6028 | extern "C" |
| 6029 | # endif |
| 6030 | int F77_DUMMY_MAIN() { return 1; } |
| 6031 | #endif |
| 6032 | int |
| 6033 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6034 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6035 | |
| 6036 | FILE *f = fopen ("conftest.val", "w"); |
| 6037 | if (! f) |
| 6038 | exit (1); |
| 6039 | if (((long) (sizeof (char))) < 0) |
| 6040 | { |
| 6041 | long i = longval (); |
| 6042 | if (i != ((long) (sizeof (char)))) |
| 6043 | exit (1); |
| 6044 | fprintf (f, "%ld\n", i); |
| 6045 | } |
| 6046 | else |
| 6047 | { |
| 6048 | unsigned long i = ulongval (); |
| 6049 | if (i != ((long) (sizeof (char)))) |
| 6050 | exit (1); |
| 6051 | fprintf (f, "%lu\n", i); |
| 6052 | } |
| 6053 | exit (ferror (f) || fclose (f) != 0); |
| 6054 | |
| 6055 | ; |
| 6056 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6057 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6058 | _ACEOF |
| 6059 | rm -f conftest$ac_exeext |
| 6060 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6061 | (eval $ac_link) 2>&5 |
| 6062 | ac_status=$? |
| 6063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6064 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6066 | (eval $ac_try) 2>&5 |
| 6067 | ac_status=$? |
| 6068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6069 | (exit $ac_status); }; }; then |
| 6070 | ac_cv_sizeof_char=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6071 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6072 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6073 | echo "$as_me: failed program was:" >&5 |
| 6074 | cat conftest.$ac_ext >&5 |
| 6075 | ( exit $ac_status ) |
| 6076 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 |
| 6077 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} |
| 6078 | { (exit 1); exit 1; }; } |
| 6079 | fi |
| 6080 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6081 | fi |
| 6082 | fi |
| 6083 | rm -f conftest.val |
| 6084 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6085 | ac_cv_sizeof_char=0 |
| 6086 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6087 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6088 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
| 6089 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 |
| 6090 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6091 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6092 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6093 | |
| 6094 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6095 | echo "$as_me:$LINENO: checking for short" >&5 |
| 6096 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
| 6097 | if test "${ac_cv_type_short+set}" = set; then |
| 6098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6099 | else |
| 6100 | cat >conftest.$ac_ext <<_ACEOF |
| 6101 | #line $LINENO "configure" |
| 6102 | #include "confdefs.h" |
| 6103 | $ac_includes_default |
| 6104 | #ifdef F77_DUMMY_MAIN |
| 6105 | # ifdef __cplusplus |
| 6106 | extern "C" |
| 6107 | # endif |
| 6108 | int F77_DUMMY_MAIN() { return 1; } |
| 6109 | #endif |
| 6110 | int |
| 6111 | main () |
| 6112 | { |
| 6113 | if ((short *) 0) |
| 6114 | return 0; |
| 6115 | if (sizeof (short)) |
| 6116 | return 0; |
| 6117 | ; |
| 6118 | return 0; |
| 6119 | } |
| 6120 | _ACEOF |
| 6121 | rm -f conftest.$ac_objext |
| 6122 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6123 | (eval $ac_compile) 2>&5 |
| 6124 | ac_status=$? |
| 6125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6126 | (exit $ac_status); } && |
| 6127 | { ac_try='test -s conftest.$ac_objext' |
| 6128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6129 | (eval $ac_try) 2>&5 |
| 6130 | ac_status=$? |
| 6131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6132 | (exit $ac_status); }; }; then |
| 6133 | ac_cv_type_short=yes |
| 6134 | else |
| 6135 | echo "$as_me: failed program was:" >&5 |
| 6136 | cat conftest.$ac_ext >&5 |
| 6137 | ac_cv_type_short=no |
| 6138 | fi |
| 6139 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6140 | fi |
| 6141 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 6142 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
| 6143 | |
| 6144 | echo "$as_me:$LINENO: checking size of short" >&5 |
| 6145 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
| 6146 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 6147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6148 | else |
| 6149 | if test "$ac_cv_type_short" = yes; then |
| 6150 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6151 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6152 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6153 | # This bug is HP SR number 8606223364. |
| 6154 | if test "$cross_compiling" = yes; then |
| 6155 | # Depending upon the size, compute the lo and hi bounds. |
| 6156 | cat >conftest.$ac_ext <<_ACEOF |
| 6157 | #line $LINENO "configure" |
| 6158 | #include "confdefs.h" |
| 6159 | $ac_includes_default |
| 6160 | #ifdef F77_DUMMY_MAIN |
| 6161 | # ifdef __cplusplus |
| 6162 | extern "C" |
| 6163 | # endif |
| 6164 | int F77_DUMMY_MAIN() { return 1; } |
| 6165 | #endif |
| 6166 | int |
| 6167 | main () |
| 6168 | { |
| 6169 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
| 6170 | test_array [0] = 0 |
| 6171 | |
| 6172 | ; |
| 6173 | return 0; |
| 6174 | } |
| 6175 | _ACEOF |
| 6176 | rm -f conftest.$ac_objext |
| 6177 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6178 | (eval $ac_compile) 2>&5 |
| 6179 | ac_status=$? |
| 6180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6181 | (exit $ac_status); } && |
| 6182 | { ac_try='test -s conftest.$ac_objext' |
| 6183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6184 | (eval $ac_try) 2>&5 |
| 6185 | ac_status=$? |
| 6186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6187 | (exit $ac_status); }; }; then |
| 6188 | ac_lo=0 ac_mid=0 |
| 6189 | while :; do |
| 6190 | cat >conftest.$ac_ext <<_ACEOF |
| 6191 | #line $LINENO "configure" |
| 6192 | #include "confdefs.h" |
| 6193 | $ac_includes_default |
| 6194 | #ifdef F77_DUMMY_MAIN |
| 6195 | # ifdef __cplusplus |
| 6196 | extern "C" |
| 6197 | # endif |
| 6198 | int F77_DUMMY_MAIN() { return 1; } |
| 6199 | #endif |
| 6200 | int |
| 6201 | main () |
| 6202 | { |
| 6203 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 6204 | test_array [0] = 0 |
| 6205 | |
| 6206 | ; |
| 6207 | return 0; |
| 6208 | } |
| 6209 | _ACEOF |
| 6210 | rm -f conftest.$ac_objext |
| 6211 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6212 | (eval $ac_compile) 2>&5 |
| 6213 | ac_status=$? |
| 6214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6215 | (exit $ac_status); } && |
| 6216 | { ac_try='test -s conftest.$ac_objext' |
| 6217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6218 | (eval $ac_try) 2>&5 |
| 6219 | ac_status=$? |
| 6220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6221 | (exit $ac_status); }; }; then |
| 6222 | ac_hi=$ac_mid; break |
| 6223 | else |
| 6224 | echo "$as_me: failed program was:" >&5 |
| 6225 | cat conftest.$ac_ext >&5 |
| 6226 | ac_lo=`expr $ac_mid + 1` |
| 6227 | if test $ac_lo -le $ac_mid; then |
| 6228 | ac_lo= ac_hi= |
| 6229 | break |
| 6230 | fi |
| 6231 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6232 | fi |
| 6233 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6234 | done |
| 6235 | else |
| 6236 | echo "$as_me: failed program was:" >&5 |
| 6237 | cat conftest.$ac_ext >&5 |
| 6238 | cat >conftest.$ac_ext <<_ACEOF |
| 6239 | #line $LINENO "configure" |
| 6240 | #include "confdefs.h" |
| 6241 | $ac_includes_default |
| 6242 | #ifdef F77_DUMMY_MAIN |
| 6243 | # ifdef __cplusplus |
| 6244 | extern "C" |
| 6245 | # endif |
| 6246 | int F77_DUMMY_MAIN() { return 1; } |
| 6247 | #endif |
| 6248 | int |
| 6249 | main () |
| 6250 | { |
| 6251 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
| 6252 | test_array [0] = 0 |
| 6253 | |
| 6254 | ; |
| 6255 | return 0; |
| 6256 | } |
| 6257 | _ACEOF |
| 6258 | rm -f conftest.$ac_objext |
| 6259 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6260 | (eval $ac_compile) 2>&5 |
| 6261 | ac_status=$? |
| 6262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6263 | (exit $ac_status); } && |
| 6264 | { ac_try='test -s conftest.$ac_objext' |
| 6265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6266 | (eval $ac_try) 2>&5 |
| 6267 | ac_status=$? |
| 6268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6269 | (exit $ac_status); }; }; then |
| 6270 | ac_hi=-1 ac_mid=-1 |
| 6271 | while :; do |
| 6272 | cat >conftest.$ac_ext <<_ACEOF |
| 6273 | #line $LINENO "configure" |
| 6274 | #include "confdefs.h" |
| 6275 | $ac_includes_default |
| 6276 | #ifdef F77_DUMMY_MAIN |
| 6277 | # ifdef __cplusplus |
| 6278 | extern "C" |
| 6279 | # endif |
| 6280 | int F77_DUMMY_MAIN() { return 1; } |
| 6281 | #endif |
| 6282 | int |
| 6283 | main () |
| 6284 | { |
| 6285 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
| 6286 | test_array [0] = 0 |
| 6287 | |
| 6288 | ; |
| 6289 | return 0; |
| 6290 | } |
| 6291 | _ACEOF |
| 6292 | rm -f conftest.$ac_objext |
| 6293 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6294 | (eval $ac_compile) 2>&5 |
| 6295 | ac_status=$? |
| 6296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6297 | (exit $ac_status); } && |
| 6298 | { ac_try='test -s conftest.$ac_objext' |
| 6299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6300 | (eval $ac_try) 2>&5 |
| 6301 | ac_status=$? |
| 6302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6303 | (exit $ac_status); }; }; then |
| 6304 | ac_lo=$ac_mid; break |
| 6305 | else |
| 6306 | echo "$as_me: failed program was:" >&5 |
| 6307 | cat conftest.$ac_ext >&5 |
| 6308 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6309 | if test $ac_mid -le $ac_hi; then |
| 6310 | ac_lo= ac_hi= |
| 6311 | break |
| 6312 | fi |
| 6313 | ac_mid=`expr 2 '*' $ac_mid` |
| 6314 | fi |
| 6315 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6316 | done |
| 6317 | else |
| 6318 | echo "$as_me: failed program was:" >&5 |
| 6319 | cat conftest.$ac_ext >&5 |
| 6320 | ac_lo= ac_hi= |
| 6321 | fi |
| 6322 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6323 | fi |
| 6324 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6325 | # Binary search between lo and hi bounds. |
| 6326 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6327 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6328 | cat >conftest.$ac_ext <<_ACEOF |
| 6329 | #line $LINENO "configure" |
| 6330 | #include "confdefs.h" |
| 6331 | $ac_includes_default |
| 6332 | #ifdef F77_DUMMY_MAIN |
| 6333 | # ifdef __cplusplus |
| 6334 | extern "C" |
| 6335 | # endif |
| 6336 | int F77_DUMMY_MAIN() { return 1; } |
| 6337 | #endif |
| 6338 | int |
| 6339 | main () |
| 6340 | { |
| 6341 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 6342 | test_array [0] = 0 |
| 6343 | |
| 6344 | ; |
| 6345 | return 0; |
| 6346 | } |
| 6347 | _ACEOF |
| 6348 | rm -f conftest.$ac_objext |
| 6349 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6350 | (eval $ac_compile) 2>&5 |
| 6351 | ac_status=$? |
| 6352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6353 | (exit $ac_status); } && |
| 6354 | { ac_try='test -s conftest.$ac_objext' |
| 6355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6356 | (eval $ac_try) 2>&5 |
| 6357 | ac_status=$? |
| 6358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6359 | (exit $ac_status); }; }; then |
| 6360 | ac_hi=$ac_mid |
| 6361 | else |
| 6362 | echo "$as_me: failed program was:" >&5 |
| 6363 | cat conftest.$ac_ext >&5 |
| 6364 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6365 | fi |
| 6366 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6367 | done |
| 6368 | case $ac_lo in |
| 6369 | ?*) ac_cv_sizeof_short=$ac_lo;; |
| 6370 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 |
| 6371 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} |
| 6372 | { (exit 1); exit 1; }; } ;; |
| 6373 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6374 | else |
| 6375 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6376 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6377 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6378 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6379 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6380 | cat >conftest.$ac_ext <<_ACEOF |
| 6381 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6382 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6383 | $ac_includes_default |
| 6384 | long longval () { return (long) (sizeof (short)); } |
| 6385 | unsigned long ulongval () { return (long) (sizeof (short)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6386 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6387 | #include <stdlib.h> |
| 6388 | #ifdef F77_DUMMY_MAIN |
| 6389 | # ifdef __cplusplus |
| 6390 | extern "C" |
| 6391 | # endif |
| 6392 | int F77_DUMMY_MAIN() { return 1; } |
| 6393 | #endif |
| 6394 | int |
| 6395 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6396 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6397 | |
| 6398 | FILE *f = fopen ("conftest.val", "w"); |
| 6399 | if (! f) |
| 6400 | exit (1); |
| 6401 | if (((long) (sizeof (short))) < 0) |
| 6402 | { |
| 6403 | long i = longval (); |
| 6404 | if (i != ((long) (sizeof (short)))) |
| 6405 | exit (1); |
| 6406 | fprintf (f, "%ld\n", i); |
| 6407 | } |
| 6408 | else |
| 6409 | { |
| 6410 | unsigned long i = ulongval (); |
| 6411 | if (i != ((long) (sizeof (short)))) |
| 6412 | exit (1); |
| 6413 | fprintf (f, "%lu\n", i); |
| 6414 | } |
| 6415 | exit (ferror (f) || fclose (f) != 0); |
| 6416 | |
| 6417 | ; |
| 6418 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6419 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6420 | _ACEOF |
| 6421 | rm -f conftest$ac_exeext |
| 6422 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6423 | (eval $ac_link) 2>&5 |
| 6424 | ac_status=$? |
| 6425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6426 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6428 | (eval $ac_try) 2>&5 |
| 6429 | ac_status=$? |
| 6430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6431 | (exit $ac_status); }; }; then |
| 6432 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6433 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6434 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6435 | echo "$as_me: failed program was:" >&5 |
| 6436 | cat conftest.$ac_ext >&5 |
| 6437 | ( exit $ac_status ) |
| 6438 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 |
| 6439 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} |
| 6440 | { (exit 1); exit 1; }; } |
| 6441 | fi |
| 6442 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6443 | fi |
| 6444 | fi |
| 6445 | rm -f conftest.val |
| 6446 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6447 | ac_cv_sizeof_short=0 |
| 6448 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6449 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6450 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 6451 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
| 6452 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6453 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6454 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6455 | |
| 6456 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6457 | echo "$as_me:$LINENO: checking for float" >&5 |
| 6458 | echo $ECHO_N "checking for float... $ECHO_C" >&6 |
| 6459 | if test "${ac_cv_type_float+set}" = set; then |
| 6460 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6461 | else |
| 6462 | cat >conftest.$ac_ext <<_ACEOF |
| 6463 | #line $LINENO "configure" |
| 6464 | #include "confdefs.h" |
| 6465 | $ac_includes_default |
| 6466 | #ifdef F77_DUMMY_MAIN |
| 6467 | # ifdef __cplusplus |
| 6468 | extern "C" |
| 6469 | # endif |
| 6470 | int F77_DUMMY_MAIN() { return 1; } |
| 6471 | #endif |
| 6472 | int |
| 6473 | main () |
| 6474 | { |
| 6475 | if ((float *) 0) |
| 6476 | return 0; |
| 6477 | if (sizeof (float)) |
| 6478 | return 0; |
| 6479 | ; |
| 6480 | return 0; |
| 6481 | } |
| 6482 | _ACEOF |
| 6483 | rm -f conftest.$ac_objext |
| 6484 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6485 | (eval $ac_compile) 2>&5 |
| 6486 | ac_status=$? |
| 6487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6488 | (exit $ac_status); } && |
| 6489 | { ac_try='test -s conftest.$ac_objext' |
| 6490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6491 | (eval $ac_try) 2>&5 |
| 6492 | ac_status=$? |
| 6493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6494 | (exit $ac_status); }; }; then |
| 6495 | ac_cv_type_float=yes |
| 6496 | else |
| 6497 | echo "$as_me: failed program was:" >&5 |
| 6498 | cat conftest.$ac_ext >&5 |
| 6499 | ac_cv_type_float=no |
| 6500 | fi |
| 6501 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6502 | fi |
| 6503 | echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 6504 | echo "${ECHO_T}$ac_cv_type_float" >&6 |
| 6505 | |
| 6506 | echo "$as_me:$LINENO: checking size of float" >&5 |
| 6507 | echo $ECHO_N "checking size of float... $ECHO_C" >&6 |
| 6508 | if test "${ac_cv_sizeof_float+set}" = set; then |
| 6509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6510 | else |
| 6511 | if test "$ac_cv_type_float" = yes; then |
| 6512 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6513 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6514 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6515 | # This bug is HP SR number 8606223364. |
| 6516 | if test "$cross_compiling" = yes; then |
| 6517 | # Depending upon the size, compute the lo and hi bounds. |
| 6518 | cat >conftest.$ac_ext <<_ACEOF |
| 6519 | #line $LINENO "configure" |
| 6520 | #include "confdefs.h" |
| 6521 | $ac_includes_default |
| 6522 | #ifdef F77_DUMMY_MAIN |
| 6523 | # ifdef __cplusplus |
| 6524 | extern "C" |
| 6525 | # endif |
| 6526 | int F77_DUMMY_MAIN() { return 1; } |
| 6527 | #endif |
| 6528 | int |
| 6529 | main () |
| 6530 | { |
| 6531 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)]; |
| 6532 | test_array [0] = 0 |
| 6533 | |
| 6534 | ; |
| 6535 | return 0; |
| 6536 | } |
| 6537 | _ACEOF |
| 6538 | rm -f conftest.$ac_objext |
| 6539 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6540 | (eval $ac_compile) 2>&5 |
| 6541 | ac_status=$? |
| 6542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6543 | (exit $ac_status); } && |
| 6544 | { ac_try='test -s conftest.$ac_objext' |
| 6545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6546 | (eval $ac_try) 2>&5 |
| 6547 | ac_status=$? |
| 6548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6549 | (exit $ac_status); }; }; then |
| 6550 | ac_lo=0 ac_mid=0 |
| 6551 | while :; do |
| 6552 | cat >conftest.$ac_ext <<_ACEOF |
| 6553 | #line $LINENO "configure" |
| 6554 | #include "confdefs.h" |
| 6555 | $ac_includes_default |
| 6556 | #ifdef F77_DUMMY_MAIN |
| 6557 | # ifdef __cplusplus |
| 6558 | extern "C" |
| 6559 | # endif |
| 6560 | int F77_DUMMY_MAIN() { return 1; } |
| 6561 | #endif |
| 6562 | int |
| 6563 | main () |
| 6564 | { |
| 6565 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 6566 | test_array [0] = 0 |
| 6567 | |
| 6568 | ; |
| 6569 | return 0; |
| 6570 | } |
| 6571 | _ACEOF |
| 6572 | rm -f conftest.$ac_objext |
| 6573 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6574 | (eval $ac_compile) 2>&5 |
| 6575 | ac_status=$? |
| 6576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6577 | (exit $ac_status); } && |
| 6578 | { ac_try='test -s conftest.$ac_objext' |
| 6579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6580 | (eval $ac_try) 2>&5 |
| 6581 | ac_status=$? |
| 6582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6583 | (exit $ac_status); }; }; then |
| 6584 | ac_hi=$ac_mid; break |
| 6585 | else |
| 6586 | echo "$as_me: failed program was:" >&5 |
| 6587 | cat conftest.$ac_ext >&5 |
| 6588 | ac_lo=`expr $ac_mid + 1` |
| 6589 | if test $ac_lo -le $ac_mid; then |
| 6590 | ac_lo= ac_hi= |
| 6591 | break |
| 6592 | fi |
| 6593 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6594 | fi |
| 6595 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6596 | done |
| 6597 | else |
| 6598 | echo "$as_me: failed program was:" >&5 |
| 6599 | cat conftest.$ac_ext >&5 |
| 6600 | cat >conftest.$ac_ext <<_ACEOF |
| 6601 | #line $LINENO "configure" |
| 6602 | #include "confdefs.h" |
| 6603 | $ac_includes_default |
| 6604 | #ifdef F77_DUMMY_MAIN |
| 6605 | # ifdef __cplusplus |
| 6606 | extern "C" |
| 6607 | # endif |
| 6608 | int F77_DUMMY_MAIN() { return 1; } |
| 6609 | #endif |
| 6610 | int |
| 6611 | main () |
| 6612 | { |
| 6613 | static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)]; |
| 6614 | test_array [0] = 0 |
| 6615 | |
| 6616 | ; |
| 6617 | return 0; |
| 6618 | } |
| 6619 | _ACEOF |
| 6620 | rm -f conftest.$ac_objext |
| 6621 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6622 | (eval $ac_compile) 2>&5 |
| 6623 | ac_status=$? |
| 6624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6625 | (exit $ac_status); } && |
| 6626 | { ac_try='test -s conftest.$ac_objext' |
| 6627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6628 | (eval $ac_try) 2>&5 |
| 6629 | ac_status=$? |
| 6630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6631 | (exit $ac_status); }; }; then |
| 6632 | ac_hi=-1 ac_mid=-1 |
| 6633 | while :; do |
| 6634 | cat >conftest.$ac_ext <<_ACEOF |
| 6635 | #line $LINENO "configure" |
| 6636 | #include "confdefs.h" |
| 6637 | $ac_includes_default |
| 6638 | #ifdef F77_DUMMY_MAIN |
| 6639 | # ifdef __cplusplus |
| 6640 | extern "C" |
| 6641 | # endif |
| 6642 | int F77_DUMMY_MAIN() { return 1; } |
| 6643 | #endif |
| 6644 | int |
| 6645 | main () |
| 6646 | { |
| 6647 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)]; |
| 6648 | test_array [0] = 0 |
| 6649 | |
| 6650 | ; |
| 6651 | return 0; |
| 6652 | } |
| 6653 | _ACEOF |
| 6654 | rm -f conftest.$ac_objext |
| 6655 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6656 | (eval $ac_compile) 2>&5 |
| 6657 | ac_status=$? |
| 6658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6659 | (exit $ac_status); } && |
| 6660 | { ac_try='test -s conftest.$ac_objext' |
| 6661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6662 | (eval $ac_try) 2>&5 |
| 6663 | ac_status=$? |
| 6664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6665 | (exit $ac_status); }; }; then |
| 6666 | ac_lo=$ac_mid; break |
| 6667 | else |
| 6668 | echo "$as_me: failed program was:" >&5 |
| 6669 | cat conftest.$ac_ext >&5 |
| 6670 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6671 | if test $ac_mid -le $ac_hi; then |
| 6672 | ac_lo= ac_hi= |
| 6673 | break |
| 6674 | fi |
| 6675 | ac_mid=`expr 2 '*' $ac_mid` |
| 6676 | fi |
| 6677 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6678 | done |
| 6679 | else |
| 6680 | echo "$as_me: failed program was:" >&5 |
| 6681 | cat conftest.$ac_ext >&5 |
| 6682 | ac_lo= ac_hi= |
| 6683 | fi |
| 6684 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6685 | fi |
| 6686 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6687 | # Binary search between lo and hi bounds. |
| 6688 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6689 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6690 | cat >conftest.$ac_ext <<_ACEOF |
| 6691 | #line $LINENO "configure" |
| 6692 | #include "confdefs.h" |
| 6693 | $ac_includes_default |
| 6694 | #ifdef F77_DUMMY_MAIN |
| 6695 | # ifdef __cplusplus |
| 6696 | extern "C" |
| 6697 | # endif |
| 6698 | int F77_DUMMY_MAIN() { return 1; } |
| 6699 | #endif |
| 6700 | int |
| 6701 | main () |
| 6702 | { |
| 6703 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 6704 | test_array [0] = 0 |
| 6705 | |
| 6706 | ; |
| 6707 | return 0; |
| 6708 | } |
| 6709 | _ACEOF |
| 6710 | rm -f conftest.$ac_objext |
| 6711 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6712 | (eval $ac_compile) 2>&5 |
| 6713 | ac_status=$? |
| 6714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6715 | (exit $ac_status); } && |
| 6716 | { ac_try='test -s conftest.$ac_objext' |
| 6717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6718 | (eval $ac_try) 2>&5 |
| 6719 | ac_status=$? |
| 6720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6721 | (exit $ac_status); }; }; then |
| 6722 | ac_hi=$ac_mid |
| 6723 | else |
| 6724 | echo "$as_me: failed program was:" >&5 |
| 6725 | cat conftest.$ac_ext >&5 |
| 6726 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6727 | fi |
| 6728 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6729 | done |
| 6730 | case $ac_lo in |
| 6731 | ?*) ac_cv_sizeof_float=$ac_lo;; |
| 6732 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5 |
| 6733 | echo "$as_me: error: cannot compute sizeof (float), 77" >&2;} |
| 6734 | { (exit 1); exit 1; }; } ;; |
| 6735 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6736 | else |
| 6737 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6738 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6739 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6740 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6741 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6742 | cat >conftest.$ac_ext <<_ACEOF |
| 6743 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6744 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6745 | $ac_includes_default |
| 6746 | long longval () { return (long) (sizeof (float)); } |
| 6747 | unsigned long ulongval () { return (long) (sizeof (float)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6748 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6749 | #include <stdlib.h> |
| 6750 | #ifdef F77_DUMMY_MAIN |
| 6751 | # ifdef __cplusplus |
| 6752 | extern "C" |
| 6753 | # endif |
| 6754 | int F77_DUMMY_MAIN() { return 1; } |
| 6755 | #endif |
| 6756 | int |
| 6757 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6758 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6759 | |
| 6760 | FILE *f = fopen ("conftest.val", "w"); |
| 6761 | if (! f) |
| 6762 | exit (1); |
| 6763 | if (((long) (sizeof (float))) < 0) |
| 6764 | { |
| 6765 | long i = longval (); |
| 6766 | if (i != ((long) (sizeof (float)))) |
| 6767 | exit (1); |
| 6768 | fprintf (f, "%ld\n", i); |
| 6769 | } |
| 6770 | else |
| 6771 | { |
| 6772 | unsigned long i = ulongval (); |
| 6773 | if (i != ((long) (sizeof (float)))) |
| 6774 | exit (1); |
| 6775 | fprintf (f, "%lu\n", i); |
| 6776 | } |
| 6777 | exit (ferror (f) || fclose (f) != 0); |
| 6778 | |
| 6779 | ; |
| 6780 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6781 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6782 | _ACEOF |
| 6783 | rm -f conftest$ac_exeext |
| 6784 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6785 | (eval $ac_link) 2>&5 |
| 6786 | ac_status=$? |
| 6787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6788 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6790 | (eval $ac_try) 2>&5 |
| 6791 | ac_status=$? |
| 6792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6793 | (exit $ac_status); }; }; then |
| 6794 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6795 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6796 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6797 | echo "$as_me: failed program was:" >&5 |
| 6798 | cat conftest.$ac_ext >&5 |
| 6799 | ( exit $ac_status ) |
| 6800 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5 |
| 6801 | echo "$as_me: error: cannot compute sizeof (float), 77" >&2;} |
| 6802 | { (exit 1); exit 1; }; } |
| 6803 | fi |
| 6804 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6805 | fi |
| 6806 | fi |
| 6807 | rm -f conftest.val |
| 6808 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6809 | ac_cv_sizeof_float=0 |
| 6810 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6811 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6812 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 6813 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6 |
| 6814 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6815 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6816 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6817 | |
| 6818 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6819 | echo "$as_me:$LINENO: checking for double" >&5 |
| 6820 | echo $ECHO_N "checking for double... $ECHO_C" >&6 |
| 6821 | if test "${ac_cv_type_double+set}" = set; then |
| 6822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6823 | else |
| 6824 | cat >conftest.$ac_ext <<_ACEOF |
| 6825 | #line $LINENO "configure" |
| 6826 | #include "confdefs.h" |
| 6827 | $ac_includes_default |
| 6828 | #ifdef F77_DUMMY_MAIN |
| 6829 | # ifdef __cplusplus |
| 6830 | extern "C" |
| 6831 | # endif |
| 6832 | int F77_DUMMY_MAIN() { return 1; } |
| 6833 | #endif |
| 6834 | int |
| 6835 | main () |
| 6836 | { |
| 6837 | if ((double *) 0) |
| 6838 | return 0; |
| 6839 | if (sizeof (double)) |
| 6840 | return 0; |
| 6841 | ; |
| 6842 | return 0; |
| 6843 | } |
| 6844 | _ACEOF |
| 6845 | rm -f conftest.$ac_objext |
| 6846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6847 | (eval $ac_compile) 2>&5 |
| 6848 | ac_status=$? |
| 6849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6850 | (exit $ac_status); } && |
| 6851 | { ac_try='test -s conftest.$ac_objext' |
| 6852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6853 | (eval $ac_try) 2>&5 |
| 6854 | ac_status=$? |
| 6855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6856 | (exit $ac_status); }; }; then |
| 6857 | ac_cv_type_double=yes |
| 6858 | else |
| 6859 | echo "$as_me: failed program was:" >&5 |
| 6860 | cat conftest.$ac_ext >&5 |
| 6861 | ac_cv_type_double=no |
| 6862 | fi |
| 6863 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6864 | fi |
| 6865 | echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 6866 | echo "${ECHO_T}$ac_cv_type_double" >&6 |
| 6867 | |
| 6868 | echo "$as_me:$LINENO: checking size of double" >&5 |
| 6869 | echo $ECHO_N "checking size of double... $ECHO_C" >&6 |
| 6870 | if test "${ac_cv_sizeof_double+set}" = set; then |
| 6871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6872 | else |
| 6873 | if test "$ac_cv_type_double" = yes; then |
| 6874 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6875 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6876 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6877 | # This bug is HP SR number 8606223364. |
| 6878 | if test "$cross_compiling" = yes; then |
| 6879 | # Depending upon the size, compute the lo and hi bounds. |
| 6880 | cat >conftest.$ac_ext <<_ACEOF |
| 6881 | #line $LINENO "configure" |
| 6882 | #include "confdefs.h" |
| 6883 | $ac_includes_default |
| 6884 | #ifdef F77_DUMMY_MAIN |
| 6885 | # ifdef __cplusplus |
| 6886 | extern "C" |
| 6887 | # endif |
| 6888 | int F77_DUMMY_MAIN() { return 1; } |
| 6889 | #endif |
| 6890 | int |
| 6891 | main () |
| 6892 | { |
| 6893 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)]; |
| 6894 | test_array [0] = 0 |
| 6895 | |
| 6896 | ; |
| 6897 | return 0; |
| 6898 | } |
| 6899 | _ACEOF |
| 6900 | rm -f conftest.$ac_objext |
| 6901 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6902 | (eval $ac_compile) 2>&5 |
| 6903 | ac_status=$? |
| 6904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6905 | (exit $ac_status); } && |
| 6906 | { ac_try='test -s conftest.$ac_objext' |
| 6907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6908 | (eval $ac_try) 2>&5 |
| 6909 | ac_status=$? |
| 6910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6911 | (exit $ac_status); }; }; then |
| 6912 | ac_lo=0 ac_mid=0 |
| 6913 | while :; do |
| 6914 | cat >conftest.$ac_ext <<_ACEOF |
| 6915 | #line $LINENO "configure" |
| 6916 | #include "confdefs.h" |
| 6917 | $ac_includes_default |
| 6918 | #ifdef F77_DUMMY_MAIN |
| 6919 | # ifdef __cplusplus |
| 6920 | extern "C" |
| 6921 | # endif |
| 6922 | int F77_DUMMY_MAIN() { return 1; } |
| 6923 | #endif |
| 6924 | int |
| 6925 | main () |
| 6926 | { |
| 6927 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 6928 | test_array [0] = 0 |
| 6929 | |
| 6930 | ; |
| 6931 | return 0; |
| 6932 | } |
| 6933 | _ACEOF |
| 6934 | rm -f conftest.$ac_objext |
| 6935 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6936 | (eval $ac_compile) 2>&5 |
| 6937 | ac_status=$? |
| 6938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6939 | (exit $ac_status); } && |
| 6940 | { ac_try='test -s conftest.$ac_objext' |
| 6941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6942 | (eval $ac_try) 2>&5 |
| 6943 | ac_status=$? |
| 6944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6945 | (exit $ac_status); }; }; then |
| 6946 | ac_hi=$ac_mid; break |
| 6947 | else |
| 6948 | echo "$as_me: failed program was:" >&5 |
| 6949 | cat conftest.$ac_ext >&5 |
| 6950 | ac_lo=`expr $ac_mid + 1` |
| 6951 | if test $ac_lo -le $ac_mid; then |
| 6952 | ac_lo= ac_hi= |
| 6953 | break |
| 6954 | fi |
| 6955 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6956 | fi |
| 6957 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6958 | done |
| 6959 | else |
| 6960 | echo "$as_me: failed program was:" >&5 |
| 6961 | cat conftest.$ac_ext >&5 |
| 6962 | cat >conftest.$ac_ext <<_ACEOF |
| 6963 | #line $LINENO "configure" |
| 6964 | #include "confdefs.h" |
| 6965 | $ac_includes_default |
| 6966 | #ifdef F77_DUMMY_MAIN |
| 6967 | # ifdef __cplusplus |
| 6968 | extern "C" |
| 6969 | # endif |
| 6970 | int F77_DUMMY_MAIN() { return 1; } |
| 6971 | #endif |
| 6972 | int |
| 6973 | main () |
| 6974 | { |
| 6975 | static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)]; |
| 6976 | test_array [0] = 0 |
| 6977 | |
| 6978 | ; |
| 6979 | return 0; |
| 6980 | } |
| 6981 | _ACEOF |
| 6982 | rm -f conftest.$ac_objext |
| 6983 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6984 | (eval $ac_compile) 2>&5 |
| 6985 | ac_status=$? |
| 6986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6987 | (exit $ac_status); } && |
| 6988 | { ac_try='test -s conftest.$ac_objext' |
| 6989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6990 | (eval $ac_try) 2>&5 |
| 6991 | ac_status=$? |
| 6992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6993 | (exit $ac_status); }; }; then |
| 6994 | ac_hi=-1 ac_mid=-1 |
| 6995 | while :; do |
| 6996 | cat >conftest.$ac_ext <<_ACEOF |
| 6997 | #line $LINENO "configure" |
| 6998 | #include "confdefs.h" |
| 6999 | $ac_includes_default |
| 7000 | #ifdef F77_DUMMY_MAIN |
| 7001 | # ifdef __cplusplus |
| 7002 | extern "C" |
| 7003 | # endif |
| 7004 | int F77_DUMMY_MAIN() { return 1; } |
| 7005 | #endif |
| 7006 | int |
| 7007 | main () |
| 7008 | { |
| 7009 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)]; |
| 7010 | test_array [0] = 0 |
| 7011 | |
| 7012 | ; |
| 7013 | return 0; |
| 7014 | } |
| 7015 | _ACEOF |
| 7016 | rm -f conftest.$ac_objext |
| 7017 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7018 | (eval $ac_compile) 2>&5 |
| 7019 | ac_status=$? |
| 7020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7021 | (exit $ac_status); } && |
| 7022 | { ac_try='test -s conftest.$ac_objext' |
| 7023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7024 | (eval $ac_try) 2>&5 |
| 7025 | ac_status=$? |
| 7026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7027 | (exit $ac_status); }; }; then |
| 7028 | ac_lo=$ac_mid; break |
| 7029 | else |
| 7030 | echo "$as_me: failed program was:" >&5 |
| 7031 | cat conftest.$ac_ext >&5 |
| 7032 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7033 | if test $ac_mid -le $ac_hi; then |
| 7034 | ac_lo= ac_hi= |
| 7035 | break |
| 7036 | fi |
| 7037 | ac_mid=`expr 2 '*' $ac_mid` |
| 7038 | fi |
| 7039 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7040 | done |
| 7041 | else |
| 7042 | echo "$as_me: failed program was:" >&5 |
| 7043 | cat conftest.$ac_ext >&5 |
| 7044 | ac_lo= ac_hi= |
| 7045 | fi |
| 7046 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7047 | fi |
| 7048 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7049 | # Binary search between lo and hi bounds. |
| 7050 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7051 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7052 | cat >conftest.$ac_ext <<_ACEOF |
| 7053 | #line $LINENO "configure" |
| 7054 | #include "confdefs.h" |
| 7055 | $ac_includes_default |
| 7056 | #ifdef F77_DUMMY_MAIN |
| 7057 | # ifdef __cplusplus |
| 7058 | extern "C" |
| 7059 | # endif |
| 7060 | int F77_DUMMY_MAIN() { return 1; } |
| 7061 | #endif |
| 7062 | int |
| 7063 | main () |
| 7064 | { |
| 7065 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 7066 | test_array [0] = 0 |
| 7067 | |
| 7068 | ; |
| 7069 | return 0; |
| 7070 | } |
| 7071 | _ACEOF |
| 7072 | rm -f conftest.$ac_objext |
| 7073 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7074 | (eval $ac_compile) 2>&5 |
| 7075 | ac_status=$? |
| 7076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7077 | (exit $ac_status); } && |
| 7078 | { ac_try='test -s conftest.$ac_objext' |
| 7079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7080 | (eval $ac_try) 2>&5 |
| 7081 | ac_status=$? |
| 7082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7083 | (exit $ac_status); }; }; then |
| 7084 | ac_hi=$ac_mid |
| 7085 | else |
| 7086 | echo "$as_me: failed program was:" >&5 |
| 7087 | cat conftest.$ac_ext >&5 |
| 7088 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7089 | fi |
| 7090 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7091 | done |
| 7092 | case $ac_lo in |
| 7093 | ?*) ac_cv_sizeof_double=$ac_lo;; |
| 7094 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5 |
| 7095 | echo "$as_me: error: cannot compute sizeof (double), 77" >&2;} |
| 7096 | { (exit 1); exit 1; }; } ;; |
| 7097 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7098 | else |
| 7099 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7100 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7101 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7102 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7103 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7104 | cat >conftest.$ac_ext <<_ACEOF |
| 7105 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7106 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7107 | $ac_includes_default |
| 7108 | long longval () { return (long) (sizeof (double)); } |
| 7109 | unsigned long ulongval () { return (long) (sizeof (double)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7110 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7111 | #include <stdlib.h> |
| 7112 | #ifdef F77_DUMMY_MAIN |
| 7113 | # ifdef __cplusplus |
| 7114 | extern "C" |
| 7115 | # endif |
| 7116 | int F77_DUMMY_MAIN() { return 1; } |
| 7117 | #endif |
| 7118 | int |
| 7119 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7120 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7121 | |
| 7122 | FILE *f = fopen ("conftest.val", "w"); |
| 7123 | if (! f) |
| 7124 | exit (1); |
| 7125 | if (((long) (sizeof (double))) < 0) |
| 7126 | { |
| 7127 | long i = longval (); |
| 7128 | if (i != ((long) (sizeof (double)))) |
| 7129 | exit (1); |
| 7130 | fprintf (f, "%ld\n", i); |
| 7131 | } |
| 7132 | else |
| 7133 | { |
| 7134 | unsigned long i = ulongval (); |
| 7135 | if (i != ((long) (sizeof (double)))) |
| 7136 | exit (1); |
| 7137 | fprintf (f, "%lu\n", i); |
| 7138 | } |
| 7139 | exit (ferror (f) || fclose (f) != 0); |
| 7140 | |
| 7141 | ; |
| 7142 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7143 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7144 | _ACEOF |
| 7145 | rm -f conftest$ac_exeext |
| 7146 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7147 | (eval $ac_link) 2>&5 |
| 7148 | ac_status=$? |
| 7149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7150 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7152 | (eval $ac_try) 2>&5 |
| 7153 | ac_status=$? |
| 7154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7155 | (exit $ac_status); }; }; then |
| 7156 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7157 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7158 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7159 | echo "$as_me: failed program was:" >&5 |
| 7160 | cat conftest.$ac_ext >&5 |
| 7161 | ( exit $ac_status ) |
| 7162 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5 |
| 7163 | echo "$as_me: error: cannot compute sizeof (double), 77" >&2;} |
| 7164 | { (exit 1); exit 1; }; } |
| 7165 | fi |
| 7166 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7167 | fi |
| 7168 | fi |
| 7169 | rm -f conftest.val |
| 7170 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7171 | ac_cv_sizeof_double=0 |
| 7172 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7173 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7174 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 7175 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6 |
| 7176 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7177 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7178 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7179 | |
| 7180 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7181 | echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 7182 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6 |
| 7183 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 7184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7185 | else |
| 7186 | cat >conftest.$ac_ext <<_ACEOF |
| 7187 | #line $LINENO "configure" |
| 7188 | #include "confdefs.h" |
| 7189 | $ac_includes_default |
| 7190 | #ifdef F77_DUMMY_MAIN |
| 7191 | # ifdef __cplusplus |
| 7192 | extern "C" |
| 7193 | # endif |
| 7194 | int F77_DUMMY_MAIN() { return 1; } |
| 7195 | #endif |
| 7196 | int |
| 7197 | main () |
| 7198 | { |
| 7199 | if ((fpos_t *) 0) |
| 7200 | return 0; |
| 7201 | if (sizeof (fpos_t)) |
| 7202 | return 0; |
| 7203 | ; |
| 7204 | return 0; |
| 7205 | } |
| 7206 | _ACEOF |
| 7207 | rm -f conftest.$ac_objext |
| 7208 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7209 | (eval $ac_compile) 2>&5 |
| 7210 | ac_status=$? |
| 7211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7212 | (exit $ac_status); } && |
| 7213 | { ac_try='test -s conftest.$ac_objext' |
| 7214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7215 | (eval $ac_try) 2>&5 |
| 7216 | ac_status=$? |
| 7217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7218 | (exit $ac_status); }; }; then |
| 7219 | ac_cv_type_fpos_t=yes |
| 7220 | else |
| 7221 | echo "$as_me: failed program was:" >&5 |
| 7222 | cat conftest.$ac_ext >&5 |
| 7223 | ac_cv_type_fpos_t=no |
| 7224 | fi |
| 7225 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7226 | fi |
| 7227 | echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 7228 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6 |
| 7229 | |
| 7230 | echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 7231 | echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6 |
| 7232 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| 7233 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7234 | else |
| 7235 | if test "$ac_cv_type_fpos_t" = yes; then |
| 7236 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7237 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7238 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7239 | # This bug is HP SR number 8606223364. |
| 7240 | if test "$cross_compiling" = yes; then |
| 7241 | # Depending upon the size, compute the lo and hi bounds. |
| 7242 | cat >conftest.$ac_ext <<_ACEOF |
| 7243 | #line $LINENO "configure" |
| 7244 | #include "confdefs.h" |
| 7245 | $ac_includes_default |
| 7246 | #ifdef F77_DUMMY_MAIN |
| 7247 | # ifdef __cplusplus |
| 7248 | extern "C" |
| 7249 | # endif |
| 7250 | int F77_DUMMY_MAIN() { return 1; } |
| 7251 | #endif |
| 7252 | int |
| 7253 | main () |
| 7254 | { |
| 7255 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)]; |
| 7256 | test_array [0] = 0 |
| 7257 | |
| 7258 | ; |
| 7259 | return 0; |
| 7260 | } |
| 7261 | _ACEOF |
| 7262 | rm -f conftest.$ac_objext |
| 7263 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7264 | (eval $ac_compile) 2>&5 |
| 7265 | ac_status=$? |
| 7266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7267 | (exit $ac_status); } && |
| 7268 | { ac_try='test -s conftest.$ac_objext' |
| 7269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7270 | (eval $ac_try) 2>&5 |
| 7271 | ac_status=$? |
| 7272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7273 | (exit $ac_status); }; }; then |
| 7274 | ac_lo=0 ac_mid=0 |
| 7275 | while :; do |
| 7276 | cat >conftest.$ac_ext <<_ACEOF |
| 7277 | #line $LINENO "configure" |
| 7278 | #include "confdefs.h" |
| 7279 | $ac_includes_default |
| 7280 | #ifdef F77_DUMMY_MAIN |
| 7281 | # ifdef __cplusplus |
| 7282 | extern "C" |
| 7283 | # endif |
| 7284 | int F77_DUMMY_MAIN() { return 1; } |
| 7285 | #endif |
| 7286 | int |
| 7287 | main () |
| 7288 | { |
| 7289 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 7290 | test_array [0] = 0 |
| 7291 | |
| 7292 | ; |
| 7293 | return 0; |
| 7294 | } |
| 7295 | _ACEOF |
| 7296 | rm -f conftest.$ac_objext |
| 7297 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7298 | (eval $ac_compile) 2>&5 |
| 7299 | ac_status=$? |
| 7300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7301 | (exit $ac_status); } && |
| 7302 | { ac_try='test -s conftest.$ac_objext' |
| 7303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7304 | (eval $ac_try) 2>&5 |
| 7305 | ac_status=$? |
| 7306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7307 | (exit $ac_status); }; }; then |
| 7308 | ac_hi=$ac_mid; break |
| 7309 | else |
| 7310 | echo "$as_me: failed program was:" >&5 |
| 7311 | cat conftest.$ac_ext >&5 |
| 7312 | ac_lo=`expr $ac_mid + 1` |
| 7313 | if test $ac_lo -le $ac_mid; then |
| 7314 | ac_lo= ac_hi= |
| 7315 | break |
| 7316 | fi |
| 7317 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7318 | fi |
| 7319 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7320 | done |
| 7321 | else |
| 7322 | echo "$as_me: failed program was:" >&5 |
| 7323 | cat conftest.$ac_ext >&5 |
| 7324 | cat >conftest.$ac_ext <<_ACEOF |
| 7325 | #line $LINENO "configure" |
| 7326 | #include "confdefs.h" |
| 7327 | $ac_includes_default |
| 7328 | #ifdef F77_DUMMY_MAIN |
| 7329 | # ifdef __cplusplus |
| 7330 | extern "C" |
| 7331 | # endif |
| 7332 | int F77_DUMMY_MAIN() { return 1; } |
| 7333 | #endif |
| 7334 | int |
| 7335 | main () |
| 7336 | { |
| 7337 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)]; |
| 7338 | test_array [0] = 0 |
| 7339 | |
| 7340 | ; |
| 7341 | return 0; |
| 7342 | } |
| 7343 | _ACEOF |
| 7344 | rm -f conftest.$ac_objext |
| 7345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7346 | (eval $ac_compile) 2>&5 |
| 7347 | ac_status=$? |
| 7348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7349 | (exit $ac_status); } && |
| 7350 | { ac_try='test -s conftest.$ac_objext' |
| 7351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7352 | (eval $ac_try) 2>&5 |
| 7353 | ac_status=$? |
| 7354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7355 | (exit $ac_status); }; }; then |
| 7356 | ac_hi=-1 ac_mid=-1 |
| 7357 | while :; do |
| 7358 | cat >conftest.$ac_ext <<_ACEOF |
| 7359 | #line $LINENO "configure" |
| 7360 | #include "confdefs.h" |
| 7361 | $ac_includes_default |
| 7362 | #ifdef F77_DUMMY_MAIN |
| 7363 | # ifdef __cplusplus |
| 7364 | extern "C" |
| 7365 | # endif |
| 7366 | int F77_DUMMY_MAIN() { return 1; } |
| 7367 | #endif |
| 7368 | int |
| 7369 | main () |
| 7370 | { |
| 7371 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)]; |
| 7372 | test_array [0] = 0 |
| 7373 | |
| 7374 | ; |
| 7375 | return 0; |
| 7376 | } |
| 7377 | _ACEOF |
| 7378 | rm -f conftest.$ac_objext |
| 7379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7380 | (eval $ac_compile) 2>&5 |
| 7381 | ac_status=$? |
| 7382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7383 | (exit $ac_status); } && |
| 7384 | { ac_try='test -s conftest.$ac_objext' |
| 7385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7386 | (eval $ac_try) 2>&5 |
| 7387 | ac_status=$? |
| 7388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7389 | (exit $ac_status); }; }; then |
| 7390 | ac_lo=$ac_mid; break |
| 7391 | else |
| 7392 | echo "$as_me: failed program was:" >&5 |
| 7393 | cat conftest.$ac_ext >&5 |
| 7394 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7395 | if test $ac_mid -le $ac_hi; then |
| 7396 | ac_lo= ac_hi= |
| 7397 | break |
| 7398 | fi |
| 7399 | ac_mid=`expr 2 '*' $ac_mid` |
| 7400 | fi |
| 7401 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7402 | done |
| 7403 | else |
| 7404 | echo "$as_me: failed program was:" >&5 |
| 7405 | cat conftest.$ac_ext >&5 |
| 7406 | ac_lo= ac_hi= |
| 7407 | fi |
| 7408 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7409 | fi |
| 7410 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7411 | # Binary search between lo and hi bounds. |
| 7412 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7413 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7414 | cat >conftest.$ac_ext <<_ACEOF |
| 7415 | #line $LINENO "configure" |
| 7416 | #include "confdefs.h" |
| 7417 | $ac_includes_default |
| 7418 | #ifdef F77_DUMMY_MAIN |
| 7419 | # ifdef __cplusplus |
| 7420 | extern "C" |
| 7421 | # endif |
| 7422 | int F77_DUMMY_MAIN() { return 1; } |
| 7423 | #endif |
| 7424 | int |
| 7425 | main () |
| 7426 | { |
| 7427 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 7428 | test_array [0] = 0 |
| 7429 | |
| 7430 | ; |
| 7431 | return 0; |
| 7432 | } |
| 7433 | _ACEOF |
| 7434 | rm -f conftest.$ac_objext |
| 7435 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7436 | (eval $ac_compile) 2>&5 |
| 7437 | ac_status=$? |
| 7438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7439 | (exit $ac_status); } && |
| 7440 | { ac_try='test -s conftest.$ac_objext' |
| 7441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7442 | (eval $ac_try) 2>&5 |
| 7443 | ac_status=$? |
| 7444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7445 | (exit $ac_status); }; }; then |
| 7446 | ac_hi=$ac_mid |
| 7447 | else |
| 7448 | echo "$as_me: failed program was:" >&5 |
| 7449 | cat conftest.$ac_ext >&5 |
| 7450 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7451 | fi |
| 7452 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7453 | done |
| 7454 | case $ac_lo in |
| 7455 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
| 7456 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5 |
| 7457 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;} |
| 7458 | { (exit 1); exit 1; }; } ;; |
| 7459 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7460 | else |
| 7461 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7462 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7463 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7464 | { (exit 1); exit 1; }; } |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7465 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7466 | cat >conftest.$ac_ext <<_ACEOF |
| 7467 | #line $LINENO "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7468 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7469 | $ac_includes_default |
| 7470 | long longval () { return (long) (sizeof (fpos_t)); } |
| 7471 | unsigned long ulongval () { return (long) (sizeof (fpos_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7472 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7473 | #include <stdlib.h> |
| 7474 | #ifdef F77_DUMMY_MAIN |
| 7475 | # ifdef __cplusplus |
| 7476 | extern "C" |
| 7477 | # endif |
| 7478 | int F77_DUMMY_MAIN() { return 1; } |
| 7479 | #endif |
| 7480 | int |
| 7481 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7482 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7483 | |
| 7484 | FILE *f = fopen ("conftest.val", "w"); |
| 7485 | if (! f) |
| 7486 | exit (1); |
| 7487 | if (((long) (sizeof (fpos_t))) < 0) |
| 7488 | { |
| 7489 | long i = longval (); |
| 7490 | if (i != ((long) (sizeof (fpos_t)))) |
| 7491 | exit (1); |
| 7492 | fprintf (f, "%ld\n", i); |
| 7493 | } |
| 7494 | else |
| 7495 | { |
| 7496 | unsigned long i = ulongval (); |
| 7497 | if (i != ((long) (sizeof (fpos_t)))) |
| 7498 | exit (1); |
| 7499 | fprintf (f, "%lu\n", i); |
| 7500 | } |
| 7501 | exit (ferror (f) || fclose (f) != 0); |
| 7502 | |
| 7503 | ; |
| 7504 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7505 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7506 | _ACEOF |
| 7507 | rm -f conftest$ac_exeext |
| 7508 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7509 | (eval $ac_link) 2>&5 |
| 7510 | ac_status=$? |
| 7511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7512 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7514 | (eval $ac_try) 2>&5 |
| 7515 | ac_status=$? |
| 7516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7517 | (exit $ac_status); }; }; then |
| 7518 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7519 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7520 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7521 | echo "$as_me: failed program was:" >&5 |
| 7522 | cat conftest.$ac_ext >&5 |
| 7523 | ( exit $ac_status ) |
| 7524 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5 |
| 7525 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;} |
| 7526 | { (exit 1); exit 1; }; } |
| 7527 | fi |
| 7528 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7529 | fi |
| 7530 | fi |
| 7531 | rm -f conftest.val |
| 7532 | else |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7533 | ac_cv_sizeof_fpos_t=0 |
| 7534 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7535 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7536 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 7537 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6 |
| 7538 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7539 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7540 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7541 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7542 | |
| 7543 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7544 | echo "$as_me:$LINENO: checking for long long support" >&5 |
| 7545 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7546 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7547 | cat >conftest.$ac_ext <<_ACEOF |
| 7548 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7549 | #include "confdefs.h" |
| 7550 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7551 | #ifdef F77_DUMMY_MAIN |
| 7552 | # ifdef __cplusplus |
| 7553 | extern "C" |
| 7554 | # endif |
| 7555 | int F77_DUMMY_MAIN() { return 1; } |
| 7556 | #endif |
| 7557 | int |
| 7558 | main () |
| 7559 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7560 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7561 | ; |
| 7562 | return 0; |
| 7563 | } |
| 7564 | _ACEOF |
| 7565 | rm -f conftest.$ac_objext |
| 7566 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7567 | (eval $ac_compile) 2>&5 |
| 7568 | ac_status=$? |
| 7569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7570 | (exit $ac_status); } && |
| 7571 | { ac_try='test -s conftest.$ac_objext' |
| 7572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7573 | (eval $ac_try) 2>&5 |
| 7574 | ac_status=$? |
| 7575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7576 | (exit $ac_status); }; }; then |
| 7577 | |
| 7578 | |
| 7579 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7580 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7581 | _ACEOF |
| 7582 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 7583 | have_long_long=yes |
| 7584 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7585 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7586 | echo "$as_me: failed program was:" >&5 |
| 7587 | cat conftest.$ac_ext >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7588 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7589 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7590 | echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 7591 | echo "${ECHO_T}$have_long_long" >&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 7592 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7593 | echo "$as_me:$LINENO: checking for long long" >&5 |
| 7594 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 7595 | if test "${ac_cv_type_long_long+set}" = set; then |
| 7596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7597 | else |
| 7598 | cat >conftest.$ac_ext <<_ACEOF |
| 7599 | #line $LINENO "configure" |
| 7600 | #include "confdefs.h" |
| 7601 | $ac_includes_default |
| 7602 | #ifdef F77_DUMMY_MAIN |
| 7603 | # ifdef __cplusplus |
| 7604 | extern "C" |
| 7605 | # endif |
| 7606 | int F77_DUMMY_MAIN() { return 1; } |
| 7607 | #endif |
| 7608 | int |
| 7609 | main () |
| 7610 | { |
| 7611 | if ((long long *) 0) |
| 7612 | return 0; |
| 7613 | if (sizeof (long long)) |
| 7614 | return 0; |
| 7615 | ; |
| 7616 | return 0; |
| 7617 | } |
| 7618 | _ACEOF |
| 7619 | rm -f conftest.$ac_objext |
| 7620 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7621 | (eval $ac_compile) 2>&5 |
| 7622 | ac_status=$? |
| 7623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7624 | (exit $ac_status); } && |
| 7625 | { ac_try='test -s conftest.$ac_objext' |
| 7626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7627 | (eval $ac_try) 2>&5 |
| 7628 | ac_status=$? |
| 7629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7630 | (exit $ac_status); }; }; then |
| 7631 | ac_cv_type_long_long=yes |
| 7632 | else |
| 7633 | echo "$as_me: failed program was:" >&5 |
| 7634 | cat conftest.$ac_ext >&5 |
| 7635 | ac_cv_type_long_long=no |
| 7636 | fi |
| 7637 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7638 | fi |
| 7639 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 7640 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 7641 | |
| 7642 | echo "$as_me:$LINENO: checking size of long long" >&5 |
| 7643 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 7644 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 7645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7646 | else |
| 7647 | if test "$ac_cv_type_long_long" = yes; then |
| 7648 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7649 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7650 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7651 | # This bug is HP SR number 8606223364. |
| 7652 | if test "$cross_compiling" = yes; then |
| 7653 | # Depending upon the size, compute the lo and hi bounds. |
| 7654 | cat >conftest.$ac_ext <<_ACEOF |
| 7655 | #line $LINENO "configure" |
| 7656 | #include "confdefs.h" |
| 7657 | $ac_includes_default |
| 7658 | #ifdef F77_DUMMY_MAIN |
| 7659 | # ifdef __cplusplus |
| 7660 | extern "C" |
| 7661 | # endif |
| 7662 | int F77_DUMMY_MAIN() { return 1; } |
| 7663 | #endif |
| 7664 | int |
| 7665 | main () |
| 7666 | { |
| 7667 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
| 7668 | test_array [0] = 0 |
| 7669 | |
| 7670 | ; |
| 7671 | return 0; |
| 7672 | } |
| 7673 | _ACEOF |
| 7674 | rm -f conftest.$ac_objext |
| 7675 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7676 | (eval $ac_compile) 2>&5 |
| 7677 | ac_status=$? |
| 7678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7679 | (exit $ac_status); } && |
| 7680 | { ac_try='test -s conftest.$ac_objext' |
| 7681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7682 | (eval $ac_try) 2>&5 |
| 7683 | ac_status=$? |
| 7684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7685 | (exit $ac_status); }; }; then |
| 7686 | ac_lo=0 ac_mid=0 |
| 7687 | while :; do |
| 7688 | cat >conftest.$ac_ext <<_ACEOF |
| 7689 | #line $LINENO "configure" |
| 7690 | #include "confdefs.h" |
| 7691 | $ac_includes_default |
| 7692 | #ifdef F77_DUMMY_MAIN |
| 7693 | # ifdef __cplusplus |
| 7694 | extern "C" |
| 7695 | # endif |
| 7696 | int F77_DUMMY_MAIN() { return 1; } |
| 7697 | #endif |
| 7698 | int |
| 7699 | main () |
| 7700 | { |
| 7701 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 7702 | test_array [0] = 0 |
| 7703 | |
| 7704 | ; |
| 7705 | return 0; |
| 7706 | } |
| 7707 | _ACEOF |
| 7708 | rm -f conftest.$ac_objext |
| 7709 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7710 | (eval $ac_compile) 2>&5 |
| 7711 | ac_status=$? |
| 7712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7713 | (exit $ac_status); } && |
| 7714 | { ac_try='test -s conftest.$ac_objext' |
| 7715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7716 | (eval $ac_try) 2>&5 |
| 7717 | ac_status=$? |
| 7718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7719 | (exit $ac_status); }; }; then |
| 7720 | ac_hi=$ac_mid; break |
| 7721 | else |
| 7722 | echo "$as_me: failed program was:" >&5 |
| 7723 | cat conftest.$ac_ext >&5 |
| 7724 | ac_lo=`expr $ac_mid + 1` |
| 7725 | if test $ac_lo -le $ac_mid; then |
| 7726 | ac_lo= ac_hi= |
| 7727 | break |
| 7728 | fi |
| 7729 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7730 | fi |
| 7731 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7732 | done |
| 7733 | else |
| 7734 | echo "$as_me: failed program was:" >&5 |
| 7735 | cat conftest.$ac_ext >&5 |
| 7736 | cat >conftest.$ac_ext <<_ACEOF |
| 7737 | #line $LINENO "configure" |
| 7738 | #include "confdefs.h" |
| 7739 | $ac_includes_default |
| 7740 | #ifdef F77_DUMMY_MAIN |
| 7741 | # ifdef __cplusplus |
| 7742 | extern "C" |
| 7743 | # endif |
| 7744 | int F77_DUMMY_MAIN() { return 1; } |
| 7745 | #endif |
| 7746 | int |
| 7747 | main () |
| 7748 | { |
| 7749 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| 7750 | test_array [0] = 0 |
| 7751 | |
| 7752 | ; |
| 7753 | return 0; |
| 7754 | } |
| 7755 | _ACEOF |
| 7756 | rm -f conftest.$ac_objext |
| 7757 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7758 | (eval $ac_compile) 2>&5 |
| 7759 | ac_status=$? |
| 7760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7761 | (exit $ac_status); } && |
| 7762 | { ac_try='test -s conftest.$ac_objext' |
| 7763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7764 | (eval $ac_try) 2>&5 |
| 7765 | ac_status=$? |
| 7766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7767 | (exit $ac_status); }; }; then |
| 7768 | ac_hi=-1 ac_mid=-1 |
| 7769 | while :; do |
| 7770 | cat >conftest.$ac_ext <<_ACEOF |
| 7771 | #line $LINENO "configure" |
| 7772 | #include "confdefs.h" |
| 7773 | $ac_includes_default |
| 7774 | #ifdef F77_DUMMY_MAIN |
| 7775 | # ifdef __cplusplus |
| 7776 | extern "C" |
| 7777 | # endif |
| 7778 | int F77_DUMMY_MAIN() { return 1; } |
| 7779 | #endif |
| 7780 | int |
| 7781 | main () |
| 7782 | { |
| 7783 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| 7784 | test_array [0] = 0 |
| 7785 | |
| 7786 | ; |
| 7787 | return 0; |
| 7788 | } |
| 7789 | _ACEOF |
| 7790 | rm -f conftest.$ac_objext |
| 7791 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7792 | (eval $ac_compile) 2>&5 |
| 7793 | ac_status=$? |
| 7794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7795 | (exit $ac_status); } && |
| 7796 | { ac_try='test -s conftest.$ac_objext' |
| 7797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7798 | (eval $ac_try) 2>&5 |
| 7799 | ac_status=$? |
| 7800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7801 | (exit $ac_status); }; }; then |
| 7802 | ac_lo=$ac_mid; break |
| 7803 | else |
| 7804 | echo "$as_me: failed program was:" >&5 |
| 7805 | cat conftest.$ac_ext >&5 |
| 7806 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7807 | if test $ac_mid -le $ac_hi; then |
| 7808 | ac_lo= ac_hi= |
| 7809 | break |
| 7810 | fi |
| 7811 | ac_mid=`expr 2 '*' $ac_mid` |
| 7812 | fi |
| 7813 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7814 | done |
| 7815 | else |
| 7816 | echo "$as_me: failed program was:" >&5 |
| 7817 | cat conftest.$ac_ext >&5 |
| 7818 | ac_lo= ac_hi= |
| 7819 | fi |
| 7820 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7821 | fi |
| 7822 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7823 | # Binary search between lo and hi bounds. |
| 7824 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7825 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7826 | cat >conftest.$ac_ext <<_ACEOF |
| 7827 | #line $LINENO "configure" |
| 7828 | #include "confdefs.h" |
| 7829 | $ac_includes_default |
| 7830 | #ifdef F77_DUMMY_MAIN |
| 7831 | # ifdef __cplusplus |
| 7832 | extern "C" |
| 7833 | # endif |
| 7834 | int F77_DUMMY_MAIN() { return 1; } |
| 7835 | #endif |
| 7836 | int |
| 7837 | main () |
| 7838 | { |
| 7839 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 7840 | test_array [0] = 0 |
| 7841 | |
| 7842 | ; |
| 7843 | return 0; |
| 7844 | } |
| 7845 | _ACEOF |
| 7846 | rm -f conftest.$ac_objext |
| 7847 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7848 | (eval $ac_compile) 2>&5 |
| 7849 | ac_status=$? |
| 7850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7851 | (exit $ac_status); } && |
| 7852 | { ac_try='test -s conftest.$ac_objext' |
| 7853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7854 | (eval $ac_try) 2>&5 |
| 7855 | ac_status=$? |
| 7856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7857 | (exit $ac_status); }; }; then |
| 7858 | ac_hi=$ac_mid |
| 7859 | else |
| 7860 | echo "$as_me: failed program was:" >&5 |
| 7861 | cat conftest.$ac_ext >&5 |
| 7862 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7863 | fi |
| 7864 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7865 | done |
| 7866 | case $ac_lo in |
| 7867 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
| 7868 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 7869 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 7870 | { (exit 1); exit 1; }; } ;; |
| 7871 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7872 | else |
| 7873 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7874 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7875 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7876 | { (exit 1); exit 1; }; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7877 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7878 | cat >conftest.$ac_ext <<_ACEOF |
| 7879 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7880 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7881 | $ac_includes_default |
| 7882 | long longval () { return (long) (sizeof (long long)); } |
| 7883 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7884 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7885 | #include <stdlib.h> |
| 7886 | #ifdef F77_DUMMY_MAIN |
| 7887 | # ifdef __cplusplus |
| 7888 | extern "C" |
| 7889 | # endif |
| 7890 | int F77_DUMMY_MAIN() { return 1; } |
| 7891 | #endif |
| 7892 | int |
| 7893 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7894 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7895 | |
| 7896 | FILE *f = fopen ("conftest.val", "w"); |
| 7897 | if (! f) |
| 7898 | exit (1); |
| 7899 | if (((long) (sizeof (long long))) < 0) |
| 7900 | { |
| 7901 | long i = longval (); |
| 7902 | if (i != ((long) (sizeof (long long)))) |
| 7903 | exit (1); |
| 7904 | fprintf (f, "%ld\n", i); |
| 7905 | } |
| 7906 | else |
| 7907 | { |
| 7908 | unsigned long i = ulongval (); |
| 7909 | if (i != ((long) (sizeof (long long)))) |
| 7910 | exit (1); |
| 7911 | fprintf (f, "%lu\n", i); |
| 7912 | } |
| 7913 | exit (ferror (f) || fclose (f) != 0); |
| 7914 | |
| 7915 | ; |
| 7916 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7917 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7918 | _ACEOF |
| 7919 | rm -f conftest$ac_exeext |
| 7920 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7921 | (eval $ac_link) 2>&5 |
| 7922 | ac_status=$? |
| 7923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7924 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7926 | (eval $ac_try) 2>&5 |
| 7927 | ac_status=$? |
| 7928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7929 | (exit $ac_status); }; }; then |
| 7930 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7931 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7932 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7933 | echo "$as_me: failed program was:" >&5 |
| 7934 | cat conftest.$ac_ext >&5 |
| 7935 | ( exit $ac_status ) |
| 7936 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 7937 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 7938 | { (exit 1); exit 1; }; } |
| 7939 | fi |
| 7940 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7941 | fi |
| 7942 | fi |
| 7943 | rm -f conftest.val |
| 7944 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7945 | ac_cv_sizeof_long_long=0 |
| 7946 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7947 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7948 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 7949 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
| 7950 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7951 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7952 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7953 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7954 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7955 | fi |
| 7956 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7957 | echo "$as_me:$LINENO: checking for uintptr_t support" >&5 |
| 7958 | echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7959 | have_uintptr_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7960 | cat >conftest.$ac_ext <<_ACEOF |
| 7961 | #line $LINENO "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7962 | #include "confdefs.h" |
| 7963 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7964 | #ifdef F77_DUMMY_MAIN |
| 7965 | # ifdef __cplusplus |
| 7966 | extern "C" |
| 7967 | # endif |
| 7968 | int F77_DUMMY_MAIN() { return 1; } |
| 7969 | #endif |
| 7970 | int |
| 7971 | main () |
| 7972 | { |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7973 | uintptr_t x; x = (uintptr_t)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7974 | ; |
| 7975 | return 0; |
| 7976 | } |
| 7977 | _ACEOF |
| 7978 | rm -f conftest.$ac_objext |
| 7979 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7980 | (eval $ac_compile) 2>&5 |
| 7981 | ac_status=$? |
| 7982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7983 | (exit $ac_status); } && |
| 7984 | { ac_try='test -s conftest.$ac_objext' |
| 7985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7986 | (eval $ac_try) 2>&5 |
| 7987 | ac_status=$? |
| 7988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7989 | (exit $ac_status); }; }; then |
| 7990 | |
| 7991 | |
| 7992 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7993 | #define HAVE_UINTPTR_T 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7994 | _ACEOF |
| 7995 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 7996 | have_uintptr_t=yes |
| 7997 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7998 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7999 | echo "$as_me: failed program was:" >&5 |
| 8000 | cat conftest.$ac_ext >&5 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8001 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8002 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8003 | echo "$as_me:$LINENO: result: $have_uintptr_t" >&5 |
| 8004 | echo "${ECHO_T}$have_uintptr_t" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8005 | if test "$have_uintptr_t" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8006 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 8007 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 8008 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 8009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8010 | else |
| 8011 | cat >conftest.$ac_ext <<_ACEOF |
| 8012 | #line $LINENO "configure" |
| 8013 | #include "confdefs.h" |
| 8014 | $ac_includes_default |
| 8015 | #ifdef F77_DUMMY_MAIN |
| 8016 | # ifdef __cplusplus |
| 8017 | extern "C" |
| 8018 | # endif |
| 8019 | int F77_DUMMY_MAIN() { return 1; } |
| 8020 | #endif |
| 8021 | int |
| 8022 | main () |
| 8023 | { |
| 8024 | if ((uintptr_t *) 0) |
| 8025 | return 0; |
| 8026 | if (sizeof (uintptr_t)) |
| 8027 | return 0; |
| 8028 | ; |
| 8029 | return 0; |
| 8030 | } |
| 8031 | _ACEOF |
| 8032 | rm -f conftest.$ac_objext |
| 8033 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8034 | (eval $ac_compile) 2>&5 |
| 8035 | ac_status=$? |
| 8036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8037 | (exit $ac_status); } && |
| 8038 | { ac_try='test -s conftest.$ac_objext' |
| 8039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8040 | (eval $ac_try) 2>&5 |
| 8041 | ac_status=$? |
| 8042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8043 | (exit $ac_status); }; }; then |
| 8044 | ac_cv_type_uintptr_t=yes |
| 8045 | else |
| 8046 | echo "$as_me: failed program was:" >&5 |
| 8047 | cat conftest.$ac_ext >&5 |
| 8048 | ac_cv_type_uintptr_t=no |
| 8049 | fi |
| 8050 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8051 | fi |
| 8052 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 8053 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 8054 | |
| 8055 | echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 8056 | echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6 |
| 8057 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| 8058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8059 | else |
| 8060 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 8061 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8062 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8063 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8064 | # This bug is HP SR number 8606223364. |
| 8065 | if test "$cross_compiling" = yes; then |
| 8066 | # Depending upon the size, compute the lo and hi bounds. |
| 8067 | cat >conftest.$ac_ext <<_ACEOF |
| 8068 | #line $LINENO "configure" |
| 8069 | #include "confdefs.h" |
| 8070 | $ac_includes_default |
| 8071 | #ifdef F77_DUMMY_MAIN |
| 8072 | # ifdef __cplusplus |
| 8073 | extern "C" |
| 8074 | # endif |
| 8075 | int F77_DUMMY_MAIN() { return 1; } |
| 8076 | #endif |
| 8077 | int |
| 8078 | main () |
| 8079 | { |
| 8080 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)]; |
| 8081 | test_array [0] = 0 |
| 8082 | |
| 8083 | ; |
| 8084 | return 0; |
| 8085 | } |
| 8086 | _ACEOF |
| 8087 | rm -f conftest.$ac_objext |
| 8088 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8089 | (eval $ac_compile) 2>&5 |
| 8090 | ac_status=$? |
| 8091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8092 | (exit $ac_status); } && |
| 8093 | { ac_try='test -s conftest.$ac_objext' |
| 8094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8095 | (eval $ac_try) 2>&5 |
| 8096 | ac_status=$? |
| 8097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8098 | (exit $ac_status); }; }; then |
| 8099 | ac_lo=0 ac_mid=0 |
| 8100 | while :; do |
| 8101 | cat >conftest.$ac_ext <<_ACEOF |
| 8102 | #line $LINENO "configure" |
| 8103 | #include "confdefs.h" |
| 8104 | $ac_includes_default |
| 8105 | #ifdef F77_DUMMY_MAIN |
| 8106 | # ifdef __cplusplus |
| 8107 | extern "C" |
| 8108 | # endif |
| 8109 | int F77_DUMMY_MAIN() { return 1; } |
| 8110 | #endif |
| 8111 | int |
| 8112 | main () |
| 8113 | { |
| 8114 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 8115 | test_array [0] = 0 |
| 8116 | |
| 8117 | ; |
| 8118 | return 0; |
| 8119 | } |
| 8120 | _ACEOF |
| 8121 | rm -f conftest.$ac_objext |
| 8122 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8123 | (eval $ac_compile) 2>&5 |
| 8124 | ac_status=$? |
| 8125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8126 | (exit $ac_status); } && |
| 8127 | { ac_try='test -s conftest.$ac_objext' |
| 8128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8129 | (eval $ac_try) 2>&5 |
| 8130 | ac_status=$? |
| 8131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8132 | (exit $ac_status); }; }; then |
| 8133 | ac_hi=$ac_mid; break |
| 8134 | else |
| 8135 | echo "$as_me: failed program was:" >&5 |
| 8136 | cat conftest.$ac_ext >&5 |
| 8137 | ac_lo=`expr $ac_mid + 1` |
| 8138 | if test $ac_lo -le $ac_mid; then |
| 8139 | ac_lo= ac_hi= |
| 8140 | break |
| 8141 | fi |
| 8142 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8143 | fi |
| 8144 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8145 | done |
| 8146 | else |
| 8147 | echo "$as_me: failed program was:" >&5 |
| 8148 | cat conftest.$ac_ext >&5 |
| 8149 | cat >conftest.$ac_ext <<_ACEOF |
| 8150 | #line $LINENO "configure" |
| 8151 | #include "confdefs.h" |
| 8152 | $ac_includes_default |
| 8153 | #ifdef F77_DUMMY_MAIN |
| 8154 | # ifdef __cplusplus |
| 8155 | extern "C" |
| 8156 | # endif |
| 8157 | int F77_DUMMY_MAIN() { return 1; } |
| 8158 | #endif |
| 8159 | int |
| 8160 | main () |
| 8161 | { |
| 8162 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)]; |
| 8163 | test_array [0] = 0 |
| 8164 | |
| 8165 | ; |
| 8166 | return 0; |
| 8167 | } |
| 8168 | _ACEOF |
| 8169 | rm -f conftest.$ac_objext |
| 8170 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8171 | (eval $ac_compile) 2>&5 |
| 8172 | ac_status=$? |
| 8173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8174 | (exit $ac_status); } && |
| 8175 | { ac_try='test -s conftest.$ac_objext' |
| 8176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8177 | (eval $ac_try) 2>&5 |
| 8178 | ac_status=$? |
| 8179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8180 | (exit $ac_status); }; }; then |
| 8181 | ac_hi=-1 ac_mid=-1 |
| 8182 | while :; do |
| 8183 | cat >conftest.$ac_ext <<_ACEOF |
| 8184 | #line $LINENO "configure" |
| 8185 | #include "confdefs.h" |
| 8186 | $ac_includes_default |
| 8187 | #ifdef F77_DUMMY_MAIN |
| 8188 | # ifdef __cplusplus |
| 8189 | extern "C" |
| 8190 | # endif |
| 8191 | int F77_DUMMY_MAIN() { return 1; } |
| 8192 | #endif |
| 8193 | int |
| 8194 | main () |
| 8195 | { |
| 8196 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)]; |
| 8197 | test_array [0] = 0 |
| 8198 | |
| 8199 | ; |
| 8200 | return 0; |
| 8201 | } |
| 8202 | _ACEOF |
| 8203 | rm -f conftest.$ac_objext |
| 8204 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8205 | (eval $ac_compile) 2>&5 |
| 8206 | ac_status=$? |
| 8207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8208 | (exit $ac_status); } && |
| 8209 | { ac_try='test -s conftest.$ac_objext' |
| 8210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8211 | (eval $ac_try) 2>&5 |
| 8212 | ac_status=$? |
| 8213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8214 | (exit $ac_status); }; }; then |
| 8215 | ac_lo=$ac_mid; break |
| 8216 | else |
| 8217 | echo "$as_me: failed program was:" >&5 |
| 8218 | cat conftest.$ac_ext >&5 |
| 8219 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8220 | if test $ac_mid -le $ac_hi; then |
| 8221 | ac_lo= ac_hi= |
| 8222 | break |
| 8223 | fi |
| 8224 | ac_mid=`expr 2 '*' $ac_mid` |
| 8225 | fi |
| 8226 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8227 | done |
| 8228 | else |
| 8229 | echo "$as_me: failed program was:" >&5 |
| 8230 | cat conftest.$ac_ext >&5 |
| 8231 | ac_lo= ac_hi= |
| 8232 | fi |
| 8233 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8234 | fi |
| 8235 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8236 | # Binary search between lo and hi bounds. |
| 8237 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8238 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8239 | cat >conftest.$ac_ext <<_ACEOF |
| 8240 | #line $LINENO "configure" |
| 8241 | #include "confdefs.h" |
| 8242 | $ac_includes_default |
| 8243 | #ifdef F77_DUMMY_MAIN |
| 8244 | # ifdef __cplusplus |
| 8245 | extern "C" |
| 8246 | # endif |
| 8247 | int F77_DUMMY_MAIN() { return 1; } |
| 8248 | #endif |
| 8249 | int |
| 8250 | main () |
| 8251 | { |
| 8252 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 8253 | test_array [0] = 0 |
| 8254 | |
| 8255 | ; |
| 8256 | return 0; |
| 8257 | } |
| 8258 | _ACEOF |
| 8259 | rm -f conftest.$ac_objext |
| 8260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8261 | (eval $ac_compile) 2>&5 |
| 8262 | ac_status=$? |
| 8263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8264 | (exit $ac_status); } && |
| 8265 | { ac_try='test -s conftest.$ac_objext' |
| 8266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8267 | (eval $ac_try) 2>&5 |
| 8268 | ac_status=$? |
| 8269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8270 | (exit $ac_status); }; }; then |
| 8271 | ac_hi=$ac_mid |
| 8272 | else |
| 8273 | echo "$as_me: failed program was:" >&5 |
| 8274 | cat conftest.$ac_ext >&5 |
| 8275 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8276 | fi |
| 8277 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8278 | done |
| 8279 | case $ac_lo in |
| 8280 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
| 8281 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5 |
| 8282 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;} |
| 8283 | { (exit 1); exit 1; }; } ;; |
| 8284 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8285 | else |
| 8286 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8287 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 8288 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 8289 | { (exit 1); exit 1; }; } |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8290 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8291 | cat >conftest.$ac_ext <<_ACEOF |
| 8292 | #line $LINENO "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8293 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8294 | $ac_includes_default |
| 8295 | long longval () { return (long) (sizeof (uintptr_t)); } |
| 8296 | unsigned long ulongval () { return (long) (sizeof (uintptr_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8297 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8298 | #include <stdlib.h> |
| 8299 | #ifdef F77_DUMMY_MAIN |
| 8300 | # ifdef __cplusplus |
| 8301 | extern "C" |
| 8302 | # endif |
| 8303 | int F77_DUMMY_MAIN() { return 1; } |
| 8304 | #endif |
| 8305 | int |
| 8306 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8307 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8308 | |
| 8309 | FILE *f = fopen ("conftest.val", "w"); |
| 8310 | if (! f) |
| 8311 | exit (1); |
| 8312 | if (((long) (sizeof (uintptr_t))) < 0) |
| 8313 | { |
| 8314 | long i = longval (); |
| 8315 | if (i != ((long) (sizeof (uintptr_t)))) |
| 8316 | exit (1); |
| 8317 | fprintf (f, "%ld\n", i); |
| 8318 | } |
| 8319 | else |
| 8320 | { |
| 8321 | unsigned long i = ulongval (); |
| 8322 | if (i != ((long) (sizeof (uintptr_t)))) |
| 8323 | exit (1); |
| 8324 | fprintf (f, "%lu\n", i); |
| 8325 | } |
| 8326 | exit (ferror (f) || fclose (f) != 0); |
| 8327 | |
| 8328 | ; |
| 8329 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8330 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8331 | _ACEOF |
| 8332 | rm -f conftest$ac_exeext |
| 8333 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8334 | (eval $ac_link) 2>&5 |
| 8335 | ac_status=$? |
| 8336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8337 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8339 | (eval $ac_try) 2>&5 |
| 8340 | ac_status=$? |
| 8341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8342 | (exit $ac_status); }; }; then |
| 8343 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8344 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8345 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8346 | echo "$as_me: failed program was:" >&5 |
| 8347 | cat conftest.$ac_ext >&5 |
| 8348 | ( exit $ac_status ) |
| 8349 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5 |
| 8350 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;} |
| 8351 | { (exit 1); exit 1; }; } |
| 8352 | fi |
| 8353 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8354 | fi |
| 8355 | fi |
| 8356 | rm -f conftest.val |
| 8357 | else |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8358 | ac_cv_sizeof_uintptr_t=0 |
| 8359 | fi |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8360 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8361 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 8362 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6 |
| 8363 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8364 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8365 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8366 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8367 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8368 | fi |
| 8369 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8370 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8371 | echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 8372 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 |
| 8373 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 8374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8375 | else |
| 8376 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 8377 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8378 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8379 | cat >conftest.$ac_ext <<_ACEOF |
| 8380 | #line $LINENO "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8381 | #include "confdefs.h" |
| 8382 | #include <stdio.h> |
| 8383 | #include <sys/types.h> |
| 8384 | main() |
| 8385 | { |
| 8386 | FILE *f=fopen("conftestval", "w"); |
| 8387 | if (!f) exit(1); |
| 8388 | fprintf(f, "%d\n", sizeof(off_t)); |
| 8389 | exit(0); |
| 8390 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8391 | _ACEOF |
| 8392 | rm -f conftest$ac_exeext |
| 8393 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8394 | (eval $ac_link) 2>&5 |
| 8395 | ac_status=$? |
| 8396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8397 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8399 | (eval $ac_try) 2>&5 |
| 8400 | ac_status=$? |
| 8401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8402 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8403 | ac_cv_sizeof_off_t=`cat conftestval` |
| 8404 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8405 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8406 | echo "$as_me: failed program was:" >&5 |
| 8407 | cat conftest.$ac_ext >&5 |
| 8408 | ( exit $ac_status ) |
| 8409 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8410 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8411 | 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] | 8412 | fi |
| 8413 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8414 | fi |
| 8415 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8416 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 8417 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 |
| 8418 | |
| 8419 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8420 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8421 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8422 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8423 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8424 | echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 8425 | 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] | 8426 | if test "$have_long_long" = yes -a \ |
| 8427 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 8428 | "$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] | 8429 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8430 | cat >>confdefs.h <<\_ACEOF |
| 8431 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 8432 | _ACEOF |
| 8433 | |
| 8434 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8435 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8436 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8437 | echo "$as_me:$LINENO: result: no" >&5 |
| 8438 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8439 | fi |
| 8440 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8441 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8442 | echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 8443 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6 |
| 8444 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 8445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8446 | else |
| 8447 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 8448 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8449 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8450 | cat >conftest.$ac_ext <<_ACEOF |
| 8451 | #line $LINENO "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8452 | #include "confdefs.h" |
| 8453 | #include <stdio.h> |
| 8454 | #include <time.h> |
| 8455 | main() |
| 8456 | { |
| 8457 | FILE *f=fopen("conftestval", "w"); |
| 8458 | if (!f) exit(1); |
| 8459 | fprintf(f, "%d\n", sizeof(time_t)); |
| 8460 | exit(0); |
| 8461 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8462 | _ACEOF |
| 8463 | rm -f conftest$ac_exeext |
| 8464 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8465 | (eval $ac_link) 2>&5 |
| 8466 | ac_status=$? |
| 8467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8468 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8470 | (eval $ac_try) 2>&5 |
| 8471 | ac_status=$? |
| 8472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8473 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8474 | ac_cv_sizeof_time_t=`cat conftestval` |
| 8475 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8476 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8477 | echo "$as_me: failed program was:" >&5 |
| 8478 | cat conftest.$ac_ext >&5 |
| 8479 | ( exit $ac_status ) |
| 8480 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8481 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8482 | 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] | 8483 | fi |
| 8484 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8485 | fi |
| 8486 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8487 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 8488 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6 |
| 8489 | |
| 8490 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8491 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8492 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8493 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8494 | |
| 8495 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8496 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8497 | ac_save_cc="$CC" |
| 8498 | if test "$ac_cv_kpthread" = "yes" |
| 8499 | then CC="$CC -Kpthread" |
| 8500 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8501 | echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 8502 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8503 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8504 | cat >conftest.$ac_ext <<_ACEOF |
| 8505 | #line $LINENO "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8506 | #include "confdefs.h" |
| 8507 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8508 | #ifdef F77_DUMMY_MAIN |
| 8509 | # ifdef __cplusplus |
| 8510 | extern "C" |
| 8511 | # endif |
| 8512 | int F77_DUMMY_MAIN() { return 1; } |
| 8513 | #endif |
| 8514 | int |
| 8515 | main () |
| 8516 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 8517 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8518 | ; |
| 8519 | return 0; |
| 8520 | } |
| 8521 | _ACEOF |
| 8522 | rm -f conftest.$ac_objext |
| 8523 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8524 | (eval $ac_compile) 2>&5 |
| 8525 | ac_status=$? |
| 8526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8527 | (exit $ac_status); } && |
| 8528 | { ac_try='test -s conftest.$ac_objext' |
| 8529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8530 | (eval $ac_try) 2>&5 |
| 8531 | ac_status=$? |
| 8532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8533 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8534 | have_pthread_t=yes |
| 8535 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8536 | echo "$as_me: failed program was:" >&5 |
| 8537 | cat conftest.$ac_ext >&5 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8538 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8539 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8540 | echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 8541 | echo "${ECHO_T}$have_pthread_t" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8542 | if test "$have_pthread_t" = yes ; then |
| 8543 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8544 | echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 8545 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6 |
| 8546 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 8547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8548 | else |
| 8549 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 8550 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8551 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8552 | cat >conftest.$ac_ext <<_ACEOF |
| 8553 | #line $LINENO "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8554 | #include "confdefs.h" |
| 8555 | #include <stdio.h> |
| 8556 | #include <pthread.h> |
| 8557 | main() |
| 8558 | { |
| 8559 | FILE *f=fopen("conftestval", "w"); |
| 8560 | if (!f) exit(1); |
| 8561 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 8562 | exit(0); |
| 8563 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8564 | _ACEOF |
| 8565 | rm -f conftest$ac_exeext |
| 8566 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8567 | (eval $ac_link) 2>&5 |
| 8568 | ac_status=$? |
| 8569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8570 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8572 | (eval $ac_try) 2>&5 |
| 8573 | ac_status=$? |
| 8574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8575 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8576 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 8577 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8578 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8579 | echo "$as_me: failed program was:" >&5 |
| 8580 | cat conftest.$ac_ext >&5 |
| 8581 | ( exit $ac_status ) |
| 8582 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8583 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8584 | 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] | 8585 | fi |
| 8586 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8587 | fi |
| 8588 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8589 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 8590 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6 |
| 8591 | |
| 8592 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8593 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8594 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8595 | |
| 8596 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8597 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8598 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8599 | echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 8600 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8601 | # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given. |
| 8602 | if test "${enable_toolbox_glue+set}" = set; then |
| 8603 | enableval="$enable_toolbox_glue" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8604 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8605 | fi; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8606 | |
| 8607 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8608 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8609 | case $ac_sys_system/$ac_sys_release in |
| 8610 | Darwin/*) |
| 8611 | enable_toolbox_glue="yes";; |
| 8612 | *) |
| 8613 | enable_toolbox_glue="no";; |
| 8614 | esac |
| 8615 | fi |
| 8616 | case "$enable_toolbox_glue" in |
| 8617 | yes) |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 8618 | extra_frameworks="-framework CoreServices -framework Foundation" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8619 | extra_machdep_objs="Python/mactoolboxglue.o" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 8620 | extra_undefs="-u __dummy -u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8621 | |
| 8622 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8623 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8624 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8625 | |
| 8626 | ;; |
| 8627 | *) |
| 8628 | extra_frameworks="" |
| 8629 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 8630 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8631 | ;; |
| 8632 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8633 | echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 8634 | echo "${ECHO_T}$enable_toolbox_glue" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8635 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8636 | |
| 8637 | case $ac_sys_system/$ac_sys_release in |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8638 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8639 | ns_undef_sym='_environ' |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8640 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc -U $ns_undef_sym" |
| 8641 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8642 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' |
| 8643 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 8644 | Darwin/*) |
| 8645 | ns_undef_sym='_environ' |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8646 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc -flat_namespace -U $ns_undef_sym" |
| 8647 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8648 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' |
| 8649 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8650 | esac |
| 8651 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8652 | echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 8653 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8654 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8655 | then |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 8656 | OPT="$OPT -fno-common -dynamic" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8657 | # -U __environ is needed since bundles don't have access |
| 8658 | # 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] | 8659 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8660 | # in the build location. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8661 | |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8662 | case $ac_sys_system/$ac_sys_release in |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8663 | Darwin/1.3*)LDFLAGS="$LDFLAGS -Wl,-F. -Wl,-U,$ns_undef_sym";; |
| 8664 | Darwin/*)LDFLAGS="$LDFLAGS -Wl,-F. -Wl,-flat_namespace,-U,$ns_undef_sym";; |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8665 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8666 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8667 | cat >>confdefs.h <<\_ACEOF |
| 8668 | #define WITH_NEXT_FRAMEWORK 1 |
| 8669 | _ACEOF |
| 8670 | |
| 8671 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8672 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8673 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8674 | echo "$as_me:$LINENO: result: no" >&5 |
| 8675 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8676 | fi |
| 8677 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8678 | echo "$as_me:$LINENO: checking for dyld" >&5 |
| 8679 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8680 | case $ac_sys_system/$ac_sys_release in |
| 8681 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8682 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8683 | cat >>confdefs.h <<\_ACEOF |
| 8684 | #define WITH_DYLD 1 |
| 8685 | _ACEOF |
| 8686 | |
| 8687 | echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 8688 | echo "${ECHO_T}always on for Darwin" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8689 | ;; |
| 8690 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8691 | echo "$as_me:$LINENO: result: no" >&5 |
| 8692 | echo "${ECHO_T}no" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8693 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8694 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8695 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8696 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8697 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8698 | |
| 8699 | |
| 8700 | |
| 8701 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8702 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 8703 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8704 | echo "$as_me:$LINENO: checking SO" >&5 |
| 8705 | echo $ECHO_N "checking SO... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8706 | if test -z "$SO" |
| 8707 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8708 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 8709 | hp*|HP*) SO=.sl;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 8710 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 8711 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8712 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8713 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8714 | echo "$as_me:$LINENO: result: $SO" >&5 |
| 8715 | echo "${ECHO_T}$SO" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8716 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 5b718fc | 2001-09-10 15:34:42 +0000 | [diff] [blame] | 8717 | # -- "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] | 8718 | # (Shared libraries in this instance are shared modules to be loaded into |
| 8719 | # 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] | 8720 | echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 8721 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8722 | if test -z "$LDSHARED" |
| 8723 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8724 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8725 | AIX*) |
| 8726 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 8727 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8728 | ;; |
| 8729 | BeOS*) |
| 8730 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 8731 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8732 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8733 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 8734 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8735 | SunOS/4*) LDSHARED="ld";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8736 | SunOS/5*) |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 8737 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 8738 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | 5b718fc | 2001-09-10 15:34:42 +0000 | [diff] [blame] | 8739 | else LDSHARED="$(CC) -G"; |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 8740 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8741 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8742 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 8743 | DYNIX/ptx*) LDSHARED="ld -G";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8744 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8745 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 8746 | if test "$enable_framework" ; then |
| 8747 | # Link against the framework. All externals should be defined. |
| 8748 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 8749 | else |
| 8750 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8751 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8752 | fi ;; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8753 | Darwin/*) |
| 8754 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 8755 | if test "$enable_framework" ; then |
| 8756 | # Link against the framework. All externals should be defined. |
| 8757 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 8758 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 8759 | # No framework, use the Python app as bundle-loader |
| 8760 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 8761 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/$(PYTHON)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8762 | fi ;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8763 | Linux*|GNU*) LDSHARED="gcc -shared";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 8764 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 8765 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 8766 | OpenBSD*|NetBSD*|FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 8767 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 8768 | then |
| 8769 | LDSHARED="cc -shared ${LDFLAGS}" |
| 8770 | else |
| 8771 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 8772 | fi;; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8773 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8774 | if test "$GCC" = "yes" |
| 8775 | then LDSHARED="$(CC) -shared" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8776 | else LDSHARED="$(CC) -G" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8777 | fi;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 8778 | SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8779 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 8780 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8781 | *) LDSHARED="ld";; |
| 8782 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8783 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8784 | echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 8785 | echo "${ECHO_T}$LDSHARED" >&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8786 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8787 | # 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] | 8788 | # library (module) -- this is only needed for a few systems |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8789 | echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 8790 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8791 | if test -z "$CCSHARED" |
| 8792 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8793 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 8794 | SunOS*) if test "$GCC" = yes; |
| 8795 | then CCSHARED="-fPIC"; |
| 8796 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 8797 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 8798 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 8799 | else CCSHARED="+z"; |
| 8800 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8801 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 8802 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 8803 | FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8804 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8805 | if test "$GCC" = "yes" |
| 8806 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8807 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8808 | fi;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 8809 | SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8810 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8811 | IRIX*/6*) case $CC in |
| 8812 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 8813 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8814 | esac;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 8815 | CYGWIN*) CCSHARED="-DUSE_DL_IMPORT";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8816 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8817 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8818 | echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 8819 | echo "${ECHO_T}$CCSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8820 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8821 | # 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] | 8822 | echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 8823 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8824 | if test -z "$LINKFORSHARED" |
| 8825 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8826 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8827 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8828 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 8829 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 8830 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 8831 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8832 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8833 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8834 | Darwin/*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8835 | # -u __dummy makes the linker aware of the objc runtime |
| 8836 | # in System.framework; otherwise, __objcInit (referenced in |
| 8837 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 8838 | # loading of any modules which reference it in System.framework. |
| 8839 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, which is |
| 8840 | # not used by the core itself but which needs to be in the core so |
| 8841 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 8842 | LINKFORSHARED="$extra_undefs -framework System" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8843 | if test "$enable_framework" |
| 8844 | then |
| 8845 | LINKFORSHARED="$LINKFORSHARED -framework Python" |
| 8846 | fi |
| 8847 | LINKFORSHARED="$LINKFORSHARED $extra_frameworks";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8848 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 8849 | SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 8850 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8851 | FreeBSD*|NetBSD*|OpenBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 8852 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 8853 | then |
| 8854 | LINKFORSHARED="-Wl,--export-dynamic" |
| 8855 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8856 | SunOS/5*) case $CC in |
| 8857 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 8858 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 8859 | then |
| 8860 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8861 | fi;; |
| 8862 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8863 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8864 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8865 | echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 8866 | echo "${ECHO_T}$LINKFORSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8867 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8868 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8869 | echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 8870 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 8871 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 8872 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 8873 | case $ac_sys_system in |
| 8874 | CYGWIN*) |
| 8875 | # Cygwin needs CCSHARED when building extension DLLs |
| 8876 | # but not when building the interpreter DLL. |
| 8877 | CFLAGSFORSHARED='';; |
| 8878 | *) |
| 8879 | CFLAGSFORSHARED='$(CCSHARED)' |
| 8880 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 8881 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8882 | echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 8883 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 8884 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8885 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8886 | |
| 8887 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 8888 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 8889 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 8890 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8891 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8892 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8893 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8894 | cat >conftest.$ac_ext <<_ACEOF |
| 8895 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8896 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8897 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 8898 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8899 | #ifdef __cplusplus |
| 8900 | extern "C" |
| 8901 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 8902 | /* 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] | 8903 | builtin and then its argument prototype would still apply. */ |
| 8904 | char dlopen (); |
| 8905 | #ifdef F77_DUMMY_MAIN |
| 8906 | # ifdef __cplusplus |
| 8907 | extern "C" |
| 8908 | # endif |
| 8909 | int F77_DUMMY_MAIN() { return 1; } |
| 8910 | #endif |
| 8911 | int |
| 8912 | main () |
| 8913 | { |
| 8914 | dlopen (); |
| 8915 | ; |
| 8916 | return 0; |
| 8917 | } |
| 8918 | _ACEOF |
| 8919 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8920 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8921 | (eval $ac_link) 2>&5 |
| 8922 | ac_status=$? |
| 8923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8924 | (exit $ac_status); } && |
| 8925 | { ac_try='test -s conftest$ac_exeext' |
| 8926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8927 | (eval $ac_try) 2>&5 |
| 8928 | ac_status=$? |
| 8929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8930 | (exit $ac_status); }; }; then |
| 8931 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8932 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8933 | echo "$as_me: failed program was:" >&5 |
| 8934 | cat conftest.$ac_ext >&5 |
| 8935 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8936 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8937 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8938 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8939 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8940 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 8941 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 8942 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 8943 | cat >>confdefs.h <<_ACEOF |
| 8944 | #define HAVE_LIBDL 1 |
| 8945 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8946 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8947 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 8948 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8949 | fi |
| 8950 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8951 | |
| 8952 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 8953 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 8954 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 8955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8956 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8957 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8958 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8959 | cat >conftest.$ac_ext <<_ACEOF |
| 8960 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8961 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8962 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 8963 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8964 | #ifdef __cplusplus |
| 8965 | extern "C" |
| 8966 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 8967 | /* 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] | 8968 | builtin and then its argument prototype would still apply. */ |
| 8969 | char shl_load (); |
| 8970 | #ifdef F77_DUMMY_MAIN |
| 8971 | # ifdef __cplusplus |
| 8972 | extern "C" |
| 8973 | # endif |
| 8974 | int F77_DUMMY_MAIN() { return 1; } |
| 8975 | #endif |
| 8976 | int |
| 8977 | main () |
| 8978 | { |
| 8979 | shl_load (); |
| 8980 | ; |
| 8981 | return 0; |
| 8982 | } |
| 8983 | _ACEOF |
| 8984 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8985 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8986 | (eval $ac_link) 2>&5 |
| 8987 | ac_status=$? |
| 8988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8989 | (exit $ac_status); } && |
| 8990 | { ac_try='test -s conftest$ac_exeext' |
| 8991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8992 | (eval $ac_try) 2>&5 |
| 8993 | ac_status=$? |
| 8994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8995 | (exit $ac_status); }; }; then |
| 8996 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8997 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8998 | echo "$as_me: failed program was:" >&5 |
| 8999 | cat conftest.$ac_ext >&5 |
| 9000 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9001 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9002 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9003 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9004 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9005 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9006 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 9007 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 9008 | cat >>confdefs.h <<_ACEOF |
| 9009 | #define HAVE_LIBDLD 1 |
| 9010 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9011 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9012 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9013 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9014 | fi |
| 9015 | # Dynamic linking for HP-UX |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9016 | |
| 9017 | echo "$as_me:$LINENO: checking for sem_init in -lrt" >&5 |
| 9018 | echo $ECHO_N "checking for sem_init in -lrt... $ECHO_C" >&6 |
| 9019 | if test "${ac_cv_lib_rt_sem_init+set}" = set; then |
| 9020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9021 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9022 | ac_check_lib_save_LIBS=$LIBS |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9023 | LIBS="-lrt $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9024 | cat >conftest.$ac_ext <<_ACEOF |
| 9025 | #line $LINENO "configure" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9026 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9027 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9028 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9029 | #ifdef __cplusplus |
| 9030 | extern "C" |
| 9031 | #endif |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9032 | /* 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] | 9033 | builtin and then its argument prototype would still apply. */ |
| 9034 | char sem_init (); |
| 9035 | #ifdef F77_DUMMY_MAIN |
| 9036 | # ifdef __cplusplus |
| 9037 | extern "C" |
| 9038 | # endif |
| 9039 | int F77_DUMMY_MAIN() { return 1; } |
| 9040 | #endif |
| 9041 | int |
| 9042 | main () |
| 9043 | { |
| 9044 | sem_init (); |
| 9045 | ; |
| 9046 | return 0; |
| 9047 | } |
| 9048 | _ACEOF |
| 9049 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9050 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9051 | (eval $ac_link) 2>&5 |
| 9052 | ac_status=$? |
| 9053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9054 | (exit $ac_status); } && |
| 9055 | { ac_try='test -s conftest$ac_exeext' |
| 9056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9057 | (eval $ac_try) 2>&5 |
| 9058 | ac_status=$? |
| 9059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9060 | (exit $ac_status); }; }; then |
| 9061 | ac_cv_lib_rt_sem_init=yes |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9062 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9063 | echo "$as_me: failed program was:" >&5 |
| 9064 | cat conftest.$ac_ext >&5 |
| 9065 | ac_cv_lib_rt_sem_init=no |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9066 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9067 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9068 | LIBS=$ac_check_lib_save_LIBS |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9069 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9070 | echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sem_init" >&5 |
| 9071 | echo "${ECHO_T}$ac_cv_lib_rt_sem_init" >&6 |
| 9072 | if test $ac_cv_lib_rt_sem_init = yes; then |
| 9073 | cat >>confdefs.h <<_ACEOF |
| 9074 | #define HAVE_LIBRT 1 |
| 9075 | _ACEOF |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9076 | |
| 9077 | LIBS="-lrt $LIBS" |
| 9078 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9079 | fi |
| 9080 | # 'Real Time' functions on Solaris |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9081 | |
| 9082 | # checks for system dependent C++ extensions support |
| 9083 | case "$ac_sys_system" in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9084 | AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 9085 | echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6 |
| 9086 | cat >conftest.$ac_ext <<_ACEOF |
| 9087 | #line $LINENO "configure" |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9088 | #include "confdefs.h" |
| 9089 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9090 | #ifdef F77_DUMMY_MAIN |
| 9091 | # ifdef __cplusplus |
| 9092 | extern "C" |
| 9093 | # endif |
| 9094 | int F77_DUMMY_MAIN() { return 1; } |
| 9095 | #endif |
| 9096 | int |
| 9097 | main () |
| 9098 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9099 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9100 | ; |
| 9101 | return 0; |
| 9102 | } |
| 9103 | _ACEOF |
| 9104 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9105 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9106 | (eval $ac_link) 2>&5 |
| 9107 | ac_status=$? |
| 9108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9109 | (exit $ac_status); } && |
| 9110 | { ac_try='test -s conftest$ac_exeext' |
| 9111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9112 | (eval $ac_try) 2>&5 |
| 9113 | ac_status=$? |
| 9114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9115 | (exit $ac_status); }; }; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9116 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9117 | cat >>confdefs.h <<\_ACEOF |
| 9118 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 9119 | _ACEOF |
| 9120 | |
| 9121 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9122 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9123 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9124 | echo "$as_me: failed program was:" >&5 |
| 9125 | cat conftest.$ac_ext >&5 |
| 9126 | echo "$as_me:$LINENO: result: no" >&5 |
| 9127 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9128 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9129 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9130 | *) ;; |
| 9131 | esac |
| 9132 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9133 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
| 9134 | # However on SGI IRIX, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9135 | # BeOS' sockets are stashed in libnet. |
| 9136 | case "$ac_sys_system" in |
| 9137 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9138 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9139 | echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 9140 | echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6 |
| 9141 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 9142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9143 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9144 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9145 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9146 | cat >conftest.$ac_ext <<_ACEOF |
| 9147 | #line $LINENO "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9148 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9149 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9150 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9151 | #ifdef __cplusplus |
| 9152 | extern "C" |
| 9153 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9154 | /* 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] | 9155 | builtin and then its argument prototype would still apply. */ |
| 9156 | char t_open (); |
| 9157 | #ifdef F77_DUMMY_MAIN |
| 9158 | # ifdef __cplusplus |
| 9159 | extern "C" |
| 9160 | # endif |
| 9161 | int F77_DUMMY_MAIN() { return 1; } |
| 9162 | #endif |
| 9163 | int |
| 9164 | main () |
| 9165 | { |
| 9166 | t_open (); |
| 9167 | ; |
| 9168 | return 0; |
| 9169 | } |
| 9170 | _ACEOF |
| 9171 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9172 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9173 | (eval $ac_link) 2>&5 |
| 9174 | ac_status=$? |
| 9175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9176 | (exit $ac_status); } && |
| 9177 | { ac_try='test -s conftest$ac_exeext' |
| 9178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9179 | (eval $ac_try) 2>&5 |
| 9180 | ac_status=$? |
| 9181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9182 | (exit $ac_status); }; }; then |
| 9183 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9184 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9185 | echo "$as_me: failed program was:" >&5 |
| 9186 | cat conftest.$ac_ext >&5 |
| 9187 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9188 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9189 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9190 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9191 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9192 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 9193 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6 |
| 9194 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9195 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9196 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 9197 | # SVR4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9198 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 9199 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 9200 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 9201 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9202 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9203 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9204 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9205 | cat >conftest.$ac_ext <<_ACEOF |
| 9206 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9207 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9208 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9209 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9210 | #ifdef __cplusplus |
| 9211 | extern "C" |
| 9212 | #endif |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9213 | /* 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] | 9214 | builtin and then its argument prototype would still apply. */ |
| 9215 | char socket (); |
| 9216 | #ifdef F77_DUMMY_MAIN |
| 9217 | # ifdef __cplusplus |
| 9218 | extern "C" |
| 9219 | # endif |
| 9220 | int F77_DUMMY_MAIN() { return 1; } |
| 9221 | #endif |
| 9222 | int |
| 9223 | main () |
| 9224 | { |
| 9225 | socket (); |
| 9226 | ; |
| 9227 | return 0; |
| 9228 | } |
| 9229 | _ACEOF |
| 9230 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9231 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9232 | (eval $ac_link) 2>&5 |
| 9233 | ac_status=$? |
| 9234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9235 | (exit $ac_status); } && |
| 9236 | { ac_try='test -s conftest$ac_exeext' |
| 9237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9238 | (eval $ac_try) 2>&5 |
| 9239 | ac_status=$? |
| 9240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9241 | (exit $ac_status); }; }; then |
| 9242 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9243 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9244 | echo "$as_me: failed program was:" >&5 |
| 9245 | cat conftest.$ac_ext >&5 |
| 9246 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9247 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9248 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9249 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9250 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9251 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 9252 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 9253 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9254 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9255 | fi |
| 9256 | # SVR4 sockets |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 9257 | ;; |
| 9258 | esac |
| 9259 | case "$ac_sys_system" in |
| 9260 | BeOS*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9261 | echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 9262 | echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6 |
| 9263 | if test "${ac_cv_lib_net_socket+set}" = set; then |
| 9264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9265 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9266 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9267 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9268 | cat >conftest.$ac_ext <<_ACEOF |
| 9269 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9270 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9271 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9272 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9273 | #ifdef __cplusplus |
| 9274 | extern "C" |
| 9275 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9276 | /* 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] | 9277 | builtin and then its argument prototype would still apply. */ |
| 9278 | char socket (); |
| 9279 | #ifdef F77_DUMMY_MAIN |
| 9280 | # ifdef __cplusplus |
| 9281 | extern "C" |
| 9282 | # endif |
| 9283 | int F77_DUMMY_MAIN() { return 1; } |
| 9284 | #endif |
| 9285 | int |
| 9286 | main () |
| 9287 | { |
| 9288 | socket (); |
| 9289 | ; |
| 9290 | return 0; |
| 9291 | } |
| 9292 | _ACEOF |
| 9293 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9294 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9295 | (eval $ac_link) 2>&5 |
| 9296 | ac_status=$? |
| 9297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9298 | (exit $ac_status); } && |
| 9299 | { ac_try='test -s conftest$ac_exeext' |
| 9300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9301 | (eval $ac_try) 2>&5 |
| 9302 | ac_status=$? |
| 9303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9304 | (exit $ac_status); }; }; then |
| 9305 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9306 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9307 | echo "$as_me: failed program was:" >&5 |
| 9308 | cat conftest.$ac_ext >&5 |
| 9309 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9310 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9311 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9312 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9313 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9314 | echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 9315 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6 |
| 9316 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9317 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9318 | fi |
| 9319 | # BeOS |
| 9320 | ;; |
| 9321 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9322 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9323 | echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 9324 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6 |
| 9325 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9326 | # Check whether --with-libs or --without-libs was given. |
| 9327 | if test "${with_libs+set}" = set; then |
| 9328 | withval="$with_libs" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9329 | |
| 9330 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 9331 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9332 | LIBS="$withval $LIBS" |
| 9333 | |
| 9334 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9335 | echo "$as_me:$LINENO: result: no" >&5 |
| 9336 | echo "${ECHO_T}no" >&6 |
| 9337 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9338 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9339 | # Determine if signalmodule should be used. |
| 9340 | |
| 9341 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9342 | echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 9343 | echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6 |
| 9344 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9345 | # Check whether --with-signal-module or --without-signal-module was given. |
| 9346 | if test "${with_signal_module+set}" = set; then |
| 9347 | withval="$with_signal_module" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9348 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9349 | fi; |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9350 | |
| 9351 | if test -z "$with_signal_module" |
| 9352 | then with_signal_module="yes" |
| 9353 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9354 | echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 9355 | echo "${ECHO_T}$with_signal_module" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9356 | |
| 9357 | if test "${with_signal_module}" = "yes"; then |
| 9358 | USE_SIGNAL_MODULE="" |
| 9359 | SIGNAL_OBJS="" |
| 9360 | else |
| 9361 | USE_SIGNAL_MODULE="#" |
| 9362 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 9363 | fi |
| 9364 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 9365 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9366 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9367 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9368 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9369 | echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 9370 | echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6 |
| 9371 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9372 | |
| 9373 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 9374 | if test "${with_dec_threads+set}" = set; then |
| 9375 | withval="$with_dec_threads" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9376 | |
| 9377 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 9378 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9379 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9380 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9381 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9382 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9383 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9384 | echo "$as_me:$LINENO: result: no" >&5 |
| 9385 | echo "${ECHO_T}no" >&6 |
| 9386 | fi; |
| 9387 | |
| 9388 | # Templates for things AC_DEFINEd more than once. |
| 9389 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9390 | |
| 9391 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9392 | |
| 9393 | |
| 9394 | |
| 9395 | |
| 9396 | |
| 9397 | echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 9398 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6 |
| 9399 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9400 | # Check whether --with-threads or --without-threads was given. |
| 9401 | if test "${with_threads+set}" = set; then |
| 9402 | withval="$with_threads" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9403 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9404 | fi; |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9405 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9406 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9407 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9408 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9409 | if test "${with_thread+set}" = set; then |
| 9410 | withval="$with_thread" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9411 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9412 | with_threads=$with_thread |
| 9413 | fi; |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9414 | |
| 9415 | if test -z "$with_threads" |
| 9416 | then with_threads="yes" |
| 9417 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9418 | echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 9419 | echo "${ECHO_T}$with_threads" >&6 |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9420 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9421 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9422 | if test "$with_threads" = "no" |
| 9423 | then |
| 9424 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9425 | elif test "$ac_cv_pthread_is_default" = yes |
| 9426 | then |
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 WITH_THREAD 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 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9431 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9432 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9433 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9434 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9435 | |
| 9436 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9437 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9438 | elif test "$ac_cv_kpthread" = "yes" |
| 9439 | then |
| 9440 | CC="$CC -Kpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9441 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 9442 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9443 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 9444 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9445 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9446 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9447 | else |
| 9448 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 9449 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 9450 | fi |
| 9451 | if test ! -z "$withval" -a -d "$withval" |
| 9452 | then LDFLAGS="$LDFLAGS -L$withval" |
| 9453 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9454 | |
| 9455 | # According to the POSIX spec, a pthreads implementation must |
| 9456 | # 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] | 9457 | echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 9458 | echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6 |
| 9459 | cat >conftest.$ac_ext <<_ACEOF |
| 9460 | #line $LINENO "configure" |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9461 | #include "confdefs.h" |
| 9462 | #include <unistd.h> |
| 9463 | #ifdef _POSIX_THREADS |
| 9464 | yes |
| 9465 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9466 | |
| 9467 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9468 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 9469 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9470 | unistd_defines_pthreads=yes |
| 9471 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9472 | unistd_defines_pthreads=no |
| 9473 | fi |
| 9474 | rm -f conftest* |
| 9475 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9476 | echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 9477 | echo "${ECHO_T}$unistd_defines_pthreads" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9478 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9479 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 9480 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9481 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 9482 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9483 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 9484 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 9485 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 9486 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 9487 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9488 | fi |
| 9489 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 9490 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9491 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9492 | # Is the header compilable? |
| 9493 | echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 9494 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6 |
| 9495 | cat >conftest.$ac_ext <<_ACEOF |
| 9496 | #line $LINENO "configure" |
| 9497 | #include "confdefs.h" |
| 9498 | $ac_includes_default |
| 9499 | #include <cthreads.h> |
| 9500 | _ACEOF |
| 9501 | rm -f conftest.$ac_objext |
| 9502 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9503 | (eval $ac_compile) 2>&5 |
| 9504 | ac_status=$? |
| 9505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9506 | (exit $ac_status); } && |
| 9507 | { ac_try='test -s conftest.$ac_objext' |
| 9508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9509 | (eval $ac_try) 2>&5 |
| 9510 | ac_status=$? |
| 9511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9512 | (exit $ac_status); }; }; then |
| 9513 | ac_header_compiler=yes |
| 9514 | else |
| 9515 | echo "$as_me: failed program was:" >&5 |
| 9516 | cat conftest.$ac_ext >&5 |
| 9517 | ac_header_compiler=no |
| 9518 | fi |
| 9519 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9520 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9521 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9522 | |
| 9523 | # Is the header present? |
| 9524 | echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 9525 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6 |
| 9526 | cat >conftest.$ac_ext <<_ACEOF |
| 9527 | #line $LINENO "configure" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9528 | #include "confdefs.h" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9529 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9530 | _ACEOF |
| 9531 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9532 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9533 | ac_status=$? |
| 9534 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 9535 | rm -f conftest.er1 |
| 9536 | cat conftest.err >&5 |
| 9537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9538 | (exit $ac_status); } >/dev/null; then |
| 9539 | if test -s conftest.err; then |
| 9540 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9541 | else |
| 9542 | ac_cpp_err= |
| 9543 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9544 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9545 | ac_cpp_err=yes |
| 9546 | fi |
| 9547 | if test -z "$ac_cpp_err"; then |
| 9548 | ac_header_preproc=yes |
| 9549 | else |
| 9550 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9551 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9552 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9553 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9554 | rm -f conftest.err conftest.$ac_ext |
| 9555 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9556 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9557 | |
| 9558 | # So? What about this header? |
| 9559 | case $ac_header_compiler:$ac_header_preproc in |
| 9560 | yes:no ) |
| 9561 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9562 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9563 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 9564 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 9565 | no:yes ) |
| 9566 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 9567 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 9568 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 9569 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 9570 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 9571 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 9572 | esac |
| 9573 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 9574 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 9575 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 9576 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9577 | else |
| 9578 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9579 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9580 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 9581 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
| 9582 | |
| 9583 | fi |
| 9584 | if test $ac_cv_header_cthreads_h = yes; then |
| 9585 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9586 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9587 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9588 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9589 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9590 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9591 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9592 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9593 | |
| 9594 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9595 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9596 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9597 | |
| 9598 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9599 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9600 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9601 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9602 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 9603 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 9604 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 9605 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 9606 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9607 | fi |
| 9608 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 9609 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9610 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9611 | # Is the header compilable? |
| 9612 | echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 9613 | echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6 |
| 9614 | cat >conftest.$ac_ext <<_ACEOF |
| 9615 | #line $LINENO "configure" |
| 9616 | #include "confdefs.h" |
| 9617 | $ac_includes_default |
| 9618 | #include <mach/cthreads.h> |
| 9619 | _ACEOF |
| 9620 | rm -f conftest.$ac_objext |
| 9621 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9622 | (eval $ac_compile) 2>&5 |
| 9623 | ac_status=$? |
| 9624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9625 | (exit $ac_status); } && |
| 9626 | { ac_try='test -s conftest.$ac_objext' |
| 9627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9628 | (eval $ac_try) 2>&5 |
| 9629 | ac_status=$? |
| 9630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9631 | (exit $ac_status); }; }; then |
| 9632 | ac_header_compiler=yes |
| 9633 | else |
| 9634 | echo "$as_me: failed program was:" >&5 |
| 9635 | cat conftest.$ac_ext >&5 |
| 9636 | ac_header_compiler=no |
| 9637 | fi |
| 9638 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9639 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9640 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9641 | |
| 9642 | # Is the header present? |
| 9643 | echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 9644 | echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6 |
| 9645 | cat >conftest.$ac_ext <<_ACEOF |
| 9646 | #line $LINENO "configure" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9647 | #include "confdefs.h" |
| 9648 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9649 | _ACEOF |
| 9650 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9651 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9652 | ac_status=$? |
| 9653 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 9654 | rm -f conftest.er1 |
| 9655 | cat conftest.err >&5 |
| 9656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9657 | (exit $ac_status); } >/dev/null; then |
| 9658 | if test -s conftest.err; then |
| 9659 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9660 | else |
| 9661 | ac_cpp_err= |
| 9662 | fi |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9663 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9664 | ac_cpp_err=yes |
| 9665 | fi |
| 9666 | if test -z "$ac_cpp_err"; then |
| 9667 | ac_header_preproc=yes |
| 9668 | else |
| 9669 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9670 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9671 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9672 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9673 | rm -f conftest.err conftest.$ac_ext |
| 9674 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9675 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9676 | |
| 9677 | # So? What about this header? |
| 9678 | case $ac_header_compiler:$ac_header_preproc in |
| 9679 | yes:no ) |
| 9680 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9681 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9682 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 9683 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 9684 | no:yes ) |
| 9685 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 9686 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 9687 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 9688 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 9689 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 9690 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 9691 | esac |
| 9692 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 9693 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 9694 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 9695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9696 | else |
| 9697 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9698 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9699 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 9700 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
| 9701 | |
| 9702 | fi |
| 9703 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 9704 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9705 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9706 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9707 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9708 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9709 | #define 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 | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9712 | |
| 9713 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9714 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9715 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9716 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9717 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9718 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9719 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9720 | echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 9721 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6 |
| 9722 | |
| 9723 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9724 | if test "${with_pth+set}" = set; then |
| 9725 | withval="$with_pth" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9726 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9727 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 9728 | echo "${ECHO_T}$withval" >&6 |
| 9729 | cat >>confdefs.h <<\_ACEOF |
| 9730 | #define WITH_THREAD 1 |
| 9731 | _ACEOF |
| 9732 | |
| 9733 | |
| 9734 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9735 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9736 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9737 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9738 | LIBS="-lpth $LIBS" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9739 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9740 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9741 | |
| 9742 | echo "$as_me:$LINENO: result: no" >&5 |
| 9743 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9744 | |
| 9745 | # Just looking for pthread_create in libpthread is not enough: |
| 9746 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 9747 | # So we really have to include pthread.h, and then link. |
| 9748 | _libs=$LIBS |
| 9749 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9750 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 9751 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 9752 | cat >conftest.$ac_ext <<_ACEOF |
| 9753 | #line $LINENO "configure" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9754 | #include "confdefs.h" |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9755 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9756 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9757 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9758 | #ifdef F77_DUMMY_MAIN |
| 9759 | # ifdef __cplusplus |
| 9760 | extern "C" |
| 9761 | # endif |
| 9762 | int F77_DUMMY_MAIN() { return 1; } |
| 9763 | #endif |
| 9764 | int |
| 9765 | main () |
| 9766 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9767 | |
| 9768 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9769 | ; |
| 9770 | return 0; |
| 9771 | } |
| 9772 | _ACEOF |
| 9773 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9774 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9775 | (eval $ac_link) 2>&5 |
| 9776 | ac_status=$? |
| 9777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9778 | (exit $ac_status); } && |
| 9779 | { ac_try='test -s conftest$ac_exeext' |
| 9780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9781 | (eval $ac_try) 2>&5 |
| 9782 | ac_status=$? |
| 9783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9784 | (exit $ac_status); }; }; then |
| 9785 | |
| 9786 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9787 | echo "${ECHO_T}yes" >&6 |
| 9788 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9789 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9790 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9791 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9792 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9793 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9794 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9795 | echo "$as_me: failed program was:" >&5 |
| 9796 | cat conftest.$ac_ext >&5 |
| 9797 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9798 | LIBS=$_libs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9799 | echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 9800 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6 |
| 9801 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 9802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9803 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9804 | cat >conftest.$ac_ext <<_ACEOF |
| 9805 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9806 | #include "confdefs.h" |
| 9807 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9808 | which can conflict with char pthread_detach (); below. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9809 | #include <assert.h> |
| 9810 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9811 | #ifdef __cplusplus |
| 9812 | extern "C" |
| 9813 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9814 | /* 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] | 9815 | builtin and then its argument prototype would still apply. */ |
| 9816 | char pthread_detach (); |
| 9817 | char (*f) (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9818 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9819 | #ifdef F77_DUMMY_MAIN |
| 9820 | # ifdef __cplusplus |
| 9821 | extern "C" |
| 9822 | # endif |
| 9823 | int F77_DUMMY_MAIN() { return 1; } |
| 9824 | #endif |
| 9825 | int |
| 9826 | main () |
| 9827 | { |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9828 | /* The GNU C library defines this for functions which it implements |
| 9829 | to always fail with ENOSYS. Some functions are actually named |
| 9830 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 9831 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9832 | choke me |
| 9833 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9834 | f = pthread_detach; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9835 | #endif |
| 9836 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9837 | ; |
| 9838 | return 0; |
| 9839 | } |
| 9840 | _ACEOF |
| 9841 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9842 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9843 | (eval $ac_link) 2>&5 |
| 9844 | ac_status=$? |
| 9845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9846 | (exit $ac_status); } && |
| 9847 | { ac_try='test -s conftest$ac_exeext' |
| 9848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9849 | (eval $ac_try) 2>&5 |
| 9850 | ac_status=$? |
| 9851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9852 | (exit $ac_status); }; }; then |
| 9853 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9854 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9855 | echo "$as_me: failed program was:" >&5 |
| 9856 | cat conftest.$ac_ext >&5 |
| 9857 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9858 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9859 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9860 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9861 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 9862 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6 |
| 9863 | if test $ac_cv_func_pthread_detach = yes; then |
| 9864 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9865 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9866 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9867 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9868 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9869 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9870 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9871 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9872 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 9873 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 9874 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 9875 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 9876 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9877 | fi |
| 9878 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 9879 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9880 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9881 | # Is the header compilable? |
| 9882 | echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 9883 | echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6 |
| 9884 | cat >conftest.$ac_ext <<_ACEOF |
| 9885 | #line $LINENO "configure" |
| 9886 | #include "confdefs.h" |
| 9887 | $ac_includes_default |
| 9888 | #include <kernel/OS.h> |
| 9889 | _ACEOF |
| 9890 | rm -f conftest.$ac_objext |
| 9891 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9892 | (eval $ac_compile) 2>&5 |
| 9893 | ac_status=$? |
| 9894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9895 | (exit $ac_status); } && |
| 9896 | { ac_try='test -s conftest.$ac_objext' |
| 9897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9898 | (eval $ac_try) 2>&5 |
| 9899 | ac_status=$? |
| 9900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9901 | (exit $ac_status); }; }; then |
| 9902 | ac_header_compiler=yes |
| 9903 | else |
| 9904 | echo "$as_me: failed program was:" >&5 |
| 9905 | cat conftest.$ac_ext >&5 |
| 9906 | ac_header_compiler=no |
| 9907 | fi |
| 9908 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9909 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9910 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9911 | |
| 9912 | # Is the header present? |
| 9913 | echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 9914 | echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6 |
| 9915 | cat >conftest.$ac_ext <<_ACEOF |
| 9916 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9917 | #include "confdefs.h" |
| 9918 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9919 | _ACEOF |
| 9920 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9921 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9922 | ac_status=$? |
| 9923 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 9924 | rm -f conftest.er1 |
| 9925 | cat conftest.err >&5 |
| 9926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9927 | (exit $ac_status); } >/dev/null; then |
| 9928 | if test -s conftest.err; then |
| 9929 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9930 | else |
| 9931 | ac_cpp_err= |
| 9932 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9933 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9934 | ac_cpp_err=yes |
| 9935 | fi |
| 9936 | if test -z "$ac_cpp_err"; then |
| 9937 | ac_header_preproc=yes |
| 9938 | else |
| 9939 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9940 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9941 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9942 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9943 | rm -f conftest.err conftest.$ac_ext |
| 9944 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9945 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9946 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9947 | # So? What about this header? |
| 9948 | case $ac_header_compiler:$ac_header_preproc in |
| 9949 | yes:no ) |
| 9950 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9951 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9952 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 9953 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};; |
| 9954 | no:yes ) |
| 9955 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 9956 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
| 9957 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 9958 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 9959 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 9960 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};; |
| 9961 | esac |
| 9962 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 9963 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 9964 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 9965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9966 | else |
| 9967 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 9968 | fi |
| 9969 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 9970 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
| 9971 | |
| 9972 | fi |
| 9973 | if test $ac_cv_header_kernel_OS_h = yes; then |
| 9974 | cat >>confdefs.h <<\_ACEOF |
| 9975 | #define WITH_THREAD 1 |
| 9976 | _ACEOF |
| 9977 | |
| 9978 | |
| 9979 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9980 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9981 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9982 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9983 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9984 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9985 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9986 | echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 9987 | echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6 |
| 9988 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 9989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9990 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9991 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9992 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9993 | cat >conftest.$ac_ext <<_ACEOF |
| 9994 | #line $LINENO "configure" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9995 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9996 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 9997 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9998 | #ifdef __cplusplus |
| 9999 | extern "C" |
| 10000 | #endif |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10001 | /* 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] | 10002 | builtin and then its argument prototype would still apply. */ |
| 10003 | char pthread_create (); |
| 10004 | #ifdef F77_DUMMY_MAIN |
| 10005 | # ifdef __cplusplus |
| 10006 | extern "C" |
| 10007 | # endif |
| 10008 | int F77_DUMMY_MAIN() { return 1; } |
| 10009 | #endif |
| 10010 | int |
| 10011 | main () |
| 10012 | { |
| 10013 | pthread_create (); |
| 10014 | ; |
| 10015 | return 0; |
| 10016 | } |
| 10017 | _ACEOF |
| 10018 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10019 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10020 | (eval $ac_link) 2>&5 |
| 10021 | ac_status=$? |
| 10022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10023 | (exit $ac_status); } && |
| 10024 | { ac_try='test -s conftest$ac_exeext' |
| 10025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10026 | (eval $ac_try) 2>&5 |
| 10027 | ac_status=$? |
| 10028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10029 | (exit $ac_status); }; }; then |
| 10030 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10031 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10032 | echo "$as_me: failed program was:" >&5 |
| 10033 | cat conftest.$ac_ext >&5 |
| 10034 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10035 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10036 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10037 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10038 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10039 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 10040 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6 |
| 10041 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 10042 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10043 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10044 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10045 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10046 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10047 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10048 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10049 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10050 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10051 | echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 10052 | echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 |
| 10053 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 10054 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10055 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10056 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10057 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10058 | cat >conftest.$ac_ext <<_ACEOF |
| 10059 | #line $LINENO "configure" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10060 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10061 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10062 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10063 | #ifdef __cplusplus |
| 10064 | extern "C" |
| 10065 | #endif |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10066 | /* 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] | 10067 | builtin and then its argument prototype would still apply. */ |
| 10068 | char pthread_create (); |
| 10069 | #ifdef F77_DUMMY_MAIN |
| 10070 | # ifdef __cplusplus |
| 10071 | extern "C" |
| 10072 | # endif |
| 10073 | int F77_DUMMY_MAIN() { return 1; } |
| 10074 | #endif |
| 10075 | int |
| 10076 | main () |
| 10077 | { |
| 10078 | pthread_create (); |
| 10079 | ; |
| 10080 | return 0; |
| 10081 | } |
| 10082 | _ACEOF |
| 10083 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10084 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10085 | (eval $ac_link) 2>&5 |
| 10086 | ac_status=$? |
| 10087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10088 | (exit $ac_status); } && |
| 10089 | { ac_try='test -s conftest$ac_exeext' |
| 10090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10091 | (eval $ac_try) 2>&5 |
| 10092 | ac_status=$? |
| 10093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10094 | (exit $ac_status); }; }; then |
| 10095 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10096 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10097 | echo "$as_me: failed program was:" >&5 |
| 10098 | cat conftest.$ac_ext >&5 |
| 10099 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10100 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10101 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10102 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10103 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10104 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 10105 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 |
| 10106 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 10107 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10108 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10109 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10110 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10111 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10112 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10113 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10114 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10115 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10116 | echo "$as_me:$LINENO: checking for __d6_pthread_create in -lthread" >&5 |
| 10117 | echo $ECHO_N "checking for __d6_pthread_create in -lthread... $ECHO_C" >&6 |
| 10118 | if test "${ac_cv_lib_thread___d6_pthread_create+set}" = set; then |
| 10119 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10120 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10121 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10122 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10123 | cat >conftest.$ac_ext <<_ACEOF |
| 10124 | #line $LINENO "configure" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10125 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10126 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10127 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10128 | #ifdef __cplusplus |
| 10129 | extern "C" |
| 10130 | #endif |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10131 | /* 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] | 10132 | builtin and then its argument prototype would still apply. */ |
| 10133 | char __d6_pthread_create (); |
| 10134 | #ifdef F77_DUMMY_MAIN |
| 10135 | # ifdef __cplusplus |
| 10136 | extern "C" |
| 10137 | # endif |
| 10138 | int F77_DUMMY_MAIN() { return 1; } |
| 10139 | #endif |
| 10140 | int |
| 10141 | main () |
| 10142 | { |
| 10143 | __d6_pthread_create (); |
| 10144 | ; |
| 10145 | return 0; |
| 10146 | } |
| 10147 | _ACEOF |
| 10148 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10149 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10150 | (eval $ac_link) 2>&5 |
| 10151 | ac_status=$? |
| 10152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10153 | (exit $ac_status); } && |
| 10154 | { ac_try='test -s conftest$ac_exeext' |
| 10155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10156 | (eval $ac_try) 2>&5 |
| 10157 | ac_status=$? |
| 10158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10159 | (exit $ac_status); }; }; then |
| 10160 | ac_cv_lib_thread___d6_pthread_create=yes |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10161 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10162 | echo "$as_me: failed program was:" >&5 |
| 10163 | cat conftest.$ac_ext >&5 |
| 10164 | ac_cv_lib_thread___d6_pthread_create=no |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10165 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10166 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10167 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10168 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10169 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread___d6_pthread_create" >&5 |
| 10170 | echo "${ECHO_T}$ac_cv_lib_thread___d6_pthread_create" >&6 |
| 10171 | if test $ac_cv_lib_thread___d6_pthread_create = yes; then |
| 10172 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10173 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10174 | _ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10175 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10176 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10177 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10178 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10179 | else |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10180 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10181 | echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 10182 | echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6 |
| 10183 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 10184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10185 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10186 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10187 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10188 | cat >conftest.$ac_ext <<_ACEOF |
| 10189 | #line $LINENO "configure" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10190 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10191 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10192 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10193 | #ifdef __cplusplus |
| 10194 | extern "C" |
| 10195 | #endif |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10196 | /* 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] | 10197 | builtin and then its argument prototype would still apply. */ |
| 10198 | char __pthread_create_system (); |
| 10199 | #ifdef F77_DUMMY_MAIN |
| 10200 | # ifdef __cplusplus |
| 10201 | extern "C" |
| 10202 | # endif |
| 10203 | int F77_DUMMY_MAIN() { return 1; } |
| 10204 | #endif |
| 10205 | int |
| 10206 | main () |
| 10207 | { |
| 10208 | __pthread_create_system (); |
| 10209 | ; |
| 10210 | return 0; |
| 10211 | } |
| 10212 | _ACEOF |
| 10213 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10214 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10215 | (eval $ac_link) 2>&5 |
| 10216 | ac_status=$? |
| 10217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10218 | (exit $ac_status); } && |
| 10219 | { ac_try='test -s conftest$ac_exeext' |
| 10220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10221 | (eval $ac_try) 2>&5 |
| 10222 | ac_status=$? |
| 10223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10224 | (exit $ac_status); }; }; then |
| 10225 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10226 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10227 | echo "$as_me: failed program was:" >&5 |
| 10228 | cat conftest.$ac_ext >&5 |
| 10229 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10230 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10231 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10232 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10233 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10234 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 10235 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6 |
| 10236 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 10237 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10238 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10239 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10240 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10241 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10242 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10243 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10244 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10245 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10246 | echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 10247 | echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6 |
| 10248 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 10249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10250 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10251 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10252 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10253 | cat >conftest.$ac_ext <<_ACEOF |
| 10254 | #line $LINENO "configure" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10255 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10256 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10257 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10258 | #ifdef __cplusplus |
| 10259 | extern "C" |
| 10260 | #endif |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10261 | /* 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] | 10262 | builtin and then its argument prototype would still apply. */ |
| 10263 | char pthread_create (); |
| 10264 | #ifdef F77_DUMMY_MAIN |
| 10265 | # ifdef __cplusplus |
| 10266 | extern "C" |
| 10267 | # endif |
| 10268 | int F77_DUMMY_MAIN() { return 1; } |
| 10269 | #endif |
| 10270 | int |
| 10271 | main () |
| 10272 | { |
| 10273 | pthread_create (); |
| 10274 | ; |
| 10275 | return 0; |
| 10276 | } |
| 10277 | _ACEOF |
| 10278 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10279 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10280 | (eval $ac_link) 2>&5 |
| 10281 | ac_status=$? |
| 10282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10283 | (exit $ac_status); } && |
| 10284 | { ac_try='test -s conftest$ac_exeext' |
| 10285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10286 | (eval $ac_try) 2>&5 |
| 10287 | ac_status=$? |
| 10288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10289 | (exit $ac_status); }; }; then |
| 10290 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10291 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10292 | echo "$as_me: failed program was:" >&5 |
| 10293 | cat conftest.$ac_ext >&5 |
| 10294 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10295 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10296 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10297 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10298 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10299 | echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 10300 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6 |
| 10301 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 10302 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10303 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10304 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10305 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10306 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10307 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10308 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10309 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 10310 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10311 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 10312 | fi |
| 10313 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10314 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10315 | fi |
| 10316 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 10317 | fi |
| 10318 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10319 | fi |
| 10320 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10321 | fi |
| 10322 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10323 | fi |
| 10324 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10325 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10326 | fi |
| 10327 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10328 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10329 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10330 | fi; |
| 10331 | fi |
| 10332 | |
| 10333 | |
| 10334 | fi |
| 10335 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10336 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10337 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10338 | if test "$posix_threads" = "yes"; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10339 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10340 | |
| 10341 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10342 | #define _POSIX_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10343 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10344 | |
| 10345 | fi |
| 10346 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10347 | echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 10348 | echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6 |
| 10349 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 10350 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10351 | else |
| 10352 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 10353 | ac_cv_pthread_system_supported=no |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10354 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10355 | cat >conftest.$ac_ext <<_ACEOF |
| 10356 | #line $LINENO "configure" |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10357 | #include "confdefs.h" |
| 10358 | #include <pthread.h> |
| 10359 | void *foo(void *parm) { |
| 10360 | return NULL; |
| 10361 | } |
| 10362 | main() { |
| 10363 | pthread_attr_t attr; |
Martin v. Löwis | a82d347 | 2002-02-24 16:05:05 +0000 | [diff] [blame] | 10364 | pthread_t id; |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10365 | if (pthread_attr_init(&attr)) exit(-1); |
| 10366 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
Martin v. Löwis | a82d347 | 2002-02-24 16:05:05 +0000 | [diff] [blame] | 10367 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10368 | exit(0); |
| 10369 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10370 | _ACEOF |
| 10371 | rm -f conftest$ac_exeext |
| 10372 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10373 | (eval $ac_link) 2>&5 |
| 10374 | ac_status=$? |
| 10375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10376 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10378 | (eval $ac_try) 2>&5 |
| 10379 | ac_status=$? |
| 10380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10381 | (exit $ac_status); }; }; then |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10382 | ac_cv_pthread_system_supported=yes |
| 10383 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10384 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10385 | echo "$as_me: failed program was:" >&5 |
| 10386 | cat conftest.$ac_ext >&5 |
| 10387 | ( exit $ac_status ) |
| 10388 | ac_cv_pthread_system_supported=no |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10389 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10390 | 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] | 10391 | fi |
| 10392 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10393 | fi |
| 10394 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10395 | echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 10396 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10397 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10398 | |
| 10399 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10400 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10401 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10402 | |
| 10403 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10404 | |
| 10405 | for ac_func in pthread_sigmask |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10406 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10407 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10408 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10409 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 10410 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 10411 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10412 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10413 | cat >conftest.$ac_ext <<_ACEOF |
| 10414 | #line $LINENO "configure" |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10415 | #include "confdefs.h" |
| 10416 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10417 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10418 | #include <assert.h> |
| 10419 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10420 | #ifdef __cplusplus |
| 10421 | extern "C" |
| 10422 | #endif |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10423 | /* 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] | 10424 | builtin and then its argument prototype would still apply. */ |
| 10425 | char $ac_func (); |
| 10426 | char (*f) (); |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10427 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10428 | #ifdef F77_DUMMY_MAIN |
| 10429 | # ifdef __cplusplus |
| 10430 | extern "C" |
| 10431 | # endif |
| 10432 | int F77_DUMMY_MAIN() { return 1; } |
| 10433 | #endif |
| 10434 | int |
| 10435 | main () |
| 10436 | { |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10437 | /* The GNU C library defines this for functions which it implements |
| 10438 | to always fail with ENOSYS. Some functions are actually named |
| 10439 | something starting with __ and the normal name is an alias. */ |
| 10440 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 10441 | choke me |
| 10442 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10443 | f = $ac_func; |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10444 | #endif |
| 10445 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10446 | ; |
| 10447 | return 0; |
| 10448 | } |
| 10449 | _ACEOF |
| 10450 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10451 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10452 | (eval $ac_link) 2>&5 |
| 10453 | ac_status=$? |
| 10454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10455 | (exit $ac_status); } && |
| 10456 | { ac_try='test -s conftest$ac_exeext' |
| 10457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10458 | (eval $ac_try) 2>&5 |
| 10459 | ac_status=$? |
| 10460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10461 | (exit $ac_status); }; }; then |
| 10462 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10463 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10464 | echo "$as_me: failed program was:" >&5 |
| 10465 | cat conftest.$ac_ext >&5 |
| 10466 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10467 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10468 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10469 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10470 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 10471 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 10472 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10473 | cat >>confdefs.h <<_ACEOF |
| 10474 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10475 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10476 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10477 | fi |
| 10478 | done |
| 10479 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10480 | fi |
| 10481 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10482 | echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 10483 | echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6 |
| 10484 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 10485 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10486 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10487 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10488 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10489 | cat >conftest.$ac_ext <<_ACEOF |
| 10490 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10491 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10492 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10493 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10494 | #ifdef __cplusplus |
| 10495 | extern "C" |
| 10496 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10497 | /* 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] | 10498 | builtin and then its argument prototype would still apply. */ |
| 10499 | char usconfig (); |
| 10500 | #ifdef F77_DUMMY_MAIN |
| 10501 | # ifdef __cplusplus |
| 10502 | extern "C" |
| 10503 | # endif |
| 10504 | int F77_DUMMY_MAIN() { return 1; } |
| 10505 | #endif |
| 10506 | int |
| 10507 | main () |
| 10508 | { |
| 10509 | usconfig (); |
| 10510 | ; |
| 10511 | return 0; |
| 10512 | } |
| 10513 | _ACEOF |
| 10514 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10515 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10516 | (eval $ac_link) 2>&5 |
| 10517 | ac_status=$? |
| 10518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10519 | (exit $ac_status); } && |
| 10520 | { ac_try='test -s conftest$ac_exeext' |
| 10521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10522 | (eval $ac_try) 2>&5 |
| 10523 | ac_status=$? |
| 10524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10525 | (exit $ac_status); }; }; then |
| 10526 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10527 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10528 | echo "$as_me: failed program was:" >&5 |
| 10529 | cat conftest.$ac_ext >&5 |
| 10530 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10531 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10532 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10533 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10534 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10535 | echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 10536 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6 |
| 10537 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 10538 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10539 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10540 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10541 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10542 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10543 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10544 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10545 | fi |
| 10546 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10547 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10548 | if test $posix_threads != "yes"; then |
| 10549 | echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 10550 | echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6 |
| 10551 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 10552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10553 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10554 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10555 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10556 | cat >conftest.$ac_ext <<_ACEOF |
| 10557 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10558 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10559 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10560 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10561 | #ifdef __cplusplus |
| 10562 | extern "C" |
| 10563 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10564 | /* 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] | 10565 | builtin and then its argument prototype would still apply. */ |
| 10566 | char thr_create (); |
| 10567 | #ifdef F77_DUMMY_MAIN |
| 10568 | # ifdef __cplusplus |
| 10569 | extern "C" |
| 10570 | # endif |
| 10571 | int F77_DUMMY_MAIN() { return 1; } |
| 10572 | #endif |
| 10573 | int |
| 10574 | main () |
| 10575 | { |
| 10576 | thr_create (); |
| 10577 | ; |
| 10578 | return 0; |
| 10579 | } |
| 10580 | _ACEOF |
| 10581 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10582 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10583 | (eval $ac_link) 2>&5 |
| 10584 | ac_status=$? |
| 10585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10586 | (exit $ac_status); } && |
| 10587 | { ac_try='test -s conftest$ac_exeext' |
| 10588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10589 | (eval $ac_try) 2>&5 |
| 10590 | ac_status=$? |
| 10591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10592 | (exit $ac_status); }; }; then |
| 10593 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10594 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10595 | echo "$as_me: failed program was:" >&5 |
| 10596 | cat conftest.$ac_ext >&5 |
| 10597 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10598 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10599 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10600 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10601 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10602 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 10603 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6 |
| 10604 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 10605 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10606 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10607 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10608 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10609 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10610 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10611 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10612 | fi |
| 10613 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10614 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10615 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10616 | if test "$USE_THREAD_MODULE" != "#" |
| 10617 | then |
| 10618 | # If the above checks didn't disable threads, (at least) OSF1 |
| 10619 | # needs this '-threads' argument during linking. |
| 10620 | case $ac_sys_system in |
| 10621 | OSF1) LDLAST=-threads;; |
| 10622 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 10623 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10624 | fi |
| 10625 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10626 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10627 | |
| 10628 | |
| 10629 | echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 10630 | 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] | 10631 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 10632 | if test "${enable_ipv6+set}" = set; then |
| 10633 | enableval="$enable_ipv6" |
| 10634 | case "$enableval" in |
| 10635 | no) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10636 | echo "$as_me:$LINENO: result: no" >&5 |
| 10637 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10638 | ipv6=no |
| 10639 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10640 | *) echo "$as_me:$LINENO: result: yes" >&5 |
| 10641 | echo "${ECHO_T}yes" >&6 |
| 10642 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10643 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10644 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10645 | |
| 10646 | ipv6=yes |
| 10647 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10648 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10649 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10650 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10651 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10652 | echo "$as_me:$LINENO: result: no" >&5 |
| 10653 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10654 | ipv6=no |
| 10655 | |
| 10656 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10657 | cat >conftest.$ac_ext <<_ACEOF |
| 10658 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10659 | #include "confdefs.h" |
| 10660 | /* AF_INET6 available check */ |
| 10661 | #include <sys/types.h> |
| 10662 | #include <sys/socket.h> |
| 10663 | main() |
| 10664 | { |
| 10665 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 10666 | exit(1); |
| 10667 | else |
| 10668 | exit(0); |
| 10669 | } |
| 10670 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10671 | _ACEOF |
| 10672 | rm -f conftest$ac_exeext |
| 10673 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10674 | (eval $ac_link) 2>&5 |
| 10675 | ac_status=$? |
| 10676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10677 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10679 | (eval $ac_try) 2>&5 |
| 10680 | ac_status=$? |
| 10681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10682 | (exit $ac_status); }; }; then |
| 10683 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10684 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10685 | ipv6=yes |
| 10686 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10687 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10688 | echo "$as_me: failed program was:" >&5 |
| 10689 | cat conftest.$ac_ext >&5 |
| 10690 | ( exit $ac_status ) |
| 10691 | echo "$as_me:$LINENO: result: no" >&5 |
| 10692 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10693 | ipv6=no |
| 10694 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10695 | 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] | 10696 | fi |
| 10697 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10698 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10699 | echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 10700 | echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6 |
| 10701 | cat >conftest.$ac_ext <<_ACEOF |
| 10702 | #line $LINENO "configure" |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10703 | #include "confdefs.h" |
| 10704 | #include <sys/types.h> |
| 10705 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10706 | #ifdef F77_DUMMY_MAIN |
| 10707 | # ifdef __cplusplus |
| 10708 | extern "C" |
| 10709 | # endif |
| 10710 | int F77_DUMMY_MAIN() { return 1; } |
| 10711 | #endif |
| 10712 | int |
| 10713 | main () |
| 10714 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10715 | struct sockaddr_in6 x; |
| 10716 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10717 | ; |
| 10718 | return 0; |
| 10719 | } |
| 10720 | _ACEOF |
| 10721 | rm -f conftest.$ac_objext |
| 10722 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10723 | (eval $ac_compile) 2>&5 |
| 10724 | ac_status=$? |
| 10725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10726 | (exit $ac_status); } && |
| 10727 | { ac_try='test -s conftest.$ac_objext' |
| 10728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10729 | (eval $ac_try) 2>&5 |
| 10730 | ac_status=$? |
| 10731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10732 | (exit $ac_status); }; }; then |
| 10733 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10734 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10735 | ipv6=yes |
| 10736 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10737 | echo "$as_me: failed program was:" >&5 |
| 10738 | cat conftest.$ac_ext >&5 |
| 10739 | echo "$as_me:$LINENO: result: no" >&5 |
| 10740 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10741 | ipv6=no |
| 10742 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10743 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10744 | fi |
| 10745 | |
| 10746 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10747 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10748 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10749 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10750 | |
| 10751 | fi |
| 10752 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10753 | fi; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10754 | |
| 10755 | ipv6type=unknown |
| 10756 | ipv6lib=none |
| 10757 | ipv6trylibc=no |
| 10758 | |
| 10759 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10760 | echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 10761 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 10762 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 10763 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10764 | case $i in |
| 10765 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10766 | cat >conftest.$ac_ext <<_ACEOF |
| 10767 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10768 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10769 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10770 | #include <netinet/in.h> |
| 10771 | #ifdef IPV6_INRIA_VERSION |
| 10772 | yes |
| 10773 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10774 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10775 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10776 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10777 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10778 | fi |
| 10779 | rm -f conftest* |
| 10780 | |
| 10781 | ;; |
| 10782 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10783 | cat >conftest.$ac_ext <<_ACEOF |
| 10784 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10785 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10786 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10787 | #include <netinet/in.h> |
| 10788 | #ifdef __KAME__ |
| 10789 | yes |
| 10790 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10791 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10792 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10793 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10794 | ipv6type=$i; |
| 10795 | ipv6lib=inet6 |
| 10796 | ipv6libdir=/usr/local/v6/lib |
| 10797 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10798 | fi |
| 10799 | rm -f conftest* |
| 10800 | |
| 10801 | ;; |
| 10802 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10803 | cat >conftest.$ac_ext <<_ACEOF |
| 10804 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10805 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10806 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10807 | #include <features.h> |
| 10808 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 10809 | yes |
| 10810 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10811 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10812 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10813 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10814 | ipv6type=$i; |
| 10815 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10816 | fi |
| 10817 | rm -f conftest* |
| 10818 | |
| 10819 | ;; |
| 10820 | linux-inet6) |
| 10821 | if test -d /usr/inet6; then |
| 10822 | ipv6type=$i |
| 10823 | ipv6lib=inet6 |
| 10824 | ipv6libdir=/usr/inet6/lib |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10825 | OPT="-I/usr/inet6/include $OPT" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10826 | fi |
| 10827 | ;; |
| 10828 | solaris) |
| 10829 | if test -f /etc/netconfig; then |
| 10830 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 10831 | ipv6type=$i |
| 10832 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10833 | fi |
| 10834 | fi |
| 10835 | ;; |
| 10836 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10837 | cat >conftest.$ac_ext <<_ACEOF |
| 10838 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10839 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10840 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10841 | #include <sys/param.h> |
| 10842 | #ifdef _TOSHIBA_INET6 |
| 10843 | yes |
| 10844 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10845 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10846 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10847 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10848 | ipv6type=$i; |
| 10849 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10850 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10851 | fi |
| 10852 | rm -f conftest* |
| 10853 | |
| 10854 | ;; |
| 10855 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10856 | cat >conftest.$ac_ext <<_ACEOF |
| 10857 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10858 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10859 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10860 | #include </usr/local/v6/include/sys/v6config.h> |
| 10861 | #ifdef __V6D__ |
| 10862 | yes |
| 10863 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10864 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10865 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10866 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10867 | ipv6type=$i; |
| 10868 | ipv6lib=v6; |
| 10869 | ipv6libdir=/usr/local/v6/lib; |
| 10870 | OPT="-I/usr/local/v6/include $OPT" |
| 10871 | fi |
| 10872 | rm -f conftest* |
| 10873 | |
| 10874 | ;; |
| 10875 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10876 | cat >conftest.$ac_ext <<_ACEOF |
| 10877 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10878 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10879 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10880 | #include <sys/param.h> |
| 10881 | #ifdef _ZETA_MINAMI_INET6 |
| 10882 | yes |
| 10883 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10884 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10885 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10886 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10887 | ipv6type=$i; |
| 10888 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10889 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10890 | fi |
| 10891 | rm -f conftest* |
| 10892 | |
| 10893 | ;; |
| 10894 | esac |
| 10895 | if test "$ipv6type" != "unknown"; then |
| 10896 | break |
| 10897 | fi |
| 10898 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10899 | echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 10900 | echo "${ECHO_T}$ipv6type" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10901 | fi |
| 10902 | |
| 10903 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 10904 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 10905 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 10906 | echo "using lib$ipv6lib" |
| 10907 | else |
| 10908 | if test $ipv6trylibc = "yes"; then |
| 10909 | echo "using libc" |
| 10910 | else |
| 10911 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 10912 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 10913 | echo 'ipv6 kit and compile beforehand.' |
| 10914 | exit 1 |
| 10915 | fi |
| 10916 | fi |
| 10917 | fi |
| 10918 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10919 | # Check for GC support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10920 | echo "$as_me:$LINENO: checking for --with-cycle-gc" >&5 |
| 10921 | echo $ECHO_N "checking for --with-cycle-gc... $ECHO_C" >&6 |
| 10922 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10923 | # Check whether --with-cycle-gc or --without-cycle-gc was given. |
| 10924 | if test "${with_cycle_gc+set}" = set; then |
| 10925 | withval="$with_cycle_gc" |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10926 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10927 | fi; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10928 | |
| 10929 | if test -z "$with_cycle_gc" |
| 10930 | then with_cycle_gc="yes" |
| 10931 | fi |
Neil Schemenauer | cf22946 | 2001-08-29 23:58:47 +0000 | [diff] [blame] | 10932 | if test "$with_cycle_gc" != "no" |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10933 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10934 | |
| 10935 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10936 | #define WITH_CYCLE_GC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10937 | _ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10938 | |
| 10939 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10940 | echo "$as_me:$LINENO: result: $with_cycle_gc" >&5 |
| 10941 | echo "${ECHO_T}$with_cycle_gc" >&6 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10942 | |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 10943 | # Check for universal newline support |
| 10944 | echo "$as_me:$LINENO: checking for --with-universal-newline" >&5 |
| 10945 | echo $ECHO_N "checking for --with-universal-newline... $ECHO_C" >&6 |
| 10946 | |
| 10947 | # Check whether --with-universal-newlines or --without-universal-newlines was given. |
| 10948 | if test "${with_universal_newlines+set}" = set; then |
| 10949 | withval="$with_universal_newlines" |
| 10950 | |
| 10951 | fi; |
| 10952 | |
| 10953 | if test -z "$with_universal_newlines" |
| 10954 | then with_universal_newlines="yes" |
| 10955 | fi |
| 10956 | if test "$with_universal_newlines" != "no" |
| 10957 | then |
Martin v. Löwis | e8aea58 | 2002-04-16 05:51:02 +0000 | [diff] [blame] | 10958 | |
| 10959 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 10960 | #define WITH_UNIVERSAL_NEWLINES 1 |
| 10961 | _ACEOF |
| 10962 | |
| 10963 | fi |
| 10964 | echo "$as_me:$LINENO: result: $with_universal_newlines" >&5 |
| 10965 | echo "${ECHO_T}$with_universal_newlines" >&6 |
| 10966 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 10967 | # Check for Python-specific malloc support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10968 | echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 10969 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6 |
| 10970 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 10971 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 10972 | if test "${with_pymalloc+set}" = set; then |
| 10973 | withval="$with_pymalloc" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10974 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10975 | fi; |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 10976 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10977 | if test -z "$with_pymalloc" |
| 10978 | then with_pymalloc="yes" |
| 10979 | fi |
| 10980 | if test "$with_pymalloc" != "no" |
| 10981 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10982 | |
| 10983 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10984 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10985 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10986 | |
| 10987 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10988 | echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 10989 | echo "${ECHO_T}$with_pymalloc" >&6 |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 10990 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10991 | # Check for --with-wctype-functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10992 | echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 10993 | echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6 |
| 10994 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10995 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 10996 | if test "${with_wctype_functions+set}" = set; then |
| 10997 | withval="$with_wctype_functions" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10998 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 10999 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11000 | then |
| 11001 | |
| 11002 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11003 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11004 | _ACEOF |
| 11005 | |
| 11006 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11007 | echo "${ECHO_T}yes" >&6 |
| 11008 | else echo "$as_me:$LINENO: result: no" >&5 |
| 11009 | echo "${ECHO_T}no" >&6 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11010 | fi |
| 11011 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11012 | echo "$as_me:$LINENO: result: no" >&5 |
| 11013 | echo "${ECHO_T}no" >&6 |
| 11014 | fi; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11015 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11016 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11017 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 11018 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11019 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11020 | echo "$as_me:$LINENO: checking for --with-sgi-dl" >&5 |
| 11021 | echo $ECHO_N "checking for --with-sgi-dl... $ECHO_C" >&6 |
| 11022 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11023 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11024 | if test "${with_sgi_dl+set}" = set; then |
| 11025 | withval="$with_sgi_dl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11026 | |
| 11027 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11028 | echo "${ECHO_T}$withval" >&6 |
| 11029 | |
| 11030 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11031 | #define WITH_SGI_DL 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11032 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11033 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11034 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11035 | dldir=$withval |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 11036 | if test ! -z "$dldir" -a -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 11037 | then LDFLAGS="$LDFLAGS -L$dldir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11038 | else { { echo "$as_me:$LINENO: error: proper usage is --with-sgi-dl=DIRECTORY" >&5 |
| 11039 | echo "$as_me: error: proper usage is --with-sgi-dl=DIRECTORY" >&2;} |
| 11040 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11041 | fi |
| 11042 | DLINCLDIR=${dldir} |
| 11043 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11044 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11045 | echo "$as_me:$LINENO: result: no" >&5 |
| 11046 | echo "${ECHO_T}no" >&6 |
| 11047 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11048 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11049 | echo "$as_me:$LINENO: checking for --with-dl-dld" >&5 |
| 11050 | echo $ECHO_N "checking for --with-dl-dld... $ECHO_C" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11051 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11052 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11053 | if test "${with_dl_dld+set}" = set; then |
| 11054 | withval="$with_dl_dld" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11055 | |
| 11056 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11057 | echo "${ECHO_T}$withval" >&6 |
| 11058 | |
| 11059 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11060 | #define WITH_DL_DLD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11061 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11062 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11063 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11064 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 11065 | dlddir=`echo "$withval" | sed 's/.*,//'` |
Barry Warsaw | 7d1219d | 2000-10-05 18:45:53 +0000 | [diff] [blame] | 11066 | 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] | 11067 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11068 | else { { echo "$as_me:$LINENO: error: proper usage is --with-dl-dld=DL_DIRECTORY" >&5 |
| 11069 | echo "$as_me: error: proper usage is --with-dl-dld=DL_DIRECTORY" >&2;} |
| 11070 | { (exit DLD_DIRECTORY); exit DLD_DIRECTORY; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11071 | fi |
| 11072 | DLINCLDIR=${dldir} |
| 11073 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11074 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11075 | echo "$as_me:$LINENO: result: no" >&5 |
| 11076 | echo "${ECHO_T}no" >&6 |
| 11077 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11078 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11079 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 11080 | # 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] | 11081 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11082 | for ac_func in dlopen |
| 11083 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11084 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11085 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11086 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11087 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11089 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11090 | cat >conftest.$ac_ext <<_ACEOF |
| 11091 | #line $LINENO "configure" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11092 | #include "confdefs.h" |
| 11093 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11094 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11095 | #include <assert.h> |
| 11096 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11097 | #ifdef __cplusplus |
| 11098 | extern "C" |
| 11099 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11100 | /* 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] | 11101 | builtin and then its argument prototype would still apply. */ |
| 11102 | char $ac_func (); |
| 11103 | char (*f) (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11104 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11105 | #ifdef F77_DUMMY_MAIN |
| 11106 | # ifdef __cplusplus |
| 11107 | extern "C" |
| 11108 | # endif |
| 11109 | int F77_DUMMY_MAIN() { return 1; } |
| 11110 | #endif |
| 11111 | int |
| 11112 | main () |
| 11113 | { |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11114 | /* The GNU C library defines this for functions which it implements |
| 11115 | to always fail with ENOSYS. Some functions are actually named |
| 11116 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11117 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11118 | choke me |
| 11119 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11120 | f = $ac_func; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11121 | #endif |
| 11122 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11123 | ; |
| 11124 | return 0; |
| 11125 | } |
| 11126 | _ACEOF |
| 11127 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11128 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11129 | (eval $ac_link) 2>&5 |
| 11130 | ac_status=$? |
| 11131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11132 | (exit $ac_status); } && |
| 11133 | { ac_try='test -s conftest$ac_exeext' |
| 11134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11135 | (eval $ac_try) 2>&5 |
| 11136 | ac_status=$? |
| 11137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11138 | (exit $ac_status); }; }; then |
| 11139 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11140 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11141 | echo "$as_me: failed program was:" >&5 |
| 11142 | cat conftest.$ac_ext >&5 |
| 11143 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11144 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11145 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11146 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11147 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11148 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11149 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11150 | cat >>confdefs.h <<_ACEOF |
| 11151 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11152 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11153 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11154 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11155 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11156 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11157 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11158 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 11159 | # loading of modules. |
| 11160 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11161 | echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 11162 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11163 | if test -z "$DYNLOADFILE" |
| 11164 | then |
| 11165 | case $ac_sys_system/$ac_sys_release in |
| 11166 | AIX*) DYNLOADFILE="dynload_aix.o";; |
| 11167 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 11168 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11169 | Darwin/*) DYNLOADFILE="dynload_next.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11170 | *) |
| 11171 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 11172 | # out any dynamic loading |
| 11173 | if test "$ac_cv_func_dlopen" = yes |
| 11174 | then DYNLOADFILE="dynload_shlib.o" |
| 11175 | else DYNLOADFILE="dynload_stub.o" |
| 11176 | fi |
| 11177 | ;; |
| 11178 | esac |
| 11179 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11180 | echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 11181 | echo "${ECHO_T}$DYNLOADFILE" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11182 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 11183 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11184 | |
| 11185 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11186 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11187 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11188 | |
| 11189 | fi |
| 11190 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11191 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 11192 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11193 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11194 | echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 11195 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11196 | if test -z "$MACHDEP_OBJS" |
| 11197 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11198 | MACHDEP_OBJS=$extra_machdep_objs |
| 11199 | else |
| 11200 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11201 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11202 | echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 11203 | echo "${ECHO_T}MACHDEP_OBJS" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11204 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11205 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | |
| 11274 | |
| 11275 | |
| 11276 | |
| 11277 | |
| 11278 | |
Martin v. Löwis | 06a83e9 | 2002-04-14 10:19:44 +0000 | [diff] [blame] | 11279 | |
Fred Drake | 6b3cc52 | 2002-04-15 19:20:27 +0000 | [diff] [blame] | 11280 | |
Martin v. Löwis | 244edc8 | 2001-10-04 22:44:26 +0000 | [diff] [blame] | 11281 | 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] | 11282 | fchdir flock fork fsync fdatasync fpathconf ftime ftruncate \ |
Martin v. Löwis | f95dd0a | 2001-08-15 17:14:33 +0000 | [diff] [blame] | 11283 | gai_strerror getgroups getlogin getpeername getpid getpwent getwd \ |
Martin v. Löwis | 06a83e9 | 2002-04-14 10:19:44 +0000 | [diff] [blame] | 11284 | hstrerror inet_pton kill killpg link lstat mkfifo mknod mktime mremap \ |
Andrew M. Kuchling | 5821b77 | 2000-08-25 01:14:08 +0000 | [diff] [blame] | 11285 | nice pathconf pause plock poll pthread_init \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 11286 | putenv readlink \ |
Martin v. Löwis | 61c5edf | 2001-10-18 04:06:00 +0000 | [diff] [blame] | 11287 | select setegid seteuid setgid setgroups \ |
Martin v. Löwis | 791bfda | 2001-07-24 06:33:08 +0000 | [diff] [blame] | 11288 | setlocale setregid setreuid setsid setpgid setuid setvbuf snprintf \ |
Michael W. Hudson | 065c1a2 | 2002-06-06 13:03:44 +0000 | [diff] [blame^] | 11289 | sigaction siginterrupt sigrelse strftime strptime symlink \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 11290 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Guido van Rossum | c524d95 | 2001-10-19 01:31:59 +0000 | [diff] [blame] | 11291 | truncate uname unsetenv waitpid _getpty getpriority |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11292 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11293 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11294 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11295 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11296 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11298 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11299 | cat >conftest.$ac_ext <<_ACEOF |
| 11300 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11301 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11302 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11303 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11304 | #include <assert.h> |
| 11305 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11306 | #ifdef __cplusplus |
| 11307 | extern "C" |
| 11308 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11309 | /* 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] | 11310 | builtin and then its argument prototype would still apply. */ |
| 11311 | char $ac_func (); |
| 11312 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11313 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11314 | #ifdef F77_DUMMY_MAIN |
| 11315 | # ifdef __cplusplus |
| 11316 | extern "C" |
| 11317 | # endif |
| 11318 | int F77_DUMMY_MAIN() { return 1; } |
| 11319 | #endif |
| 11320 | int |
| 11321 | main () |
| 11322 | { |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11323 | /* The GNU C library defines this for functions which it implements |
| 11324 | to always fail with ENOSYS. Some functions are actually named |
| 11325 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11326 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11327 | choke me |
| 11328 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11329 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11330 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11331 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11332 | ; |
| 11333 | return 0; |
| 11334 | } |
| 11335 | _ACEOF |
| 11336 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11337 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11338 | (eval $ac_link) 2>&5 |
| 11339 | ac_status=$? |
| 11340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11341 | (exit $ac_status); } && |
| 11342 | { ac_try='test -s conftest$ac_exeext' |
| 11343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11344 | (eval $ac_try) 2>&5 |
| 11345 | ac_status=$? |
| 11346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11347 | (exit $ac_status); }; }; then |
| 11348 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11349 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11350 | echo "$as_me: failed program was:" >&5 |
| 11351 | cat conftest.$ac_ext >&5 |
| 11352 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11353 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11354 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11355 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11356 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11357 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11358 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11359 | cat >>confdefs.h <<_ACEOF |
| 11360 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11361 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11362 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11363 | fi |
| 11364 | done |
| 11365 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11366 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11367 | # check for openpty and forkpty |
| 11368 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11369 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11370 | for ac_func in openpty |
| 11371 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11372 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11373 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11374 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11375 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11377 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11378 | cat >conftest.$ac_ext <<_ACEOF |
| 11379 | #line $LINENO "configure" |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11380 | #include "confdefs.h" |
| 11381 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11382 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11383 | #include <assert.h> |
| 11384 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11385 | #ifdef __cplusplus |
| 11386 | extern "C" |
| 11387 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11388 | /* 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] | 11389 | builtin and then its argument prototype would still apply. */ |
| 11390 | char $ac_func (); |
| 11391 | char (*f) (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11392 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11393 | #ifdef F77_DUMMY_MAIN |
| 11394 | # ifdef __cplusplus |
| 11395 | extern "C" |
| 11396 | # endif |
| 11397 | int F77_DUMMY_MAIN() { return 1; } |
| 11398 | #endif |
| 11399 | int |
| 11400 | main () |
| 11401 | { |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11402 | /* The GNU C library defines this for functions which it implements |
| 11403 | to always fail with ENOSYS. Some functions are actually named |
| 11404 | something starting with __ and the normal name is an alias. */ |
| 11405 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11406 | choke me |
| 11407 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11408 | f = $ac_func; |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11409 | #endif |
| 11410 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11411 | ; |
| 11412 | return 0; |
| 11413 | } |
| 11414 | _ACEOF |
| 11415 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11416 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11417 | (eval $ac_link) 2>&5 |
| 11418 | ac_status=$? |
| 11419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11420 | (exit $ac_status); } && |
| 11421 | { ac_try='test -s conftest$ac_exeext' |
| 11422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11423 | (eval $ac_try) 2>&5 |
| 11424 | ac_status=$? |
| 11425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11426 | (exit $ac_status); }; }; then |
| 11427 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11428 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11429 | echo "$as_me: failed program was:" >&5 |
| 11430 | cat conftest.$ac_ext >&5 |
| 11431 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11432 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11433 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11434 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11435 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11436 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11437 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11438 | cat >>confdefs.h <<_ACEOF |
| 11439 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11440 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11441 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11442 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11443 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 11444 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
| 11445 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 11446 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11447 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11448 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11449 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11450 | cat >conftest.$ac_ext <<_ACEOF |
| 11451 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11452 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11453 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11454 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11455 | #ifdef __cplusplus |
| 11456 | extern "C" |
| 11457 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11458 | /* 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] | 11459 | builtin and then its argument prototype would still apply. */ |
| 11460 | char openpty (); |
| 11461 | #ifdef F77_DUMMY_MAIN |
| 11462 | # ifdef __cplusplus |
| 11463 | extern "C" |
| 11464 | # endif |
| 11465 | int F77_DUMMY_MAIN() { return 1; } |
| 11466 | #endif |
| 11467 | int |
| 11468 | main () |
| 11469 | { |
| 11470 | openpty (); |
| 11471 | ; |
| 11472 | return 0; |
| 11473 | } |
| 11474 | _ACEOF |
| 11475 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11476 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11477 | (eval $ac_link) 2>&5 |
| 11478 | ac_status=$? |
| 11479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11480 | (exit $ac_status); } && |
| 11481 | { ac_try='test -s conftest$ac_exeext' |
| 11482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11483 | (eval $ac_try) 2>&5 |
| 11484 | ac_status=$? |
| 11485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11486 | (exit $ac_status); }; }; then |
| 11487 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11488 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11489 | echo "$as_me: failed program was:" >&5 |
| 11490 | cat conftest.$ac_ext >&5 |
| 11491 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11492 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11493 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11494 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11495 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11496 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 11497 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
| 11498 | if test $ac_cv_lib_util_openpty = yes; then |
| 11499 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11500 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11501 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11502 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11503 | fi |
| 11504 | |
| 11505 | fi |
| 11506 | done |
| 11507 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11508 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11509 | for ac_func in forkpty |
| 11510 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11511 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11512 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11513 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11514 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11515 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11516 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11517 | cat >conftest.$ac_ext <<_ACEOF |
| 11518 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11519 | #include "confdefs.h" |
| 11520 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11521 | which can conflict with char $ac_func (); below. */ |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11522 | #include <assert.h> |
| 11523 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11524 | #ifdef __cplusplus |
| 11525 | extern "C" |
| 11526 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11527 | /* 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] | 11528 | builtin and then its argument prototype would still apply. */ |
| 11529 | char $ac_func (); |
| 11530 | char (*f) (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11531 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11532 | #ifdef F77_DUMMY_MAIN |
| 11533 | # ifdef __cplusplus |
| 11534 | extern "C" |
| 11535 | # endif |
| 11536 | int F77_DUMMY_MAIN() { return 1; } |
| 11537 | #endif |
| 11538 | int |
| 11539 | main () |
| 11540 | { |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11541 | /* The GNU C library defines this for functions which it implements |
| 11542 | to always fail with ENOSYS. Some functions are actually named |
| 11543 | something starting with __ and the normal name is an alias. */ |
| 11544 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11545 | choke me |
| 11546 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11547 | f = $ac_func; |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11548 | #endif |
| 11549 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11550 | ; |
| 11551 | return 0; |
| 11552 | } |
| 11553 | _ACEOF |
| 11554 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11555 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11556 | (eval $ac_link) 2>&5 |
| 11557 | ac_status=$? |
| 11558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11559 | (exit $ac_status); } && |
| 11560 | { ac_try='test -s conftest$ac_exeext' |
| 11561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11562 | (eval $ac_try) 2>&5 |
| 11563 | ac_status=$? |
| 11564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11565 | (exit $ac_status); }; }; then |
| 11566 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11567 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11568 | echo "$as_me: failed program was:" >&5 |
| 11569 | cat conftest.$ac_ext >&5 |
| 11570 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11571 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11572 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11573 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11574 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11575 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11576 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11577 | cat >>confdefs.h <<_ACEOF |
| 11578 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11579 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11580 | |
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 | echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 11583 | echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6 |
| 11584 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 11585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11586 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11587 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11588 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11589 | cat >conftest.$ac_ext <<_ACEOF |
| 11590 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11591 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11592 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11593 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11594 | #ifdef __cplusplus |
| 11595 | extern "C" |
| 11596 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11597 | /* 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] | 11598 | builtin and then its argument prototype would still apply. */ |
| 11599 | char forkpty (); |
| 11600 | #ifdef F77_DUMMY_MAIN |
| 11601 | # ifdef __cplusplus |
| 11602 | extern "C" |
| 11603 | # endif |
| 11604 | int F77_DUMMY_MAIN() { return 1; } |
| 11605 | #endif |
| 11606 | int |
| 11607 | main () |
| 11608 | { |
| 11609 | forkpty (); |
| 11610 | ; |
| 11611 | return 0; |
| 11612 | } |
| 11613 | _ACEOF |
| 11614 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11615 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11616 | (eval $ac_link) 2>&5 |
| 11617 | ac_status=$? |
| 11618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11619 | (exit $ac_status); } && |
| 11620 | { ac_try='test -s conftest$ac_exeext' |
| 11621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11622 | (eval $ac_try) 2>&5 |
| 11623 | ac_status=$? |
| 11624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11625 | (exit $ac_status); }; }; then |
| 11626 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11627 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11628 | echo "$as_me: failed program was:" >&5 |
| 11629 | cat conftest.$ac_ext >&5 |
| 11630 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11631 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11632 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11633 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11634 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11635 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 11636 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6 |
| 11637 | if test $ac_cv_lib_util_forkpty = yes; then |
| 11638 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11639 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11640 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11641 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11642 | fi |
| 11643 | |
| 11644 | fi |
| 11645 | done |
| 11646 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11647 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11648 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11649 | |
| 11650 | |
| 11651 | |
| 11652 | |
| 11653 | |
| 11654 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11655 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 11656 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11657 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11658 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11659 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11660 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11662 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11663 | cat >conftest.$ac_ext <<_ACEOF |
| 11664 | #line $LINENO "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11665 | #include "confdefs.h" |
| 11666 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11667 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11668 | #include <assert.h> |
| 11669 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11670 | #ifdef __cplusplus |
| 11671 | extern "C" |
| 11672 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11673 | /* 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] | 11674 | builtin and then its argument prototype would still apply. */ |
| 11675 | char $ac_func (); |
| 11676 | char (*f) (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11677 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11678 | #ifdef F77_DUMMY_MAIN |
| 11679 | # ifdef __cplusplus |
| 11680 | extern "C" |
| 11681 | # endif |
| 11682 | int F77_DUMMY_MAIN() { return 1; } |
| 11683 | #endif |
| 11684 | int |
| 11685 | main () |
| 11686 | { |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11687 | /* The GNU C library defines this for functions which it implements |
| 11688 | to always fail with ENOSYS. Some functions are actually named |
| 11689 | something starting with __ and the normal name is an alias. */ |
| 11690 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11691 | choke me |
| 11692 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11693 | f = $ac_func; |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11694 | #endif |
| 11695 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11696 | ; |
| 11697 | return 0; |
| 11698 | } |
| 11699 | _ACEOF |
| 11700 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11701 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11702 | (eval $ac_link) 2>&5 |
| 11703 | ac_status=$? |
| 11704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11705 | (exit $ac_status); } && |
| 11706 | { ac_try='test -s conftest$ac_exeext' |
| 11707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11708 | (eval $ac_try) 2>&5 |
| 11709 | ac_status=$? |
| 11710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11711 | (exit $ac_status); }; }; then |
| 11712 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11713 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11714 | echo "$as_me: failed program was:" >&5 |
| 11715 | cat conftest.$ac_ext >&5 |
| 11716 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11717 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11718 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11719 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11720 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11721 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11722 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11723 | cat >>confdefs.h <<_ACEOF |
| 11724 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11725 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11726 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11727 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11728 | done |
| 11729 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11730 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11731 | |
| 11732 | |
| 11733 | |
| 11734 | |
| 11735 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11736 | for ac_func in dup2 getcwd strdup strerror memmove |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11737 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11738 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11739 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11740 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11741 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11743 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11744 | cat >conftest.$ac_ext <<_ACEOF |
| 11745 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11746 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11747 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11748 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11749 | #include <assert.h> |
| 11750 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11751 | #ifdef __cplusplus |
| 11752 | extern "C" |
| 11753 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11754 | /* 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] | 11755 | builtin and then its argument prototype would still apply. */ |
| 11756 | char $ac_func (); |
| 11757 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11758 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11759 | #ifdef F77_DUMMY_MAIN |
| 11760 | # ifdef __cplusplus |
| 11761 | extern "C" |
| 11762 | # endif |
| 11763 | int F77_DUMMY_MAIN() { return 1; } |
| 11764 | #endif |
| 11765 | int |
| 11766 | main () |
| 11767 | { |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11768 | /* The GNU C library defines this for functions which it implements |
| 11769 | to always fail with ENOSYS. Some functions are actually named |
| 11770 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11771 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11772 | choke me |
| 11773 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11774 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11775 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11776 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11777 | ; |
| 11778 | return 0; |
| 11779 | } |
| 11780 | _ACEOF |
| 11781 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11782 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11783 | (eval $ac_link) 2>&5 |
| 11784 | ac_status=$? |
| 11785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11786 | (exit $ac_status); } && |
| 11787 | { ac_try='test -s conftest$ac_exeext' |
| 11788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11789 | (eval $ac_try) 2>&5 |
| 11790 | ac_status=$? |
| 11791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11792 | (exit $ac_status); }; }; then |
| 11793 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11794 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11795 | echo "$as_me: failed program was:" >&5 |
| 11796 | cat conftest.$ac_ext >&5 |
| 11797 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11798 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11799 | 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] | 11800 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11801 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11802 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11803 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11804 | cat >>confdefs.h <<_ACEOF |
| 11805 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11806 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11807 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11808 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11809 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11810 | fi |
| 11811 | done |
| 11812 | |
| 11813 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11814 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11815 | for ac_func in getpgrp |
| 11816 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11817 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11818 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11819 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11820 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11822 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11823 | cat >conftest.$ac_ext <<_ACEOF |
| 11824 | #line $LINENO "configure" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11825 | #include "confdefs.h" |
| 11826 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11827 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11828 | #include <assert.h> |
| 11829 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11830 | #ifdef __cplusplus |
| 11831 | extern "C" |
| 11832 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11833 | /* 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] | 11834 | builtin and then its argument prototype would still apply. */ |
| 11835 | char $ac_func (); |
| 11836 | char (*f) (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11837 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11838 | #ifdef F77_DUMMY_MAIN |
| 11839 | # ifdef __cplusplus |
| 11840 | extern "C" |
| 11841 | # endif |
| 11842 | int F77_DUMMY_MAIN() { return 1; } |
| 11843 | #endif |
| 11844 | int |
| 11845 | main () |
| 11846 | { |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11847 | /* The GNU C library defines this for functions which it implements |
| 11848 | to always fail with ENOSYS. Some functions are actually named |
| 11849 | something starting with __ and the normal name is an alias. */ |
| 11850 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11851 | choke me |
| 11852 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11853 | f = $ac_func; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11854 | #endif |
| 11855 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11856 | ; |
| 11857 | return 0; |
| 11858 | } |
| 11859 | _ACEOF |
| 11860 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11861 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11862 | (eval $ac_link) 2>&5 |
| 11863 | ac_status=$? |
| 11864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11865 | (exit $ac_status); } && |
| 11866 | { ac_try='test -s conftest$ac_exeext' |
| 11867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11868 | (eval $ac_try) 2>&5 |
| 11869 | ac_status=$? |
| 11870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11871 | (exit $ac_status); }; }; then |
| 11872 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11873 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11874 | echo "$as_me: failed program was:" >&5 |
| 11875 | cat conftest.$ac_ext >&5 |
| 11876 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11877 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11878 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11879 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11880 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11881 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11882 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11883 | cat >>confdefs.h <<_ACEOF |
| 11884 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11885 | _ACEOF |
| 11886 | cat >conftest.$ac_ext <<_ACEOF |
| 11887 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11888 | #include "confdefs.h" |
| 11889 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11890 | #ifdef F77_DUMMY_MAIN |
| 11891 | # ifdef __cplusplus |
| 11892 | extern "C" |
| 11893 | # endif |
| 11894 | int F77_DUMMY_MAIN() { return 1; } |
| 11895 | #endif |
| 11896 | int |
| 11897 | main () |
| 11898 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11899 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11900 | ; |
| 11901 | return 0; |
| 11902 | } |
| 11903 | _ACEOF |
| 11904 | rm -f conftest.$ac_objext |
| 11905 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11906 | (eval $ac_compile) 2>&5 |
| 11907 | ac_status=$? |
| 11908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11909 | (exit $ac_status); } && |
| 11910 | { ac_try='test -s conftest.$ac_objext' |
| 11911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11912 | (eval $ac_try) 2>&5 |
| 11913 | ac_status=$? |
| 11914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11915 | (exit $ac_status); }; }; then |
| 11916 | |
| 11917 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11918 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11919 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11920 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11921 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 11922 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11923 | echo "$as_me: failed program was:" >&5 |
| 11924 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11925 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11926 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 11927 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11928 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11929 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11930 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11931 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11932 | for ac_func in setpgrp |
| 11933 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11934 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11935 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11936 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11937 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11939 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11940 | cat >conftest.$ac_ext <<_ACEOF |
| 11941 | #line $LINENO "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 11942 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11943 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11944 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11945 | #include <assert.h> |
| 11946 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11947 | #ifdef __cplusplus |
| 11948 | extern "C" |
| 11949 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11950 | /* 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] | 11951 | builtin and then its argument prototype would still apply. */ |
| 11952 | char $ac_func (); |
| 11953 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11954 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11955 | #ifdef F77_DUMMY_MAIN |
| 11956 | # ifdef __cplusplus |
| 11957 | extern "C" |
| 11958 | # endif |
| 11959 | int F77_DUMMY_MAIN() { return 1; } |
| 11960 | #endif |
| 11961 | int |
| 11962 | main () |
| 11963 | { |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 11964 | /* The GNU C library defines this for functions which it implements |
| 11965 | to always fail with ENOSYS. Some functions are actually named |
| 11966 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11967 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 11968 | choke me |
| 11969 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11970 | f = $ac_func; |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 11971 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11972 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11973 | ; |
| 11974 | return 0; |
| 11975 | } |
| 11976 | _ACEOF |
| 11977 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11978 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11979 | (eval $ac_link) 2>&5 |
| 11980 | ac_status=$? |
| 11981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11982 | (exit $ac_status); } && |
| 11983 | { ac_try='test -s conftest$ac_exeext' |
| 11984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11985 | (eval $ac_try) 2>&5 |
| 11986 | ac_status=$? |
| 11987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11988 | (exit $ac_status); }; }; then |
| 11989 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11990 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11991 | echo "$as_me: failed program was:" >&5 |
| 11992 | cat conftest.$ac_ext >&5 |
| 11993 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11994 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11995 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11996 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11997 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11998 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11999 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12000 | cat >>confdefs.h <<_ACEOF |
| 12001 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12002 | _ACEOF |
| 12003 | cat >conftest.$ac_ext <<_ACEOF |
| 12004 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12005 | #include "confdefs.h" |
| 12006 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12007 | #ifdef F77_DUMMY_MAIN |
| 12008 | # ifdef __cplusplus |
| 12009 | extern "C" |
| 12010 | # endif |
| 12011 | int F77_DUMMY_MAIN() { return 1; } |
| 12012 | #endif |
| 12013 | int |
| 12014 | main () |
| 12015 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12016 | setpgrp(0,0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12017 | ; |
| 12018 | return 0; |
| 12019 | } |
| 12020 | _ACEOF |
| 12021 | rm -f conftest.$ac_objext |
| 12022 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12023 | (eval $ac_compile) 2>&5 |
| 12024 | ac_status=$? |
| 12025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12026 | (exit $ac_status); } && |
| 12027 | { ac_try='test -s conftest.$ac_objext' |
| 12028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12029 | (eval $ac_try) 2>&5 |
| 12030 | ac_status=$? |
| 12031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12032 | (exit $ac_status); }; }; then |
| 12033 | |
| 12034 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12035 | #define SETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12036 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12037 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12038 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 12039 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12040 | echo "$as_me: failed program was:" >&5 |
| 12041 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12042 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12043 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12044 | |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12045 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12046 | done |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12047 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12048 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12049 | for ac_func in gettimeofday |
| 12050 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12051 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12052 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12053 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12054 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12056 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12057 | cat >conftest.$ac_ext <<_ACEOF |
| 12058 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12059 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12060 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12061 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12062 | #include <assert.h> |
| 12063 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12064 | #ifdef __cplusplus |
| 12065 | extern "C" |
| 12066 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12067 | /* 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] | 12068 | builtin and then its argument prototype would still apply. */ |
| 12069 | char $ac_func (); |
| 12070 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12071 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12072 | #ifdef F77_DUMMY_MAIN |
| 12073 | # ifdef __cplusplus |
| 12074 | extern "C" |
| 12075 | # endif |
| 12076 | int F77_DUMMY_MAIN() { return 1; } |
| 12077 | #endif |
| 12078 | int |
| 12079 | main () |
| 12080 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12081 | /* The GNU C library defines this for functions which it implements |
| 12082 | to always fail with ENOSYS. Some functions are actually named |
| 12083 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12084 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12085 | choke me |
| 12086 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12087 | f = $ac_func; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12088 | #endif |
| 12089 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12090 | ; |
| 12091 | return 0; |
| 12092 | } |
| 12093 | _ACEOF |
| 12094 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12095 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12096 | (eval $ac_link) 2>&5 |
| 12097 | ac_status=$? |
| 12098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12099 | (exit $ac_status); } && |
| 12100 | { ac_try='test -s conftest$ac_exeext' |
| 12101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12102 | (eval $ac_try) 2>&5 |
| 12103 | ac_status=$? |
| 12104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12105 | (exit $ac_status); }; }; then |
| 12106 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12107 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12108 | echo "$as_me: failed program was:" >&5 |
| 12109 | cat conftest.$ac_ext >&5 |
| 12110 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12111 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12112 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12113 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12114 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12115 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12116 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12117 | cat >>confdefs.h <<_ACEOF |
| 12118 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12119 | _ACEOF |
| 12120 | cat >conftest.$ac_ext <<_ACEOF |
| 12121 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12122 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12123 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12124 | #ifdef F77_DUMMY_MAIN |
| 12125 | # ifdef __cplusplus |
| 12126 | extern "C" |
| 12127 | # endif |
| 12128 | int F77_DUMMY_MAIN() { return 1; } |
| 12129 | #endif |
| 12130 | int |
| 12131 | main () |
| 12132 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12133 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12134 | ; |
| 12135 | return 0; |
| 12136 | } |
| 12137 | _ACEOF |
| 12138 | rm -f conftest.$ac_objext |
| 12139 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12140 | (eval $ac_compile) 2>&5 |
| 12141 | ac_status=$? |
| 12142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12143 | (exit $ac_status); } && |
| 12144 | { ac_try='test -s conftest.$ac_objext' |
| 12145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12146 | (eval $ac_try) 2>&5 |
| 12147 | ac_status=$? |
| 12148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12149 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12150 | : |
| 12151 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12152 | echo "$as_me: failed program was:" >&5 |
| 12153 | cat conftest.$ac_ext >&5 |
| 12154 | |
| 12155 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12156 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12157 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12158 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12159 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12160 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12161 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12162 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12163 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12164 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12165 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12166 | |
| 12167 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12168 | # 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] | 12169 | # for [no]getaddrinfo in netdb.h. |
| 12170 | echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 12171 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 |
| 12172 | cat >conftest.$ac_ext <<_ACEOF |
| 12173 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12174 | #include "confdefs.h" |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12175 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12176 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12177 | #include <sys/socket.h> |
| 12178 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12179 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12180 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12181 | #ifdef F77_DUMMY_MAIN |
| 12182 | # ifdef __cplusplus |
| 12183 | extern "C" |
| 12184 | # endif |
| 12185 | int F77_DUMMY_MAIN() { return 1; } |
| 12186 | #endif |
| 12187 | int |
| 12188 | main () |
| 12189 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12190 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12191 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12192 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12193 | ; |
| 12194 | return 0; |
| 12195 | } |
| 12196 | _ACEOF |
| 12197 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12198 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12199 | (eval $ac_link) 2>&5 |
| 12200 | ac_status=$? |
| 12201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12202 | (exit $ac_status); } && |
| 12203 | { ac_try='test -s conftest$ac_exeext' |
| 12204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12205 | (eval $ac_try) 2>&5 |
| 12206 | ac_status=$? |
| 12207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12208 | (exit $ac_status); }; }; then |
| 12209 | |
| 12210 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12211 | echo "${ECHO_T}yes" >&6 |
| 12212 | echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 12213 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12214 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12215 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 12216 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12217 | buggygetaddrinfo=yes |
| 12218 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12219 | cat >conftest.$ac_ext <<_ACEOF |
| 12220 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12221 | #include "confdefs.h" |
| 12222 | |
| 12223 | #include <sys/types.h> |
| 12224 | #include <netdb.h> |
| 12225 | #include <string.h> |
| 12226 | #include <sys/socket.h> |
| 12227 | #include <netinet/in.h> |
| 12228 | |
| 12229 | main() |
| 12230 | { |
| 12231 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 12232 | struct addrinfo hints, *ai, *aitop; |
| 12233 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 12234 | |
| 12235 | for (passive = 0; passive <= 1; passive++) { |
| 12236 | memset(&hints, 0, sizeof(hints)); |
| 12237 | hints.ai_family = AF_UNSPEC; |
| 12238 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 12239 | hints.ai_socktype = SOCK_STREAM; |
| 12240 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 12241 | (void)gai_strerror(gaierr); |
| 12242 | goto bad; |
| 12243 | } |
| 12244 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 12245 | if (ai->ai_addr == NULL || |
| 12246 | ai->ai_addrlen == 0 || |
| 12247 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 12248 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 12249 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 12250 | goto bad; |
| 12251 | } |
| 12252 | switch (ai->ai_family) { |
| 12253 | case AF_INET: |
| 12254 | if (strcmp(strport, "54321") != 0) { |
| 12255 | goto bad; |
| 12256 | } |
| 12257 | if (passive) { |
| 12258 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 12259 | goto bad; |
| 12260 | } |
| 12261 | } else { |
| 12262 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 12263 | goto bad; |
| 12264 | } |
| 12265 | } |
| 12266 | inet4++; |
| 12267 | break; |
| 12268 | case AF_INET6: |
| 12269 | if (strcmp(strport, "54321") != 0) { |
| 12270 | goto bad; |
| 12271 | } |
| 12272 | if (passive) { |
| 12273 | if (strcmp(straddr, "::") != 0) { |
| 12274 | goto bad; |
| 12275 | } |
| 12276 | } else { |
| 12277 | if (strcmp(straddr, "::1") != 0) { |
| 12278 | goto bad; |
| 12279 | } |
| 12280 | } |
| 12281 | inet6++; |
| 12282 | break; |
| 12283 | case AF_UNSPEC: |
| 12284 | goto bad; |
| 12285 | break; |
| 12286 | default: |
| 12287 | /* another family support? */ |
| 12288 | break; |
| 12289 | } |
| 12290 | } |
| 12291 | } |
| 12292 | |
| 12293 | if (!(inet4 == 0 || inet4 == 2)) |
| 12294 | goto bad; |
| 12295 | if (!(inet6 == 0 || inet6 == 2)) |
| 12296 | goto bad; |
| 12297 | |
| 12298 | if (aitop) |
| 12299 | freeaddrinfo(aitop); |
| 12300 | exit(0); |
| 12301 | |
| 12302 | bad: |
| 12303 | if (aitop) |
| 12304 | freeaddrinfo(aitop); |
| 12305 | exit(1); |
| 12306 | } |
| 12307 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12308 | _ACEOF |
| 12309 | rm -f conftest$ac_exeext |
| 12310 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12311 | (eval $ac_link) 2>&5 |
| 12312 | ac_status=$? |
| 12313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12314 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12316 | (eval $ac_try) 2>&5 |
| 12317 | ac_status=$? |
| 12318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12319 | (exit $ac_status); }; }; then |
| 12320 | echo "$as_me:$LINENO: result: good" >&5 |
| 12321 | echo "${ECHO_T}good" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12322 | buggygetaddrinfo=no |
| 12323 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12324 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12325 | echo "$as_me: failed program was:" >&5 |
| 12326 | cat conftest.$ac_ext >&5 |
| 12327 | ( exit $ac_status ) |
| 12328 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 12329 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12330 | buggygetaddrinfo=yes |
| 12331 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12332 | 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] | 12333 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12334 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12335 | echo "$as_me: failed program was:" >&5 |
| 12336 | cat conftest.$ac_ext >&5 |
| 12337 | |
| 12338 | echo "$as_me:$LINENO: result: no" >&5 |
| 12339 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12340 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12341 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12342 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12343 | 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] | 12344 | |
| 12345 | if test "$buggygetaddrinfo" = "yes"; then |
| 12346 | if test "$ipv6" = "yes"; then |
| 12347 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 12348 | echo ' or you can specify "--disable-ipv6"'. |
| 12349 | exit 1 |
| 12350 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12351 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12352 | |
| 12353 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12354 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12355 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12356 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12357 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12358 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 12359 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12360 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12361 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12362 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12363 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12364 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12365 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12366 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12367 | cat >conftest.$ac_ext <<_ACEOF |
| 12368 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12369 | #include "confdefs.h" |
| 12370 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12371 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12372 | #include <assert.h> |
| 12373 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12374 | #ifdef __cplusplus |
| 12375 | extern "C" |
| 12376 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12377 | /* 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] | 12378 | builtin and then its argument prototype would still apply. */ |
| 12379 | char $ac_func (); |
| 12380 | char (*f) (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12381 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12382 | #ifdef F77_DUMMY_MAIN |
| 12383 | # ifdef __cplusplus |
| 12384 | extern "C" |
| 12385 | # endif |
| 12386 | int F77_DUMMY_MAIN() { return 1; } |
| 12387 | #endif |
| 12388 | int |
| 12389 | main () |
| 12390 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12391 | /* The GNU C library defines this for functions which it implements |
| 12392 | to always fail with ENOSYS. Some functions are actually named |
| 12393 | something starting with __ and the normal name is an alias. */ |
| 12394 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12395 | choke me |
| 12396 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12397 | f = $ac_func; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12398 | #endif |
| 12399 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12400 | ; |
| 12401 | return 0; |
| 12402 | } |
| 12403 | _ACEOF |
| 12404 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12405 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12406 | (eval $ac_link) 2>&5 |
| 12407 | ac_status=$? |
| 12408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12409 | (exit $ac_status); } && |
| 12410 | { ac_try='test -s conftest$ac_exeext' |
| 12411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12412 | (eval $ac_try) 2>&5 |
| 12413 | ac_status=$? |
| 12414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12415 | (exit $ac_status); }; }; then |
| 12416 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12417 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12418 | echo "$as_me: failed program was:" >&5 |
| 12419 | cat conftest.$ac_ext >&5 |
| 12420 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12421 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12422 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12423 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12424 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12425 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12426 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12427 | cat >>confdefs.h <<_ACEOF |
| 12428 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12429 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12430 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12431 | fi |
| 12432 | done |
| 12433 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12434 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12435 | # checks for structures |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12436 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 12437 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 12438 | if test "${ac_cv_header_time+set}" = set; then |
| 12439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12440 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12441 | cat >conftest.$ac_ext <<_ACEOF |
| 12442 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12443 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12444 | #include <sys/types.h> |
| 12445 | #include <sys/time.h> |
| 12446 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12447 | |
| 12448 | #ifdef F77_DUMMY_MAIN |
| 12449 | # ifdef __cplusplus |
| 12450 | extern "C" |
| 12451 | # endif |
| 12452 | int F77_DUMMY_MAIN() { return 1; } |
| 12453 | #endif |
| 12454 | int |
| 12455 | main () |
| 12456 | { |
| 12457 | if ((struct tm *) 0) |
| 12458 | return 0; |
| 12459 | ; |
| 12460 | return 0; |
| 12461 | } |
| 12462 | _ACEOF |
| 12463 | rm -f conftest.$ac_objext |
| 12464 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12465 | (eval $ac_compile) 2>&5 |
| 12466 | ac_status=$? |
| 12467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12468 | (exit $ac_status); } && |
| 12469 | { ac_try='test -s conftest.$ac_objext' |
| 12470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12471 | (eval $ac_try) 2>&5 |
| 12472 | ac_status=$? |
| 12473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12474 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12475 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12476 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12477 | echo "$as_me: failed program was:" >&5 |
| 12478 | cat conftest.$ac_ext >&5 |
| 12479 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12480 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12481 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12482 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12483 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 12484 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12485 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12486 | |
| 12487 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12488 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12489 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12490 | |
| 12491 | fi |
| 12492 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12493 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 12494 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 12495 | if test "${ac_cv_struct_tm+set}" = set; then |
| 12496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12497 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12498 | cat >conftest.$ac_ext <<_ACEOF |
| 12499 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12500 | #include "confdefs.h" |
| 12501 | #include <sys/types.h> |
| 12502 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12503 | |
| 12504 | #ifdef F77_DUMMY_MAIN |
| 12505 | # ifdef __cplusplus |
| 12506 | extern "C" |
| 12507 | # endif |
| 12508 | int F77_DUMMY_MAIN() { return 1; } |
| 12509 | #endif |
| 12510 | int |
| 12511 | main () |
| 12512 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12513 | struct tm *tp; tp->tm_sec; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12514 | ; |
| 12515 | return 0; |
| 12516 | } |
| 12517 | _ACEOF |
| 12518 | rm -f conftest.$ac_objext |
| 12519 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12520 | (eval $ac_compile) 2>&5 |
| 12521 | ac_status=$? |
| 12522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12523 | (exit $ac_status); } && |
| 12524 | { ac_try='test -s conftest.$ac_objext' |
| 12525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12526 | (eval $ac_try) 2>&5 |
| 12527 | ac_status=$? |
| 12528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12529 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12530 | ac_cv_struct_tm=time.h |
| 12531 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12532 | echo "$as_me: failed program was:" >&5 |
| 12533 | cat conftest.$ac_ext >&5 |
| 12534 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12535 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12536 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12537 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12538 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 12539 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12540 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12541 | |
| 12542 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12543 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12544 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12545 | |
| 12546 | fi |
| 12547 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12548 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 12549 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 12550 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 12551 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12552 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12553 | cat >conftest.$ac_ext <<_ACEOF |
| 12554 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12555 | #include "confdefs.h" |
| 12556 | #include <sys/types.h> |
| 12557 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12558 | |
| 12559 | |
| 12560 | #ifdef F77_DUMMY_MAIN |
| 12561 | # ifdef __cplusplus |
| 12562 | extern "C" |
| 12563 | # endif |
| 12564 | int F77_DUMMY_MAIN() { return 1; } |
| 12565 | #endif |
| 12566 | int |
| 12567 | main () |
| 12568 | { |
| 12569 | static struct tm ac_aggr; |
| 12570 | if (ac_aggr.tm_zone) |
| 12571 | return 0; |
| 12572 | ; |
| 12573 | return 0; |
| 12574 | } |
| 12575 | _ACEOF |
| 12576 | rm -f conftest.$ac_objext |
| 12577 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12578 | (eval $ac_compile) 2>&5 |
| 12579 | ac_status=$? |
| 12580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12581 | (exit $ac_status); } && |
| 12582 | { ac_try='test -s conftest.$ac_objext' |
| 12583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12584 | (eval $ac_try) 2>&5 |
| 12585 | ac_status=$? |
| 12586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12587 | (exit $ac_status); }; }; then |
| 12588 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12589 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12590 | echo "$as_me: failed program was:" >&5 |
| 12591 | cat conftest.$ac_ext >&5 |
| 12592 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12593 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12594 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12595 | fi |
| 12596 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 12597 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 12598 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 12599 | |
| 12600 | cat >>confdefs.h <<_ACEOF |
| 12601 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 12602 | _ACEOF |
| 12603 | |
| 12604 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12605 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12606 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12607 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 12608 | |
| 12609 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12610 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12611 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12612 | |
| 12613 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12614 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 12615 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 12616 | if test "${ac_cv_var_tzname+set}" = set; then |
| 12617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12618 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12619 | cat >conftest.$ac_ext <<_ACEOF |
| 12620 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12621 | #include "confdefs.h" |
| 12622 | #include <time.h> |
| 12623 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12624 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12625 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12626 | |
| 12627 | #ifdef F77_DUMMY_MAIN |
| 12628 | # ifdef __cplusplus |
| 12629 | extern "C" |
| 12630 | # endif |
| 12631 | int F77_DUMMY_MAIN() { return 1; } |
| 12632 | #endif |
| 12633 | int |
| 12634 | main () |
| 12635 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12636 | atoi(*tzname); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12637 | ; |
| 12638 | return 0; |
| 12639 | } |
| 12640 | _ACEOF |
| 12641 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12642 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12643 | (eval $ac_link) 2>&5 |
| 12644 | ac_status=$? |
| 12645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12646 | (exit $ac_status); } && |
| 12647 | { ac_try='test -s conftest$ac_exeext' |
| 12648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12649 | (eval $ac_try) 2>&5 |
| 12650 | ac_status=$? |
| 12651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12652 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12653 | ac_cv_var_tzname=yes |
| 12654 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12655 | echo "$as_me: failed program was:" >&5 |
| 12656 | cat conftest.$ac_ext >&5 |
| 12657 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12658 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12659 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12660 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12661 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 12662 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12663 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12664 | |
| 12665 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12666 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12667 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12668 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12669 | fi |
| 12670 | fi |
| 12671 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12672 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12673 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 12674 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 |
| 12675 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 12676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12677 | else |
| 12678 | cat >conftest.$ac_ext <<_ACEOF |
| 12679 | #line $LINENO "configure" |
| 12680 | #include "confdefs.h" |
| 12681 | $ac_includes_default |
| 12682 | #ifdef F77_DUMMY_MAIN |
| 12683 | # ifdef __cplusplus |
| 12684 | extern "C" |
| 12685 | # endif |
| 12686 | int F77_DUMMY_MAIN() { return 1; } |
| 12687 | #endif |
| 12688 | int |
| 12689 | main () |
| 12690 | { |
| 12691 | static struct stat ac_aggr; |
| 12692 | if (ac_aggr.st_rdev) |
| 12693 | return 0; |
| 12694 | ; |
| 12695 | return 0; |
| 12696 | } |
| 12697 | _ACEOF |
| 12698 | rm -f conftest.$ac_objext |
| 12699 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12700 | (eval $ac_compile) 2>&5 |
| 12701 | ac_status=$? |
| 12702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12703 | (exit $ac_status); } && |
| 12704 | { ac_try='test -s conftest.$ac_objext' |
| 12705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12706 | (eval $ac_try) 2>&5 |
| 12707 | ac_status=$? |
| 12708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12709 | (exit $ac_status); }; }; then |
| 12710 | ac_cv_member_struct_stat_st_rdev=yes |
| 12711 | else |
| 12712 | echo "$as_me: failed program was:" >&5 |
| 12713 | cat conftest.$ac_ext >&5 |
| 12714 | ac_cv_member_struct_stat_st_rdev=no |
| 12715 | fi |
| 12716 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12717 | fi |
| 12718 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 12719 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 |
| 12720 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 12721 | |
| 12722 | cat >>confdefs.h <<_ACEOF |
| 12723 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 12724 | _ACEOF |
| 12725 | |
| 12726 | |
| 12727 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12728 | #define HAVE_ST_RDEV 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12729 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12730 | |
| 12731 | fi |
| 12732 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12733 | |
| 12734 | |
| 12735 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 12736 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| 12737 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 12738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12739 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12740 | cat >conftest.$ac_ext <<_ACEOF |
| 12741 | #line $LINENO "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12742 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12743 | $ac_includes_default |
| 12744 | #ifdef F77_DUMMY_MAIN |
| 12745 | # ifdef __cplusplus |
| 12746 | extern "C" |
| 12747 | # endif |
| 12748 | int F77_DUMMY_MAIN() { return 1; } |
| 12749 | #endif |
| 12750 | int |
| 12751 | main () |
| 12752 | { |
| 12753 | static struct stat ac_aggr; |
| 12754 | if (ac_aggr.st_blksize) |
| 12755 | return 0; |
| 12756 | ; |
| 12757 | return 0; |
| 12758 | } |
| 12759 | _ACEOF |
| 12760 | rm -f conftest.$ac_objext |
| 12761 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12762 | (eval $ac_compile) 2>&5 |
| 12763 | ac_status=$? |
| 12764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12765 | (exit $ac_status); } && |
| 12766 | { ac_try='test -s conftest.$ac_objext' |
| 12767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12768 | (eval $ac_try) 2>&5 |
| 12769 | ac_status=$? |
| 12770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12771 | (exit $ac_status); }; }; then |
| 12772 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12773 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12774 | echo "$as_me: failed program was:" >&5 |
| 12775 | cat conftest.$ac_ext >&5 |
| 12776 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12777 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12778 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12779 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12780 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 12781 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| 12782 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12783 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12784 | cat >>confdefs.h <<_ACEOF |
| 12785 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 12786 | _ACEOF |
| 12787 | |
| 12788 | |
| 12789 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12790 | #define HAVE_ST_BLKSIZE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12791 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12792 | |
| 12793 | fi |
| 12794 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12795 | |
| 12796 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 12797 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 12798 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 12799 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12800 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12801 | cat >conftest.$ac_ext <<_ACEOF |
| 12802 | #line $LINENO "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12803 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12804 | $ac_includes_default |
| 12805 | #ifdef F77_DUMMY_MAIN |
| 12806 | # ifdef __cplusplus |
| 12807 | extern "C" |
| 12808 | # endif |
| 12809 | int F77_DUMMY_MAIN() { return 1; } |
| 12810 | #endif |
| 12811 | int |
| 12812 | main () |
| 12813 | { |
| 12814 | static struct stat ac_aggr; |
| 12815 | if (ac_aggr.st_blocks) |
| 12816 | return 0; |
| 12817 | ; |
| 12818 | return 0; |
| 12819 | } |
| 12820 | _ACEOF |
| 12821 | rm -f conftest.$ac_objext |
| 12822 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12823 | (eval $ac_compile) 2>&5 |
| 12824 | ac_status=$? |
| 12825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12826 | (exit $ac_status); } && |
| 12827 | { ac_try='test -s conftest.$ac_objext' |
| 12828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12829 | (eval $ac_try) 2>&5 |
| 12830 | ac_status=$? |
| 12831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12832 | (exit $ac_status); }; }; then |
| 12833 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12834 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12835 | echo "$as_me: failed program was:" >&5 |
| 12836 | cat conftest.$ac_ext >&5 |
| 12837 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12838 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12839 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12840 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12841 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 12842 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 12843 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12844 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12845 | cat >>confdefs.h <<_ACEOF |
| 12846 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 12847 | _ACEOF |
| 12848 | |
| 12849 | |
| 12850 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12851 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12852 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12853 | |
| 12854 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12855 | LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12856 | fi |
| 12857 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12858 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12859 | |
| 12860 | echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 12861 | echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6 |
| 12862 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 12863 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12864 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12865 | cat >conftest.$ac_ext <<_ACEOF |
| 12866 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12867 | #include "confdefs.h" |
| 12868 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12869 | #ifdef F77_DUMMY_MAIN |
| 12870 | # ifdef __cplusplus |
| 12871 | extern "C" |
| 12872 | # endif |
| 12873 | int F77_DUMMY_MAIN() { return 1; } |
| 12874 | #endif |
| 12875 | int |
| 12876 | main () |
| 12877 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12878 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12879 | ; |
| 12880 | return 0; |
| 12881 | } |
| 12882 | _ACEOF |
| 12883 | rm -f conftest.$ac_objext |
| 12884 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12885 | (eval $ac_compile) 2>&5 |
| 12886 | ac_status=$? |
| 12887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12888 | (exit $ac_status); } && |
| 12889 | { ac_try='test -s conftest.$ac_objext' |
| 12890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12891 | (eval $ac_try) 2>&5 |
| 12892 | ac_status=$? |
| 12893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12894 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12895 | ac_cv_header_time_altzone=yes |
| 12896 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12897 | echo "$as_me: failed program was:" >&5 |
| 12898 | cat conftest.$ac_ext >&5 |
| 12899 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12900 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12901 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12902 | fi |
| 12903 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12904 | echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 12905 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12906 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12907 | |
| 12908 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12909 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12910 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12911 | |
| 12912 | fi |
| 12913 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 12914 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12915 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 12916 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 12917 | cat >conftest.$ac_ext <<_ACEOF |
| 12918 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12919 | #include "confdefs.h" |
| 12920 | |
| 12921 | #include <sys/types.h> |
| 12922 | #include <sys/select.h> |
| 12923 | #include <sys/time.h> |
| 12924 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12925 | #ifdef F77_DUMMY_MAIN |
| 12926 | # ifdef __cplusplus |
| 12927 | extern "C" |
| 12928 | # endif |
| 12929 | int F77_DUMMY_MAIN() { return 1; } |
| 12930 | #endif |
| 12931 | int |
| 12932 | main () |
| 12933 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12934 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12935 | ; |
| 12936 | return 0; |
| 12937 | } |
| 12938 | _ACEOF |
| 12939 | rm -f conftest.$ac_objext |
| 12940 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12941 | (eval $ac_compile) 2>&5 |
| 12942 | ac_status=$? |
| 12943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12944 | (exit $ac_status); } && |
| 12945 | { ac_try='test -s conftest.$ac_objext' |
| 12946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12947 | (eval $ac_try) 2>&5 |
| 12948 | ac_status=$? |
| 12949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12950 | (exit $ac_status); }; }; then |
| 12951 | |
| 12952 | |
| 12953 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12954 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12955 | _ACEOF |
| 12956 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12957 | was_it_defined=yes |
| 12958 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 12959 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12960 | echo "$as_me: failed program was:" >&5 |
| 12961 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12962 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12963 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12964 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 12965 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12966 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12967 | echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 12968 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6 |
| 12969 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 12970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12971 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12972 | cat >conftest.$ac_ext <<_ACEOF |
| 12973 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12974 | #include "confdefs.h" |
| 12975 | |
| 12976 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12977 | #ifdef F77_DUMMY_MAIN |
| 12978 | # ifdef __cplusplus |
| 12979 | extern "C" |
| 12980 | # endif |
| 12981 | int F77_DUMMY_MAIN() { return 1; } |
| 12982 | #endif |
| 12983 | int |
| 12984 | main () |
| 12985 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12986 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12987 | ; |
| 12988 | return 0; |
| 12989 | } |
| 12990 | _ACEOF |
| 12991 | rm -f conftest.$ac_objext |
| 12992 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12993 | (eval $ac_compile) 2>&5 |
| 12994 | ac_status=$? |
| 12995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12996 | (exit $ac_status); } && |
| 12997 | { ac_try='test -s conftest.$ac_objext' |
| 12998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12999 | (eval $ac_try) 2>&5 |
| 13000 | ac_status=$? |
| 13001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13002 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13003 | ac_cv_struct_addrinfo=yes |
| 13004 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13005 | echo "$as_me: failed program was:" >&5 |
| 13006 | cat conftest.$ac_ext >&5 |
| 13007 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13008 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13009 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13010 | fi |
| 13011 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13012 | echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 13013 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13014 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13015 | |
| 13016 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13017 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13018 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13019 | |
| 13020 | fi |
| 13021 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13022 | echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 13023 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 |
| 13024 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 13025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13026 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13027 | cat >conftest.$ac_ext <<_ACEOF |
| 13028 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13029 | #include "confdefs.h" |
| 13030 | |
| 13031 | # include <sys/types.h> |
| 13032 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13033 | #ifdef F77_DUMMY_MAIN |
| 13034 | # ifdef __cplusplus |
| 13035 | extern "C" |
| 13036 | # endif |
| 13037 | int F77_DUMMY_MAIN() { return 1; } |
| 13038 | #endif |
| 13039 | int |
| 13040 | main () |
| 13041 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13042 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13043 | ; |
| 13044 | return 0; |
| 13045 | } |
| 13046 | _ACEOF |
| 13047 | rm -f conftest.$ac_objext |
| 13048 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13049 | (eval $ac_compile) 2>&5 |
| 13050 | ac_status=$? |
| 13051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13052 | (exit $ac_status); } && |
| 13053 | { ac_try='test -s conftest.$ac_objext' |
| 13054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13055 | (eval $ac_try) 2>&5 |
| 13056 | ac_status=$? |
| 13057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13058 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13059 | ac_cv_struct_sockaddr_storage=yes |
| 13060 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13061 | echo "$as_me: failed program was:" >&5 |
| 13062 | cat conftest.$ac_ext >&5 |
| 13063 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13064 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13065 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13066 | fi |
| 13067 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13068 | echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 13069 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13070 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13071 | |
| 13072 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13073 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13074 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13075 | |
| 13076 | fi |
| 13077 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13078 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13079 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13080 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13081 | echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 13082 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
| 13083 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 13084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13085 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13086 | cat >conftest.$ac_ext <<_ACEOF |
| 13087 | #line $LINENO "configure" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13088 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13089 | $ac_includes_default |
| 13090 | #ifdef F77_DUMMY_MAIN |
| 13091 | # ifdef __cplusplus |
| 13092 | extern "C" |
| 13093 | # endif |
| 13094 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13095 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13096 | int |
| 13097 | main () |
| 13098 | { |
| 13099 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 13100 | test_array [0] = 0 |
| 13101 | |
| 13102 | ; |
| 13103 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13104 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13105 | _ACEOF |
| 13106 | rm -f conftest.$ac_objext |
| 13107 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13108 | (eval $ac_compile) 2>&5 |
| 13109 | ac_status=$? |
| 13110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13111 | (exit $ac_status); } && |
| 13112 | { ac_try='test -s conftest.$ac_objext' |
| 13113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13114 | (eval $ac_try) 2>&5 |
| 13115 | ac_status=$? |
| 13116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13117 | (exit $ac_status); }; }; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13118 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13119 | else |
| 13120 | echo "$as_me: failed program was:" >&5 |
| 13121 | cat conftest.$ac_ext >&5 |
| 13122 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13123 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13124 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13125 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13126 | echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 13127 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13128 | 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] | 13129 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13130 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13131 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13132 | |
| 13133 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13134 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13135 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 13136 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 13137 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 13138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13139 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13140 | ac_cv_prog_cc_stdc=no |
| 13141 | ac_save_CC=$CC |
| 13142 | cat >conftest.$ac_ext <<_ACEOF |
| 13143 | #line $LINENO "configure" |
| 13144 | #include "confdefs.h" |
| 13145 | #include <stdarg.h> |
| 13146 | #include <stdio.h> |
| 13147 | #include <sys/types.h> |
| 13148 | #include <sys/stat.h> |
| 13149 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 13150 | struct buf { int x; }; |
| 13151 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 13152 | static char *e (p, i) |
| 13153 | char **p; |
| 13154 | int i; |
| 13155 | { |
| 13156 | return p[i]; |
| 13157 | } |
| 13158 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 13159 | { |
| 13160 | char *s; |
| 13161 | va_list v; |
| 13162 | va_start (v,p); |
| 13163 | s = g (p, va_arg (v,int)); |
| 13164 | va_end (v); |
| 13165 | return s; |
| 13166 | } |
| 13167 | int test (int i, double x); |
| 13168 | struct s1 {int (*f) (int a);}; |
| 13169 | struct s2 {int (*f) (double a);}; |
| 13170 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 13171 | int argc; |
| 13172 | char **argv; |
| 13173 | #ifdef F77_DUMMY_MAIN |
| 13174 | # ifdef __cplusplus |
| 13175 | extern "C" |
| 13176 | # endif |
| 13177 | int F77_DUMMY_MAIN() { return 1; } |
| 13178 | #endif |
| 13179 | int |
| 13180 | main () |
| 13181 | { |
| 13182 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 13183 | ; |
| 13184 | return 0; |
| 13185 | } |
| 13186 | _ACEOF |
| 13187 | # Don't try gcc -ansi; that turns off useful extensions and |
| 13188 | # breaks some systems' header files. |
| 13189 | # AIX -qlanglvl=ansi |
| 13190 | # Ultrix and OSF/1 -std1 |
| 13191 | # HP-UX 10.20 and later -Ae |
| 13192 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 13193 | # SVR4 -Xc -D__EXTENSIONS__ |
| 13194 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 13195 | do |
| 13196 | CC="$ac_save_CC $ac_arg" |
| 13197 | rm -f conftest.$ac_objext |
| 13198 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13199 | (eval $ac_compile) 2>&5 |
| 13200 | ac_status=$? |
| 13201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13202 | (exit $ac_status); } && |
| 13203 | { ac_try='test -s conftest.$ac_objext' |
| 13204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13205 | (eval $ac_try) 2>&5 |
| 13206 | ac_status=$? |
| 13207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13208 | (exit $ac_status); }; }; then |
| 13209 | ac_cv_prog_cc_stdc=$ac_arg |
| 13210 | break |
| 13211 | else |
| 13212 | echo "$as_me: failed program was:" >&5 |
| 13213 | cat conftest.$ac_ext >&5 |
| 13214 | fi |
| 13215 | rm -f conftest.$ac_objext |
| 13216 | done |
| 13217 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 13218 | CC=$ac_save_CC |
| 13219 | |
| 13220 | fi |
| 13221 | |
| 13222 | case "x$ac_cv_prog_cc_stdc" in |
| 13223 | x|xno) |
| 13224 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 13225 | echo "${ECHO_T}none needed" >&6 ;; |
| 13226 | *) |
| 13227 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 13228 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 13229 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 13230 | esac |
| 13231 | |
| 13232 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 13233 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 13234 | if test "${ac_cv_c_const+set}" = set; then |
| 13235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13236 | else |
| 13237 | cat >conftest.$ac_ext <<_ACEOF |
| 13238 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13239 | #include "confdefs.h" |
| 13240 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13241 | #ifdef F77_DUMMY_MAIN |
| 13242 | # ifdef __cplusplus |
| 13243 | extern "C" |
| 13244 | # endif |
| 13245 | int F77_DUMMY_MAIN() { return 1; } |
| 13246 | #endif |
| 13247 | int |
| 13248 | main () |
| 13249 | { |
| 13250 | /* FIXME: Include the comments suggested by Paul. */ |
| 13251 | #ifndef __cplusplus |
| 13252 | /* Ultrix mips cc rejects this. */ |
| 13253 | typedef int charset[2]; |
| 13254 | const charset x; |
| 13255 | /* SunOS 4.1.1 cc rejects this. */ |
| 13256 | char const *const *ccp; |
| 13257 | char **p; |
| 13258 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 13259 | struct point {int x, y;}; |
| 13260 | static struct point const zero = {0,0}; |
| 13261 | /* AIX XL C 1.02.0.0 rejects this. |
| 13262 | It does not let you subtract one const X* pointer from another in |
| 13263 | an arm of an if-expression whose if-part is not a constant |
| 13264 | expression */ |
| 13265 | const char *g = "string"; |
| 13266 | ccp = &g + (g ? g-g : 0); |
| 13267 | /* HPUX 7.0 cc rejects these. */ |
| 13268 | ++ccp; |
| 13269 | p = (char**) ccp; |
| 13270 | ccp = (char const *const *) p; |
| 13271 | { /* SCO 3.2v4 cc rejects this. */ |
| 13272 | char *t; |
| 13273 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13274 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13275 | *t++ = 0; |
| 13276 | } |
| 13277 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 13278 | int x[] = {25, 17}; |
| 13279 | const int *foo = &x[0]; |
| 13280 | ++foo; |
| 13281 | } |
| 13282 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 13283 | typedef const int *iptr; |
| 13284 | iptr p = 0; |
| 13285 | ++p; |
| 13286 | } |
| 13287 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 13288 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 13289 | struct s { int j; const int *ap[3]; }; |
| 13290 | struct s *b; b->j = 5; |
| 13291 | } |
| 13292 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 13293 | const int foo = 10; |
| 13294 | } |
| 13295 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13296 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13297 | ; |
| 13298 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13299 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13300 | _ACEOF |
| 13301 | rm -f conftest.$ac_objext |
| 13302 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13303 | (eval $ac_compile) 2>&5 |
| 13304 | ac_status=$? |
| 13305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13306 | (exit $ac_status); } && |
| 13307 | { ac_try='test -s conftest.$ac_objext' |
| 13308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13309 | (eval $ac_try) 2>&5 |
| 13310 | ac_status=$? |
| 13311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13312 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13313 | ac_cv_c_const=yes |
| 13314 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13315 | echo "$as_me: failed program was:" >&5 |
| 13316 | cat conftest.$ac_ext >&5 |
| 13317 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13318 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13319 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13320 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13321 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 13322 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13323 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13324 | |
| 13325 | cat >>confdefs.h <<\_ACEOF |
| 13326 | #define const |
| 13327 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13328 | |
| 13329 | fi |
| 13330 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13331 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13332 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13333 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 13334 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| 13335 | cat >conftest.$ac_ext <<_ACEOF |
| 13336 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13337 | #include "confdefs.h" |
| 13338 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13339 | #ifdef F77_DUMMY_MAIN |
| 13340 | # ifdef __cplusplus |
| 13341 | extern "C" |
| 13342 | # endif |
| 13343 | int F77_DUMMY_MAIN() { return 1; } |
| 13344 | #endif |
| 13345 | int |
| 13346 | main () |
| 13347 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13348 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13349 | ; |
| 13350 | return 0; |
| 13351 | } |
| 13352 | _ACEOF |
| 13353 | rm -f conftest.$ac_objext |
| 13354 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13355 | (eval $ac_compile) 2>&5 |
| 13356 | ac_status=$? |
| 13357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13358 | (exit $ac_status); } && |
| 13359 | { ac_try='test -s conftest.$ac_objext' |
| 13360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13361 | (eval $ac_try) 2>&5 |
| 13362 | ac_status=$? |
| 13363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13364 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13365 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13366 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13367 | echo "$as_me: failed program was:" >&5 |
| 13368 | cat conftest.$ac_ext >&5 |
| 13369 | |
| 13370 | cat >>confdefs.h <<\_ACEOF |
| 13371 | #define volatile |
| 13372 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13373 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13374 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13375 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13376 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13377 | echo "$as_me:$LINENO: result: $works" >&5 |
| 13378 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13379 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13380 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13381 | echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 13382 | echo $ECHO_N "checking for working signed char... $ECHO_C" >&6 |
| 13383 | cat >conftest.$ac_ext <<_ACEOF |
| 13384 | #line $LINENO "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13385 | #include "confdefs.h" |
| 13386 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13387 | #ifdef F77_DUMMY_MAIN |
| 13388 | # ifdef __cplusplus |
| 13389 | extern "C" |
| 13390 | # endif |
| 13391 | int F77_DUMMY_MAIN() { return 1; } |
| 13392 | #endif |
| 13393 | int |
| 13394 | main () |
| 13395 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13396 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13397 | ; |
| 13398 | return 0; |
| 13399 | } |
| 13400 | _ACEOF |
| 13401 | rm -f conftest.$ac_objext |
| 13402 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13403 | (eval $ac_compile) 2>&5 |
| 13404 | ac_status=$? |
| 13405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13406 | (exit $ac_status); } && |
| 13407 | { ac_try='test -s conftest.$ac_objext' |
| 13408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13409 | (eval $ac_try) 2>&5 |
| 13410 | ac_status=$? |
| 13411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13412 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13413 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13414 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13415 | echo "$as_me: failed program was:" >&5 |
| 13416 | cat conftest.$ac_ext >&5 |
| 13417 | |
| 13418 | cat >>confdefs.h <<\_ACEOF |
| 13419 | #define signed |
| 13420 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13421 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13422 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13423 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13424 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13425 | echo "$as_me:$LINENO: result: $works" >&5 |
| 13426 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13427 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13428 | have_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13429 | echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 13430 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6 |
| 13431 | cat >conftest.$ac_ext <<_ACEOF |
| 13432 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13433 | #include "confdefs.h" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13434 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13435 | #ifdef F77_DUMMY_MAIN |
| 13436 | # ifdef __cplusplus |
| 13437 | extern "C" |
| 13438 | # endif |
| 13439 | int F77_DUMMY_MAIN() { return 1; } |
| 13440 | #endif |
| 13441 | int |
| 13442 | main () |
| 13443 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13444 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13445 | ; |
| 13446 | return 0; |
| 13447 | } |
| 13448 | _ACEOF |
| 13449 | rm -f conftest.$ac_objext |
| 13450 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13451 | (eval $ac_compile) 2>&5 |
| 13452 | ac_status=$? |
| 13453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13454 | (exit $ac_status); } && |
| 13455 | { ac_try='test -s conftest.$ac_objext' |
| 13456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13457 | (eval $ac_try) 2>&5 |
| 13458 | ac_status=$? |
| 13459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13460 | (exit $ac_status); }; }; then |
| 13461 | |
| 13462 | |
| 13463 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13464 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13465 | _ACEOF |
| 13466 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13467 | have_prototypes=yes |
| 13468 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13469 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13470 | echo "$as_me: failed program was:" >&5 |
| 13471 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13472 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13473 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13474 | echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 13475 | echo "${ECHO_T}$have_prototypes" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13476 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13477 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13478 | echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 13479 | echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6 |
| 13480 | cat >conftest.$ac_ext <<_ACEOF |
| 13481 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13482 | #include "confdefs.h" |
| 13483 | |
| 13484 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13485 | int foo(int x, ...) { |
| 13486 | va_list va; |
| 13487 | va_start(va, x); |
| 13488 | va_arg(va, int); |
| 13489 | va_arg(va, char *); |
| 13490 | va_arg(va, double); |
| 13491 | return 0; |
| 13492 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13493 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13494 | #ifdef F77_DUMMY_MAIN |
| 13495 | # ifdef __cplusplus |
| 13496 | extern "C" |
| 13497 | # endif |
| 13498 | int F77_DUMMY_MAIN() { return 1; } |
| 13499 | #endif |
| 13500 | int |
| 13501 | main () |
| 13502 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13503 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13504 | ; |
| 13505 | return 0; |
| 13506 | } |
| 13507 | _ACEOF |
| 13508 | rm -f conftest.$ac_objext |
| 13509 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13510 | (eval $ac_compile) 2>&5 |
| 13511 | ac_status=$? |
| 13512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13513 | (exit $ac_status); } && |
| 13514 | { ac_try='test -s conftest.$ac_objext' |
| 13515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13516 | (eval $ac_try) 2>&5 |
| 13517 | ac_status=$? |
| 13518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13519 | (exit $ac_status); }; }; then |
| 13520 | |
| 13521 | |
| 13522 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13523 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13524 | _ACEOF |
| 13525 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13526 | works=yes |
| 13527 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13528 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13529 | echo "$as_me: failed program was:" >&5 |
| 13530 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13531 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13532 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13533 | echo "$as_me:$LINENO: result: $works" >&5 |
| 13534 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13535 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13536 | if test "$have_prototypes" = yes; then |
| 13537 | bad_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13538 | echo "$as_me:$LINENO: checking for bad exec* prototypes" >&5 |
| 13539 | echo $ECHO_N "checking for bad exec* prototypes... $ECHO_C" >&6 |
| 13540 | cat >conftest.$ac_ext <<_ACEOF |
| 13541 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13542 | #include "confdefs.h" |
| 13543 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13544 | #ifdef F77_DUMMY_MAIN |
| 13545 | # ifdef __cplusplus |
| 13546 | extern "C" |
| 13547 | # endif |
| 13548 | int F77_DUMMY_MAIN() { return 1; } |
| 13549 | #endif |
| 13550 | int |
| 13551 | main () |
| 13552 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13553 | char **t;execve("@",t,t); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13554 | ; |
| 13555 | return 0; |
| 13556 | } |
| 13557 | _ACEOF |
| 13558 | rm -f conftest.$ac_objext |
| 13559 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13560 | (eval $ac_compile) 2>&5 |
| 13561 | ac_status=$? |
| 13562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13563 | (exit $ac_status); } && |
| 13564 | { ac_try='test -s conftest.$ac_objext' |
| 13565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13566 | (eval $ac_try) 2>&5 |
| 13567 | ac_status=$? |
| 13568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13569 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13570 | : |
| 13571 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13572 | echo "$as_me: failed program was:" >&5 |
| 13573 | cat conftest.$ac_ext >&5 |
| 13574 | |
| 13575 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13576 | #define BAD_EXEC_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13577 | _ACEOF |
| 13578 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13579 | bad_prototypes=yes |
| 13580 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13581 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13582 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13583 | echo "$as_me:$LINENO: result: $bad_prototypes" >&5 |
| 13584 | echo "${ECHO_T}$bad_prototypes" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13585 | fi |
| 13586 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13587 | # check if sockaddr has sa_len member |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13588 | echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 13589 | echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6 |
| 13590 | cat >conftest.$ac_ext <<_ACEOF |
| 13591 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13592 | #include "confdefs.h" |
| 13593 | #include <sys/types.h> |
| 13594 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13595 | #ifdef F77_DUMMY_MAIN |
| 13596 | # ifdef __cplusplus |
| 13597 | extern "C" |
| 13598 | # endif |
| 13599 | int F77_DUMMY_MAIN() { return 1; } |
| 13600 | #endif |
| 13601 | int |
| 13602 | main () |
| 13603 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13604 | struct sockaddr x; |
| 13605 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13606 | ; |
| 13607 | return 0; |
| 13608 | } |
| 13609 | _ACEOF |
| 13610 | rm -f conftest.$ac_objext |
| 13611 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13612 | (eval $ac_compile) 2>&5 |
| 13613 | ac_status=$? |
| 13614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13615 | (exit $ac_status); } && |
| 13616 | { ac_try='test -s conftest.$ac_objext' |
| 13617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13618 | (eval $ac_try) 2>&5 |
| 13619 | ac_status=$? |
| 13620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13621 | (exit $ac_status); }; }; then |
| 13622 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13623 | echo "${ECHO_T}yes" >&6 |
| 13624 | |
| 13625 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13626 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13627 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13628 | |
| 13629 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13630 | echo "$as_me: failed program was:" >&5 |
| 13631 | cat conftest.$ac_ext >&5 |
| 13632 | echo "$as_me:$LINENO: result: no" >&5 |
| 13633 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13634 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13635 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13636 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13637 | echo "$as_me:$LINENO: checking for bad static forward" >&5 |
| 13638 | echo $ECHO_N "checking for bad static forward... $ECHO_C" >&6 |
| 13639 | if test "${ac_cv_bad_static_forward+set}" = set; then |
| 13640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 13641 | else |
| 13642 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 13643 | ac_cv_bad_static_forward=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13644 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13645 | cat >conftest.$ac_ext <<_ACEOF |
| 13646 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13647 | #include "confdefs.h" |
| 13648 | |
| 13649 | struct s { int a; int b; }; |
| 13650 | static struct s foo; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13651 | int foobar() { |
| 13652 | static int random; |
| 13653 | random = (int) &foo; |
| 13654 | return random; |
| 13655 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13656 | static struct s foo = { 1, 2 }; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13657 | main() { |
| 13658 | exit(!((int)&foo == foobar())); |
| 13659 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13660 | _ACEOF |
| 13661 | rm -f conftest$ac_exeext |
| 13662 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13663 | (eval $ac_link) 2>&5 |
| 13664 | ac_status=$? |
| 13665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13666 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13668 | (eval $ac_try) 2>&5 |
| 13669 | ac_status=$? |
| 13670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13671 | (exit $ac_status); }; }; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 13672 | ac_cv_bad_static_forward=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13673 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13674 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13675 | echo "$as_me: failed program was:" >&5 |
| 13676 | cat conftest.$ac_ext >&5 |
| 13677 | ( exit $ac_status ) |
| 13678 | ac_cv_bad_static_forward=yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13679 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13680 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 13681 | fi |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13682 | fi |
| 13683 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13684 | echo "$as_me:$LINENO: result: $ac_cv_bad_static_forward" >&5 |
| 13685 | echo "${ECHO_T}$ac_cv_bad_static_forward" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 13686 | if test "$ac_cv_bad_static_forward" = yes |
| 13687 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13688 | |
| 13689 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 13690 | #define BAD_STATIC_FORWARD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13691 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 13692 | |
| 13693 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13694 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13695 | va_list_is_array=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13696 | echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 13697 | echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6 |
| 13698 | cat >conftest.$ac_ext <<_ACEOF |
| 13699 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13700 | #include "confdefs.h" |
| 13701 | |
| 13702 | #ifdef HAVE_STDARG_PROTOTYPES |
| 13703 | #include <stdarg.h> |
| 13704 | #else |
| 13705 | #include <varargs.h> |
| 13706 | #endif |
| 13707 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13708 | #ifdef F77_DUMMY_MAIN |
| 13709 | # ifdef __cplusplus |
| 13710 | extern "C" |
| 13711 | # endif |
| 13712 | int F77_DUMMY_MAIN() { return 1; } |
| 13713 | #endif |
| 13714 | int |
| 13715 | main () |
| 13716 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13717 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13718 | ; |
| 13719 | return 0; |
| 13720 | } |
| 13721 | _ACEOF |
| 13722 | rm -f conftest.$ac_objext |
| 13723 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13724 | (eval $ac_compile) 2>&5 |
| 13725 | ac_status=$? |
| 13726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13727 | (exit $ac_status); } && |
| 13728 | { ac_try='test -s conftest.$ac_objext' |
| 13729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13730 | (eval $ac_try) 2>&5 |
| 13731 | ac_status=$? |
| 13732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13733 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13734 | : |
| 13735 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13736 | echo "$as_me: failed program was:" >&5 |
| 13737 | cat conftest.$ac_ext >&5 |
| 13738 | |
| 13739 | |
| 13740 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13741 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13742 | _ACEOF |
| 13743 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13744 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13745 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13746 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13747 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13748 | echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 13749 | echo "${ECHO_T}$va_list_is_array" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13750 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13751 | # 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] | 13752 | |
| 13753 | |
| 13754 | |
| 13755 | echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 13756 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6 |
| 13757 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 13758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13759 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13760 | cat >conftest.$ac_ext <<_ACEOF |
| 13761 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13762 | #include "confdefs.h" |
| 13763 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13764 | which can conflict with char gethostbyname_r (); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13765 | #include <assert.h> |
| 13766 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13767 | #ifdef __cplusplus |
| 13768 | extern "C" |
| 13769 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13770 | /* 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] | 13771 | builtin and then its argument prototype would still apply. */ |
| 13772 | char gethostbyname_r (); |
| 13773 | char (*f) (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13774 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13775 | #ifdef F77_DUMMY_MAIN |
| 13776 | # ifdef __cplusplus |
| 13777 | extern "C" |
| 13778 | # endif |
| 13779 | int F77_DUMMY_MAIN() { return 1; } |
| 13780 | #endif |
| 13781 | int |
| 13782 | main () |
| 13783 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13784 | /* The GNU C library defines this for functions which it implements |
| 13785 | to always fail with ENOSYS. Some functions are actually named |
| 13786 | something starting with __ and the normal name is an alias. */ |
| 13787 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 13788 | choke me |
| 13789 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13790 | f = gethostbyname_r; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13791 | #endif |
| 13792 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13793 | ; |
| 13794 | return 0; |
| 13795 | } |
| 13796 | _ACEOF |
| 13797 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13798 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13799 | (eval $ac_link) 2>&5 |
| 13800 | ac_status=$? |
| 13801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13802 | (exit $ac_status); } && |
| 13803 | { ac_try='test -s conftest$ac_exeext' |
| 13804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13805 | (eval $ac_try) 2>&5 |
| 13806 | ac_status=$? |
| 13807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13808 | (exit $ac_status); }; }; then |
| 13809 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13810 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13811 | echo "$as_me: failed program was:" >&5 |
| 13812 | cat conftest.$ac_ext >&5 |
| 13813 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13814 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13815 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13816 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13817 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 13818 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6 |
| 13819 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13820 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13821 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13822 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13823 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13824 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13825 | echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 13826 | 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] | 13827 | OLD_CFLAGS=$CFLAGS |
| 13828 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13829 | cat >conftest.$ac_ext <<_ACEOF |
| 13830 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13831 | #include "confdefs.h" |
| 13832 | |
| 13833 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13834 | |
| 13835 | #ifdef F77_DUMMY_MAIN |
| 13836 | # ifdef __cplusplus |
| 13837 | extern "C" |
| 13838 | # endif |
| 13839 | int F77_DUMMY_MAIN() { return 1; } |
| 13840 | #endif |
| 13841 | int |
| 13842 | main () |
| 13843 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13844 | |
| 13845 | char *name; |
| 13846 | struct hostent *he, *res; |
| 13847 | char buffer[2048]; |
| 13848 | int buflen = 2048; |
| 13849 | int h_errnop; |
| 13850 | |
| 13851 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13852 | |
| 13853 | ; |
| 13854 | return 0; |
| 13855 | } |
| 13856 | _ACEOF |
| 13857 | rm -f conftest.$ac_objext |
| 13858 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13859 | (eval $ac_compile) 2>&5 |
| 13860 | ac_status=$? |
| 13861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13862 | (exit $ac_status); } && |
| 13863 | { ac_try='test -s conftest.$ac_objext' |
| 13864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13865 | (eval $ac_try) 2>&5 |
| 13866 | ac_status=$? |
| 13867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13868 | (exit $ac_status); }; }; then |
| 13869 | |
| 13870 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13871 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13872 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13873 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13874 | |
| 13875 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13876 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13877 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13878 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13879 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13880 | echo "${ECHO_T}yes" >&6 |
| 13881 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13882 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13883 | echo "$as_me: failed program was:" >&5 |
| 13884 | cat conftest.$ac_ext >&5 |
| 13885 | |
| 13886 | echo "$as_me:$LINENO: result: no" >&5 |
| 13887 | echo "${ECHO_T}no" >&6 |
| 13888 | echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 13889 | echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6 |
| 13890 | cat >conftest.$ac_ext <<_ACEOF |
| 13891 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13892 | #include "confdefs.h" |
| 13893 | |
| 13894 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13895 | |
| 13896 | #ifdef F77_DUMMY_MAIN |
| 13897 | # ifdef __cplusplus |
| 13898 | extern "C" |
| 13899 | # endif |
| 13900 | int F77_DUMMY_MAIN() { return 1; } |
| 13901 | #endif |
| 13902 | int |
| 13903 | main () |
| 13904 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13905 | |
| 13906 | char *name; |
| 13907 | struct hostent *he; |
| 13908 | char buffer[2048]; |
| 13909 | int buflen = 2048; |
| 13910 | int h_errnop; |
| 13911 | |
| 13912 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13913 | |
| 13914 | ; |
| 13915 | return 0; |
| 13916 | } |
| 13917 | _ACEOF |
| 13918 | rm -f conftest.$ac_objext |
| 13919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13920 | (eval $ac_compile) 2>&5 |
| 13921 | ac_status=$? |
| 13922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13923 | (exit $ac_status); } && |
| 13924 | { ac_try='test -s conftest.$ac_objext' |
| 13925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13926 | (eval $ac_try) 2>&5 |
| 13927 | ac_status=$? |
| 13928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13929 | (exit $ac_status); }; }; then |
| 13930 | |
| 13931 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13932 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13933 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13934 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13935 | |
| 13936 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13937 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13938 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13939 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13940 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13941 | echo "${ECHO_T}yes" >&6 |
| 13942 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13943 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13944 | echo "$as_me: failed program was:" >&5 |
| 13945 | cat conftest.$ac_ext >&5 |
| 13946 | |
| 13947 | echo "$as_me:$LINENO: result: no" >&5 |
| 13948 | echo "${ECHO_T}no" >&6 |
| 13949 | echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 13950 | echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6 |
| 13951 | cat >conftest.$ac_ext <<_ACEOF |
| 13952 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13953 | #include "confdefs.h" |
| 13954 | |
| 13955 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13956 | |
| 13957 | #ifdef F77_DUMMY_MAIN |
| 13958 | # ifdef __cplusplus |
| 13959 | extern "C" |
| 13960 | # endif |
| 13961 | int F77_DUMMY_MAIN() { return 1; } |
| 13962 | #endif |
| 13963 | int |
| 13964 | main () |
| 13965 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13966 | |
| 13967 | char *name; |
| 13968 | struct hostent *he; |
| 13969 | struct hostent_data data; |
| 13970 | |
| 13971 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13972 | |
| 13973 | ; |
| 13974 | return 0; |
| 13975 | } |
| 13976 | _ACEOF |
| 13977 | rm -f conftest.$ac_objext |
| 13978 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13979 | (eval $ac_compile) 2>&5 |
| 13980 | ac_status=$? |
| 13981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13982 | (exit $ac_status); } && |
| 13983 | { ac_try='test -s conftest.$ac_objext' |
| 13984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13985 | (eval $ac_try) 2>&5 |
| 13986 | ac_status=$? |
| 13987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13988 | (exit $ac_status); }; }; then |
| 13989 | |
| 13990 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13991 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13992 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13993 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13994 | |
| 13995 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13996 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13997 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13998 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13999 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14000 | echo "${ECHO_T}yes" >&6 |
| 14001 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14002 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14003 | echo "$as_me: failed program was:" >&5 |
| 14004 | cat conftest.$ac_ext >&5 |
| 14005 | |
| 14006 | echo "$as_me:$LINENO: result: no" >&5 |
| 14007 | echo "${ECHO_T}no" >&6 |
| 14008 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14009 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14010 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14011 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14012 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14013 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14014 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14015 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14016 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14017 | CFLAGS=$OLD_CFLAGS |
| 14018 | |
| 14019 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14020 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14021 | |
| 14022 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14023 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14024 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14025 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14026 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14027 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14029 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14030 | cat >conftest.$ac_ext <<_ACEOF |
| 14031 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14032 | #include "confdefs.h" |
| 14033 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14034 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14035 | #include <assert.h> |
| 14036 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14037 | #ifdef __cplusplus |
| 14038 | extern "C" |
| 14039 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14040 | /* 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] | 14041 | builtin and then its argument prototype would still apply. */ |
| 14042 | char $ac_func (); |
| 14043 | char (*f) (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14044 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14045 | #ifdef F77_DUMMY_MAIN |
| 14046 | # ifdef __cplusplus |
| 14047 | extern "C" |
| 14048 | # endif |
| 14049 | int F77_DUMMY_MAIN() { return 1; } |
| 14050 | #endif |
| 14051 | int |
| 14052 | main () |
| 14053 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14054 | /* The GNU C library defines this for functions which it implements |
| 14055 | to always fail with ENOSYS. Some functions are actually named |
| 14056 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14057 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14058 | choke me |
| 14059 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14060 | f = $ac_func; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14061 | #endif |
| 14062 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14063 | ; |
| 14064 | return 0; |
| 14065 | } |
| 14066 | _ACEOF |
| 14067 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14068 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14069 | (eval $ac_link) 2>&5 |
| 14070 | ac_status=$? |
| 14071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14072 | (exit $ac_status); } && |
| 14073 | { ac_try='test -s conftest$ac_exeext' |
| 14074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14075 | (eval $ac_try) 2>&5 |
| 14076 | ac_status=$? |
| 14077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14078 | (exit $ac_status); }; }; then |
| 14079 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14080 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14081 | echo "$as_me: failed program was:" >&5 |
| 14082 | cat conftest.$ac_ext >&5 |
| 14083 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14084 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14085 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14086 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14087 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14088 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14089 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14090 | cat >>confdefs.h <<_ACEOF |
| 14091 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14092 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14093 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14094 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14095 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14096 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14097 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14098 | fi |
| 14099 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14100 | |
| 14101 | |
| 14102 | |
| 14103 | |
| 14104 | |
| 14105 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14106 | # checks for system services |
| 14107 | # (none yet) |
| 14108 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14109 | # Linux requires this for correct f.p. operations |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14110 | echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 14111 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6 |
| 14112 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 14113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14114 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14115 | cat >conftest.$ac_ext <<_ACEOF |
| 14116 | #line $LINENO "configure" |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14117 | #include "confdefs.h" |
| 14118 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14119 | which can conflict with char __fpu_control (); below. */ |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14120 | #include <assert.h> |
| 14121 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14122 | #ifdef __cplusplus |
| 14123 | extern "C" |
| 14124 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14125 | /* 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] | 14126 | builtin and then its argument prototype would still apply. */ |
| 14127 | char __fpu_control (); |
| 14128 | char (*f) (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14129 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14130 | #ifdef F77_DUMMY_MAIN |
| 14131 | # ifdef __cplusplus |
| 14132 | extern "C" |
| 14133 | # endif |
| 14134 | int F77_DUMMY_MAIN() { return 1; } |
| 14135 | #endif |
| 14136 | int |
| 14137 | main () |
| 14138 | { |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14139 | /* The GNU C library defines this for functions which it implements |
| 14140 | to always fail with ENOSYS. Some functions are actually named |
| 14141 | something starting with __ and the normal name is an alias. */ |
| 14142 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 14143 | choke me |
| 14144 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14145 | f = __fpu_control; |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14146 | #endif |
| 14147 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14148 | ; |
| 14149 | return 0; |
| 14150 | } |
| 14151 | _ACEOF |
| 14152 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14153 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14154 | (eval $ac_link) 2>&5 |
| 14155 | ac_status=$? |
| 14156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14157 | (exit $ac_status); } && |
| 14158 | { ac_try='test -s conftest$ac_exeext' |
| 14159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14160 | (eval $ac_try) 2>&5 |
| 14161 | ac_status=$? |
| 14162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14163 | (exit $ac_status); }; }; then |
| 14164 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14165 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14166 | echo "$as_me: failed program was:" >&5 |
| 14167 | cat conftest.$ac_ext >&5 |
| 14168 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14169 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14170 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14171 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14172 | echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 14173 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6 |
| 14174 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14175 | : |
| 14176 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14177 | |
| 14178 | echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 14179 | echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6 |
| 14180 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 14181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14182 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14183 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14184 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14185 | cat >conftest.$ac_ext <<_ACEOF |
| 14186 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14187 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14188 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14189 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14190 | #ifdef __cplusplus |
| 14191 | extern "C" |
| 14192 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14193 | /* 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] | 14194 | builtin and then its argument prototype would still apply. */ |
| 14195 | char __fpu_control (); |
| 14196 | #ifdef F77_DUMMY_MAIN |
| 14197 | # ifdef __cplusplus |
| 14198 | extern "C" |
| 14199 | # endif |
| 14200 | int F77_DUMMY_MAIN() { return 1; } |
| 14201 | #endif |
| 14202 | int |
| 14203 | main () |
| 14204 | { |
| 14205 | __fpu_control (); |
| 14206 | ; |
| 14207 | return 0; |
| 14208 | } |
| 14209 | _ACEOF |
| 14210 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14211 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14212 | (eval $ac_link) 2>&5 |
| 14213 | ac_status=$? |
| 14214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14215 | (exit $ac_status); } && |
| 14216 | { ac_try='test -s conftest$ac_exeext' |
| 14217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14218 | (eval $ac_try) 2>&5 |
| 14219 | ac_status=$? |
| 14220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14221 | (exit $ac_status); }; }; then |
| 14222 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14223 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14224 | echo "$as_me: failed program was:" >&5 |
| 14225 | cat conftest.$ac_ext >&5 |
| 14226 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14227 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14228 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 14229 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14230 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14231 | echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 14232 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6 |
| 14233 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 14234 | cat >>confdefs.h <<_ACEOF |
| 14235 | #define HAVE_LIBIEEE 1 |
| 14236 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14237 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14238 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14239 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14240 | fi |
| 14241 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14242 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14243 | fi |
| 14244 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14245 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14246 | # Check for --with-fpectl |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14247 | echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 14248 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6 |
| 14249 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14250 | # Check whether --with-fpectl or --without-fpectl was given. |
| 14251 | if test "${with_fpectl+set}" = set; then |
| 14252 | withval="$with_fpectl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14253 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14254 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14255 | then |
| 14256 | |
| 14257 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14258 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14259 | _ACEOF |
| 14260 | |
| 14261 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14262 | echo "${ECHO_T}yes" >&6 |
| 14263 | else echo "$as_me:$LINENO: result: no" >&5 |
| 14264 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14265 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14266 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14267 | echo "$as_me:$LINENO: result: no" >&5 |
| 14268 | echo "${ECHO_T}no" >&6 |
| 14269 | fi; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14270 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14271 | # check for --with-libm=... |
| 14272 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 14273 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 14274 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 14275 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 14276 | *) LIBM=-lm |
| 14277 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14278 | echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 14279 | echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6 |
| 14280 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14281 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14282 | if test "${with_libm+set}" = set; then |
| 14283 | withval="$with_libm" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14284 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14285 | if test "$withval" = no |
| 14286 | then LIBM= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14287 | echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 14288 | echo "${ECHO_T}force LIBM empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14289 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14290 | then LIBM=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14291 | echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 14292 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6 |
| 14293 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 14294 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 14295 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14296 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14297 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14298 | echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 14299 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6 |
| 14300 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14301 | |
| 14302 | # check for --with-libc=... |
| 14303 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14304 | echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 14305 | echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6 |
| 14306 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14307 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14308 | if test "${with_libc+set}" = set; then |
| 14309 | withval="$with_libc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14310 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14311 | if test "$withval" = no |
| 14312 | then LIBC= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14313 | echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 14314 | echo "${ECHO_T}force LIBC empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14315 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14316 | then LIBC=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14317 | echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 14318 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6 |
| 14319 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 14320 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 14321 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14322 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14323 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14324 | echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 14325 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6 |
| 14326 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14327 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14328 | # check for hypot() in math library |
| 14329 | LIBS_SAVE=$LIBS |
| 14330 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14331 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14332 | for ac_func in hypot |
| 14333 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14334 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14335 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14336 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14337 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14338 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14339 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14340 | cat >conftest.$ac_ext <<_ACEOF |
| 14341 | #line $LINENO "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14342 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14343 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14344 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14345 | #include <assert.h> |
| 14346 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14347 | #ifdef __cplusplus |
| 14348 | extern "C" |
| 14349 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14350 | /* 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] | 14351 | builtin and then its argument prototype would still apply. */ |
| 14352 | char $ac_func (); |
| 14353 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14354 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14355 | #ifdef F77_DUMMY_MAIN |
| 14356 | # ifdef __cplusplus |
| 14357 | extern "C" |
| 14358 | # endif |
| 14359 | int F77_DUMMY_MAIN() { return 1; } |
| 14360 | #endif |
| 14361 | int |
| 14362 | main () |
| 14363 | { |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14364 | /* The GNU C library defines this for functions which it implements |
| 14365 | to always fail with ENOSYS. Some functions are actually named |
| 14366 | something starting with __ and the normal name is an alias. */ |
| 14367 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14368 | choke me |
| 14369 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14370 | f = $ac_func; |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14371 | #endif |
| 14372 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14373 | ; |
| 14374 | return 0; |
| 14375 | } |
| 14376 | _ACEOF |
| 14377 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14378 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14379 | (eval $ac_link) 2>&5 |
| 14380 | ac_status=$? |
| 14381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14382 | (exit $ac_status); } && |
| 14383 | { ac_try='test -s conftest$ac_exeext' |
| 14384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14385 | (eval $ac_try) 2>&5 |
| 14386 | ac_status=$? |
| 14387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14388 | (exit $ac_status); }; }; then |
| 14389 | eval "$as_ac_var=yes" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 14390 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14391 | echo "$as_me: failed program was:" >&5 |
| 14392 | cat conftest.$ac_ext >&5 |
| 14393 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14394 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14395 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14396 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14397 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14398 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14399 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14400 | cat >>confdefs.h <<_ACEOF |
| 14401 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14402 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14403 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14404 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14405 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 14406 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 14407 | done |
| 14408 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14409 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14410 | LIBS=$LIBS_SAVE |
| 14411 | |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14412 | # check whether malloc(0) returns NULL or not |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14413 | echo "$as_me:$LINENO: checking what malloc(0) returns" >&5 |
| 14414 | echo $ECHO_N "checking what malloc(0) returns... $ECHO_C" >&6 |
| 14415 | if test "${ac_cv_malloc_zero+set}" = set; then |
| 14416 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14417 | else |
| 14418 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 14419 | ac_cv_malloc_zero=nonnull |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14420 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14421 | cat >conftest.$ac_ext <<_ACEOF |
| 14422 | #line $LINENO "configure" |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14423 | #include "confdefs.h" |
| 14424 | #include <stdio.h> |
| 14425 | #ifdef HAVE_STDLIB |
| 14426 | #include <stdlib.h> |
| 14427 | #else |
| 14428 | char *malloc(), *realloc(); |
| 14429 | int *free(); |
| 14430 | #endif |
| 14431 | main() { |
| 14432 | char *p; |
| 14433 | p = malloc(0); |
| 14434 | if (p == NULL) exit(1); |
| 14435 | p = realloc(p, 0); |
| 14436 | if (p == NULL) exit(1); |
| 14437 | free(p); |
| 14438 | exit(0); |
| 14439 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14440 | _ACEOF |
| 14441 | rm -f conftest$ac_exeext |
| 14442 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14443 | (eval $ac_link) 2>&5 |
| 14444 | ac_status=$? |
| 14445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14446 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 14447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14448 | (eval $ac_try) 2>&5 |
| 14449 | ac_status=$? |
| 14450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14451 | (exit $ac_status); }; }; then |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14452 | ac_cv_malloc_zero=nonnull |
| 14453 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14454 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14455 | echo "$as_me: failed program was:" >&5 |
| 14456 | cat conftest.$ac_ext >&5 |
| 14457 | ( exit $ac_status ) |
| 14458 | ac_cv_malloc_zero=null |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14459 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14460 | 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] | 14461 | fi |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14462 | fi |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 14463 | # XXX arm cross-compile? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14464 | echo "$as_me:$LINENO: result: $ac_cv_malloc_zero" >&5 |
| 14465 | echo "${ECHO_T}$ac_cv_malloc_zero" >&6 |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14466 | if test "$ac_cv_malloc_zero" = null |
| 14467 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14468 | |
| 14469 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14470 | #define MALLOC_ZERO_RETURNS_NULL 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14471 | _ACEOF |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14472 | |
| 14473 | fi |
| 14474 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14475 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14476 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 14477 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 14478 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 14479 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 14480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14481 | fi |
| 14482 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 14483 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14484 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14485 | # Is the header compilable? |
| 14486 | echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 14487 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 |
| 14488 | cat >conftest.$ac_ext <<_ACEOF |
| 14489 | #line $LINENO "configure" |
| 14490 | #include "confdefs.h" |
| 14491 | $ac_includes_default |
| 14492 | #include <wchar.h> |
| 14493 | _ACEOF |
| 14494 | rm -f conftest.$ac_objext |
| 14495 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14496 | (eval $ac_compile) 2>&5 |
| 14497 | ac_status=$? |
| 14498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14499 | (exit $ac_status); } && |
| 14500 | { ac_try='test -s conftest.$ac_objext' |
| 14501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14502 | (eval $ac_try) 2>&5 |
| 14503 | ac_status=$? |
| 14504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14505 | (exit $ac_status); }; }; then |
| 14506 | ac_header_compiler=yes |
| 14507 | else |
| 14508 | echo "$as_me: failed program was:" >&5 |
| 14509 | cat conftest.$ac_ext >&5 |
| 14510 | ac_header_compiler=no |
| 14511 | fi |
| 14512 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14513 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14514 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 14515 | |
| 14516 | # Is the header present? |
| 14517 | echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 14518 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 |
| 14519 | cat >conftest.$ac_ext <<_ACEOF |
| 14520 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14521 | #include "confdefs.h" |
| 14522 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14523 | _ACEOF |
| 14524 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 14525 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 14526 | ac_status=$? |
| 14527 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 14528 | rm -f conftest.er1 |
| 14529 | cat conftest.err >&5 |
| 14530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14531 | (exit $ac_status); } >/dev/null; then |
| 14532 | if test -s conftest.err; then |
| 14533 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14534 | else |
| 14535 | ac_cpp_err= |
| 14536 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14537 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14538 | ac_cpp_err=yes |
| 14539 | fi |
| 14540 | if test -z "$ac_cpp_err"; then |
| 14541 | ac_header_preproc=yes |
| 14542 | else |
| 14543 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14544 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14545 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14546 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14547 | rm -f conftest.err conftest.$ac_ext |
| 14548 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14549 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 14550 | |
| 14551 | # So? What about this header? |
| 14552 | case $ac_header_compiler:$ac_header_preproc in |
| 14553 | yes:no ) |
| 14554 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14555 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14556 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 14557 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};; |
| 14558 | no:yes ) |
| 14559 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 14560 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 14561 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 14562 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 14563 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 14564 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};; |
| 14565 | esac |
| 14566 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 14567 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 14568 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 14569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14570 | else |
| 14571 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14572 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14573 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 14574 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
| 14575 | |
| 14576 | fi |
| 14577 | if test $ac_cv_header_wchar_h = yes; then |
| 14578 | |
| 14579 | |
| 14580 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14581 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14582 | _ACEOF |
| 14583 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14584 | wchar_h="yes" |
| 14585 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14586 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14587 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14588 | |
| 14589 | fi |
| 14590 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14591 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14592 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14593 | # determine wchar_t size |
| 14594 | if test "$wchar_h" = yes |
| 14595 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14596 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 14597 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 |
| 14598 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 14599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14600 | else |
| 14601 | cat >conftest.$ac_ext <<_ACEOF |
| 14602 | #line $LINENO "configure" |
| 14603 | #include "confdefs.h" |
| 14604 | #include <wchar.h> |
| 14605 | |
| 14606 | #ifdef F77_DUMMY_MAIN |
| 14607 | # ifdef __cplusplus |
| 14608 | extern "C" |
| 14609 | # endif |
| 14610 | int F77_DUMMY_MAIN() { return 1; } |
| 14611 | #endif |
| 14612 | int |
| 14613 | main () |
| 14614 | { |
| 14615 | if ((wchar_t *) 0) |
| 14616 | return 0; |
| 14617 | if (sizeof (wchar_t)) |
| 14618 | return 0; |
| 14619 | ; |
| 14620 | return 0; |
| 14621 | } |
| 14622 | _ACEOF |
| 14623 | rm -f conftest.$ac_objext |
| 14624 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14625 | (eval $ac_compile) 2>&5 |
| 14626 | ac_status=$? |
| 14627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14628 | (exit $ac_status); } && |
| 14629 | { ac_try='test -s conftest.$ac_objext' |
| 14630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14631 | (eval $ac_try) 2>&5 |
| 14632 | ac_status=$? |
| 14633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14634 | (exit $ac_status); }; }; then |
| 14635 | ac_cv_type_wchar_t=yes |
| 14636 | else |
| 14637 | echo "$as_me: failed program was:" >&5 |
| 14638 | cat conftest.$ac_ext >&5 |
| 14639 | ac_cv_type_wchar_t=no |
| 14640 | fi |
| 14641 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14642 | fi |
| 14643 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 14644 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 |
| 14645 | |
| 14646 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 14647 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 |
| 14648 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 14649 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14650 | else |
| 14651 | if test "$ac_cv_type_wchar_t" = yes; then |
| 14652 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 14653 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 14654 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 14655 | # This bug is HP SR number 8606223364. |
| 14656 | if test "$cross_compiling" = yes; then |
| 14657 | # Depending upon the size, compute the lo and hi bounds. |
| 14658 | cat >conftest.$ac_ext <<_ACEOF |
| 14659 | #line $LINENO "configure" |
| 14660 | #include "confdefs.h" |
| 14661 | #include <wchar.h> |
| 14662 | |
| 14663 | #ifdef F77_DUMMY_MAIN |
| 14664 | # ifdef __cplusplus |
| 14665 | extern "C" |
| 14666 | # endif |
| 14667 | int F77_DUMMY_MAIN() { return 1; } |
| 14668 | #endif |
| 14669 | int |
| 14670 | main () |
| 14671 | { |
| 14672 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; |
| 14673 | test_array [0] = 0 |
| 14674 | |
| 14675 | ; |
| 14676 | return 0; |
| 14677 | } |
| 14678 | _ACEOF |
| 14679 | rm -f conftest.$ac_objext |
| 14680 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14681 | (eval $ac_compile) 2>&5 |
| 14682 | ac_status=$? |
| 14683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14684 | (exit $ac_status); } && |
| 14685 | { ac_try='test -s conftest.$ac_objext' |
| 14686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14687 | (eval $ac_try) 2>&5 |
| 14688 | ac_status=$? |
| 14689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14690 | (exit $ac_status); }; }; then |
| 14691 | ac_lo=0 ac_mid=0 |
| 14692 | while :; do |
| 14693 | cat >conftest.$ac_ext <<_ACEOF |
| 14694 | #line $LINENO "configure" |
| 14695 | #include "confdefs.h" |
| 14696 | #include <wchar.h> |
| 14697 | |
| 14698 | #ifdef F77_DUMMY_MAIN |
| 14699 | # ifdef __cplusplus |
| 14700 | extern "C" |
| 14701 | # endif |
| 14702 | int F77_DUMMY_MAIN() { return 1; } |
| 14703 | #endif |
| 14704 | int |
| 14705 | main () |
| 14706 | { |
| 14707 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 14708 | test_array [0] = 0 |
| 14709 | |
| 14710 | ; |
| 14711 | return 0; |
| 14712 | } |
| 14713 | _ACEOF |
| 14714 | rm -f conftest.$ac_objext |
| 14715 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14716 | (eval $ac_compile) 2>&5 |
| 14717 | ac_status=$? |
| 14718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14719 | (exit $ac_status); } && |
| 14720 | { ac_try='test -s conftest.$ac_objext' |
| 14721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14722 | (eval $ac_try) 2>&5 |
| 14723 | ac_status=$? |
| 14724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14725 | (exit $ac_status); }; }; then |
| 14726 | ac_hi=$ac_mid; break |
| 14727 | else |
| 14728 | echo "$as_me: failed program was:" >&5 |
| 14729 | cat conftest.$ac_ext >&5 |
| 14730 | ac_lo=`expr $ac_mid + 1` |
| 14731 | if test $ac_lo -le $ac_mid; then |
| 14732 | ac_lo= ac_hi= |
| 14733 | break |
| 14734 | fi |
| 14735 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 14736 | fi |
| 14737 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14738 | done |
| 14739 | else |
| 14740 | echo "$as_me: failed program was:" >&5 |
| 14741 | cat conftest.$ac_ext >&5 |
| 14742 | cat >conftest.$ac_ext <<_ACEOF |
| 14743 | #line $LINENO "configure" |
| 14744 | #include "confdefs.h" |
| 14745 | #include <wchar.h> |
| 14746 | |
| 14747 | #ifdef F77_DUMMY_MAIN |
| 14748 | # ifdef __cplusplus |
| 14749 | extern "C" |
| 14750 | # endif |
| 14751 | int F77_DUMMY_MAIN() { return 1; } |
| 14752 | #endif |
| 14753 | int |
| 14754 | main () |
| 14755 | { |
| 14756 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; |
| 14757 | test_array [0] = 0 |
| 14758 | |
| 14759 | ; |
| 14760 | return 0; |
| 14761 | } |
| 14762 | _ACEOF |
| 14763 | rm -f conftest.$ac_objext |
| 14764 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14765 | (eval $ac_compile) 2>&5 |
| 14766 | ac_status=$? |
| 14767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14768 | (exit $ac_status); } && |
| 14769 | { ac_try='test -s conftest.$ac_objext' |
| 14770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14771 | (eval $ac_try) 2>&5 |
| 14772 | ac_status=$? |
| 14773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14774 | (exit $ac_status); }; }; then |
| 14775 | ac_hi=-1 ac_mid=-1 |
| 14776 | while :; do |
| 14777 | cat >conftest.$ac_ext <<_ACEOF |
| 14778 | #line $LINENO "configure" |
| 14779 | #include "confdefs.h" |
| 14780 | #include <wchar.h> |
| 14781 | |
| 14782 | #ifdef F77_DUMMY_MAIN |
| 14783 | # ifdef __cplusplus |
| 14784 | extern "C" |
| 14785 | # endif |
| 14786 | int F77_DUMMY_MAIN() { return 1; } |
| 14787 | #endif |
| 14788 | int |
| 14789 | main () |
| 14790 | { |
| 14791 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; |
| 14792 | test_array [0] = 0 |
| 14793 | |
| 14794 | ; |
| 14795 | return 0; |
| 14796 | } |
| 14797 | _ACEOF |
| 14798 | rm -f conftest.$ac_objext |
| 14799 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14800 | (eval $ac_compile) 2>&5 |
| 14801 | ac_status=$? |
| 14802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14803 | (exit $ac_status); } && |
| 14804 | { ac_try='test -s conftest.$ac_objext' |
| 14805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14806 | (eval $ac_try) 2>&5 |
| 14807 | ac_status=$? |
| 14808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14809 | (exit $ac_status); }; }; then |
| 14810 | ac_lo=$ac_mid; break |
| 14811 | else |
| 14812 | echo "$as_me: failed program was:" >&5 |
| 14813 | cat conftest.$ac_ext >&5 |
| 14814 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 14815 | if test $ac_mid -le $ac_hi; then |
| 14816 | ac_lo= ac_hi= |
| 14817 | break |
| 14818 | fi |
| 14819 | ac_mid=`expr 2 '*' $ac_mid` |
| 14820 | fi |
| 14821 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14822 | done |
| 14823 | else |
| 14824 | echo "$as_me: failed program was:" >&5 |
| 14825 | cat conftest.$ac_ext >&5 |
| 14826 | ac_lo= ac_hi= |
| 14827 | fi |
| 14828 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14829 | fi |
| 14830 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14831 | # Binary search between lo and hi bounds. |
| 14832 | while test "x$ac_lo" != "x$ac_hi"; do |
| 14833 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 14834 | cat >conftest.$ac_ext <<_ACEOF |
| 14835 | #line $LINENO "configure" |
| 14836 | #include "confdefs.h" |
| 14837 | #include <wchar.h> |
| 14838 | |
| 14839 | #ifdef F77_DUMMY_MAIN |
| 14840 | # ifdef __cplusplus |
| 14841 | extern "C" |
| 14842 | # endif |
| 14843 | int F77_DUMMY_MAIN() { return 1; } |
| 14844 | #endif |
| 14845 | int |
| 14846 | main () |
| 14847 | { |
| 14848 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 14849 | test_array [0] = 0 |
| 14850 | |
| 14851 | ; |
| 14852 | return 0; |
| 14853 | } |
| 14854 | _ACEOF |
| 14855 | rm -f conftest.$ac_objext |
| 14856 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14857 | (eval $ac_compile) 2>&5 |
| 14858 | ac_status=$? |
| 14859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14860 | (exit $ac_status); } && |
| 14861 | { ac_try='test -s conftest.$ac_objext' |
| 14862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14863 | (eval $ac_try) 2>&5 |
| 14864 | ac_status=$? |
| 14865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14866 | (exit $ac_status); }; }; then |
| 14867 | ac_hi=$ac_mid |
| 14868 | else |
| 14869 | echo "$as_me: failed program was:" >&5 |
| 14870 | cat conftest.$ac_ext >&5 |
| 14871 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 14872 | fi |
| 14873 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14874 | done |
| 14875 | case $ac_lo in |
| 14876 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
| 14877 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5 |
| 14878 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;} |
| 14879 | { (exit 1); exit 1; }; } ;; |
| 14880 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14881 | else |
| 14882 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14883 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 14884 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 14885 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14886 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14887 | cat >conftest.$ac_ext <<_ACEOF |
| 14888 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14889 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14890 | #include <wchar.h> |
| 14891 | |
| 14892 | long longval () { return (long) (sizeof (wchar_t)); } |
| 14893 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14894 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14895 | #include <stdlib.h> |
| 14896 | #ifdef F77_DUMMY_MAIN |
| 14897 | # ifdef __cplusplus |
| 14898 | extern "C" |
| 14899 | # endif |
| 14900 | int F77_DUMMY_MAIN() { return 1; } |
| 14901 | #endif |
| 14902 | int |
| 14903 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14904 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14905 | |
| 14906 | FILE *f = fopen ("conftest.val", "w"); |
| 14907 | if (! f) |
| 14908 | exit (1); |
| 14909 | if (((long) (sizeof (wchar_t))) < 0) |
| 14910 | { |
| 14911 | long i = longval (); |
| 14912 | if (i != ((long) (sizeof (wchar_t)))) |
| 14913 | exit (1); |
| 14914 | fprintf (f, "%ld\n", i); |
| 14915 | } |
| 14916 | else |
| 14917 | { |
| 14918 | unsigned long i = ulongval (); |
| 14919 | if (i != ((long) (sizeof (wchar_t)))) |
| 14920 | exit (1); |
| 14921 | fprintf (f, "%lu\n", i); |
| 14922 | } |
| 14923 | exit (ferror (f) || fclose (f) != 0); |
| 14924 | |
| 14925 | ; |
| 14926 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14927 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14928 | _ACEOF |
| 14929 | rm -f conftest$ac_exeext |
| 14930 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14931 | (eval $ac_link) 2>&5 |
| 14932 | ac_status=$? |
| 14933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14934 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 14935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14936 | (eval $ac_try) 2>&5 |
| 14937 | ac_status=$? |
| 14938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14939 | (exit $ac_status); }; }; then |
| 14940 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14941 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14942 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14943 | echo "$as_me: failed program was:" >&5 |
| 14944 | cat conftest.$ac_ext >&5 |
| 14945 | ( exit $ac_status ) |
| 14946 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5 |
| 14947 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;} |
| 14948 | { (exit 1); exit 1; }; } |
| 14949 | fi |
| 14950 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 14951 | fi |
| 14952 | fi |
| 14953 | rm -f conftest.val |
| 14954 | else |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14955 | ac_cv_sizeof_wchar_t=0 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14956 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14957 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14958 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 14959 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 |
| 14960 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14961 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14962 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14963 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14964 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14965 | fi |
| 14966 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14967 | echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 14968 | 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] | 14969 | # Check whether --enable-unicode or --disable-unicode was given. |
| 14970 | if test "${enable_unicode+set}" = set; then |
| 14971 | enableval="$enable_unicode" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14972 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14973 | else |
| 14974 | enable_unicode=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14975 | fi; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14976 | |
| 14977 | if test $enable_unicode = yes |
| 14978 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 14979 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
| 14980 | enable_unicode="ucs2" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14981 | fi |
| 14982 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 14983 | |
| 14984 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14985 | case "$enable_unicode" in |
| 14986 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14987 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14988 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14989 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14990 | |
| 14991 | ;; |
| 14992 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14993 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14994 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14995 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14996 | |
| 14997 | ;; |
| 14998 | esac |
| 14999 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15000 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15001 | |
| 15002 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 15003 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15004 | if test "$enable_unicode" = "no" |
| 15005 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 15006 | UNICODE_OBJS="" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15007 | echo "$as_me:$LINENO: result: not used" >&5 |
| 15008 | echo "${ECHO_T}not used" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15009 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 15010 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15011 | |
| 15012 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15013 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15014 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15015 | |
| 15016 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" |
| 15017 | then |
| 15018 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15019 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15020 | cat >>confdefs.h <<\_ACEOF |
| 15021 | #define HAVE_USABLE_WCHAR_T 1 |
| 15022 | _ACEOF |
| 15023 | |
| 15024 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15025 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15026 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15027 | |
| 15028 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 15029 | then |
| 15030 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15031 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15032 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15033 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15034 | |
| 15035 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 15036 | then |
| 15037 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15038 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15039 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15040 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15041 | |
| 15042 | else |
| 15043 | PY_UNICODE_TYPE="no type found" |
| 15044 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15045 | echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 15046 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15047 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15048 | |
| 15049 | # check for endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15050 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 15051 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 15052 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 15053 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15054 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15055 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 15056 | cat >conftest.$ac_ext <<_ACEOF |
| 15057 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15058 | #include "confdefs.h" |
| 15059 | #include <sys/types.h> |
| 15060 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15061 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15062 | #ifdef F77_DUMMY_MAIN |
| 15063 | # ifdef __cplusplus |
| 15064 | extern "C" |
| 15065 | # endif |
| 15066 | int F77_DUMMY_MAIN() { return 1; } |
| 15067 | #endif |
| 15068 | int |
| 15069 | main () |
| 15070 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15071 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 15072 | bogus endian macros |
| 15073 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15074 | |
| 15075 | ; |
| 15076 | return 0; |
| 15077 | } |
| 15078 | _ACEOF |
| 15079 | rm -f conftest.$ac_objext |
| 15080 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15081 | (eval $ac_compile) 2>&5 |
| 15082 | ac_status=$? |
| 15083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15084 | (exit $ac_status); } && |
| 15085 | { ac_try='test -s conftest.$ac_objext' |
| 15086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15087 | (eval $ac_try) 2>&5 |
| 15088 | ac_status=$? |
| 15089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15090 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15091 | # 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] | 15092 | cat >conftest.$ac_ext <<_ACEOF |
| 15093 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15094 | #include "confdefs.h" |
| 15095 | #include <sys/types.h> |
| 15096 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15097 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15098 | #ifdef F77_DUMMY_MAIN |
| 15099 | # ifdef __cplusplus |
| 15100 | extern "C" |
| 15101 | # endif |
| 15102 | int F77_DUMMY_MAIN() { return 1; } |
| 15103 | #endif |
| 15104 | int |
| 15105 | main () |
| 15106 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15107 | #if BYTE_ORDER != BIG_ENDIAN |
| 15108 | not big endian |
| 15109 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15110 | |
| 15111 | ; |
| 15112 | return 0; |
| 15113 | } |
| 15114 | _ACEOF |
| 15115 | rm -f conftest.$ac_objext |
| 15116 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15117 | (eval $ac_compile) 2>&5 |
| 15118 | ac_status=$? |
| 15119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15120 | (exit $ac_status); } && |
| 15121 | { ac_try='test -s conftest.$ac_objext' |
| 15122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15123 | (eval $ac_try) 2>&5 |
| 15124 | ac_status=$? |
| 15125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15126 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15127 | ac_cv_c_bigendian=yes |
| 15128 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15129 | echo "$as_me: failed program was:" >&5 |
| 15130 | cat conftest.$ac_ext >&5 |
| 15131 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15132 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15133 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15134 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15135 | echo "$as_me: failed program was:" >&5 |
| 15136 | cat conftest.$ac_ext >&5 |
| 15137 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15138 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15139 | # try to guess the endianess by grep'ing values into an object file |
| 15140 | ac_cv_c_bigendian=unknown |
| 15141 | cat >conftest.$ac_ext <<_ACEOF |
| 15142 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15143 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15144 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 15145 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 15146 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 15147 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 15148 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 15149 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 15150 | #ifdef F77_DUMMY_MAIN |
| 15151 | # ifdef __cplusplus |
| 15152 | extern "C" |
| 15153 | # endif |
| 15154 | int F77_DUMMY_MAIN() { return 1; } |
| 15155 | #endif |
| 15156 | int |
| 15157 | main () |
| 15158 | { |
| 15159 | _ascii (); _ebcdic (); |
| 15160 | ; |
| 15161 | return 0; |
| 15162 | } |
| 15163 | _ACEOF |
| 15164 | rm -f conftest.$ac_objext |
| 15165 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15166 | (eval $ac_compile) 2>&5 |
| 15167 | ac_status=$? |
| 15168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15169 | (exit $ac_status); } && |
| 15170 | { ac_try='test -s conftest.$ac_objext' |
| 15171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15172 | (eval $ac_try) 2>&5 |
| 15173 | ac_status=$? |
| 15174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15175 | (exit $ac_status); }; }; then |
| 15176 | if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 15177 | ac_cv_c_bigendian=yes |
| 15178 | fi |
| 15179 | if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 15180 | if test "$ac_cv_c_bigendian" = unknown; then |
| 15181 | ac_cv_c_bigendian=no |
| 15182 | else |
| 15183 | # finding both strings is unlikely to happen, but who knows? |
| 15184 | ac_cv_c_bigendian=unknown |
| 15185 | fi |
| 15186 | fi |
| 15187 | else |
| 15188 | echo "$as_me: failed program was:" >&5 |
| 15189 | cat conftest.$ac_ext >&5 |
| 15190 | fi |
| 15191 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15192 | else |
| 15193 | cat >conftest.$ac_ext <<_ACEOF |
| 15194 | #line $LINENO "configure" |
| 15195 | #include "confdefs.h" |
| 15196 | int |
| 15197 | main () |
| 15198 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15199 | /* Are we little or big endian? From Harbison&Steele. */ |
| 15200 | union |
| 15201 | { |
| 15202 | long l; |
| 15203 | char c[sizeof (long)]; |
| 15204 | } u; |
| 15205 | u.l = 1; |
| 15206 | exit (u.c[sizeof (long) - 1] == 1); |
| 15207 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15208 | _ACEOF |
| 15209 | rm -f conftest$ac_exeext |
| 15210 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15211 | (eval $ac_link) 2>&5 |
| 15212 | ac_status=$? |
| 15213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15214 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15216 | (eval $ac_try) 2>&5 |
| 15217 | ac_status=$? |
| 15218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15219 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15220 | ac_cv_c_bigendian=no |
| 15221 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15222 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15223 | echo "$as_me: failed program was:" >&5 |
| 15224 | cat conftest.$ac_ext >&5 |
| 15225 | ( exit $ac_status ) |
| 15226 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15227 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15228 | 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] | 15229 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15230 | fi |
| 15231 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15232 | fi |
| 15233 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 15234 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 15235 | case $ac_cv_c_bigendian in |
| 15236 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15237 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15238 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15239 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15240 | _ACEOF |
| 15241 | ;; |
| 15242 | no) |
| 15243 | ;; |
| 15244 | *) |
| 15245 | { { echo "$as_me:$LINENO: error: unknown endianess |
| 15246 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 15247 | echo "$as_me: error: unknown endianess |
| 15248 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 15249 | { (exit 1); exit 1; }; } ;; |
| 15250 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15251 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15252 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15253 | # Check whether right shifting a negative integer extends the sign bit |
| 15254 | # 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] | 15255 | echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 15256 | echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6 |
| 15257 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 15258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15259 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15260 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15261 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15262 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15263 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15264 | cat >conftest.$ac_ext <<_ACEOF |
| 15265 | #line $LINENO "configure" |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15266 | #include "confdefs.h" |
| 15267 | |
| 15268 | int main() |
| 15269 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15270 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15271 | } |
| 15272 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15273 | _ACEOF |
| 15274 | rm -f conftest$ac_exeext |
| 15275 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15276 | (eval $ac_link) 2>&5 |
| 15277 | ac_status=$? |
| 15278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15279 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15281 | (eval $ac_try) 2>&5 |
| 15282 | ac_status=$? |
| 15283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15284 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15285 | ac_cv_rshift_extends_sign=yes |
| 15286 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15287 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15288 | echo "$as_me: failed program was:" >&5 |
| 15289 | cat conftest.$ac_ext >&5 |
| 15290 | ( exit $ac_status ) |
| 15291 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15292 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15293 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15294 | fi |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15295 | fi |
| 15296 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15297 | echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 15298 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15299 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15300 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15301 | |
| 15302 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15303 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15304 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15305 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15306 | fi |
| 15307 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15308 | # check for getc_unlocked and related locking functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15309 | echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 15310 | echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6 |
| 15311 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 15312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15313 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15314 | |
| 15315 | cat >conftest.$ac_ext <<_ACEOF |
| 15316 | #line $LINENO "configure" |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15317 | #include "confdefs.h" |
| 15318 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15319 | #ifdef F77_DUMMY_MAIN |
| 15320 | # ifdef __cplusplus |
| 15321 | extern "C" |
| 15322 | # endif |
| 15323 | int F77_DUMMY_MAIN() { return 1; } |
| 15324 | #endif |
| 15325 | int |
| 15326 | main () |
| 15327 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15328 | |
| 15329 | FILE *f = fopen("/dev/null", "r"); |
| 15330 | flockfile(f); |
| 15331 | getc_unlocked(f); |
| 15332 | funlockfile(f); |
| 15333 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15334 | ; |
| 15335 | return 0; |
| 15336 | } |
| 15337 | _ACEOF |
| 15338 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15339 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15340 | (eval $ac_link) 2>&5 |
| 15341 | ac_status=$? |
| 15342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15343 | (exit $ac_status); } && |
| 15344 | { ac_try='test -s conftest$ac_exeext' |
| 15345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15346 | (eval $ac_try) 2>&5 |
| 15347 | ac_status=$? |
| 15348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15349 | (exit $ac_status); }; }; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15350 | ac_cv_have_getc_unlocked=yes |
| 15351 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15352 | echo "$as_me: failed program was:" >&5 |
| 15353 | cat conftest.$ac_ext >&5 |
| 15354 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15355 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15356 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15357 | fi |
| 15358 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15359 | echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 15360 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15361 | if test "$ac_cv_have_getc_unlocked" = yes |
| 15362 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15363 | |
| 15364 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15365 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15366 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15367 | |
| 15368 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15369 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15370 | # check for readline 4.0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15371 | echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 15372 | echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6 |
| 15373 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 15374 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15375 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15376 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15377 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15378 | cat >conftest.$ac_ext <<_ACEOF |
| 15379 | #line $LINENO "configure" |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15380 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15381 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15382 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15383 | #ifdef __cplusplus |
| 15384 | extern "C" |
| 15385 | #endif |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15386 | /* 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] | 15387 | builtin and then its argument prototype would still apply. */ |
| 15388 | char rl_pre_input_hook (); |
| 15389 | #ifdef F77_DUMMY_MAIN |
| 15390 | # ifdef __cplusplus |
| 15391 | extern "C" |
| 15392 | # endif |
| 15393 | int F77_DUMMY_MAIN() { return 1; } |
| 15394 | #endif |
| 15395 | int |
| 15396 | main () |
| 15397 | { |
| 15398 | rl_pre_input_hook (); |
| 15399 | ; |
| 15400 | return 0; |
| 15401 | } |
| 15402 | _ACEOF |
| 15403 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15404 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15405 | (eval $ac_link) 2>&5 |
| 15406 | ac_status=$? |
| 15407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15408 | (exit $ac_status); } && |
| 15409 | { ac_try='test -s conftest$ac_exeext' |
| 15410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15411 | (eval $ac_try) 2>&5 |
| 15412 | ac_status=$? |
| 15413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15414 | (exit $ac_status); }; }; then |
| 15415 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15416 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15417 | echo "$as_me: failed program was:" >&5 |
| 15418 | cat conftest.$ac_ext >&5 |
| 15419 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15420 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15421 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 15422 | LIBS=$ac_check_lib_save_LIBS |
| 15423 | fi |
| 15424 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 15425 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6 |
| 15426 | 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] | 15427 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15428 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15429 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15430 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15431 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15432 | fi |
| 15433 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15434 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15435 | # check for readline 4.2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15436 | echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 15437 | echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6 |
| 15438 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 15439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15440 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15441 | ac_check_lib_save_LIBS=$LIBS |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15442 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15443 | cat >conftest.$ac_ext <<_ACEOF |
| 15444 | #line $LINENO "configure" |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15445 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15446 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15447 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15448 | #ifdef __cplusplus |
| 15449 | extern "C" |
| 15450 | #endif |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15451 | /* 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] | 15452 | builtin and then its argument prototype would still apply. */ |
| 15453 | char rl_completion_matches (); |
| 15454 | #ifdef F77_DUMMY_MAIN |
| 15455 | # ifdef __cplusplus |
| 15456 | extern "C" |
| 15457 | # endif |
| 15458 | int F77_DUMMY_MAIN() { return 1; } |
| 15459 | #endif |
| 15460 | int |
| 15461 | main () |
| 15462 | { |
| 15463 | rl_completion_matches (); |
| 15464 | ; |
| 15465 | return 0; |
| 15466 | } |
| 15467 | _ACEOF |
| 15468 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15469 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15470 | (eval $ac_link) 2>&5 |
| 15471 | ac_status=$? |
| 15472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15473 | (exit $ac_status); } && |
| 15474 | { ac_try='test -s conftest$ac_exeext' |
| 15475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15476 | (eval $ac_try) 2>&5 |
| 15477 | ac_status=$? |
| 15478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15479 | (exit $ac_status); }; }; then |
| 15480 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15481 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15482 | echo "$as_me: failed program was:" >&5 |
| 15483 | cat conftest.$ac_ext >&5 |
| 15484 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15485 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15486 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 15487 | LIBS=$ac_check_lib_save_LIBS |
| 15488 | fi |
| 15489 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 15490 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6 |
| 15491 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15492 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15493 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15494 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15495 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15496 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15497 | fi |
| 15498 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15499 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15500 | echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 15501 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6 |
| 15502 | if test "${ac_cv_broken_nice+set}" = set; then |
| 15503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15504 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15505 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15506 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15507 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15508 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15509 | cat >conftest.$ac_ext <<_ACEOF |
| 15510 | #line $LINENO "configure" |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15511 | #include "confdefs.h" |
| 15512 | |
| 15513 | int main() |
| 15514 | { |
| 15515 | int val1 = nice(1); |
| 15516 | if (val1 != -1 && val1 == nice(2)) |
| 15517 | exit(0); |
| 15518 | exit(1); |
| 15519 | } |
| 15520 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15521 | _ACEOF |
| 15522 | rm -f conftest$ac_exeext |
| 15523 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15524 | (eval $ac_link) 2>&5 |
| 15525 | ac_status=$? |
| 15526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15527 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15529 | (eval $ac_try) 2>&5 |
| 15530 | ac_status=$? |
| 15531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15532 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15533 | ac_cv_broken_nice=yes |
| 15534 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15535 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15536 | echo "$as_me: failed program was:" >&5 |
| 15537 | cat conftest.$ac_ext >&5 |
| 15538 | ( exit $ac_status ) |
| 15539 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15540 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15541 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15542 | fi |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15543 | fi |
| 15544 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15545 | echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 15546 | echo "${ECHO_T}$ac_cv_broken_nice" >&6 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15547 | if test "$ac_cv_broken_nice" = yes |
| 15548 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15549 | |
| 15550 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15551 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15552 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15553 | |
| 15554 | fi |
| 15555 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15556 | # 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] | 15557 | echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 15558 | echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6 |
| 15559 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 15560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15561 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15562 | cat >conftest.$ac_ext <<_ACEOF |
| 15563 | #line $LINENO "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15564 | #include "confdefs.h" |
| 15565 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15566 | #ifdef F77_DUMMY_MAIN |
| 15567 | # ifdef __cplusplus |
| 15568 | extern "C" |
| 15569 | # endif |
| 15570 | int F77_DUMMY_MAIN() { return 1; } |
| 15571 | #endif |
| 15572 | int |
| 15573 | main () |
| 15574 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15575 | |
| 15576 | int rtn; |
| 15577 | rtn = mvwdelch(0,0,0); |
| 15578 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15579 | ; |
| 15580 | return 0; |
| 15581 | } |
| 15582 | _ACEOF |
| 15583 | rm -f conftest.$ac_objext |
| 15584 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15585 | (eval $ac_compile) 2>&5 |
| 15586 | ac_status=$? |
| 15587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15588 | (exit $ac_status); } && |
| 15589 | { ac_try='test -s conftest.$ac_objext' |
| 15590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15591 | (eval $ac_try) 2>&5 |
| 15592 | ac_status=$? |
| 15593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15594 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15595 | ac_cv_mvwdelch_is_expression=yes |
| 15596 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15597 | echo "$as_me: failed program was:" >&5 |
| 15598 | cat conftest.$ac_ext >&5 |
| 15599 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15600 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15601 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15602 | fi |
| 15603 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15604 | echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 15605 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15606 | |
| 15607 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 15608 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15609 | |
| 15610 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15611 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15612 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15613 | |
| 15614 | fi |
| 15615 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15616 | echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 15617 | echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6 |
| 15618 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 15619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15620 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15621 | cat >conftest.$ac_ext <<_ACEOF |
| 15622 | #line $LINENO "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15623 | #include "confdefs.h" |
| 15624 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15625 | #ifdef F77_DUMMY_MAIN |
| 15626 | # ifdef __cplusplus |
| 15627 | extern "C" |
| 15628 | # endif |
| 15629 | int F77_DUMMY_MAIN() { return 1; } |
| 15630 | #endif |
| 15631 | int |
| 15632 | main () |
| 15633 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15634 | |
| 15635 | WINDOW *w; |
| 15636 | w->_flags = 0; |
| 15637 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15638 | ; |
| 15639 | return 0; |
| 15640 | } |
| 15641 | _ACEOF |
| 15642 | rm -f conftest.$ac_objext |
| 15643 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15644 | (eval $ac_compile) 2>&5 |
| 15645 | ac_status=$? |
| 15646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15647 | (exit $ac_status); } && |
| 15648 | { ac_try='test -s conftest.$ac_objext' |
| 15649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15650 | (eval $ac_try) 2>&5 |
| 15651 | ac_status=$? |
| 15652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15653 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15654 | ac_cv_window_has_flags=yes |
| 15655 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15656 | echo "$as_me: failed program was:" >&5 |
| 15657 | cat conftest.$ac_ext >&5 |
| 15658 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15659 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15660 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15661 | fi |
| 15662 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15663 | echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 15664 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15665 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15666 | |
| 15667 | if test "$ac_cv_window_has_flags" = yes |
| 15668 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15669 | |
| 15670 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15671 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15672 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15673 | |
| 15674 | fi |
| 15675 | |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15676 | # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS! |
| 15677 | # Add sys/socket.h to confdefs.h |
| 15678 | cat >> confdefs.h <<\EOF |
| 15679 | #ifdef HAVE_SYS_SOCKET_H |
| 15680 | #include <sys/socket.h> |
| 15681 | #endif |
| 15682 | EOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15683 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 15684 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 15685 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 15686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15687 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15688 | cat >conftest.$ac_ext <<_ACEOF |
| 15689 | #line $LINENO "configure" |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15690 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15691 | $ac_includes_default |
| 15692 | #ifdef F77_DUMMY_MAIN |
| 15693 | # ifdef __cplusplus |
| 15694 | extern "C" |
| 15695 | # endif |
| 15696 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15697 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15698 | int |
| 15699 | main () |
| 15700 | { |
| 15701 | if ((socklen_t *) 0) |
| 15702 | return 0; |
| 15703 | if (sizeof (socklen_t)) |
| 15704 | return 0; |
| 15705 | ; |
| 15706 | return 0; |
| 15707 | } |
| 15708 | _ACEOF |
| 15709 | rm -f conftest.$ac_objext |
| 15710 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15711 | (eval $ac_compile) 2>&5 |
| 15712 | ac_status=$? |
| 15713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15714 | (exit $ac_status); } && |
| 15715 | { ac_try='test -s conftest.$ac_objext' |
| 15716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15717 | (eval $ac_try) 2>&5 |
| 15718 | ac_status=$? |
| 15719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15720 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15721 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15722 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15723 | echo "$as_me: failed program was:" >&5 |
| 15724 | cat conftest.$ac_ext >&5 |
| 15725 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15726 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15727 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15728 | fi |
| 15729 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 15730 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| 15731 | if test $ac_cv_type_socklen_t = yes; then |
| 15732 | : |
| 15733 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15734 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15735 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15736 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15737 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15738 | |
| 15739 | fi |
| 15740 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15741 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15742 | #AC_MSG_CHECKING(for Modules/Setup) |
| 15743 | #if test ! -f Modules/Setup ; then |
| 15744 | # if test ! -d Modules ; then |
| 15745 | # mkdir Modules |
| 15746 | # fi |
| 15747 | # cp "$srcdir/Modules/Setup.dist" Modules/Setup |
| 15748 | # AC_MSG_RESULT(creating) |
| 15749 | #else |
| 15750 | # AC_MSG_RESULT(already exists) |
| 15751 | #fi |
| 15752 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15753 | |
| 15754 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 15755 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 15756 | do |
| 15757 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 15758 | done |
| 15759 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15760 | |
Neil Schemenauer | acbf9ef | 2001-02-27 02:15:14 +0000 | [diff] [blame] | 15761 | SRCDIRS="Parser Grammar Objects Python Modules" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15762 | echo "$as_me:$LINENO: checking for build directories" >&5 |
| 15763 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15764 | for dir in $SRCDIRS; do |
| 15765 | if test ! -d $dir; then |
| 15766 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 15767 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15768 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15769 | echo "$as_me:$LINENO: result: done" >&5 |
| 15770 | echo "${ECHO_T}done" >&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 15771 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15772 | # generate output files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15773 | ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config" |
| 15774 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15775 | # This file is a shell script that caches the results of configure |
| 15776 | # 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] | 15777 | # scripts and configure runs, see configure's option --config-cache. |
| 15778 | # It is not useful on other systems. If it contains results you don't |
| 15779 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15780 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15781 | # config.status only pays attention to the cache file if you give it |
| 15782 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15783 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15784 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
| 15785 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 15786 | # following values. |
| 15787 | |
| 15788 | _ACEOF |
| 15789 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15790 | # The following way of writing the cache mishandles newlines in values, |
| 15791 | # but we know of no workaround that is simple, portable, and efficient. |
| 15792 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15793 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 15794 | # 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] | 15795 | { |
| 15796 | (set) 2>&1 | |
| 15797 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 15798 | *ac_space=\ *) |
| 15799 | # `set' does not quote correctly, so add quotes (double-quote |
| 15800 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 15801 | sed -n \ |
| 15802 | "s/'/'\\\\''/g; |
| 15803 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 15804 | ;; |
| 15805 | *) |
| 15806 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 15807 | sed -n \ |
| 15808 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 15809 | ;; |
| 15810 | esac; |
| 15811 | } | |
| 15812 | sed ' |
| 15813 | t clear |
| 15814 | : clear |
| 15815 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 15816 | t end |
| 15817 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 15818 | : end' >>confcache |
| 15819 | if cmp -s $cache_file confcache; then :; else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15820 | if test -w $cache_file; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15821 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 15822 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15823 | else |
| 15824 | echo "not updating unwritable cache $cache_file" |
| 15825 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15826 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15827 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 15828 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15829 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 15830 | # Let make expand exec_prefix. |
| 15831 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 15832 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15833 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 15834 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 15835 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 15836 | # (actually we leave an empty line to preserve line numbers). |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15837 | if test "x$srcdir" = x.; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15838 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 15839 | s/:*\$(srcdir):*/:/; |
| 15840 | s/:*\${srcdir}:*/:/; |
| 15841 | s/:*@srcdir@:*/:/; |
| 15842 | s/^\([^=]*=[ ]*\):*/\1/; |
| 15843 | s/:*$//; |
| 15844 | s/^[^=]*=[ ]*$//; |
| 15845 | }' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15846 | fi |
| 15847 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15848 | DEFS=-DHAVE_CONFIG_H |
| 15849 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15850 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15851 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15852 | ac_clean_files_save=$ac_clean_files |
| 15853 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 15854 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 15855 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 15856 | cat >$CONFIG_STATUS <<_ACEOF |
| 15857 | #! $SHELL |
| 15858 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15859 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15860 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15861 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15862 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15863 | debug=false |
| 15864 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 15865 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15866 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15867 | cat >>$CONFIG_STATUS <<\_ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15868 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15869 | ## --------------------- ## |
| 15870 | ## M4sh Initialization. ## |
| 15871 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15872 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15873 | # Be Bourne compatible |
| 15874 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 15875 | emulate sh |
| 15876 | NULLCMD=: |
| 15877 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 15878 | set -o posix |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15879 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15880 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15881 | # NLS nuisances. |
| 15882 | # Support unset when possible. |
| 15883 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 15884 | as_unset=unset |
| 15885 | else |
| 15886 | as_unset=false |
| 15887 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15888 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15889 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && |
| 15890 | { $as_unset LANG || test "${LANG+set}" != set; } || |
| 15891 | { LANG=C; export LANG; } |
| 15892 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && |
| 15893 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || |
| 15894 | { LC_ALL=C; export LC_ALL; } |
| 15895 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && |
| 15896 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || |
| 15897 | { LC_TIME=C; export LC_TIME; } |
| 15898 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && |
| 15899 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || |
| 15900 | { LC_CTYPE=C; export LC_CTYPE; } |
| 15901 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && |
| 15902 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || |
| 15903 | { LANGUAGE=C; export LANGUAGE; } |
| 15904 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && |
| 15905 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || |
| 15906 | { LC_COLLATE=C; export LC_COLLATE; } |
| 15907 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && |
| 15908 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || |
| 15909 | { LC_NUMERIC=C; export LC_NUMERIC; } |
| 15910 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && |
| 15911 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || |
| 15912 | { LC_MESSAGES=C; export LC_MESSAGES; } |
| 15913 | |
| 15914 | |
| 15915 | # Name of the executable. |
| 15916 | as_me=`(basename "$0") 2>/dev/null || |
| 15917 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 15918 | X"$0" : 'X\(//\)$' \| \ |
| 15919 | X"$0" : 'X\(/\)$' \| \ |
| 15920 | . : '\(.\)' 2>/dev/null || |
| 15921 | echo X/"$0" | |
| 15922 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 15923 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 15924 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 15925 | s/.*/./; q'` |
| 15926 | |
| 15927 | # PATH needs CR, and LINENO needs CR and PATH. |
| 15928 | # Avoid depending upon Character Ranges. |
| 15929 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 15930 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 15931 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 15932 | as_cr_digits='0123456789' |
| 15933 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 15934 | |
| 15935 | # The user is always right. |
| 15936 | if test "${PATH_SEPARATOR+set}" != set; then |
| 15937 | echo "#! /bin/sh" >conftest.sh |
| 15938 | echo "exit 0" >>conftest.sh |
| 15939 | chmod +x conftest.sh |
| 15940 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
| 15941 | PATH_SEPARATOR=';' |
| 15942 | else |
| 15943 | PATH_SEPARATOR=: |
| 15944 | fi |
| 15945 | rm -f conftest.sh |
| 15946 | fi |
| 15947 | |
| 15948 | |
| 15949 | as_lineno_1=$LINENO |
| 15950 | as_lineno_2=$LINENO |
| 15951 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 15952 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 15953 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 15954 | # Find who we are. Look in the path if we contain no path at all |
| 15955 | # relative or not. |
| 15956 | case $0 in |
| 15957 | *[\\/]* ) as_myself=$0 ;; |
| 15958 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15959 | for as_dir in $PATH |
| 15960 | do |
| 15961 | IFS=$as_save_IFS |
| 15962 | test -z "$as_dir" && as_dir=. |
| 15963 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 15964 | done |
| 15965 | |
| 15966 | ;; |
| 15967 | esac |
| 15968 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 15969 | # in which case we are not to be found in the path. |
| 15970 | if test "x$as_myself" = x; then |
| 15971 | as_myself=$0 |
| 15972 | fi |
| 15973 | if test ! -f "$as_myself"; then |
| 15974 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 15975 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 15976 | { (exit 1); exit 1; }; } |
| 15977 | fi |
| 15978 | case $CONFIG_SHELL in |
| 15979 | '') |
| 15980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15981 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 15982 | do |
| 15983 | IFS=$as_save_IFS |
| 15984 | test -z "$as_dir" && as_dir=. |
| 15985 | for as_base in sh bash ksh sh5; do |
| 15986 | case $as_dir in |
| 15987 | /*) |
| 15988 | if ("$as_dir/$as_base" -c ' |
| 15989 | as_lineno_1=$LINENO |
| 15990 | as_lineno_2=$LINENO |
| 15991 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 15992 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 15993 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 15994 | CONFIG_SHELL=$as_dir/$as_base |
| 15995 | export CONFIG_SHELL |
| 15996 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 15997 | fi;; |
| 15998 | esac |
| 15999 | done |
| 16000 | done |
| 16001 | ;; |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16002 | esac |
| 16003 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16004 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 16005 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 16006 | # line-number line before each line; the second 'sed' does the real |
| 16007 | # work. The second script uses 'N' to pair each line-number line |
| 16008 | # with the numbered line, and appends trailing '-' during |
| 16009 | # substitution so that $LINENO is not a special case at line end. |
| 16010 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 16011 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 16012 | sed '=' <$as_myself | |
| 16013 | sed ' |
| 16014 | N |
| 16015 | s,$,-, |
| 16016 | : loop |
| 16017 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 16018 | t loop |
| 16019 | s,-$,, |
| 16020 | s,^['$as_cr_digits']*\n,, |
| 16021 | ' >$as_me.lineno && |
| 16022 | chmod +x $as_me.lineno || |
| 16023 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 16024 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 16025 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16026 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16027 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 16028 | # (the dirname of $[0] is not the place where we might find the |
| 16029 | # original and so on. Autoconf is especially sensible to this). |
| 16030 | . ./$as_me.lineno |
| 16031 | # Exit status is that of the last command. |
| 16032 | exit |
| 16033 | } |
| 16034 | |
| 16035 | |
| 16036 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 16037 | *c*,-n*) ECHO_N= ECHO_C=' |
| 16038 | ' ECHO_T=' ' ;; |
| 16039 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 16040 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 16041 | esac |
| 16042 | |
| 16043 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 16044 | as_expr=expr |
| 16045 | else |
| 16046 | as_expr=false |
| 16047 | fi |
| 16048 | |
| 16049 | rm -f conf$$ conf$$.exe conf$$.file |
| 16050 | echo >conf$$.file |
| 16051 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 16052 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 16053 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 16054 | if test -f conf$$.exe; then |
| 16055 | # Don't use ln at all; we don't have any links |
| 16056 | as_ln_s='cp -p' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16057 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16058 | as_ln_s='ln -s' |
| 16059 | fi |
| 16060 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 16061 | as_ln_s=ln |
| 16062 | else |
| 16063 | as_ln_s='cp -p' |
| 16064 | fi |
| 16065 | rm -f conf$$ conf$$.exe conf$$.file |
| 16066 | |
| 16067 | as_executable_p="test -f" |
| 16068 | |
| 16069 | # Sed expression to map a string onto a valid CPP name. |
| 16070 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 16071 | |
| 16072 | # Sed expression to map a string onto a valid variable name. |
| 16073 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 16074 | |
| 16075 | |
| 16076 | # IFS |
| 16077 | # We need space, tab and new line, in precisely that order. |
| 16078 | as_nl=' |
| 16079 | ' |
| 16080 | IFS=" $as_nl" |
| 16081 | |
| 16082 | # CDPATH. |
| 16083 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
| 16084 | |
| 16085 | exec 6>&1 |
| 16086 | |
| 16087 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 16088 | # report actual input values of CONFIG_FILES etc. instead of their |
| 16089 | # values after options handling. Logging --version etc. is OK. |
| 16090 | exec 5>>config.log |
| 16091 | { |
| 16092 | echo |
| 16093 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 16094 | ## Running $as_me. ## |
| 16095 | _ASBOX |
| 16096 | } >&5 |
| 16097 | cat >&5 <<_CSEOF |
| 16098 | |
| 16099 | This file was extended by $as_me, which was |
| 16100 | generated by GNU Autoconf 2.53. Invocation command line was |
| 16101 | |
| 16102 | CONFIG_FILES = $CONFIG_FILES |
| 16103 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 16104 | CONFIG_LINKS = $CONFIG_LINKS |
| 16105 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 16106 | $ $0 $@ |
| 16107 | |
| 16108 | _CSEOF |
| 16109 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 16110 | echo >&5 |
| 16111 | _ACEOF |
| 16112 | |
| 16113 | # Files that config.status was made for. |
| 16114 | if test -n "$ac_config_files"; then |
| 16115 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 16116 | fi |
| 16117 | |
| 16118 | if test -n "$ac_config_headers"; then |
| 16119 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 16120 | fi |
| 16121 | |
| 16122 | if test -n "$ac_config_links"; then |
| 16123 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 16124 | fi |
| 16125 | |
| 16126 | if test -n "$ac_config_commands"; then |
| 16127 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 16128 | fi |
| 16129 | |
| 16130 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16131 | |
| 16132 | ac_cs_usage="\ |
| 16133 | \`$as_me' instantiates files from templates according to the |
| 16134 | current configuration. |
| 16135 | |
| 16136 | Usage: $0 [OPTIONS] [FILE]... |
| 16137 | |
| 16138 | -h, --help print this help, then exit |
| 16139 | -V, --version print version number, then exit |
| 16140 | -d, --debug don't remove temporary files |
| 16141 | --recheck update $as_me by reconfiguring in the same conditions |
| 16142 | --file=FILE[:TEMPLATE] |
| 16143 | instantiate the configuration file FILE |
| 16144 | --header=FILE[:TEMPLATE] |
| 16145 | instantiate the configuration header FILE |
| 16146 | |
| 16147 | Configuration files: |
| 16148 | $config_files |
| 16149 | |
| 16150 | Configuration headers: |
| 16151 | $config_headers |
| 16152 | |
| 16153 | Report bugs to <bug-autoconf@gnu.org>." |
| 16154 | _ACEOF |
| 16155 | |
| 16156 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16157 | ac_cs_version="\\ |
| 16158 | config.status |
| 16159 | configured by $0, generated by GNU Autoconf 2.53, |
| 16160 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 16161 | |
| 16162 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 16163 | Free Software Foundation, Inc. |
| 16164 | This config.status script is free software; the Free Software Foundation |
| 16165 | gives unlimited permission to copy, distribute and modify it." |
| 16166 | srcdir=$srcdir |
| 16167 | INSTALL="$INSTALL" |
| 16168 | _ACEOF |
| 16169 | |
| 16170 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16171 | # If no file are specified by the user, then we need to provide default |
| 16172 | # value. By we need to know if files were specified by the user. |
| 16173 | ac_need_defaults=: |
| 16174 | while test $# != 0 |
| 16175 | do |
| 16176 | case $1 in |
| 16177 | --*=*) |
| 16178 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 16179 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 16180 | shift |
| 16181 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} |
| 16182 | shift |
| 16183 | ;; |
| 16184 | -*);; |
| 16185 | *) # This is not an option, so the user has probably given explicit |
| 16186 | # arguments. |
| 16187 | ac_need_defaults=false;; |
| 16188 | esac |
| 16189 | |
| 16190 | case $1 in |
| 16191 | # Handling of the options. |
| 16192 | _ACEOF |
| 16193 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16194 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 16195 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
| 16196 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; |
| 16197 | _ACEOF |
| 16198 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16199 | --version | --vers* | -V ) |
| 16200 | echo "$ac_cs_version"; exit 0 ;; |
| 16201 | --he | --h) |
| 16202 | # Conflict between --help and --header |
| 16203 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 16204 | Try \`$0 --help' for more information." >&5 |
| 16205 | echo "$as_me: error: ambiguous option: $1 |
| 16206 | Try \`$0 --help' for more information." >&2;} |
| 16207 | { (exit 1); exit 1; }; };; |
| 16208 | --help | --hel | -h ) |
| 16209 | echo "$ac_cs_usage"; exit 0 ;; |
| 16210 | --debug | --d* | -d ) |
| 16211 | debug=: ;; |
| 16212 | --file | --fil | --fi | --f ) |
| 16213 | shift |
| 16214 | CONFIG_FILES="$CONFIG_FILES $1" |
| 16215 | ac_need_defaults=false;; |
| 16216 | --header | --heade | --head | --hea ) |
| 16217 | shift |
| 16218 | CONFIG_HEADERS="$CONFIG_HEADERS $1" |
| 16219 | ac_need_defaults=false;; |
| 16220 | |
| 16221 | # This is an error. |
| 16222 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 16223 | Try \`$0 --help' for more information." >&5 |
| 16224 | echo "$as_me: error: unrecognized option: $1 |
| 16225 | Try \`$0 --help' for more information." >&2;} |
| 16226 | { (exit 1); exit 1; }; } ;; |
| 16227 | |
| 16228 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 16229 | |
| 16230 | esac |
| 16231 | shift |
| 16232 | done |
| 16233 | |
| 16234 | _ACEOF |
| 16235 | |
| 16236 | |
| 16237 | |
| 16238 | |
| 16239 | |
| 16240 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16241 | for ac_config_target in $ac_config_targets |
| 16242 | do |
| 16243 | case "$ac_config_target" in |
| 16244 | # Handling of arguments. |
| 16245 | "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 16246 | "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 16247 | "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 16248 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 16249 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 16250 | { (exit 1); exit 1; }; };; |
| 16251 | esac |
| 16252 | done |
| 16253 | |
| 16254 | # If the user did not use the arguments to specify the items to instantiate, |
| 16255 | # then the envvar interface is used. Set only those that are not. |
| 16256 | # We use the long form for the default assignment because of an extremely |
| 16257 | # bizarre bug on SunOS 4.1.3. |
| 16258 | if $ac_need_defaults; then |
| 16259 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 16260 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 16261 | fi |
| 16262 | |
| 16263 | # Create a temporary directory, and hook for its removal unless debugging. |
| 16264 | $debug || |
| 16265 | { |
| 16266 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 16267 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 16268 | } |
| 16269 | |
| 16270 | # Create a (secure) tmp directory for tmp files. |
| 16271 | : ${TMPDIR=/tmp} |
| 16272 | { |
| 16273 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && |
| 16274 | test -n "$tmp" && test -d "$tmp" |
| 16275 | } || |
| 16276 | { |
| 16277 | tmp=$TMPDIR/cs$$-$RANDOM |
| 16278 | (umask 077 && mkdir $tmp) |
| 16279 | } || |
| 16280 | { |
| 16281 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
| 16282 | { (exit 1); exit 1; } |
| 16283 | } |
| 16284 | |
| 16285 | _ACEOF |
| 16286 | |
| 16287 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16288 | |
| 16289 | # |
| 16290 | # CONFIG_FILES section. |
| 16291 | # |
| 16292 | |
| 16293 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 16294 | # This happens for instance when ./config.status config.h |
| 16295 | if test -n "\$CONFIG_FILES"; then |
| 16296 | # Protect against being on the right side of a sed subst in config.status. |
| 16297 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 16298 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 16299 | s,@SHELL@,$SHELL,;t t |
| 16300 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 16301 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 16302 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 16303 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 16304 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 16305 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 16306 | s,@exec_prefix@,$exec_prefix,;t t |
| 16307 | s,@prefix@,$prefix,;t t |
| 16308 | s,@program_transform_name@,$program_transform_name,;t t |
| 16309 | s,@bindir@,$bindir,;t t |
| 16310 | s,@sbindir@,$sbindir,;t t |
| 16311 | s,@libexecdir@,$libexecdir,;t t |
| 16312 | s,@datadir@,$datadir,;t t |
| 16313 | s,@sysconfdir@,$sysconfdir,;t t |
| 16314 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 16315 | s,@localstatedir@,$localstatedir,;t t |
| 16316 | s,@libdir@,$libdir,;t t |
| 16317 | s,@includedir@,$includedir,;t t |
| 16318 | s,@oldincludedir@,$oldincludedir,;t t |
| 16319 | s,@infodir@,$infodir,;t t |
| 16320 | s,@mandir@,$mandir,;t t |
| 16321 | s,@build_alias@,$build_alias,;t t |
| 16322 | s,@host_alias@,$host_alias,;t t |
| 16323 | s,@target_alias@,$target_alias,;t t |
| 16324 | s,@DEFS@,$DEFS,;t t |
| 16325 | s,@ECHO_C@,$ECHO_C,;t t |
| 16326 | s,@ECHO_N@,$ECHO_N,;t t |
| 16327 | s,@ECHO_T@,$ECHO_T,;t t |
| 16328 | s,@LIBS@,$LIBS,;t t |
| 16329 | s,@VERSION@,$VERSION,;t t |
| 16330 | s,@SOVERSION@,$SOVERSION,;t t |
| 16331 | s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t |
| 16332 | s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t |
| 16333 | s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t |
| 16334 | s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t |
| 16335 | s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t |
| 16336 | s,@MACHDEP@,$MACHDEP,;t t |
| 16337 | s,@SGI_ABI@,$SGI_ABI,;t t |
| 16338 | s,@CXX@,$CXX,;t t |
| 16339 | s,@MAINOBJ@,$MAINOBJ,;t t |
| 16340 | s,@EXEEXT@,$EXEEXT,;t t |
| 16341 | s,@CC@,$CC,;t t |
| 16342 | s,@CFLAGS@,$CFLAGS,;t t |
| 16343 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 16344 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 16345 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 16346 | s,@OBJEXT@,$OBJEXT,;t t |
| 16347 | s,@CPP@,$CPP,;t t |
| 16348 | s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t |
| 16349 | s,@LIBRARY@,$LIBRARY,;t t |
| 16350 | s,@LDLIBRARY@,$LDLIBRARY,;t t |
| 16351 | s,@DLLLIBRARY@,$DLLLIBRARY,;t t |
| 16352 | s,@BLDLIBRARY@,$BLDLIBRARY,;t t |
| 16353 | s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t |
| 16354 | s,@INSTSONAME@,$INSTSONAME,;t t |
| 16355 | s,@RUNSHARED@,$RUNSHARED,;t t |
| 16356 | s,@LINKCC@,$LINKCC,;t t |
| 16357 | s,@RANLIB@,$RANLIB,;t t |
| 16358 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 16359 | s,@AR@,$AR,;t t |
| 16360 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 16361 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 16362 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 16363 | s,@LN@,$LN,;t t |
| 16364 | s,@OPT@,$OPT,;t t |
| 16365 | s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t |
| 16366 | s,@SO@,$SO,;t t |
| 16367 | s,@LDSHARED@,$LDSHARED,;t t |
| 16368 | s,@BLDSHARED@,$BLDSHARED,;t t |
| 16369 | s,@CCSHARED@,$CCSHARED,;t t |
| 16370 | s,@LINKFORSHARED@,$LINKFORSHARED,;t t |
| 16371 | s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t |
| 16372 | s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t |
| 16373 | s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t |
| 16374 | s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t |
| 16375 | s,@LDLAST@,$LDLAST,;t t |
| 16376 | s,@THREADOBJ@,$THREADOBJ,;t t |
| 16377 | s,@DLINCLDIR@,$DLINCLDIR,;t t |
| 16378 | s,@DYNLOADFILE@,$DYNLOADFILE,;t t |
| 16379 | s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t |
| 16380 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 16381 | s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t |
| 16382 | s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t |
| 16383 | s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t |
| 16384 | s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t |
| 16385 | s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t |
| 16386 | s,@LIBM@,$LIBM,;t t |
| 16387 | s,@LIBC@,$LIBC,;t t |
| 16388 | s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t |
| 16389 | s,@THREADHEADERS@,$THREADHEADERS,;t t |
| 16390 | s,@SRCDIRS@,$SRCDIRS,;t t |
| 16391 | CEOF |
| 16392 | |
| 16393 | _ACEOF |
| 16394 | |
| 16395 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16396 | # Split the substitutions into bite-sized pieces for seds with |
| 16397 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 16398 | ac_max_sed_lines=48 |
| 16399 | ac_sed_frag=1 # Number of current file. |
| 16400 | ac_beg=1 # First line for current file. |
| 16401 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 16402 | ac_more_lines=: |
| 16403 | ac_sed_cmds= |
| 16404 | while $ac_more_lines; do |
| 16405 | if test $ac_beg -gt 1; then |
| 16406 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 16407 | else |
| 16408 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 16409 | fi |
| 16410 | if test ! -s $tmp/subs.frag; then |
| 16411 | ac_more_lines=false |
| 16412 | else |
| 16413 | # The purpose of the label and of the branching condition is to |
| 16414 | # speed up the sed processing (if there are no `@' at all, there |
| 16415 | # is no need to browse any of the substitutions). |
| 16416 | # These are the two extra sed commands mentioned above. |
| 16417 | (echo ':t |
| 16418 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 16419 | if test -z "$ac_sed_cmds"; then |
| 16420 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 16421 | else |
| 16422 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 16423 | fi |
| 16424 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 16425 | ac_beg=$ac_end |
| 16426 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 16427 | fi |
| 16428 | done |
| 16429 | if test -z "$ac_sed_cmds"; then |
| 16430 | ac_sed_cmds=cat |
| 16431 | fi |
| 16432 | fi # test -n "$CONFIG_FILES" |
| 16433 | |
| 16434 | _ACEOF |
| 16435 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16436 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 16437 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 16438 | case $ac_file in |
| 16439 | - | *:- | *:-:* ) # input from stdin |
| 16440 | cat >$tmp/stdin |
| 16441 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16442 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16443 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16444 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16445 | * ) ac_file_in=$ac_file.in ;; |
| 16446 | esac |
| 16447 | |
| 16448 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 16449 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 16450 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16451 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16452 | X"$ac_file" : 'X\(//\)$' \| \ |
| 16453 | X"$ac_file" : 'X\(/\)' \| \ |
| 16454 | . : '\(.\)' 2>/dev/null || |
| 16455 | echo X"$ac_file" | |
| 16456 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16457 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16458 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16459 | /^X\(\/\).*/{ s//\1/; q; } |
| 16460 | s/.*/./; q'` |
| 16461 | { case "$ac_dir" in |
| 16462 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 16463 | *) as_incr_dir=.;; |
| 16464 | esac |
| 16465 | as_dummy="$ac_dir" |
| 16466 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 16467 | case $as_mkdir_dir in |
| 16468 | # Skip DOS drivespec |
| 16469 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 16470 | *) |
| 16471 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 16472 | test -d "$as_incr_dir" || |
| 16473 | mkdir "$as_incr_dir" || |
| 16474 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 16475 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 16476 | { (exit 1); exit 1; }; } |
| 16477 | ;; |
| 16478 | esac |
| 16479 | done; } |
| 16480 | |
| 16481 | ac_builddir=. |
| 16482 | |
| 16483 | if test "$ac_dir" != .; then |
| 16484 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 16485 | # A "../" for each directory in $ac_dir_suffix. |
| 16486 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 16487 | else |
| 16488 | ac_dir_suffix= ac_top_builddir= |
| 16489 | fi |
| 16490 | |
| 16491 | case $srcdir in |
| 16492 | .) # No --srcdir option. We are building in place. |
| 16493 | ac_srcdir=. |
| 16494 | if test -z "$ac_top_builddir"; then |
| 16495 | ac_top_srcdir=. |
| 16496 | else |
| 16497 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 16498 | fi ;; |
| 16499 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 16500 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 16501 | ac_top_srcdir=$srcdir ;; |
| 16502 | *) # Relative path. |
| 16503 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 16504 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 16505 | esac |
| 16506 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 16507 | # absolute. |
| 16508 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 16509 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` |
| 16510 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 16511 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 16512 | |
| 16513 | |
| 16514 | case $INSTALL in |
| 16515 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 16516 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 16517 | esac |
| 16518 | |
| 16519 | if test x"$ac_file" != x-; then |
| 16520 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 16521 | echo "$as_me: creating $ac_file" >&6;} |
| 16522 | rm -f "$ac_file" |
| 16523 | fi |
| 16524 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16525 | # use $as_me), people would be surprised to read: |
| 16526 | # /* config.h. Generated by config.status. */ |
| 16527 | if test x"$ac_file" = x-; then |
| 16528 | configure_input= |
| 16529 | else |
| 16530 | configure_input="$ac_file. " |
| 16531 | fi |
| 16532 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 16533 | sed 's,.*/,,'` by configure." |
| 16534 | |
| 16535 | # First look for the input files in the build tree, otherwise in the |
| 16536 | # src tree. |
| 16537 | ac_file_inputs=`IFS=: |
| 16538 | for f in $ac_file_in; do |
| 16539 | case $f in |
| 16540 | -) echo $tmp/stdin ;; |
| 16541 | [\\/$]*) |
| 16542 | # Absolute (can't be DOS-style, as IFS=:) |
| 16543 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16544 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16545 | { (exit 1); exit 1; }; } |
| 16546 | echo $f;; |
| 16547 | *) # Relative |
| 16548 | if test -f "$f"; then |
| 16549 | # Build tree |
| 16550 | echo $f |
| 16551 | elif test -f "$srcdir/$f"; then |
| 16552 | # Source tree |
| 16553 | echo $srcdir/$f |
| 16554 | else |
| 16555 | # /dev/null tree |
| 16556 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16557 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16558 | { (exit 1); exit 1; }; } |
| 16559 | fi;; |
| 16560 | esac |
| 16561 | done` || { (exit 1); exit 1; } |
| 16562 | _ACEOF |
| 16563 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16564 | sed "$ac_vpsub |
| 16565 | $extrasub |
| 16566 | _ACEOF |
| 16567 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16568 | :t |
| 16569 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 16570 | s,@configure_input@,$configure_input,;t t |
| 16571 | s,@srcdir@,$ac_srcdir,;t t |
| 16572 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 16573 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 16574 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 16575 | s,@builddir@,$ac_builddir,;t t |
| 16576 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 16577 | s,@top_builddir@,$ac_top_builddir,;t t |
| 16578 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 16579 | s,@INSTALL@,$ac_INSTALL,;t t |
| 16580 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 16581 | rm -f $tmp/stdin |
| 16582 | if test x"$ac_file" != x-; then |
| 16583 | mv $tmp/out $ac_file |
| 16584 | else |
| 16585 | cat $tmp/out |
| 16586 | rm -f $tmp/out |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16587 | fi |
| 16588 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16589 | done |
| 16590 | _ACEOF |
| 16591 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16592 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16593 | # |
| 16594 | # CONFIG_HEADER section. |
| 16595 | # |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16596 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16597 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 16598 | # 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] | 16599 | # |
| 16600 | # ac_d sets the value in "#define NAME VALUE" lines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16601 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 16602 | ac_dB='[ ].*$,\1#\2' |
| 16603 | ac_dC=' ' |
| 16604 | ac_dD=',;t' |
| 16605 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 16606 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 16607 | ac_uB='$,\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16608 | ac_uC=' ' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16609 | ac_uD=',;t' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16610 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16611 | 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] | 16612 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16613 | case $ac_file in |
| 16614 | - | *:- | *:-:* ) # input from stdin |
| 16615 | cat >$tmp/stdin |
| 16616 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16617 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16618 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16619 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16620 | * ) ac_file_in=$ac_file.in ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16621 | esac |
| 16622 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16623 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 16624 | echo "$as_me: creating $ac_file" >&6;} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16625 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16626 | # First look for the input files in the build tree, otherwise in the |
| 16627 | # src tree. |
| 16628 | ac_file_inputs=`IFS=: |
| 16629 | for f in $ac_file_in; do |
| 16630 | case $f in |
| 16631 | -) echo $tmp/stdin ;; |
| 16632 | [\\/$]*) |
| 16633 | # Absolute (can't be DOS-style, as IFS=:) |
| 16634 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16635 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16636 | { (exit 1); exit 1; }; } |
| 16637 | echo $f;; |
| 16638 | *) # Relative |
| 16639 | if test -f "$f"; then |
| 16640 | # Build tree |
| 16641 | echo $f |
| 16642 | elif test -f "$srcdir/$f"; then |
| 16643 | # Source tree |
| 16644 | echo $srcdir/$f |
| 16645 | else |
| 16646 | # /dev/null tree |
| 16647 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16648 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16649 | { (exit 1); exit 1; }; } |
| 16650 | fi;; |
| 16651 | esac |
| 16652 | done` || { (exit 1); exit 1; } |
| 16653 | # Remove the trailing spaces. |
| 16654 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16655 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16656 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16657 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16658 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 16659 | # `conftest.undefs', that substitutes the proper values into |
| 16660 | # config.h.in to produce config.h. The first handles `#define' |
| 16661 | # templates, and the second `#undef' templates. |
| 16662 | # And first: Protect against being on the right side of a sed subst in |
| 16663 | # config.status. Protect against being in an unquoted here document |
| 16664 | # in config.status. |
| 16665 | rm -f conftest.defines conftest.undefs |
| 16666 | # Using a here document instead of a string reduces the quoting nightmare. |
| 16667 | # Putting comments in sed scripts is not portable. |
| 16668 | # |
| 16669 | # `end' is used to avoid that the second main sed command (meant for |
| 16670 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 16671 | # See the Autoconf documentation for `clear'. |
| 16672 | cat >confdef2sed.sed <<\_ACEOF |
| 16673 | s/[\\&,]/\\&/g |
| 16674 | s,[\\$`],\\&,g |
| 16675 | t clear |
| 16676 | : clear |
| 16677 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 16678 | t end |
| 16679 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 16680 | : end |
| 16681 | _ACEOF |
| 16682 | # If some macros were called several times there might be several times |
| 16683 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 16684 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 16685 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 16686 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 16687 | rm -f confdef2sed.sed |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16688 | |
| 16689 | # This sed command replaces #undef with comments. This is necessary, for |
| 16690 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 16691 | # 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] | 16692 | cat >>conftest.undefs <<\_ACEOF |
| 16693 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 16694 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16695 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16696 | # Break up conftest.defines because some shells have a limit on the size |
| 16697 | # of here documents, and old seds have small limits too (100 cmds). |
| 16698 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 16699 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 16700 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 16701 | echo ' :' >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16702 | rm -f conftest.tail |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16703 | while grep . conftest.defines >/dev/null |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16704 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16705 | # Write a limited-size here document to $tmp/defines.sed. |
| 16706 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 16707 | # Speed up: don't consider the non `#define' lines. |
| 16708 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 16709 | # Work around the forget-to-reset-the-flag bug. |
| 16710 | echo 't clr' >>$CONFIG_STATUS |
| 16711 | echo ': clr' >>$CONFIG_STATUS |
| 16712 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16713 | echo 'CEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16714 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 16715 | rm -f $tmp/in |
| 16716 | mv $tmp/out $tmp/in |
| 16717 | ' >>$CONFIG_STATUS |
| 16718 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 16719 | rm -f conftest.defines |
| 16720 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16721 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16722 | rm -f conftest.defines |
| 16723 | echo ' fi # egrep' >>$CONFIG_STATUS |
| 16724 | echo >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16725 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16726 | # Break up conftest.undefs because some shells have a limit on the size |
| 16727 | # of here documents, and old seds have small limits too (100 cmds). |
| 16728 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 16729 | rm -f conftest.tail |
| 16730 | while grep . conftest.undefs >/dev/null |
| 16731 | do |
| 16732 | # Write a limited-size here document to $tmp/undefs.sed. |
| 16733 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 16734 | # Speed up: don't consider the non `#undef' |
| 16735 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 16736 | # Work around the forget-to-reset-the-flag bug. |
| 16737 | echo 't clr' >>$CONFIG_STATUS |
| 16738 | echo ': clr' >>$CONFIG_STATUS |
| 16739 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 16740 | echo 'CEOF |
| 16741 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 16742 | rm -f $tmp/in |
| 16743 | mv $tmp/out $tmp/in |
| 16744 | ' >>$CONFIG_STATUS |
| 16745 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 16746 | rm -f conftest.undefs |
| 16747 | mv conftest.tail conftest.undefs |
| 16748 | done |
| 16749 | rm -f conftest.undefs |
| 16750 | |
| 16751 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16752 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16753 | # use $as_me), people would be surprised to read: |
| 16754 | # /* config.h. Generated by config.status. */ |
| 16755 | if test x"$ac_file" = x-; then |
| 16756 | echo "/* Generated by configure. */" >$tmp/config.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16757 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16758 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16759 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16760 | cat $tmp/in >>$tmp/config.h |
| 16761 | rm -f $tmp/in |
| 16762 | if test x"$ac_file" != x-; then |
| 16763 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then |
| 16764 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 16765 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 16766 | else |
| 16767 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 16768 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16769 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16770 | X"$ac_file" : 'X\(//\)$' \| \ |
| 16771 | X"$ac_file" : 'X\(/\)' \| \ |
| 16772 | . : '\(.\)' 2>/dev/null || |
| 16773 | echo X"$ac_file" | |
| 16774 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16775 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16776 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16777 | /^X\(\/\).*/{ s//\1/; q; } |
| 16778 | s/.*/./; q'` |
| 16779 | { case "$ac_dir" in |
| 16780 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 16781 | *) as_incr_dir=.;; |
| 16782 | esac |
| 16783 | as_dummy="$ac_dir" |
| 16784 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 16785 | case $as_mkdir_dir in |
| 16786 | # Skip DOS drivespec |
| 16787 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 16788 | *) |
| 16789 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 16790 | test -d "$as_incr_dir" || |
| 16791 | mkdir "$as_incr_dir" || |
| 16792 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 16793 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 16794 | { (exit 1); exit 1; }; } |
| 16795 | ;; |
| 16796 | esac |
| 16797 | done; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16798 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16799 | rm -f $ac_file |
| 16800 | mv $tmp/config.h $ac_file |
| 16801 | fi |
| 16802 | else |
| 16803 | cat $tmp/config.h |
| 16804 | rm -f $tmp/config.h |
| 16805 | fi |
| 16806 | done |
| 16807 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16808 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16809 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16810 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16811 | { (exit 0); exit 0; } |
| 16812 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16813 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16814 | ac_clean_files=$ac_clean_files_save |
| 16815 | |
| 16816 | |
| 16817 | # configure is writing to config.log, and then calls config.status. |
| 16818 | # config.status does its own redirection, appending to config.log. |
| 16819 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 16820 | # by configure, so config.status won't be able to write to it; its |
| 16821 | # output is simply discarded. So we exec the FD to /dev/null, |
| 16822 | # effectively closing config.log, so it can be properly (re)opened and |
| 16823 | # appended to by config.status. When coming back to configure, we |
| 16824 | # need to make the FD available again. |
| 16825 | if test "$no_create" != yes; then |
| 16826 | ac_cs_success=: |
| 16827 | exec 5>/dev/null |
| 16828 | $SHELL $CONFIG_STATUS || ac_cs_success=false |
| 16829 | exec 5>>config.log |
| 16830 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 16831 | # would make configure fail if this is the last instruction. |
| 16832 | $ac_cs_success || { (exit 1); exit 1; } |
| 16833 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16834 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 16835 | |
| 16836 | echo "creating Setup" |
| 16837 | if test ! -f Modules/Setup |
| 16838 | then |
| 16839 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 16840 | fi |
| 16841 | |
| 16842 | echo "creating Setup.local" |
| 16843 | if test ! -f Modules/Setup.local |
| 16844 | then |
| 16845 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 16846 | fi |
| 16847 | |
| 16848 | echo "creating Makefile" |
| 16849 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 16850 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 16851 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 16852 | mv config.c Modules |