Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Guido van Rossum | e5bd2f4 | 2002-07-19 19:32:30 +0000 | [diff] [blame] | 2 | # From configure.in Revision: 1.333 . |
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 |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 846 | --with(out)-universal-newlines disable/enable foreign newlines |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 847 | --with(out)-doc-strings disable/enable documentation strings |
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";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 1295 | atheos*) MACHDEP="atheos";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1296 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1297 | esac |
| 1298 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1299 | |
| 1300 | # |
| 1301 | # SGI compilers allow the specification of the both the ABI and the |
| 1302 | # ISA on the command line. Depending on the values of these switches, |
| 1303 | # different and often incompatable code will be generated. |
| 1304 | # |
| 1305 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 1306 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 1307 | # variable is also adjusted. |
| 1308 | # |
| 1309 | |
| 1310 | if test ! -z "$SGI_ABI" |
| 1311 | then |
| 1312 | CC="cc $SGI_ABI" |
| 1313 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 1314 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 1315 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1316 | echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 1317 | echo "${ECHO_T}$MACHDEP" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1318 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1319 | # checks for alternative programs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1320 | echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 1321 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6 |
| 1322 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1323 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1324 | if test "${with_gcc+set}" = set; then |
| 1325 | withval="$with_gcc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1326 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1327 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1328 | no) CC=cc |
| 1329 | without_gcc=yes;; |
| 1330 | yes) CC=gcc |
| 1331 | without_gcc=no;; |
| 1332 | *) CC=$withval |
| 1333 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1334 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1335 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1336 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1337 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1338 | AIX*) CC=cc_r |
| 1339 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1340 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1341 | case $BE_HOST_CPU in |
| 1342 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1343 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1344 | without_gcc=yes |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 1345 | OPT="-O -export pragma" |
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 | 0b06be7 | 2002-06-21 14:48:38 +0000 | [diff] [blame] | 2952 | if test -d "${srcdir}/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 |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3074 | CYGWIN* | atheos*) |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 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 |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 3104 | |
| 3105 | cat >>confdefs.h <<\_ACEOF |
| 3106 | #define Py_ENABLE_SHARED 1 |
| 3107 | _ACEOF |
| 3108 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3109 | case $ac_sys_system in |
| 3110 | BeOS*) |
| 3111 | LDLIBRARY='libpython$(VERSION).so' |
| 3112 | ;; |
| 3113 | CYGWIN*) |
| 3114 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3115 | DLLLIBRARY='libpython$(VERSION).dll' |
| 3116 | ;; |
| 3117 | SunOS*) |
| 3118 | LDLIBRARY='libpython$(VERSION).so' |
| 3119 | BLDLIBRARY='-Wl,-rpath,$(LIBDIR) -L. -lpython$(VERSION)' |
| 3120 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3121 | ;; |
| 3122 | Linux*) |
| 3123 | LDLIBRARY='libpython$(VERSION).so' |
| 3124 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3125 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3126 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 3127 | ;; |
| 3128 | hp*|HP*) |
| 3129 | LDLIBRARY='libpython$(VERSION).sl' |
| 3130 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| 3131 | RUNSHARED=SHLIB_PATH=`pwd`:$SHLIB_PATH |
| 3132 | ;; |
| 3133 | OSF*) |
| 3134 | LDLIBRARY='libpython$(VERSION).so' |
| 3135 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| 3136 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3137 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3138 | atheos*) |
| 3139 | LDLIBRARY='libpython$(VERSION).so' |
| 3140 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3141 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 3142 | ;; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3143 | esac |
| 3144 | # DG/UX requires some fancy ld contortions to produce a .so from an .a |
| 3145 | case $MACHDEP in |
| 3146 | dguxR4) |
| 3147 | LDLIBRARY='libpython$(VERSION).so' |
| 3148 | OPT="$OPT -pic" |
| 3149 | ;; |
| 3150 | esac |
| 3151 | fi |
| 3152 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3153 | echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 3154 | echo "${ECHO_T}$LDLIBRARY" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3155 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3156 | if test -n "$ac_tool_prefix"; then |
| 3157 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3158 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3159 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3160 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3161 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3163 | else |
| 3164 | if test -n "$RANLIB"; then |
| 3165 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3166 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3167 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3168 | for as_dir in $PATH |
| 3169 | do |
| 3170 | IFS=$as_save_IFS |
| 3171 | test -z "$as_dir" && as_dir=. |
| 3172 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3173 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3174 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3175 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3176 | break 2 |
| 3177 | fi |
| 3178 | done |
| 3179 | done |
| 3180 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3181 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3182 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3183 | RANLIB=$ac_cv_prog_RANLIB |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3184 | if test -n "$RANLIB"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3185 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3186 | echo "${ECHO_T}$RANLIB" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3187 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3188 | echo "$as_me:$LINENO: result: no" >&5 |
| 3189 | echo "${ECHO_T}no" >&6 |
| 3190 | fi |
| 3191 | |
| 3192 | fi |
| 3193 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3194 | ac_ct_RANLIB=$RANLIB |
| 3195 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3196 | set dummy ranlib; ac_word=$2 |
| 3197 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3198 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3199 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3201 | else |
| 3202 | if test -n "$ac_ct_RANLIB"; then |
| 3203 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3204 | else |
| 3205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3206 | for as_dir in $PATH |
| 3207 | do |
| 3208 | IFS=$as_save_IFS |
| 3209 | test -z "$as_dir" && as_dir=. |
| 3210 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3211 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3212 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3213 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3214 | break 2 |
| 3215 | fi |
| 3216 | done |
| 3217 | done |
| 3218 | |
| 3219 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3220 | fi |
| 3221 | fi |
| 3222 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3223 | if test -n "$ac_ct_RANLIB"; then |
| 3224 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3225 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3226 | else |
| 3227 | echo "$as_me:$LINENO: result: no" >&5 |
| 3228 | echo "${ECHO_T}no" >&6 |
| 3229 | fi |
| 3230 | |
| 3231 | RANLIB=$ac_ct_RANLIB |
| 3232 | else |
| 3233 | RANLIB="$ac_cv_prog_RANLIB" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3234 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3235 | |
| 3236 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3237 | for ac_prog in ar aal |
| 3238 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3239 | # 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] | 3240 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3241 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3242 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3243 | if test "${ac_cv_prog_AR+set}" = set; then |
| 3244 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3245 | else |
| 3246 | if test -n "$AR"; then |
| 3247 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3248 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3249 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3250 | for as_dir in $PATH |
| 3251 | do |
| 3252 | IFS=$as_save_IFS |
| 3253 | test -z "$as_dir" && as_dir=. |
| 3254 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3255 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3256 | ac_cv_prog_AR="$ac_prog" |
| 3257 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3258 | break 2 |
| 3259 | fi |
| 3260 | done |
| 3261 | done |
| 3262 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3263 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3264 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3265 | AR=$ac_cv_prog_AR |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3266 | if test -n "$AR"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3267 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 3268 | echo "${ECHO_T}$AR" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3269 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3270 | echo "$as_me:$LINENO: result: no" >&5 |
| 3271 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3272 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3273 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3274 | test -n "$AR" && break |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3275 | done |
| 3276 | test -n "$AR" || AR="ar" |
| 3277 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3278 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3279 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 3280 | bsdos*|hp*|HP*) |
| 3281 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3282 | if test -z "$INSTALL" |
| 3283 | then |
| 3284 | INSTALL="${srcdir}/install-sh -c" |
| 3285 | fi |
| 3286 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3287 | ac_aux_dir= |
| 3288 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 3289 | if test -f $ac_dir/install-sh; then |
| 3290 | ac_aux_dir=$ac_dir |
| 3291 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3292 | break |
| 3293 | elif test -f $ac_dir/install.sh; then |
| 3294 | ac_aux_dir=$ac_dir |
| 3295 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3296 | break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3297 | elif test -f $ac_dir/shtool; then |
| 3298 | ac_aux_dir=$ac_dir |
| 3299 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3300 | break |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3301 | fi |
| 3302 | done |
| 3303 | if test -z "$ac_aux_dir"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3304 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 3305 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 3306 | { (exit 1); exit 1; }; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3307 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3308 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 3309 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 3310 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3311 | |
| 3312 | # Find a good install program. We prefer a C program (faster), |
| 3313 | # so one script is as good as another. But avoid the broken or |
| 3314 | # incompatible versions: |
| 3315 | # SysV /etc/install, /usr/sbin/install |
| 3316 | # SunOS /usr/etc/install |
| 3317 | # IRIX /sbin/install |
| 3318 | # AIX /bin/install |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3319 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3320 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3321 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3322 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3323 | # ./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] | 3324 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 3325 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3326 | if test -z "$INSTALL"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3327 | if test "${ac_cv_path_install+set}" = set; then |
| 3328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3329 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3331 | for as_dir in $PATH |
| 3332 | do |
| 3333 | IFS=$as_save_IFS |
| 3334 | test -z "$as_dir" && as_dir=. |
| 3335 | # Account for people who put trailing slashes in PATH elements. |
| 3336 | case $as_dir/ in |
| 3337 | ./ | .// | /cC/* | \ |
| 3338 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3339 | /usr/ucb/* ) ;; |
| 3340 | *) |
| 3341 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3342 | # Don't use installbsd from OSF since it installs stuff as root |
| 3343 | # by default. |
| 3344 | for ac_prog in ginstall scoinst install; do |
| 3345 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3346 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3347 | if test $ac_prog = install && |
| 3348 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3349 | # AIX install. It has an incompatible calling convention. |
| 3350 | : |
| 3351 | elif test $ac_prog = install && |
| 3352 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3353 | # program-specific install script used by HP pwplus--don't use. |
| 3354 | : |
| 3355 | else |
| 3356 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3357 | break 3 |
| 3358 | fi |
| 3359 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3360 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3361 | done |
| 3362 | ;; |
| 3363 | esac |
| 3364 | done |
| 3365 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3366 | |
| 3367 | fi |
| 3368 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3369 | INSTALL=$ac_cv_path_install |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3370 | else |
| 3371 | # As a last resort, use the slow shell script. We don't cache a |
| 3372 | # path for INSTALL within a source directory, because that will |
| 3373 | # break other packages using the cache if that directory is |
| 3374 | # removed, or if the path is relative. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3375 | INSTALL=$ac_install_sh |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3376 | fi |
| 3377 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3378 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 3379 | echo "${ECHO_T}$INSTALL" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3380 | |
| 3381 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3382 | # It thinks the first close brace ends the variable substitution. |
| 3383 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3384 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3385 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3386 | |
| 3387 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3388 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3389 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3390 | # Not every filesystem supports hard links |
| 3391 | |
| 3392 | if test -z "$LN" ; then |
| 3393 | case $ac_sys_system in |
| 3394 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3395 | CYGWIN*) LN="ln -s";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3396 | atheos*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3397 | *) LN=ln;; |
| 3398 | esac |
| 3399 | fi |
| 3400 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3401 | # Check for --with-pydebug |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3402 | echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 3403 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6 |
| 3404 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3405 | # Check whether --with-pydebug or --without-pydebug was given. |
| 3406 | if test "${with_pydebug+set}" = set; then |
| 3407 | withval="$with_pydebug" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3408 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3409 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3410 | then |
| 3411 | |
| 3412 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3413 | #define Py_DEBUG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3414 | _ACEOF |
| 3415 | |
| 3416 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3417 | echo "${ECHO_T}yes" >&6; |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 3418 | Py_DEBUG='true' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3419 | else echo "$as_me:$LINENO: result: no" >&5 |
| 3420 | echo "${ECHO_T}no" >&6; Py_DEBUG='false' |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3421 | fi |
| 3422 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3423 | echo "$as_me:$LINENO: result: no" >&5 |
| 3424 | echo "${ECHO_T}no" >&6 |
| 3425 | fi; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3426 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3427 | # Optimizer/debugger flags |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3428 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3429 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3430 | then |
Guido van Rossum | edca74a | 1997-07-18 23:29:40 +0000 | [diff] [blame] | 3431 | case $GCC in |
| 3432 | yes) |
| 3433 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3434 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3435 | if test "$Py_DEBUG" = 'true' ; then |
| 3436 | # Optimization messes up debuggers, so turn it off for |
| 3437 | # debug builds. |
| 3438 | OPT="-g -Wall -Wstrict-prototypes" |
| 3439 | else |
| 3440 | OPT="-g -O3 -Wall -Wstrict-prototypes" |
| 3441 | fi;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3442 | *) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3443 | OPT="-O3 -Wall -Wstrict-prototypes";; |
| 3444 | esac |
| 3445 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3446 | *) |
| 3447 | case $ac_sys_system in |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 3448 | OpenUNIX*|UnixWare*) |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3449 | OPT="-O -K pentium,host,inline,loop_unroll,alloca ";; |
| 3450 | *) |
| 3451 | OPT="-O";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3452 | esac |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3453 | esac |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3454 | case $ac_sys_system in |
| 3455 | Darwin*) |
Jack Jansen | 524a098 | 2002-03-12 15:25:52 +0000 | [diff] [blame] | 3456 | OPT="$OPT -Wno-long-double -no-cpp-precomp";; |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3457 | esac |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3458 | fi |
| 3459 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 3460 | if test "$Py_DEBUG" = 'true'; then |
| 3461 | : |
| 3462 | else |
| 3463 | OPT="-DNDEBUG $OPT" |
| 3464 | fi |
| 3465 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3466 | # The current (beta) Monterey compiler dies with optimizations |
| 3467 | case $ac_sys_system in |
| 3468 | Monterey*) OPT="";; |
| 3469 | esac |
| 3470 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3471 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3472 | then |
| 3473 | OPT="$OPT $ac_arch_flags" |
| 3474 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3475 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3476 | echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 3477 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6 |
| 3478 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 3479 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3480 | else |
| 3481 | ac_save_cc="$CC" |
| 3482 | CC="$CC -OPT:Olimit=0" |
| 3483 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3484 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3485 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3486 | cat >conftest.$ac_ext <<_ACEOF |
| 3487 | #line $LINENO "configure" |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3488 | #include "confdefs.h" |
| 3489 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3490 | _ACEOF |
| 3491 | rm -f conftest$ac_exeext |
| 3492 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3493 | (eval $ac_link) 2>&5 |
| 3494 | ac_status=$? |
| 3495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3496 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3498 | (eval $ac_try) 2>&5 |
| 3499 | ac_status=$? |
| 3500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3501 | (exit $ac_status); }; }; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3502 | ac_cv_opt_olimit_ok=yes |
| 3503 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3504 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3505 | echo "$as_me: failed program was:" >&5 |
| 3506 | cat conftest.$ac_ext >&5 |
| 3507 | ( exit $ac_status ) |
| 3508 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3509 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3510 | 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] | 3511 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3512 | CC="$ac_save_cc" |
| 3513 | fi |
| 3514 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3515 | echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 3516 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 3517 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3518 | case $ac_sys_system in |
| 3519 | Darwin*) OPT="$OPT" ;; |
| 3520 | *) OPT="$OPT -OPT:Olimit=0";; |
| 3521 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3522 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3523 | echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 3524 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6 |
| 3525 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 3526 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3527 | else |
| 3528 | ac_save_cc="$CC" |
| 3529 | CC="$CC -Olimit 1500" |
| 3530 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3531 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3532 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3533 | cat >conftest.$ac_ext <<_ACEOF |
| 3534 | #line $LINENO "configure" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3535 | #include "confdefs.h" |
| 3536 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3537 | _ACEOF |
| 3538 | rm -f conftest$ac_exeext |
| 3539 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3540 | (eval $ac_link) 2>&5 |
| 3541 | ac_status=$? |
| 3542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3543 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3545 | (eval $ac_try) 2>&5 |
| 3546 | ac_status=$? |
| 3547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3548 | (exit $ac_status); }; }; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3549 | ac_cv_olimit_ok=yes |
| 3550 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3551 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3552 | echo "$as_me: failed program was:" >&5 |
| 3553 | cat conftest.$ac_ext >&5 |
| 3554 | ( exit $ac_status ) |
| 3555 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 3556 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3557 | 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] | 3558 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3559 | CC="$ac_save_cc" |
| 3560 | fi |
| 3561 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3562 | echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 3563 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3564 | if test $ac_cv_olimit_ok = yes; then |
| 3565 | OPT="$OPT -Olimit 1500" |
| 3566 | fi |
| 3567 | fi |
| 3568 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3569 | # On some compilers, pthreads are available without further options |
| 3570 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 3571 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 3572 | # So we have to see first whether pthreads are available without |
| 3573 | # options before we can check whether -Kpthread improves anything. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3574 | echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 3575 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6 |
| 3576 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 3577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3578 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3579 | if test "$cross_compiling" = yes; then |
| 3580 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3581 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3582 | cat >conftest.$ac_ext <<_ACEOF |
| 3583 | #line $LINENO "configure" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3584 | #include "confdefs.h" |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3585 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3586 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3587 | |
| 3588 | void* routine(void* p){return NULL;} |
| 3589 | |
| 3590 | int main(){ |
| 3591 | pthread_t p; |
| 3592 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3593 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3594 | (void)pthread_detach(p); |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3595 | return 0; |
| 3596 | } |
| 3597 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3598 | _ACEOF |
| 3599 | rm -f conftest$ac_exeext |
| 3600 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3601 | (eval $ac_link) 2>&5 |
| 3602 | ac_status=$? |
| 3603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3604 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3606 | (eval $ac_try) 2>&5 |
| 3607 | ac_status=$? |
| 3608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3609 | (exit $ac_status); }; }; then |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3610 | ac_cv_pthread_is_default=yes |
| 3611 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3612 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3613 | echo "$as_me: failed program was:" >&5 |
| 3614 | cat conftest.$ac_ext >&5 |
| 3615 | ( exit $ac_status ) |
| 3616 | ac_cv_pthread_is_default=no |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3617 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3618 | 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] | 3619 | fi |
| 3620 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3621 | fi |
| 3622 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3623 | echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 3624 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3625 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3626 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3627 | if test $ac_cv_pthread_is_default = yes |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3628 | then |
| 3629 | ac_cv_kpthread=no |
| 3630 | else |
| 3631 | # -Kpthread, if available, provides the right #defines |
| 3632 | # and linker options to make pthread_create available |
| 3633 | # Some compilers won't report that they do not support -Kpthread, |
| 3634 | # so we need to run a program to see whether it really made the |
| 3635 | # function available. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3636 | echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 3637 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6 |
| 3638 | if test "${ac_cv_kpthread+set}" = set; then |
| 3639 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3640 | else |
| 3641 | ac_save_cc="$CC" |
| 3642 | CC="$CC -Kpthread" |
| 3643 | if test "$cross_compiling" = yes; then |
| 3644 | ac_cv_kpthread=no |
| 3645 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3646 | cat >conftest.$ac_ext <<_ACEOF |
| 3647 | #line $LINENO "configure" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3648 | #include "confdefs.h" |
| 3649 | |
| 3650 | #include <pthread.h> |
| 3651 | |
| 3652 | void* routine(void* p){return NULL;} |
| 3653 | |
| 3654 | int main(){ |
| 3655 | pthread_t p; |
| 3656 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3657 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3658 | (void)pthread_detach(p); |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3659 | return 0; |
| 3660 | } |
| 3661 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3662 | _ACEOF |
| 3663 | rm -f conftest$ac_exeext |
| 3664 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3665 | (eval $ac_link) 2>&5 |
| 3666 | ac_status=$? |
| 3667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3668 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3670 | (eval $ac_try) 2>&5 |
| 3671 | ac_status=$? |
| 3672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3673 | (exit $ac_status); }; }; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3674 | ac_cv_kpthread=yes |
| 3675 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3676 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3677 | echo "$as_me: failed program was:" >&5 |
| 3678 | cat conftest.$ac_ext >&5 |
| 3679 | ( exit $ac_status ) |
| 3680 | ac_cv_kpthread=no |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3681 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3682 | 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] | 3683 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3684 | CC="$ac_save_cc" |
| 3685 | fi |
| 3686 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3687 | echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 3688 | echo "${ECHO_T}$ac_cv_kpthread" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3689 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3690 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3691 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3692 | # checks for header files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3693 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3694 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3695 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3697 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3698 | cat >conftest.$ac_ext <<_ACEOF |
| 3699 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3700 | #include "confdefs.h" |
| 3701 | #include <stdlib.h> |
| 3702 | #include <stdarg.h> |
| 3703 | #include <string.h> |
| 3704 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3705 | |
| 3706 | _ACEOF |
| 3707 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3708 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3709 | ac_status=$? |
| 3710 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 3711 | rm -f conftest.er1 |
| 3712 | cat conftest.err >&5 |
| 3713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3714 | (exit $ac_status); } >/dev/null; then |
| 3715 | if test -s conftest.err; then |
| 3716 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3717 | else |
| 3718 | ac_cpp_err= |
| 3719 | fi |
| 3720 | else |
| 3721 | ac_cpp_err=yes |
| 3722 | fi |
| 3723 | if test -z "$ac_cpp_err"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3724 | ac_cv_header_stdc=yes |
| 3725 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3726 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3727 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3728 | ac_cv_header_stdc=no |
| 3729 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3730 | rm -f conftest.err conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3731 | |
| 3732 | if test $ac_cv_header_stdc = yes; then |
| 3733 | # 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] | 3734 | cat >conftest.$ac_ext <<_ACEOF |
| 3735 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3736 | #include "confdefs.h" |
| 3737 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3738 | |
| 3739 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3740 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3741 | egrep "memchr" >/dev/null 2>&1; then |
| 3742 | : |
| 3743 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3744 | ac_cv_header_stdc=no |
| 3745 | fi |
| 3746 | rm -f conftest* |
| 3747 | |
| 3748 | fi |
| 3749 | |
| 3750 | if test $ac_cv_header_stdc = yes; then |
| 3751 | # 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] | 3752 | cat >conftest.$ac_ext <<_ACEOF |
| 3753 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3754 | #include "confdefs.h" |
| 3755 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3756 | |
| 3757 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3758 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3759 | egrep "free" >/dev/null 2>&1; then |
| 3760 | : |
| 3761 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3762 | ac_cv_header_stdc=no |
| 3763 | fi |
| 3764 | rm -f conftest* |
| 3765 | |
| 3766 | fi |
| 3767 | |
| 3768 | if test $ac_cv_header_stdc = yes; then |
| 3769 | # /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] | 3770 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3771 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3772 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3773 | cat >conftest.$ac_ext <<_ACEOF |
| 3774 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3775 | #include "confdefs.h" |
| 3776 | #include <ctype.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3777 | #if ((' ' & 0x0FF) == 0x020) |
| 3778 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3779 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3780 | #else |
| 3781 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 3782 | || ('j' <= (c) && (c) <= 'r') \ |
| 3783 | || ('s' <= (c) && (c) <= 'z')) |
| 3784 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3785 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3786 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3787 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3788 | int |
| 3789 | main () |
| 3790 | { |
| 3791 | int i; |
| 3792 | for (i = 0; i < 256; i++) |
| 3793 | if (XOR (islower (i), ISLOWER (i)) |
| 3794 | || toupper (i) != TOUPPER (i)) |
| 3795 | exit(2); |
| 3796 | exit (0); |
| 3797 | } |
| 3798 | _ACEOF |
| 3799 | rm -f conftest$ac_exeext |
| 3800 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3801 | (eval $ac_link) 2>&5 |
| 3802 | ac_status=$? |
| 3803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3804 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3806 | (eval $ac_try) 2>&5 |
| 3807 | ac_status=$? |
| 3808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3809 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3810 | : |
| 3811 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3812 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3813 | echo "$as_me: failed program was:" >&5 |
| 3814 | cat conftest.$ac_ext >&5 |
| 3815 | ( exit $ac_status ) |
| 3816 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3817 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3818 | 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] | 3819 | fi |
| 3820 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3821 | fi |
| 3822 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3823 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3824 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3825 | |
| 3826 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3827 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3828 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3829 | |
| 3830 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3831 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | |
| 3862 | |
| 3863 | |
| 3864 | |
| 3865 | |
| 3866 | |
| 3867 | |
| 3868 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3869 | 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] | 3870 | libintl.h locale.h ncurses.h poll.h pthread.h \ |
Eric S. Raymond | d2d75d3 | 2001-01-16 15:26:34 +0000 | [diff] [blame] | 3871 | signal.h stdarg.h stddef.h stdlib.h thread.h unistd.h utime.h termios.h \ |
Skip Montanaro | 57454e5 | 2002-06-14 20:30:31 +0000 | [diff] [blame] | 3872 | sys/audioio.h sys/file.h sys/lock.h sys/mkdev.h sys/modem.h \ |
Andrew M. Kuchling | 881fd90 | 2001-07-14 20:55:52 +0000 | [diff] [blame] | 3873 | 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] | 3874 | sys/un.h sys/utsname.h sys/wait.h pty.h term.h libutil.h \ |
Skip Montanaro | 8345f71 | 2002-06-25 05:53:48 +0000 | [diff] [blame] | 3875 | sys/resource.h netpacket/packet.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3876 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3877 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3878 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3879 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3880 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3881 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3883 | fi |
| 3884 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3885 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3886 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3887 | # Is the header compilable? |
| 3888 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 3889 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 3890 | cat >conftest.$ac_ext <<_ACEOF |
| 3891 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3892 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3893 | $ac_includes_default |
| 3894 | #include <$ac_header> |
| 3895 | _ACEOF |
| 3896 | rm -f conftest.$ac_objext |
| 3897 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3898 | (eval $ac_compile) 2>&5 |
| 3899 | ac_status=$? |
| 3900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3901 | (exit $ac_status); } && |
| 3902 | { ac_try='test -s conftest.$ac_objext' |
| 3903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3904 | (eval $ac_try) 2>&5 |
| 3905 | ac_status=$? |
| 3906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3907 | (exit $ac_status); }; }; then |
| 3908 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3909 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3910 | echo "$as_me: failed program was:" >&5 |
| 3911 | cat conftest.$ac_ext >&5 |
| 3912 | ac_header_compiler=no |
| 3913 | fi |
| 3914 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3915 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3916 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3917 | |
| 3918 | # Is the header present? |
| 3919 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 3920 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 3921 | cat >conftest.$ac_ext <<_ACEOF |
| 3922 | #line $LINENO "configure" |
| 3923 | #include "confdefs.h" |
| 3924 | #include <$ac_header> |
| 3925 | _ACEOF |
| 3926 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3927 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3928 | ac_status=$? |
| 3929 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 3930 | rm -f conftest.er1 |
| 3931 | cat conftest.err >&5 |
| 3932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3933 | (exit $ac_status); } >/dev/null; then |
| 3934 | if test -s conftest.err; then |
| 3935 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3936 | else |
| 3937 | ac_cpp_err= |
| 3938 | fi |
| 3939 | else |
| 3940 | ac_cpp_err=yes |
| 3941 | fi |
| 3942 | if test -z "$ac_cpp_err"; then |
| 3943 | ac_header_preproc=yes |
| 3944 | else |
| 3945 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3946 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3947 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3948 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3949 | rm -f conftest.err conftest.$ac_ext |
| 3950 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3951 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3952 | |
| 3953 | # So? What about this header? |
| 3954 | case $ac_header_compiler:$ac_header_preproc in |
| 3955 | yes:no ) |
| 3956 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3957 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3958 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3959 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 3960 | no:yes ) |
| 3961 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 3962 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 3963 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 3964 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 3965 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3966 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 3967 | esac |
| 3968 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3969 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3970 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3972 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3973 | eval "$as_ac_Header=$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3974 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3975 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3976 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3977 | |
| 3978 | fi |
| 3979 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 3980 | cat >>confdefs.h <<_ACEOF |
| 3981 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 3982 | _ACEOF |
| 3983 | |
| 3984 | fi |
| 3985 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3986 | done |
| 3987 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3988 | |
| 3989 | |
| 3990 | |
| 3991 | |
| 3992 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3993 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3994 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 3995 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 3996 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 3997 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 3998 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3999 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4000 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4001 | cat >conftest.$ac_ext <<_ACEOF |
| 4002 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4003 | #include "confdefs.h" |
| 4004 | #include <sys/types.h> |
| 4005 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4006 | |
| 4007 | #ifdef F77_DUMMY_MAIN |
| 4008 | # ifdef __cplusplus |
| 4009 | extern "C" |
| 4010 | # endif |
| 4011 | int F77_DUMMY_MAIN() { return 1; } |
| 4012 | #endif |
| 4013 | int |
| 4014 | main () |
| 4015 | { |
| 4016 | if ((DIR *) 0) |
| 4017 | return 0; |
| 4018 | ; |
| 4019 | return 0; |
| 4020 | } |
| 4021 | _ACEOF |
| 4022 | rm -f conftest.$ac_objext |
| 4023 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4024 | (eval $ac_compile) 2>&5 |
| 4025 | ac_status=$? |
| 4026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4027 | (exit $ac_status); } && |
| 4028 | { ac_try='test -s conftest.$ac_objext' |
| 4029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4030 | (eval $ac_try) 2>&5 |
| 4031 | ac_status=$? |
| 4032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4033 | (exit $ac_status); }; }; then |
| 4034 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4035 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4036 | echo "$as_me: failed program was:" >&5 |
| 4037 | cat conftest.$ac_ext >&5 |
| 4038 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4039 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4040 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4041 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4042 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4043 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4044 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4045 | cat >>confdefs.h <<_ACEOF |
| 4046 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 4047 | _ACEOF |
| 4048 | |
| 4049 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4050 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4051 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4052 | done |
| 4053 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 4054 | if test $ac_header_dirent = dirent.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4055 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4056 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4057 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4059 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4060 | ac_func_search_save_LIBS=$LIBS |
| 4061 | ac_cv_search_opendir=no |
| 4062 | cat >conftest.$ac_ext <<_ACEOF |
| 4063 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4064 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4065 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4066 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4067 | #ifdef __cplusplus |
| 4068 | extern "C" |
| 4069 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4070 | /* 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] | 4071 | builtin and then its argument prototype would still apply. */ |
| 4072 | char opendir (); |
| 4073 | #ifdef F77_DUMMY_MAIN |
| 4074 | # ifdef __cplusplus |
| 4075 | extern "C" |
| 4076 | # endif |
| 4077 | int F77_DUMMY_MAIN() { return 1; } |
| 4078 | #endif |
| 4079 | int |
| 4080 | main () |
| 4081 | { |
| 4082 | opendir (); |
| 4083 | ; |
| 4084 | return 0; |
| 4085 | } |
| 4086 | _ACEOF |
| 4087 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4088 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4089 | (eval $ac_link) 2>&5 |
| 4090 | ac_status=$? |
| 4091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4092 | (exit $ac_status); } && |
| 4093 | { ac_try='test -s conftest$ac_exeext' |
| 4094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4095 | (eval $ac_try) 2>&5 |
| 4096 | ac_status=$? |
| 4097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4098 | (exit $ac_status); }; }; then |
| 4099 | ac_cv_search_opendir="none required" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4100 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4101 | echo "$as_me: failed program was:" >&5 |
| 4102 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4103 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4104 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4105 | if test "$ac_cv_search_opendir" = no; then |
| 4106 | for ac_lib in dir; do |
| 4107 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4108 | cat >conftest.$ac_ext <<_ACEOF |
| 4109 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4110 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4111 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4112 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4113 | #ifdef __cplusplus |
| 4114 | extern "C" |
| 4115 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4116 | /* 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] | 4117 | builtin and then its argument prototype would still apply. */ |
| 4118 | char opendir (); |
| 4119 | #ifdef F77_DUMMY_MAIN |
| 4120 | # ifdef __cplusplus |
| 4121 | extern "C" |
| 4122 | # endif |
| 4123 | int F77_DUMMY_MAIN() { return 1; } |
| 4124 | #endif |
| 4125 | int |
| 4126 | main () |
| 4127 | { |
| 4128 | opendir (); |
| 4129 | ; |
| 4130 | return 0; |
| 4131 | } |
| 4132 | _ACEOF |
| 4133 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4134 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4135 | (eval $ac_link) 2>&5 |
| 4136 | ac_status=$? |
| 4137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4138 | (exit $ac_status); } && |
| 4139 | { ac_try='test -s conftest$ac_exeext' |
| 4140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4141 | (eval $ac_try) 2>&5 |
| 4142 | ac_status=$? |
| 4143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4144 | (exit $ac_status); }; }; then |
| 4145 | ac_cv_search_opendir="-l$ac_lib" |
| 4146 | break |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4147 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4148 | echo "$as_me: failed program was:" >&5 |
| 4149 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4150 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4151 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4152 | done |
| 4153 | fi |
| 4154 | LIBS=$ac_func_search_save_LIBS |
| 4155 | fi |
| 4156 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4157 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4158 | if test "$ac_cv_search_opendir" != no; then |
| 4159 | 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] | 4160 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4161 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4162 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4163 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4164 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4165 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4166 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4167 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4168 | else |
| 4169 | ac_func_search_save_LIBS=$LIBS |
| 4170 | ac_cv_search_opendir=no |
| 4171 | cat >conftest.$ac_ext <<_ACEOF |
| 4172 | #line $LINENO "configure" |
| 4173 | #include "confdefs.h" |
| 4174 | |
| 4175 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4176 | #ifdef __cplusplus |
| 4177 | extern "C" |
| 4178 | #endif |
| 4179 | /* We use char because int might match the return type of a gcc2 |
| 4180 | builtin and then its argument prototype would still apply. */ |
| 4181 | char opendir (); |
| 4182 | #ifdef F77_DUMMY_MAIN |
| 4183 | # ifdef __cplusplus |
| 4184 | extern "C" |
| 4185 | # endif |
| 4186 | int F77_DUMMY_MAIN() { return 1; } |
| 4187 | #endif |
| 4188 | int |
| 4189 | main () |
| 4190 | { |
| 4191 | opendir (); |
| 4192 | ; |
| 4193 | return 0; |
| 4194 | } |
| 4195 | _ACEOF |
| 4196 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4197 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4198 | (eval $ac_link) 2>&5 |
| 4199 | ac_status=$? |
| 4200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4201 | (exit $ac_status); } && |
| 4202 | { ac_try='test -s conftest$ac_exeext' |
| 4203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4204 | (eval $ac_try) 2>&5 |
| 4205 | ac_status=$? |
| 4206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4207 | (exit $ac_status); }; }; then |
| 4208 | ac_cv_search_opendir="none required" |
| 4209 | else |
| 4210 | echo "$as_me: failed program was:" >&5 |
| 4211 | cat conftest.$ac_ext >&5 |
| 4212 | fi |
| 4213 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4214 | if test "$ac_cv_search_opendir" = no; then |
| 4215 | for ac_lib in x; do |
| 4216 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4217 | cat >conftest.$ac_ext <<_ACEOF |
| 4218 | #line $LINENO "configure" |
| 4219 | #include "confdefs.h" |
| 4220 | |
| 4221 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4222 | #ifdef __cplusplus |
| 4223 | extern "C" |
| 4224 | #endif |
| 4225 | /* We use char because int might match the return type of a gcc2 |
| 4226 | builtin and then its argument prototype would still apply. */ |
| 4227 | char opendir (); |
| 4228 | #ifdef F77_DUMMY_MAIN |
| 4229 | # ifdef __cplusplus |
| 4230 | extern "C" |
| 4231 | # endif |
| 4232 | int F77_DUMMY_MAIN() { return 1; } |
| 4233 | #endif |
| 4234 | int |
| 4235 | main () |
| 4236 | { |
| 4237 | opendir (); |
| 4238 | ; |
| 4239 | return 0; |
| 4240 | } |
| 4241 | _ACEOF |
| 4242 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4243 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4244 | (eval $ac_link) 2>&5 |
| 4245 | ac_status=$? |
| 4246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4247 | (exit $ac_status); } && |
| 4248 | { ac_try='test -s conftest$ac_exeext' |
| 4249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4250 | (eval $ac_try) 2>&5 |
| 4251 | ac_status=$? |
| 4252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4253 | (exit $ac_status); }; }; then |
| 4254 | ac_cv_search_opendir="-l$ac_lib" |
| 4255 | break |
| 4256 | else |
| 4257 | echo "$as_me: failed program was:" >&5 |
| 4258 | cat conftest.$ac_ext >&5 |
| 4259 | fi |
| 4260 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4261 | done |
| 4262 | fi |
| 4263 | LIBS=$ac_func_search_save_LIBS |
| 4264 | fi |
| 4265 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4266 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4267 | if test "$ac_cv_search_opendir" != no; then |
| 4268 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 4269 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4270 | fi |
| 4271 | |
| 4272 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4273 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4274 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4275 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4276 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4277 | echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 4278 | echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6 |
| 4279 | cat >conftest.$ac_ext <<_ACEOF |
| 4280 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4281 | #include "confdefs.h" |
| 4282 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4283 | |
| 4284 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4285 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4286 | egrep "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4287 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4288 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4289 | |
| 4290 | |
| 4291 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4292 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4293 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4294 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 4295 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4296 | fi |
| 4297 | rm -f conftest* |
| 4298 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4299 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 4300 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4301 | |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4302 | # Two defines needed to enable largefile support on various platforms |
| 4303 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4304 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4305 | cat >>confdefs.h <<\_ACEOF |
| 4306 | #define _LARGEFILE_SOURCE 1 |
| 4307 | _ACEOF |
| 4308 | |
| 4309 | |
| 4310 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4311 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4312 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4313 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4314 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 4315 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 4316 | cat >> confdefs.h <<\EOF |
| 4317 | #if defined(SCO_DS) |
| 4318 | #undef _OFF_T |
| 4319 | #endif |
| 4320 | EOF |
| 4321 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4322 | # Type availability checks |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4323 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 4324 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 4325 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 4326 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4327 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4328 | cat >conftest.$ac_ext <<_ACEOF |
| 4329 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4330 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4331 | $ac_includes_default |
| 4332 | #ifdef F77_DUMMY_MAIN |
| 4333 | # ifdef __cplusplus |
| 4334 | extern "C" |
| 4335 | # endif |
| 4336 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4337 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4338 | int |
| 4339 | main () |
| 4340 | { |
| 4341 | if ((mode_t *) 0) |
| 4342 | return 0; |
| 4343 | if (sizeof (mode_t)) |
| 4344 | return 0; |
| 4345 | ; |
| 4346 | return 0; |
| 4347 | } |
| 4348 | _ACEOF |
| 4349 | rm -f conftest.$ac_objext |
| 4350 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4351 | (eval $ac_compile) 2>&5 |
| 4352 | ac_status=$? |
| 4353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4354 | (exit $ac_status); } && |
| 4355 | { ac_try='test -s conftest.$ac_objext' |
| 4356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4357 | (eval $ac_try) 2>&5 |
| 4358 | ac_status=$? |
| 4359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4360 | (exit $ac_status); }; }; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4361 | ac_cv_type_mode_t=yes |
| 4362 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4363 | echo "$as_me: failed program was:" >&5 |
| 4364 | cat conftest.$ac_ext >&5 |
| 4365 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4366 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4367 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4368 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4369 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 4370 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 4371 | if test $ac_cv_type_mode_t = yes; then |
| 4372 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4373 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4374 | |
| 4375 | cat >>confdefs.h <<_ACEOF |
| 4376 | #define mode_t int |
| 4377 | _ACEOF |
| 4378 | |
| 4379 | fi |
| 4380 | |
| 4381 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 4382 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 4383 | if test "${ac_cv_type_off_t+set}" = set; then |
| 4384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4385 | else |
| 4386 | cat >conftest.$ac_ext <<_ACEOF |
| 4387 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4388 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4389 | $ac_includes_default |
| 4390 | #ifdef F77_DUMMY_MAIN |
| 4391 | # ifdef __cplusplus |
| 4392 | extern "C" |
| 4393 | # endif |
| 4394 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4395 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4396 | int |
| 4397 | main () |
| 4398 | { |
| 4399 | if ((off_t *) 0) |
| 4400 | return 0; |
| 4401 | if (sizeof (off_t)) |
| 4402 | return 0; |
| 4403 | ; |
| 4404 | return 0; |
| 4405 | } |
| 4406 | _ACEOF |
| 4407 | rm -f conftest.$ac_objext |
| 4408 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4409 | (eval $ac_compile) 2>&5 |
| 4410 | ac_status=$? |
| 4411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4412 | (exit $ac_status); } && |
| 4413 | { ac_try='test -s conftest.$ac_objext' |
| 4414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4415 | (eval $ac_try) 2>&5 |
| 4416 | ac_status=$? |
| 4417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4418 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4419 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4420 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4421 | echo "$as_me: failed program was:" >&5 |
| 4422 | cat conftest.$ac_ext >&5 |
| 4423 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4424 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4425 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4426 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4427 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 4428 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 4429 | if test $ac_cv_type_off_t = yes; then |
| 4430 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4431 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4432 | |
| 4433 | cat >>confdefs.h <<_ACEOF |
| 4434 | #define off_t long |
| 4435 | _ACEOF |
| 4436 | |
| 4437 | fi |
| 4438 | |
| 4439 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 4440 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 4441 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 4442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4443 | else |
| 4444 | cat >conftest.$ac_ext <<_ACEOF |
| 4445 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4446 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4447 | $ac_includes_default |
| 4448 | #ifdef F77_DUMMY_MAIN |
| 4449 | # ifdef __cplusplus |
| 4450 | extern "C" |
| 4451 | # endif |
| 4452 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4453 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4454 | int |
| 4455 | main () |
| 4456 | { |
| 4457 | if ((pid_t *) 0) |
| 4458 | return 0; |
| 4459 | if (sizeof (pid_t)) |
| 4460 | return 0; |
| 4461 | ; |
| 4462 | return 0; |
| 4463 | } |
| 4464 | _ACEOF |
| 4465 | rm -f conftest.$ac_objext |
| 4466 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4467 | (eval $ac_compile) 2>&5 |
| 4468 | ac_status=$? |
| 4469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4470 | (exit $ac_status); } && |
| 4471 | { ac_try='test -s conftest.$ac_objext' |
| 4472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4473 | (eval $ac_try) 2>&5 |
| 4474 | ac_status=$? |
| 4475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4476 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4477 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4478 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4479 | echo "$as_me: failed program was:" >&5 |
| 4480 | cat conftest.$ac_ext >&5 |
| 4481 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4482 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4483 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4484 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4485 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 4486 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 4487 | if test $ac_cv_type_pid_t = yes; then |
| 4488 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4489 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4490 | |
| 4491 | cat >>confdefs.h <<_ACEOF |
| 4492 | #define pid_t int |
| 4493 | _ACEOF |
| 4494 | |
| 4495 | fi |
| 4496 | |
| 4497 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 4498 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 4499 | if test "${ac_cv_type_signal+set}" = set; then |
| 4500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4501 | else |
| 4502 | cat >conftest.$ac_ext <<_ACEOF |
| 4503 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4504 | #include "confdefs.h" |
| 4505 | #include <sys/types.h> |
| 4506 | #include <signal.h> |
| 4507 | #ifdef signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4508 | # undef signal |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4509 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4510 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4511 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 4512 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4513 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4514 | #endif |
| 4515 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4516 | #ifdef F77_DUMMY_MAIN |
| 4517 | # ifdef __cplusplus |
| 4518 | extern "C" |
| 4519 | # endif |
| 4520 | int F77_DUMMY_MAIN() { return 1; } |
| 4521 | #endif |
| 4522 | int |
| 4523 | main () |
| 4524 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4525 | int i; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4526 | ; |
| 4527 | return 0; |
| 4528 | } |
| 4529 | _ACEOF |
| 4530 | rm -f conftest.$ac_objext |
| 4531 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4532 | (eval $ac_compile) 2>&5 |
| 4533 | ac_status=$? |
| 4534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4535 | (exit $ac_status); } && |
| 4536 | { ac_try='test -s conftest.$ac_objext' |
| 4537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4538 | (eval $ac_try) 2>&5 |
| 4539 | ac_status=$? |
| 4540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4541 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4542 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4543 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4544 | echo "$as_me: failed program was:" >&5 |
| 4545 | cat conftest.$ac_ext >&5 |
| 4546 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4547 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4548 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4549 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4550 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 4551 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4552 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4553 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4554 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4555 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4556 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4557 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4558 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 4559 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 4560 | if test "${ac_cv_type_size_t+set}" = set; then |
| 4561 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4562 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4563 | cat >conftest.$ac_ext <<_ACEOF |
| 4564 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4565 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4566 | $ac_includes_default |
| 4567 | #ifdef F77_DUMMY_MAIN |
| 4568 | # ifdef __cplusplus |
| 4569 | extern "C" |
| 4570 | # endif |
| 4571 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4572 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4573 | int |
| 4574 | main () |
| 4575 | { |
| 4576 | if ((size_t *) 0) |
| 4577 | return 0; |
| 4578 | if (sizeof (size_t)) |
| 4579 | return 0; |
| 4580 | ; |
| 4581 | return 0; |
| 4582 | } |
| 4583 | _ACEOF |
| 4584 | rm -f conftest.$ac_objext |
| 4585 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4586 | (eval $ac_compile) 2>&5 |
| 4587 | ac_status=$? |
| 4588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4589 | (exit $ac_status); } && |
| 4590 | { ac_try='test -s conftest.$ac_objext' |
| 4591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4592 | (eval $ac_try) 2>&5 |
| 4593 | ac_status=$? |
| 4594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4595 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4596 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4597 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4598 | echo "$as_me: failed program was:" >&5 |
| 4599 | cat conftest.$ac_ext >&5 |
| 4600 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4601 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4602 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4603 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4604 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 4605 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 4606 | if test $ac_cv_type_size_t = yes; then |
| 4607 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4608 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4609 | |
| 4610 | cat >>confdefs.h <<_ACEOF |
| 4611 | #define size_t unsigned |
| 4612 | _ACEOF |
| 4613 | |
| 4614 | fi |
| 4615 | |
| 4616 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 4617 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 4618 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 4619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4620 | else |
| 4621 | cat >conftest.$ac_ext <<_ACEOF |
| 4622 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4623 | #include "confdefs.h" |
| 4624 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4625 | |
| 4626 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4627 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4628 | egrep "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4629 | ac_cv_type_uid_t=yes |
| 4630 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4631 | ac_cv_type_uid_t=no |
| 4632 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4633 | rm -f conftest* |
| 4634 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4635 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4636 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 4637 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4638 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4639 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4640 | cat >>confdefs.h <<\_ACEOF |
| 4641 | #define uid_t int |
| 4642 | _ACEOF |
| 4643 | |
| 4644 | |
| 4645 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4646 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4647 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4648 | |
| 4649 | fi |
| 4650 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4651 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4652 | # Sizes of various common basic types |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4653 | echo "$as_me:$LINENO: checking for int" >&5 |
| 4654 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
| 4655 | if test "${ac_cv_type_int+set}" = set; then |
| 4656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4657 | else |
| 4658 | cat >conftest.$ac_ext <<_ACEOF |
| 4659 | #line $LINENO "configure" |
| 4660 | #include "confdefs.h" |
| 4661 | $ac_includes_default |
| 4662 | #ifdef F77_DUMMY_MAIN |
| 4663 | # ifdef __cplusplus |
| 4664 | extern "C" |
| 4665 | # endif |
| 4666 | int F77_DUMMY_MAIN() { return 1; } |
| 4667 | #endif |
| 4668 | int |
| 4669 | main () |
| 4670 | { |
| 4671 | if ((int *) 0) |
| 4672 | return 0; |
| 4673 | if (sizeof (int)) |
| 4674 | return 0; |
| 4675 | ; |
| 4676 | return 0; |
| 4677 | } |
| 4678 | _ACEOF |
| 4679 | rm -f conftest.$ac_objext |
| 4680 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4681 | (eval $ac_compile) 2>&5 |
| 4682 | ac_status=$? |
| 4683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4684 | (exit $ac_status); } && |
| 4685 | { ac_try='test -s conftest.$ac_objext' |
| 4686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4687 | (eval $ac_try) 2>&5 |
| 4688 | ac_status=$? |
| 4689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4690 | (exit $ac_status); }; }; then |
| 4691 | ac_cv_type_int=yes |
| 4692 | else |
| 4693 | echo "$as_me: failed program was:" >&5 |
| 4694 | cat conftest.$ac_ext >&5 |
| 4695 | ac_cv_type_int=no |
| 4696 | fi |
| 4697 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4698 | fi |
| 4699 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 4700 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
| 4701 | |
| 4702 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 4703 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 4704 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 4705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4706 | else |
| 4707 | if test "$ac_cv_type_int" = yes; then |
| 4708 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 4709 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 4710 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 4711 | # This bug is HP SR number 8606223364. |
| 4712 | if test "$cross_compiling" = yes; then |
| 4713 | # Depending upon the size, compute the lo and hi bounds. |
| 4714 | cat >conftest.$ac_ext <<_ACEOF |
| 4715 | #line $LINENO "configure" |
| 4716 | #include "confdefs.h" |
| 4717 | $ac_includes_default |
| 4718 | #ifdef F77_DUMMY_MAIN |
| 4719 | # ifdef __cplusplus |
| 4720 | extern "C" |
| 4721 | # endif |
| 4722 | int F77_DUMMY_MAIN() { return 1; } |
| 4723 | #endif |
| 4724 | int |
| 4725 | main () |
| 4726 | { |
| 4727 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
| 4728 | test_array [0] = 0 |
| 4729 | |
| 4730 | ; |
| 4731 | return 0; |
| 4732 | } |
| 4733 | _ACEOF |
| 4734 | rm -f conftest.$ac_objext |
| 4735 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4736 | (eval $ac_compile) 2>&5 |
| 4737 | ac_status=$? |
| 4738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4739 | (exit $ac_status); } && |
| 4740 | { ac_try='test -s conftest.$ac_objext' |
| 4741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4742 | (eval $ac_try) 2>&5 |
| 4743 | ac_status=$? |
| 4744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4745 | (exit $ac_status); }; }; then |
| 4746 | ac_lo=0 ac_mid=0 |
| 4747 | while :; do |
| 4748 | cat >conftest.$ac_ext <<_ACEOF |
| 4749 | #line $LINENO "configure" |
| 4750 | #include "confdefs.h" |
| 4751 | $ac_includes_default |
| 4752 | #ifdef F77_DUMMY_MAIN |
| 4753 | # ifdef __cplusplus |
| 4754 | extern "C" |
| 4755 | # endif |
| 4756 | int F77_DUMMY_MAIN() { return 1; } |
| 4757 | #endif |
| 4758 | int |
| 4759 | main () |
| 4760 | { |
| 4761 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 4762 | test_array [0] = 0 |
| 4763 | |
| 4764 | ; |
| 4765 | return 0; |
| 4766 | } |
| 4767 | _ACEOF |
| 4768 | rm -f conftest.$ac_objext |
| 4769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4770 | (eval $ac_compile) 2>&5 |
| 4771 | ac_status=$? |
| 4772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4773 | (exit $ac_status); } && |
| 4774 | { ac_try='test -s conftest.$ac_objext' |
| 4775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4776 | (eval $ac_try) 2>&5 |
| 4777 | ac_status=$? |
| 4778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4779 | (exit $ac_status); }; }; then |
| 4780 | ac_hi=$ac_mid; break |
| 4781 | else |
| 4782 | echo "$as_me: failed program was:" >&5 |
| 4783 | cat conftest.$ac_ext >&5 |
| 4784 | ac_lo=`expr $ac_mid + 1` |
| 4785 | if test $ac_lo -le $ac_mid; then |
| 4786 | ac_lo= ac_hi= |
| 4787 | break |
| 4788 | fi |
| 4789 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 4790 | fi |
| 4791 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4792 | done |
| 4793 | else |
| 4794 | echo "$as_me: failed program was:" >&5 |
| 4795 | cat conftest.$ac_ext >&5 |
| 4796 | cat >conftest.$ac_ext <<_ACEOF |
| 4797 | #line $LINENO "configure" |
| 4798 | #include "confdefs.h" |
| 4799 | $ac_includes_default |
| 4800 | #ifdef F77_DUMMY_MAIN |
| 4801 | # ifdef __cplusplus |
| 4802 | extern "C" |
| 4803 | # endif |
| 4804 | int F77_DUMMY_MAIN() { return 1; } |
| 4805 | #endif |
| 4806 | int |
| 4807 | main () |
| 4808 | { |
| 4809 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
| 4810 | test_array [0] = 0 |
| 4811 | |
| 4812 | ; |
| 4813 | return 0; |
| 4814 | } |
| 4815 | _ACEOF |
| 4816 | rm -f conftest.$ac_objext |
| 4817 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4818 | (eval $ac_compile) 2>&5 |
| 4819 | ac_status=$? |
| 4820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4821 | (exit $ac_status); } && |
| 4822 | { ac_try='test -s conftest.$ac_objext' |
| 4823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4824 | (eval $ac_try) 2>&5 |
| 4825 | ac_status=$? |
| 4826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4827 | (exit $ac_status); }; }; then |
| 4828 | ac_hi=-1 ac_mid=-1 |
| 4829 | while :; do |
| 4830 | cat >conftest.$ac_ext <<_ACEOF |
| 4831 | #line $LINENO "configure" |
| 4832 | #include "confdefs.h" |
| 4833 | $ac_includes_default |
| 4834 | #ifdef F77_DUMMY_MAIN |
| 4835 | # ifdef __cplusplus |
| 4836 | extern "C" |
| 4837 | # endif |
| 4838 | int F77_DUMMY_MAIN() { return 1; } |
| 4839 | #endif |
| 4840 | int |
| 4841 | main () |
| 4842 | { |
| 4843 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
| 4844 | test_array [0] = 0 |
| 4845 | |
| 4846 | ; |
| 4847 | return 0; |
| 4848 | } |
| 4849 | _ACEOF |
| 4850 | rm -f conftest.$ac_objext |
| 4851 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4852 | (eval $ac_compile) 2>&5 |
| 4853 | ac_status=$? |
| 4854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4855 | (exit $ac_status); } && |
| 4856 | { ac_try='test -s conftest.$ac_objext' |
| 4857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4858 | (eval $ac_try) 2>&5 |
| 4859 | ac_status=$? |
| 4860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4861 | (exit $ac_status); }; }; then |
| 4862 | ac_lo=$ac_mid; break |
| 4863 | else |
| 4864 | echo "$as_me: failed program was:" >&5 |
| 4865 | cat conftest.$ac_ext >&5 |
| 4866 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 4867 | if test $ac_mid -le $ac_hi; then |
| 4868 | ac_lo= ac_hi= |
| 4869 | break |
| 4870 | fi |
| 4871 | ac_mid=`expr 2 '*' $ac_mid` |
| 4872 | fi |
| 4873 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4874 | done |
| 4875 | else |
| 4876 | echo "$as_me: failed program was:" >&5 |
| 4877 | cat conftest.$ac_ext >&5 |
| 4878 | ac_lo= ac_hi= |
| 4879 | fi |
| 4880 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4881 | fi |
| 4882 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4883 | # Binary search between lo and hi bounds. |
| 4884 | while test "x$ac_lo" != "x$ac_hi"; do |
| 4885 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 4886 | cat >conftest.$ac_ext <<_ACEOF |
| 4887 | #line $LINENO "configure" |
| 4888 | #include "confdefs.h" |
| 4889 | $ac_includes_default |
| 4890 | #ifdef F77_DUMMY_MAIN |
| 4891 | # ifdef __cplusplus |
| 4892 | extern "C" |
| 4893 | # endif |
| 4894 | int F77_DUMMY_MAIN() { return 1; } |
| 4895 | #endif |
| 4896 | int |
| 4897 | main () |
| 4898 | { |
| 4899 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 4900 | test_array [0] = 0 |
| 4901 | |
| 4902 | ; |
| 4903 | return 0; |
| 4904 | } |
| 4905 | _ACEOF |
| 4906 | rm -f conftest.$ac_objext |
| 4907 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4908 | (eval $ac_compile) 2>&5 |
| 4909 | ac_status=$? |
| 4910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4911 | (exit $ac_status); } && |
| 4912 | { ac_try='test -s conftest.$ac_objext' |
| 4913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4914 | (eval $ac_try) 2>&5 |
| 4915 | ac_status=$? |
| 4916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4917 | (exit $ac_status); }; }; then |
| 4918 | ac_hi=$ac_mid |
| 4919 | else |
| 4920 | echo "$as_me: failed program was:" >&5 |
| 4921 | cat conftest.$ac_ext >&5 |
| 4922 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 4923 | fi |
| 4924 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4925 | done |
| 4926 | case $ac_lo in |
| 4927 | ?*) ac_cv_sizeof_int=$ac_lo;; |
| 4928 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 |
| 4929 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} |
| 4930 | { (exit 1); exit 1; }; } ;; |
| 4931 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4932 | else |
| 4933 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4934 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 4935 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 4936 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4937 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4938 | cat >conftest.$ac_ext <<_ACEOF |
| 4939 | #line $LINENO "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4940 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4941 | $ac_includes_default |
| 4942 | long longval () { return (long) (sizeof (int)); } |
| 4943 | unsigned long ulongval () { return (long) (sizeof (int)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4944 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4945 | #include <stdlib.h> |
| 4946 | #ifdef F77_DUMMY_MAIN |
| 4947 | # ifdef __cplusplus |
| 4948 | extern "C" |
| 4949 | # endif |
| 4950 | int F77_DUMMY_MAIN() { return 1; } |
| 4951 | #endif |
| 4952 | int |
| 4953 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4954 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4955 | |
| 4956 | FILE *f = fopen ("conftest.val", "w"); |
| 4957 | if (! f) |
| 4958 | exit (1); |
| 4959 | if (((long) (sizeof (int))) < 0) |
| 4960 | { |
| 4961 | long i = longval (); |
| 4962 | if (i != ((long) (sizeof (int)))) |
| 4963 | exit (1); |
| 4964 | fprintf (f, "%ld\n", i); |
| 4965 | } |
| 4966 | else |
| 4967 | { |
| 4968 | unsigned long i = ulongval (); |
| 4969 | if (i != ((long) (sizeof (int)))) |
| 4970 | exit (1); |
| 4971 | fprintf (f, "%lu\n", i); |
| 4972 | } |
| 4973 | exit (ferror (f) || fclose (f) != 0); |
| 4974 | |
| 4975 | ; |
| 4976 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4977 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4978 | _ACEOF |
| 4979 | rm -f conftest$ac_exeext |
| 4980 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4981 | (eval $ac_link) 2>&5 |
| 4982 | ac_status=$? |
| 4983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4984 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4986 | (eval $ac_try) 2>&5 |
| 4987 | ac_status=$? |
| 4988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4989 | (exit $ac_status); }; }; then |
| 4990 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 4991 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4992 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4993 | echo "$as_me: failed program was:" >&5 |
| 4994 | cat conftest.$ac_ext >&5 |
| 4995 | ( exit $ac_status ) |
| 4996 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 |
| 4997 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} |
| 4998 | { (exit 1); exit 1; }; } |
| 4999 | fi |
| 5000 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5001 | fi |
| 5002 | fi |
| 5003 | rm -f conftest.val |
| 5004 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5005 | ac_cv_sizeof_int=0 |
| 5006 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5007 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5008 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 5009 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 5010 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5011 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5012 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5013 | |
| 5014 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5015 | echo "$as_me:$LINENO: checking for long" >&5 |
| 5016 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 5017 | if test "${ac_cv_type_long+set}" = set; then |
| 5018 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5019 | else |
| 5020 | cat >conftest.$ac_ext <<_ACEOF |
| 5021 | #line $LINENO "configure" |
| 5022 | #include "confdefs.h" |
| 5023 | $ac_includes_default |
| 5024 | #ifdef F77_DUMMY_MAIN |
| 5025 | # ifdef __cplusplus |
| 5026 | extern "C" |
| 5027 | # endif |
| 5028 | int F77_DUMMY_MAIN() { return 1; } |
| 5029 | #endif |
| 5030 | int |
| 5031 | main () |
| 5032 | { |
| 5033 | if ((long *) 0) |
| 5034 | return 0; |
| 5035 | if (sizeof (long)) |
| 5036 | return 0; |
| 5037 | ; |
| 5038 | return 0; |
| 5039 | } |
| 5040 | _ACEOF |
| 5041 | rm -f conftest.$ac_objext |
| 5042 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5043 | (eval $ac_compile) 2>&5 |
| 5044 | ac_status=$? |
| 5045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5046 | (exit $ac_status); } && |
| 5047 | { ac_try='test -s conftest.$ac_objext' |
| 5048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5049 | (eval $ac_try) 2>&5 |
| 5050 | ac_status=$? |
| 5051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5052 | (exit $ac_status); }; }; then |
| 5053 | ac_cv_type_long=yes |
| 5054 | else |
| 5055 | echo "$as_me: failed program was:" >&5 |
| 5056 | cat conftest.$ac_ext >&5 |
| 5057 | ac_cv_type_long=no |
| 5058 | fi |
| 5059 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5060 | fi |
| 5061 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 5062 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 5063 | |
| 5064 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 5065 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 5066 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 5067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5068 | else |
| 5069 | if test "$ac_cv_type_long" = yes; then |
| 5070 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5071 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5072 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5073 | # This bug is HP SR number 8606223364. |
| 5074 | if test "$cross_compiling" = yes; then |
| 5075 | # Depending upon the size, compute the lo and hi bounds. |
| 5076 | cat >conftest.$ac_ext <<_ACEOF |
| 5077 | #line $LINENO "configure" |
| 5078 | #include "confdefs.h" |
| 5079 | $ac_includes_default |
| 5080 | #ifdef F77_DUMMY_MAIN |
| 5081 | # ifdef __cplusplus |
| 5082 | extern "C" |
| 5083 | # endif |
| 5084 | int F77_DUMMY_MAIN() { return 1; } |
| 5085 | #endif |
| 5086 | int |
| 5087 | main () |
| 5088 | { |
| 5089 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 5090 | test_array [0] = 0 |
| 5091 | |
| 5092 | ; |
| 5093 | return 0; |
| 5094 | } |
| 5095 | _ACEOF |
| 5096 | rm -f conftest.$ac_objext |
| 5097 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5098 | (eval $ac_compile) 2>&5 |
| 5099 | ac_status=$? |
| 5100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5101 | (exit $ac_status); } && |
| 5102 | { ac_try='test -s conftest.$ac_objext' |
| 5103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5104 | (eval $ac_try) 2>&5 |
| 5105 | ac_status=$? |
| 5106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5107 | (exit $ac_status); }; }; then |
| 5108 | ac_lo=0 ac_mid=0 |
| 5109 | while :; do |
| 5110 | cat >conftest.$ac_ext <<_ACEOF |
| 5111 | #line $LINENO "configure" |
| 5112 | #include "confdefs.h" |
| 5113 | $ac_includes_default |
| 5114 | #ifdef F77_DUMMY_MAIN |
| 5115 | # ifdef __cplusplus |
| 5116 | extern "C" |
| 5117 | # endif |
| 5118 | int F77_DUMMY_MAIN() { return 1; } |
| 5119 | #endif |
| 5120 | int |
| 5121 | main () |
| 5122 | { |
| 5123 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 5124 | test_array [0] = 0 |
| 5125 | |
| 5126 | ; |
| 5127 | return 0; |
| 5128 | } |
| 5129 | _ACEOF |
| 5130 | rm -f conftest.$ac_objext |
| 5131 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5132 | (eval $ac_compile) 2>&5 |
| 5133 | ac_status=$? |
| 5134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5135 | (exit $ac_status); } && |
| 5136 | { ac_try='test -s conftest.$ac_objext' |
| 5137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5138 | (eval $ac_try) 2>&5 |
| 5139 | ac_status=$? |
| 5140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5141 | (exit $ac_status); }; }; then |
| 5142 | ac_hi=$ac_mid; break |
| 5143 | else |
| 5144 | echo "$as_me: failed program was:" >&5 |
| 5145 | cat conftest.$ac_ext >&5 |
| 5146 | ac_lo=`expr $ac_mid + 1` |
| 5147 | if test $ac_lo -le $ac_mid; then |
| 5148 | ac_lo= ac_hi= |
| 5149 | break |
| 5150 | fi |
| 5151 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5152 | fi |
| 5153 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5154 | done |
| 5155 | else |
| 5156 | echo "$as_me: failed program was:" >&5 |
| 5157 | cat conftest.$ac_ext >&5 |
| 5158 | cat >conftest.$ac_ext <<_ACEOF |
| 5159 | #line $LINENO "configure" |
| 5160 | #include "confdefs.h" |
| 5161 | $ac_includes_default |
| 5162 | #ifdef F77_DUMMY_MAIN |
| 5163 | # ifdef __cplusplus |
| 5164 | extern "C" |
| 5165 | # endif |
| 5166 | int F77_DUMMY_MAIN() { return 1; } |
| 5167 | #endif |
| 5168 | int |
| 5169 | main () |
| 5170 | { |
| 5171 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 5172 | test_array [0] = 0 |
| 5173 | |
| 5174 | ; |
| 5175 | return 0; |
| 5176 | } |
| 5177 | _ACEOF |
| 5178 | rm -f conftest.$ac_objext |
| 5179 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5180 | (eval $ac_compile) 2>&5 |
| 5181 | ac_status=$? |
| 5182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5183 | (exit $ac_status); } && |
| 5184 | { ac_try='test -s conftest.$ac_objext' |
| 5185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5186 | (eval $ac_try) 2>&5 |
| 5187 | ac_status=$? |
| 5188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5189 | (exit $ac_status); }; }; then |
| 5190 | ac_hi=-1 ac_mid=-1 |
| 5191 | while :; do |
| 5192 | cat >conftest.$ac_ext <<_ACEOF |
| 5193 | #line $LINENO "configure" |
| 5194 | #include "confdefs.h" |
| 5195 | $ac_includes_default |
| 5196 | #ifdef F77_DUMMY_MAIN |
| 5197 | # ifdef __cplusplus |
| 5198 | extern "C" |
| 5199 | # endif |
| 5200 | int F77_DUMMY_MAIN() { return 1; } |
| 5201 | #endif |
| 5202 | int |
| 5203 | main () |
| 5204 | { |
| 5205 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 5206 | test_array [0] = 0 |
| 5207 | |
| 5208 | ; |
| 5209 | return 0; |
| 5210 | } |
| 5211 | _ACEOF |
| 5212 | rm -f conftest.$ac_objext |
| 5213 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5214 | (eval $ac_compile) 2>&5 |
| 5215 | ac_status=$? |
| 5216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5217 | (exit $ac_status); } && |
| 5218 | { ac_try='test -s conftest.$ac_objext' |
| 5219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5220 | (eval $ac_try) 2>&5 |
| 5221 | ac_status=$? |
| 5222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5223 | (exit $ac_status); }; }; then |
| 5224 | ac_lo=$ac_mid; break |
| 5225 | else |
| 5226 | echo "$as_me: failed program was:" >&5 |
| 5227 | cat conftest.$ac_ext >&5 |
| 5228 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5229 | if test $ac_mid -le $ac_hi; then |
| 5230 | ac_lo= ac_hi= |
| 5231 | break |
| 5232 | fi |
| 5233 | ac_mid=`expr 2 '*' $ac_mid` |
| 5234 | fi |
| 5235 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5236 | done |
| 5237 | else |
| 5238 | echo "$as_me: failed program was:" >&5 |
| 5239 | cat conftest.$ac_ext >&5 |
| 5240 | ac_lo= ac_hi= |
| 5241 | fi |
| 5242 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5243 | fi |
| 5244 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5245 | # Binary search between lo and hi bounds. |
| 5246 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5247 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5248 | cat >conftest.$ac_ext <<_ACEOF |
| 5249 | #line $LINENO "configure" |
| 5250 | #include "confdefs.h" |
| 5251 | $ac_includes_default |
| 5252 | #ifdef F77_DUMMY_MAIN |
| 5253 | # ifdef __cplusplus |
| 5254 | extern "C" |
| 5255 | # endif |
| 5256 | int F77_DUMMY_MAIN() { return 1; } |
| 5257 | #endif |
| 5258 | int |
| 5259 | main () |
| 5260 | { |
| 5261 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 5262 | test_array [0] = 0 |
| 5263 | |
| 5264 | ; |
| 5265 | return 0; |
| 5266 | } |
| 5267 | _ACEOF |
| 5268 | rm -f conftest.$ac_objext |
| 5269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5270 | (eval $ac_compile) 2>&5 |
| 5271 | ac_status=$? |
| 5272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5273 | (exit $ac_status); } && |
| 5274 | { ac_try='test -s conftest.$ac_objext' |
| 5275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5276 | (eval $ac_try) 2>&5 |
| 5277 | ac_status=$? |
| 5278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5279 | (exit $ac_status); }; }; then |
| 5280 | ac_hi=$ac_mid |
| 5281 | else |
| 5282 | echo "$as_me: failed program was:" >&5 |
| 5283 | cat conftest.$ac_ext >&5 |
| 5284 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5285 | fi |
| 5286 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5287 | done |
| 5288 | case $ac_lo in |
| 5289 | ?*) ac_cv_sizeof_long=$ac_lo;; |
| 5290 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 |
| 5291 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} |
| 5292 | { (exit 1); exit 1; }; } ;; |
| 5293 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5294 | else |
| 5295 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5296 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 5297 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 5298 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5299 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5300 | cat >conftest.$ac_ext <<_ACEOF |
| 5301 | #line $LINENO "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5302 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5303 | $ac_includes_default |
| 5304 | long longval () { return (long) (sizeof (long)); } |
| 5305 | unsigned long ulongval () { return (long) (sizeof (long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5306 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5307 | #include <stdlib.h> |
| 5308 | #ifdef F77_DUMMY_MAIN |
| 5309 | # ifdef __cplusplus |
| 5310 | extern "C" |
| 5311 | # endif |
| 5312 | int F77_DUMMY_MAIN() { return 1; } |
| 5313 | #endif |
| 5314 | int |
| 5315 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5316 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5317 | |
| 5318 | FILE *f = fopen ("conftest.val", "w"); |
| 5319 | if (! f) |
| 5320 | exit (1); |
| 5321 | if (((long) (sizeof (long))) < 0) |
| 5322 | { |
| 5323 | long i = longval (); |
| 5324 | if (i != ((long) (sizeof (long)))) |
| 5325 | exit (1); |
| 5326 | fprintf (f, "%ld\n", i); |
| 5327 | } |
| 5328 | else |
| 5329 | { |
| 5330 | unsigned long i = ulongval (); |
| 5331 | if (i != ((long) (sizeof (long)))) |
| 5332 | exit (1); |
| 5333 | fprintf (f, "%lu\n", i); |
| 5334 | } |
| 5335 | exit (ferror (f) || fclose (f) != 0); |
| 5336 | |
| 5337 | ; |
| 5338 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5339 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5340 | _ACEOF |
| 5341 | rm -f conftest$ac_exeext |
| 5342 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5343 | (eval $ac_link) 2>&5 |
| 5344 | ac_status=$? |
| 5345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5346 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5348 | (eval $ac_try) 2>&5 |
| 5349 | ac_status=$? |
| 5350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5351 | (exit $ac_status); }; }; then |
| 5352 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5353 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5354 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5355 | echo "$as_me: failed program was:" >&5 |
| 5356 | cat conftest.$ac_ext >&5 |
| 5357 | ( exit $ac_status ) |
| 5358 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 |
| 5359 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} |
| 5360 | { (exit 1); exit 1; }; } |
| 5361 | fi |
| 5362 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5363 | fi |
| 5364 | fi |
| 5365 | rm -f conftest.val |
| 5366 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5367 | ac_cv_sizeof_long=0 |
| 5368 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5369 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5370 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 5371 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 5372 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5373 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5374 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5375 | |
| 5376 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5377 | echo "$as_me:$LINENO: checking for void *" >&5 |
| 5378 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
| 5379 | if test "${ac_cv_type_void_p+set}" = set; then |
| 5380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5381 | else |
| 5382 | cat >conftest.$ac_ext <<_ACEOF |
| 5383 | #line $LINENO "configure" |
| 5384 | #include "confdefs.h" |
| 5385 | $ac_includes_default |
| 5386 | #ifdef F77_DUMMY_MAIN |
| 5387 | # ifdef __cplusplus |
| 5388 | extern "C" |
| 5389 | # endif |
| 5390 | int F77_DUMMY_MAIN() { return 1; } |
| 5391 | #endif |
| 5392 | int |
| 5393 | main () |
| 5394 | { |
| 5395 | if ((void * *) 0) |
| 5396 | return 0; |
| 5397 | if (sizeof (void *)) |
| 5398 | return 0; |
| 5399 | ; |
| 5400 | return 0; |
| 5401 | } |
| 5402 | _ACEOF |
| 5403 | rm -f conftest.$ac_objext |
| 5404 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5405 | (eval $ac_compile) 2>&5 |
| 5406 | ac_status=$? |
| 5407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5408 | (exit $ac_status); } && |
| 5409 | { ac_try='test -s conftest.$ac_objext' |
| 5410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5411 | (eval $ac_try) 2>&5 |
| 5412 | ac_status=$? |
| 5413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5414 | (exit $ac_status); }; }; then |
| 5415 | ac_cv_type_void_p=yes |
| 5416 | else |
| 5417 | echo "$as_me: failed program was:" >&5 |
| 5418 | cat conftest.$ac_ext >&5 |
| 5419 | ac_cv_type_void_p=no |
| 5420 | fi |
| 5421 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5422 | fi |
| 5423 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 5424 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
| 5425 | |
| 5426 | echo "$as_me:$LINENO: checking size of void *" >&5 |
| 5427 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
| 5428 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 5429 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5430 | else |
| 5431 | if test "$ac_cv_type_void_p" = yes; then |
| 5432 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5433 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5434 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5435 | # This bug is HP SR number 8606223364. |
| 5436 | if test "$cross_compiling" = yes; then |
| 5437 | # Depending upon the size, compute the lo and hi bounds. |
| 5438 | cat >conftest.$ac_ext <<_ACEOF |
| 5439 | #line $LINENO "configure" |
| 5440 | #include "confdefs.h" |
| 5441 | $ac_includes_default |
| 5442 | #ifdef F77_DUMMY_MAIN |
| 5443 | # ifdef __cplusplus |
| 5444 | extern "C" |
| 5445 | # endif |
| 5446 | int F77_DUMMY_MAIN() { return 1; } |
| 5447 | #endif |
| 5448 | int |
| 5449 | main () |
| 5450 | { |
| 5451 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
| 5452 | test_array [0] = 0 |
| 5453 | |
| 5454 | ; |
| 5455 | return 0; |
| 5456 | } |
| 5457 | _ACEOF |
| 5458 | rm -f conftest.$ac_objext |
| 5459 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5460 | (eval $ac_compile) 2>&5 |
| 5461 | ac_status=$? |
| 5462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5463 | (exit $ac_status); } && |
| 5464 | { ac_try='test -s conftest.$ac_objext' |
| 5465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5466 | (eval $ac_try) 2>&5 |
| 5467 | ac_status=$? |
| 5468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5469 | (exit $ac_status); }; }; then |
| 5470 | ac_lo=0 ac_mid=0 |
| 5471 | while :; do |
| 5472 | cat >conftest.$ac_ext <<_ACEOF |
| 5473 | #line $LINENO "configure" |
| 5474 | #include "confdefs.h" |
| 5475 | $ac_includes_default |
| 5476 | #ifdef F77_DUMMY_MAIN |
| 5477 | # ifdef __cplusplus |
| 5478 | extern "C" |
| 5479 | # endif |
| 5480 | int F77_DUMMY_MAIN() { return 1; } |
| 5481 | #endif |
| 5482 | int |
| 5483 | main () |
| 5484 | { |
| 5485 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 5486 | test_array [0] = 0 |
| 5487 | |
| 5488 | ; |
| 5489 | return 0; |
| 5490 | } |
| 5491 | _ACEOF |
| 5492 | rm -f conftest.$ac_objext |
| 5493 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5494 | (eval $ac_compile) 2>&5 |
| 5495 | ac_status=$? |
| 5496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5497 | (exit $ac_status); } && |
| 5498 | { ac_try='test -s conftest.$ac_objext' |
| 5499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5500 | (eval $ac_try) 2>&5 |
| 5501 | ac_status=$? |
| 5502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5503 | (exit $ac_status); }; }; then |
| 5504 | ac_hi=$ac_mid; break |
| 5505 | else |
| 5506 | echo "$as_me: failed program was:" >&5 |
| 5507 | cat conftest.$ac_ext >&5 |
| 5508 | ac_lo=`expr $ac_mid + 1` |
| 5509 | if test $ac_lo -le $ac_mid; then |
| 5510 | ac_lo= ac_hi= |
| 5511 | break |
| 5512 | fi |
| 5513 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5514 | fi |
| 5515 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5516 | done |
| 5517 | else |
| 5518 | echo "$as_me: failed program was:" >&5 |
| 5519 | cat conftest.$ac_ext >&5 |
| 5520 | cat >conftest.$ac_ext <<_ACEOF |
| 5521 | #line $LINENO "configure" |
| 5522 | #include "confdefs.h" |
| 5523 | $ac_includes_default |
| 5524 | #ifdef F77_DUMMY_MAIN |
| 5525 | # ifdef __cplusplus |
| 5526 | extern "C" |
| 5527 | # endif |
| 5528 | int F77_DUMMY_MAIN() { return 1; } |
| 5529 | #endif |
| 5530 | int |
| 5531 | main () |
| 5532 | { |
| 5533 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
| 5534 | test_array [0] = 0 |
| 5535 | |
| 5536 | ; |
| 5537 | return 0; |
| 5538 | } |
| 5539 | _ACEOF |
| 5540 | rm -f conftest.$ac_objext |
| 5541 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5542 | (eval $ac_compile) 2>&5 |
| 5543 | ac_status=$? |
| 5544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5545 | (exit $ac_status); } && |
| 5546 | { ac_try='test -s conftest.$ac_objext' |
| 5547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5548 | (eval $ac_try) 2>&5 |
| 5549 | ac_status=$? |
| 5550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5551 | (exit $ac_status); }; }; then |
| 5552 | ac_hi=-1 ac_mid=-1 |
| 5553 | while :; do |
| 5554 | cat >conftest.$ac_ext <<_ACEOF |
| 5555 | #line $LINENO "configure" |
| 5556 | #include "confdefs.h" |
| 5557 | $ac_includes_default |
| 5558 | #ifdef F77_DUMMY_MAIN |
| 5559 | # ifdef __cplusplus |
| 5560 | extern "C" |
| 5561 | # endif |
| 5562 | int F77_DUMMY_MAIN() { return 1; } |
| 5563 | #endif |
| 5564 | int |
| 5565 | main () |
| 5566 | { |
| 5567 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
| 5568 | test_array [0] = 0 |
| 5569 | |
| 5570 | ; |
| 5571 | return 0; |
| 5572 | } |
| 5573 | _ACEOF |
| 5574 | rm -f conftest.$ac_objext |
| 5575 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5576 | (eval $ac_compile) 2>&5 |
| 5577 | ac_status=$? |
| 5578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5579 | (exit $ac_status); } && |
| 5580 | { ac_try='test -s conftest.$ac_objext' |
| 5581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5582 | (eval $ac_try) 2>&5 |
| 5583 | ac_status=$? |
| 5584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5585 | (exit $ac_status); }; }; then |
| 5586 | ac_lo=$ac_mid; break |
| 5587 | else |
| 5588 | echo "$as_me: failed program was:" >&5 |
| 5589 | cat conftest.$ac_ext >&5 |
| 5590 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5591 | if test $ac_mid -le $ac_hi; then |
| 5592 | ac_lo= ac_hi= |
| 5593 | break |
| 5594 | fi |
| 5595 | ac_mid=`expr 2 '*' $ac_mid` |
| 5596 | fi |
| 5597 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5598 | done |
| 5599 | else |
| 5600 | echo "$as_me: failed program was:" >&5 |
| 5601 | cat conftest.$ac_ext >&5 |
| 5602 | ac_lo= ac_hi= |
| 5603 | fi |
| 5604 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5605 | fi |
| 5606 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5607 | # Binary search between lo and hi bounds. |
| 5608 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5609 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5610 | cat >conftest.$ac_ext <<_ACEOF |
| 5611 | #line $LINENO "configure" |
| 5612 | #include "confdefs.h" |
| 5613 | $ac_includes_default |
| 5614 | #ifdef F77_DUMMY_MAIN |
| 5615 | # ifdef __cplusplus |
| 5616 | extern "C" |
| 5617 | # endif |
| 5618 | int F77_DUMMY_MAIN() { return 1; } |
| 5619 | #endif |
| 5620 | int |
| 5621 | main () |
| 5622 | { |
| 5623 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 5624 | test_array [0] = 0 |
| 5625 | |
| 5626 | ; |
| 5627 | return 0; |
| 5628 | } |
| 5629 | _ACEOF |
| 5630 | rm -f conftest.$ac_objext |
| 5631 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5632 | (eval $ac_compile) 2>&5 |
| 5633 | ac_status=$? |
| 5634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5635 | (exit $ac_status); } && |
| 5636 | { ac_try='test -s conftest.$ac_objext' |
| 5637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5638 | (eval $ac_try) 2>&5 |
| 5639 | ac_status=$? |
| 5640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5641 | (exit $ac_status); }; }; then |
| 5642 | ac_hi=$ac_mid |
| 5643 | else |
| 5644 | echo "$as_me: failed program was:" >&5 |
| 5645 | cat conftest.$ac_ext >&5 |
| 5646 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5647 | fi |
| 5648 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5649 | done |
| 5650 | case $ac_lo in |
| 5651 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
| 5652 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 |
| 5653 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} |
| 5654 | { (exit 1); exit 1; }; } ;; |
| 5655 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5656 | else |
| 5657 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5658 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 5659 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 5660 | { (exit 1); exit 1; }; } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5661 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5662 | cat >conftest.$ac_ext <<_ACEOF |
| 5663 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5664 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5665 | $ac_includes_default |
| 5666 | long longval () { return (long) (sizeof (void *)); } |
| 5667 | unsigned long ulongval () { return (long) (sizeof (void *)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5668 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5669 | #include <stdlib.h> |
| 5670 | #ifdef F77_DUMMY_MAIN |
| 5671 | # ifdef __cplusplus |
| 5672 | extern "C" |
| 5673 | # endif |
| 5674 | int F77_DUMMY_MAIN() { return 1; } |
| 5675 | #endif |
| 5676 | int |
| 5677 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5678 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5679 | |
| 5680 | FILE *f = fopen ("conftest.val", "w"); |
| 5681 | if (! f) |
| 5682 | exit (1); |
| 5683 | if (((long) (sizeof (void *))) < 0) |
| 5684 | { |
| 5685 | long i = longval (); |
| 5686 | if (i != ((long) (sizeof (void *)))) |
| 5687 | exit (1); |
| 5688 | fprintf (f, "%ld\n", i); |
| 5689 | } |
| 5690 | else |
| 5691 | { |
| 5692 | unsigned long i = ulongval (); |
| 5693 | if (i != ((long) (sizeof (void *)))) |
| 5694 | exit (1); |
| 5695 | fprintf (f, "%lu\n", i); |
| 5696 | } |
| 5697 | exit (ferror (f) || fclose (f) != 0); |
| 5698 | |
| 5699 | ; |
| 5700 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5701 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5702 | _ACEOF |
| 5703 | rm -f conftest$ac_exeext |
| 5704 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5705 | (eval $ac_link) 2>&5 |
| 5706 | ac_status=$? |
| 5707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5708 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5710 | (eval $ac_try) 2>&5 |
| 5711 | ac_status=$? |
| 5712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5713 | (exit $ac_status); }; }; then |
| 5714 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5715 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5716 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5717 | echo "$as_me: failed program was:" >&5 |
| 5718 | cat conftest.$ac_ext >&5 |
| 5719 | ( exit $ac_status ) |
| 5720 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 |
| 5721 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} |
| 5722 | { (exit 1); exit 1; }; } |
| 5723 | fi |
| 5724 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5725 | fi |
| 5726 | fi |
| 5727 | rm -f conftest.val |
| 5728 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5729 | ac_cv_sizeof_void_p=0 |
| 5730 | fi |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5731 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5732 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 5733 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
| 5734 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5735 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5736 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 5737 | |
| 5738 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5739 | echo "$as_me:$LINENO: checking for char" >&5 |
| 5740 | echo $ECHO_N "checking for char... $ECHO_C" >&6 |
| 5741 | if test "${ac_cv_type_char+set}" = set; then |
| 5742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5743 | else |
| 5744 | cat >conftest.$ac_ext <<_ACEOF |
| 5745 | #line $LINENO "configure" |
| 5746 | #include "confdefs.h" |
| 5747 | $ac_includes_default |
| 5748 | #ifdef F77_DUMMY_MAIN |
| 5749 | # ifdef __cplusplus |
| 5750 | extern "C" |
| 5751 | # endif |
| 5752 | int F77_DUMMY_MAIN() { return 1; } |
| 5753 | #endif |
| 5754 | int |
| 5755 | main () |
| 5756 | { |
| 5757 | if ((char *) 0) |
| 5758 | return 0; |
| 5759 | if (sizeof (char)) |
| 5760 | return 0; |
| 5761 | ; |
| 5762 | return 0; |
| 5763 | } |
| 5764 | _ACEOF |
| 5765 | rm -f conftest.$ac_objext |
| 5766 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5767 | (eval $ac_compile) 2>&5 |
| 5768 | ac_status=$? |
| 5769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5770 | (exit $ac_status); } && |
| 5771 | { ac_try='test -s conftest.$ac_objext' |
| 5772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5773 | (eval $ac_try) 2>&5 |
| 5774 | ac_status=$? |
| 5775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5776 | (exit $ac_status); }; }; then |
| 5777 | ac_cv_type_char=yes |
| 5778 | else |
| 5779 | echo "$as_me: failed program was:" >&5 |
| 5780 | cat conftest.$ac_ext >&5 |
| 5781 | ac_cv_type_char=no |
| 5782 | fi |
| 5783 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5784 | fi |
| 5785 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
| 5786 | echo "${ECHO_T}$ac_cv_type_char" >&6 |
| 5787 | |
| 5788 | echo "$as_me:$LINENO: checking size of char" >&5 |
| 5789 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 |
| 5790 | if test "${ac_cv_sizeof_char+set}" = set; then |
| 5791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5792 | else |
| 5793 | if test "$ac_cv_type_char" = yes; then |
| 5794 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5795 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5796 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5797 | # This bug is HP SR number 8606223364. |
| 5798 | if test "$cross_compiling" = yes; then |
| 5799 | # Depending upon the size, compute the lo and hi bounds. |
| 5800 | cat >conftest.$ac_ext <<_ACEOF |
| 5801 | #line $LINENO "configure" |
| 5802 | #include "confdefs.h" |
| 5803 | $ac_includes_default |
| 5804 | #ifdef F77_DUMMY_MAIN |
| 5805 | # ifdef __cplusplus |
| 5806 | extern "C" |
| 5807 | # endif |
| 5808 | int F77_DUMMY_MAIN() { return 1; } |
| 5809 | #endif |
| 5810 | int |
| 5811 | main () |
| 5812 | { |
| 5813 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
| 5814 | test_array [0] = 0 |
| 5815 | |
| 5816 | ; |
| 5817 | return 0; |
| 5818 | } |
| 5819 | _ACEOF |
| 5820 | rm -f conftest.$ac_objext |
| 5821 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5822 | (eval $ac_compile) 2>&5 |
| 5823 | ac_status=$? |
| 5824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5825 | (exit $ac_status); } && |
| 5826 | { ac_try='test -s conftest.$ac_objext' |
| 5827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5828 | (eval $ac_try) 2>&5 |
| 5829 | ac_status=$? |
| 5830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5831 | (exit $ac_status); }; }; then |
| 5832 | ac_lo=0 ac_mid=0 |
| 5833 | while :; do |
| 5834 | cat >conftest.$ac_ext <<_ACEOF |
| 5835 | #line $LINENO "configure" |
| 5836 | #include "confdefs.h" |
| 5837 | $ac_includes_default |
| 5838 | #ifdef F77_DUMMY_MAIN |
| 5839 | # ifdef __cplusplus |
| 5840 | extern "C" |
| 5841 | # endif |
| 5842 | int F77_DUMMY_MAIN() { return 1; } |
| 5843 | #endif |
| 5844 | int |
| 5845 | main () |
| 5846 | { |
| 5847 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 5848 | test_array [0] = 0 |
| 5849 | |
| 5850 | ; |
| 5851 | return 0; |
| 5852 | } |
| 5853 | _ACEOF |
| 5854 | rm -f conftest.$ac_objext |
| 5855 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5856 | (eval $ac_compile) 2>&5 |
| 5857 | ac_status=$? |
| 5858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5859 | (exit $ac_status); } && |
| 5860 | { ac_try='test -s conftest.$ac_objext' |
| 5861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5862 | (eval $ac_try) 2>&5 |
| 5863 | ac_status=$? |
| 5864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5865 | (exit $ac_status); }; }; then |
| 5866 | ac_hi=$ac_mid; break |
| 5867 | else |
| 5868 | echo "$as_me: failed program was:" >&5 |
| 5869 | cat conftest.$ac_ext >&5 |
| 5870 | ac_lo=`expr $ac_mid + 1` |
| 5871 | if test $ac_lo -le $ac_mid; then |
| 5872 | ac_lo= ac_hi= |
| 5873 | break |
| 5874 | fi |
| 5875 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5876 | fi |
| 5877 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5878 | done |
| 5879 | else |
| 5880 | echo "$as_me: failed program was:" >&5 |
| 5881 | cat conftest.$ac_ext >&5 |
| 5882 | cat >conftest.$ac_ext <<_ACEOF |
| 5883 | #line $LINENO "configure" |
| 5884 | #include "confdefs.h" |
| 5885 | $ac_includes_default |
| 5886 | #ifdef F77_DUMMY_MAIN |
| 5887 | # ifdef __cplusplus |
| 5888 | extern "C" |
| 5889 | # endif |
| 5890 | int F77_DUMMY_MAIN() { return 1; } |
| 5891 | #endif |
| 5892 | int |
| 5893 | main () |
| 5894 | { |
| 5895 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
| 5896 | test_array [0] = 0 |
| 5897 | |
| 5898 | ; |
| 5899 | return 0; |
| 5900 | } |
| 5901 | _ACEOF |
| 5902 | rm -f conftest.$ac_objext |
| 5903 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5904 | (eval $ac_compile) 2>&5 |
| 5905 | ac_status=$? |
| 5906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5907 | (exit $ac_status); } && |
| 5908 | { ac_try='test -s conftest.$ac_objext' |
| 5909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5910 | (eval $ac_try) 2>&5 |
| 5911 | ac_status=$? |
| 5912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5913 | (exit $ac_status); }; }; then |
| 5914 | ac_hi=-1 ac_mid=-1 |
| 5915 | while :; do |
| 5916 | cat >conftest.$ac_ext <<_ACEOF |
| 5917 | #line $LINENO "configure" |
| 5918 | #include "confdefs.h" |
| 5919 | $ac_includes_default |
| 5920 | #ifdef F77_DUMMY_MAIN |
| 5921 | # ifdef __cplusplus |
| 5922 | extern "C" |
| 5923 | # endif |
| 5924 | int F77_DUMMY_MAIN() { return 1; } |
| 5925 | #endif |
| 5926 | int |
| 5927 | main () |
| 5928 | { |
| 5929 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
| 5930 | test_array [0] = 0 |
| 5931 | |
| 5932 | ; |
| 5933 | return 0; |
| 5934 | } |
| 5935 | _ACEOF |
| 5936 | rm -f conftest.$ac_objext |
| 5937 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5938 | (eval $ac_compile) 2>&5 |
| 5939 | ac_status=$? |
| 5940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5941 | (exit $ac_status); } && |
| 5942 | { ac_try='test -s conftest.$ac_objext' |
| 5943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5944 | (eval $ac_try) 2>&5 |
| 5945 | ac_status=$? |
| 5946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5947 | (exit $ac_status); }; }; then |
| 5948 | ac_lo=$ac_mid; break |
| 5949 | else |
| 5950 | echo "$as_me: failed program was:" >&5 |
| 5951 | cat conftest.$ac_ext >&5 |
| 5952 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5953 | if test $ac_mid -le $ac_hi; then |
| 5954 | ac_lo= ac_hi= |
| 5955 | break |
| 5956 | fi |
| 5957 | ac_mid=`expr 2 '*' $ac_mid` |
| 5958 | fi |
| 5959 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5960 | done |
| 5961 | else |
| 5962 | echo "$as_me: failed program was:" >&5 |
| 5963 | cat conftest.$ac_ext >&5 |
| 5964 | ac_lo= ac_hi= |
| 5965 | fi |
| 5966 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5967 | fi |
| 5968 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5969 | # Binary search between lo and hi bounds. |
| 5970 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5971 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5972 | cat >conftest.$ac_ext <<_ACEOF |
| 5973 | #line $LINENO "configure" |
| 5974 | #include "confdefs.h" |
| 5975 | $ac_includes_default |
| 5976 | #ifdef F77_DUMMY_MAIN |
| 5977 | # ifdef __cplusplus |
| 5978 | extern "C" |
| 5979 | # endif |
| 5980 | int F77_DUMMY_MAIN() { return 1; } |
| 5981 | #endif |
| 5982 | int |
| 5983 | main () |
| 5984 | { |
| 5985 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 5986 | test_array [0] = 0 |
| 5987 | |
| 5988 | ; |
| 5989 | return 0; |
| 5990 | } |
| 5991 | _ACEOF |
| 5992 | rm -f conftest.$ac_objext |
| 5993 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5994 | (eval $ac_compile) 2>&5 |
| 5995 | ac_status=$? |
| 5996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5997 | (exit $ac_status); } && |
| 5998 | { ac_try='test -s conftest.$ac_objext' |
| 5999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6000 | (eval $ac_try) 2>&5 |
| 6001 | ac_status=$? |
| 6002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6003 | (exit $ac_status); }; }; then |
| 6004 | ac_hi=$ac_mid |
| 6005 | else |
| 6006 | echo "$as_me: failed program was:" >&5 |
| 6007 | cat conftest.$ac_ext >&5 |
| 6008 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6009 | fi |
| 6010 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6011 | done |
| 6012 | case $ac_lo in |
| 6013 | ?*) ac_cv_sizeof_char=$ac_lo;; |
| 6014 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 |
| 6015 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} |
| 6016 | { (exit 1); exit 1; }; } ;; |
| 6017 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6018 | else |
| 6019 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6020 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6021 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6022 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6023 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6024 | cat >conftest.$ac_ext <<_ACEOF |
| 6025 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6026 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6027 | $ac_includes_default |
| 6028 | long longval () { return (long) (sizeof (char)); } |
| 6029 | unsigned long ulongval () { return (long) (sizeof (char)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6030 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6031 | #include <stdlib.h> |
| 6032 | #ifdef F77_DUMMY_MAIN |
| 6033 | # ifdef __cplusplus |
| 6034 | extern "C" |
| 6035 | # endif |
| 6036 | int F77_DUMMY_MAIN() { return 1; } |
| 6037 | #endif |
| 6038 | int |
| 6039 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6040 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6041 | |
| 6042 | FILE *f = fopen ("conftest.val", "w"); |
| 6043 | if (! f) |
| 6044 | exit (1); |
| 6045 | if (((long) (sizeof (char))) < 0) |
| 6046 | { |
| 6047 | long i = longval (); |
| 6048 | if (i != ((long) (sizeof (char)))) |
| 6049 | exit (1); |
| 6050 | fprintf (f, "%ld\n", i); |
| 6051 | } |
| 6052 | else |
| 6053 | { |
| 6054 | unsigned long i = ulongval (); |
| 6055 | if (i != ((long) (sizeof (char)))) |
| 6056 | exit (1); |
| 6057 | fprintf (f, "%lu\n", i); |
| 6058 | } |
| 6059 | exit (ferror (f) || fclose (f) != 0); |
| 6060 | |
| 6061 | ; |
| 6062 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6063 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6064 | _ACEOF |
| 6065 | rm -f conftest$ac_exeext |
| 6066 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6067 | (eval $ac_link) 2>&5 |
| 6068 | ac_status=$? |
| 6069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6070 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6072 | (eval $ac_try) 2>&5 |
| 6073 | ac_status=$? |
| 6074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6075 | (exit $ac_status); }; }; then |
| 6076 | ac_cv_sizeof_char=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6077 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6078 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6079 | echo "$as_me: failed program was:" >&5 |
| 6080 | cat conftest.$ac_ext >&5 |
| 6081 | ( exit $ac_status ) |
| 6082 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 |
| 6083 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} |
| 6084 | { (exit 1); exit 1; }; } |
| 6085 | fi |
| 6086 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6087 | fi |
| 6088 | fi |
| 6089 | rm -f conftest.val |
| 6090 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6091 | ac_cv_sizeof_char=0 |
| 6092 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6093 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6094 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
| 6095 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 |
| 6096 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6097 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6098 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6099 | |
| 6100 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6101 | echo "$as_me:$LINENO: checking for short" >&5 |
| 6102 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
| 6103 | if test "${ac_cv_type_short+set}" = set; then |
| 6104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6105 | else |
| 6106 | cat >conftest.$ac_ext <<_ACEOF |
| 6107 | #line $LINENO "configure" |
| 6108 | #include "confdefs.h" |
| 6109 | $ac_includes_default |
| 6110 | #ifdef F77_DUMMY_MAIN |
| 6111 | # ifdef __cplusplus |
| 6112 | extern "C" |
| 6113 | # endif |
| 6114 | int F77_DUMMY_MAIN() { return 1; } |
| 6115 | #endif |
| 6116 | int |
| 6117 | main () |
| 6118 | { |
| 6119 | if ((short *) 0) |
| 6120 | return 0; |
| 6121 | if (sizeof (short)) |
| 6122 | return 0; |
| 6123 | ; |
| 6124 | return 0; |
| 6125 | } |
| 6126 | _ACEOF |
| 6127 | rm -f conftest.$ac_objext |
| 6128 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6129 | (eval $ac_compile) 2>&5 |
| 6130 | ac_status=$? |
| 6131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6132 | (exit $ac_status); } && |
| 6133 | { ac_try='test -s conftest.$ac_objext' |
| 6134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6135 | (eval $ac_try) 2>&5 |
| 6136 | ac_status=$? |
| 6137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6138 | (exit $ac_status); }; }; then |
| 6139 | ac_cv_type_short=yes |
| 6140 | else |
| 6141 | echo "$as_me: failed program was:" >&5 |
| 6142 | cat conftest.$ac_ext >&5 |
| 6143 | ac_cv_type_short=no |
| 6144 | fi |
| 6145 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6146 | fi |
| 6147 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 6148 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
| 6149 | |
| 6150 | echo "$as_me:$LINENO: checking size of short" >&5 |
| 6151 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
| 6152 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 6153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6154 | else |
| 6155 | if test "$ac_cv_type_short" = yes; then |
| 6156 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6157 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6158 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6159 | # This bug is HP SR number 8606223364. |
| 6160 | if test "$cross_compiling" = yes; then |
| 6161 | # Depending upon the size, compute the lo and hi bounds. |
| 6162 | cat >conftest.$ac_ext <<_ACEOF |
| 6163 | #line $LINENO "configure" |
| 6164 | #include "confdefs.h" |
| 6165 | $ac_includes_default |
| 6166 | #ifdef F77_DUMMY_MAIN |
| 6167 | # ifdef __cplusplus |
| 6168 | extern "C" |
| 6169 | # endif |
| 6170 | int F77_DUMMY_MAIN() { return 1; } |
| 6171 | #endif |
| 6172 | int |
| 6173 | main () |
| 6174 | { |
| 6175 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
| 6176 | test_array [0] = 0 |
| 6177 | |
| 6178 | ; |
| 6179 | return 0; |
| 6180 | } |
| 6181 | _ACEOF |
| 6182 | rm -f conftest.$ac_objext |
| 6183 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6184 | (eval $ac_compile) 2>&5 |
| 6185 | ac_status=$? |
| 6186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6187 | (exit $ac_status); } && |
| 6188 | { ac_try='test -s conftest.$ac_objext' |
| 6189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6190 | (eval $ac_try) 2>&5 |
| 6191 | ac_status=$? |
| 6192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6193 | (exit $ac_status); }; }; then |
| 6194 | ac_lo=0 ac_mid=0 |
| 6195 | while :; do |
| 6196 | cat >conftest.$ac_ext <<_ACEOF |
| 6197 | #line $LINENO "configure" |
| 6198 | #include "confdefs.h" |
| 6199 | $ac_includes_default |
| 6200 | #ifdef F77_DUMMY_MAIN |
| 6201 | # ifdef __cplusplus |
| 6202 | extern "C" |
| 6203 | # endif |
| 6204 | int F77_DUMMY_MAIN() { return 1; } |
| 6205 | #endif |
| 6206 | int |
| 6207 | main () |
| 6208 | { |
| 6209 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 6210 | test_array [0] = 0 |
| 6211 | |
| 6212 | ; |
| 6213 | return 0; |
| 6214 | } |
| 6215 | _ACEOF |
| 6216 | rm -f conftest.$ac_objext |
| 6217 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6218 | (eval $ac_compile) 2>&5 |
| 6219 | ac_status=$? |
| 6220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6221 | (exit $ac_status); } && |
| 6222 | { ac_try='test -s conftest.$ac_objext' |
| 6223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6224 | (eval $ac_try) 2>&5 |
| 6225 | ac_status=$? |
| 6226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6227 | (exit $ac_status); }; }; then |
| 6228 | ac_hi=$ac_mid; break |
| 6229 | else |
| 6230 | echo "$as_me: failed program was:" >&5 |
| 6231 | cat conftest.$ac_ext >&5 |
| 6232 | ac_lo=`expr $ac_mid + 1` |
| 6233 | if test $ac_lo -le $ac_mid; then |
| 6234 | ac_lo= ac_hi= |
| 6235 | break |
| 6236 | fi |
| 6237 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6238 | fi |
| 6239 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6240 | done |
| 6241 | else |
| 6242 | echo "$as_me: failed program was:" >&5 |
| 6243 | cat conftest.$ac_ext >&5 |
| 6244 | cat >conftest.$ac_ext <<_ACEOF |
| 6245 | #line $LINENO "configure" |
| 6246 | #include "confdefs.h" |
| 6247 | $ac_includes_default |
| 6248 | #ifdef F77_DUMMY_MAIN |
| 6249 | # ifdef __cplusplus |
| 6250 | extern "C" |
| 6251 | # endif |
| 6252 | int F77_DUMMY_MAIN() { return 1; } |
| 6253 | #endif |
| 6254 | int |
| 6255 | main () |
| 6256 | { |
| 6257 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
| 6258 | test_array [0] = 0 |
| 6259 | |
| 6260 | ; |
| 6261 | return 0; |
| 6262 | } |
| 6263 | _ACEOF |
| 6264 | rm -f conftest.$ac_objext |
| 6265 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6266 | (eval $ac_compile) 2>&5 |
| 6267 | ac_status=$? |
| 6268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6269 | (exit $ac_status); } && |
| 6270 | { ac_try='test -s conftest.$ac_objext' |
| 6271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6272 | (eval $ac_try) 2>&5 |
| 6273 | ac_status=$? |
| 6274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6275 | (exit $ac_status); }; }; then |
| 6276 | ac_hi=-1 ac_mid=-1 |
| 6277 | while :; do |
| 6278 | cat >conftest.$ac_ext <<_ACEOF |
| 6279 | #line $LINENO "configure" |
| 6280 | #include "confdefs.h" |
| 6281 | $ac_includes_default |
| 6282 | #ifdef F77_DUMMY_MAIN |
| 6283 | # ifdef __cplusplus |
| 6284 | extern "C" |
| 6285 | # endif |
| 6286 | int F77_DUMMY_MAIN() { return 1; } |
| 6287 | #endif |
| 6288 | int |
| 6289 | main () |
| 6290 | { |
| 6291 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
| 6292 | test_array [0] = 0 |
| 6293 | |
| 6294 | ; |
| 6295 | return 0; |
| 6296 | } |
| 6297 | _ACEOF |
| 6298 | rm -f conftest.$ac_objext |
| 6299 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6300 | (eval $ac_compile) 2>&5 |
| 6301 | ac_status=$? |
| 6302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6303 | (exit $ac_status); } && |
| 6304 | { ac_try='test -s conftest.$ac_objext' |
| 6305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6306 | (eval $ac_try) 2>&5 |
| 6307 | ac_status=$? |
| 6308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6309 | (exit $ac_status); }; }; then |
| 6310 | ac_lo=$ac_mid; break |
| 6311 | else |
| 6312 | echo "$as_me: failed program was:" >&5 |
| 6313 | cat conftest.$ac_ext >&5 |
| 6314 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6315 | if test $ac_mid -le $ac_hi; then |
| 6316 | ac_lo= ac_hi= |
| 6317 | break |
| 6318 | fi |
| 6319 | ac_mid=`expr 2 '*' $ac_mid` |
| 6320 | fi |
| 6321 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6322 | done |
| 6323 | else |
| 6324 | echo "$as_me: failed program was:" >&5 |
| 6325 | cat conftest.$ac_ext >&5 |
| 6326 | ac_lo= ac_hi= |
| 6327 | fi |
| 6328 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6329 | fi |
| 6330 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6331 | # Binary search between lo and hi bounds. |
| 6332 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6333 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6334 | cat >conftest.$ac_ext <<_ACEOF |
| 6335 | #line $LINENO "configure" |
| 6336 | #include "confdefs.h" |
| 6337 | $ac_includes_default |
| 6338 | #ifdef F77_DUMMY_MAIN |
| 6339 | # ifdef __cplusplus |
| 6340 | extern "C" |
| 6341 | # endif |
| 6342 | int F77_DUMMY_MAIN() { return 1; } |
| 6343 | #endif |
| 6344 | int |
| 6345 | main () |
| 6346 | { |
| 6347 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 6348 | test_array [0] = 0 |
| 6349 | |
| 6350 | ; |
| 6351 | return 0; |
| 6352 | } |
| 6353 | _ACEOF |
| 6354 | rm -f conftest.$ac_objext |
| 6355 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6356 | (eval $ac_compile) 2>&5 |
| 6357 | ac_status=$? |
| 6358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6359 | (exit $ac_status); } && |
| 6360 | { ac_try='test -s conftest.$ac_objext' |
| 6361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6362 | (eval $ac_try) 2>&5 |
| 6363 | ac_status=$? |
| 6364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6365 | (exit $ac_status); }; }; then |
| 6366 | ac_hi=$ac_mid |
| 6367 | else |
| 6368 | echo "$as_me: failed program was:" >&5 |
| 6369 | cat conftest.$ac_ext >&5 |
| 6370 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6371 | fi |
| 6372 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6373 | done |
| 6374 | case $ac_lo in |
| 6375 | ?*) ac_cv_sizeof_short=$ac_lo;; |
| 6376 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 |
| 6377 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} |
| 6378 | { (exit 1); exit 1; }; } ;; |
| 6379 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6380 | else |
| 6381 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6382 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6383 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6384 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6385 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6386 | cat >conftest.$ac_ext <<_ACEOF |
| 6387 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6388 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6389 | $ac_includes_default |
| 6390 | long longval () { return (long) (sizeof (short)); } |
| 6391 | unsigned long ulongval () { return (long) (sizeof (short)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6392 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6393 | #include <stdlib.h> |
| 6394 | #ifdef F77_DUMMY_MAIN |
| 6395 | # ifdef __cplusplus |
| 6396 | extern "C" |
| 6397 | # endif |
| 6398 | int F77_DUMMY_MAIN() { return 1; } |
| 6399 | #endif |
| 6400 | int |
| 6401 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6402 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6403 | |
| 6404 | FILE *f = fopen ("conftest.val", "w"); |
| 6405 | if (! f) |
| 6406 | exit (1); |
| 6407 | if (((long) (sizeof (short))) < 0) |
| 6408 | { |
| 6409 | long i = longval (); |
| 6410 | if (i != ((long) (sizeof (short)))) |
| 6411 | exit (1); |
| 6412 | fprintf (f, "%ld\n", i); |
| 6413 | } |
| 6414 | else |
| 6415 | { |
| 6416 | unsigned long i = ulongval (); |
| 6417 | if (i != ((long) (sizeof (short)))) |
| 6418 | exit (1); |
| 6419 | fprintf (f, "%lu\n", i); |
| 6420 | } |
| 6421 | exit (ferror (f) || fclose (f) != 0); |
| 6422 | |
| 6423 | ; |
| 6424 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6425 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6426 | _ACEOF |
| 6427 | rm -f conftest$ac_exeext |
| 6428 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6429 | (eval $ac_link) 2>&5 |
| 6430 | ac_status=$? |
| 6431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6432 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6434 | (eval $ac_try) 2>&5 |
| 6435 | ac_status=$? |
| 6436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6437 | (exit $ac_status); }; }; then |
| 6438 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6439 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6440 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6441 | echo "$as_me: failed program was:" >&5 |
| 6442 | cat conftest.$ac_ext >&5 |
| 6443 | ( exit $ac_status ) |
| 6444 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 |
| 6445 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} |
| 6446 | { (exit 1); exit 1; }; } |
| 6447 | fi |
| 6448 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6449 | fi |
| 6450 | fi |
| 6451 | rm -f conftest.val |
| 6452 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6453 | ac_cv_sizeof_short=0 |
| 6454 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6455 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6456 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 6457 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
| 6458 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6459 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6460 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6461 | |
| 6462 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6463 | echo "$as_me:$LINENO: checking for float" >&5 |
| 6464 | echo $ECHO_N "checking for float... $ECHO_C" >&6 |
| 6465 | if test "${ac_cv_type_float+set}" = set; then |
| 6466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6467 | else |
| 6468 | cat >conftest.$ac_ext <<_ACEOF |
| 6469 | #line $LINENO "configure" |
| 6470 | #include "confdefs.h" |
| 6471 | $ac_includes_default |
| 6472 | #ifdef F77_DUMMY_MAIN |
| 6473 | # ifdef __cplusplus |
| 6474 | extern "C" |
| 6475 | # endif |
| 6476 | int F77_DUMMY_MAIN() { return 1; } |
| 6477 | #endif |
| 6478 | int |
| 6479 | main () |
| 6480 | { |
| 6481 | if ((float *) 0) |
| 6482 | return 0; |
| 6483 | if (sizeof (float)) |
| 6484 | return 0; |
| 6485 | ; |
| 6486 | return 0; |
| 6487 | } |
| 6488 | _ACEOF |
| 6489 | rm -f conftest.$ac_objext |
| 6490 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6491 | (eval $ac_compile) 2>&5 |
| 6492 | ac_status=$? |
| 6493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6494 | (exit $ac_status); } && |
| 6495 | { ac_try='test -s conftest.$ac_objext' |
| 6496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6497 | (eval $ac_try) 2>&5 |
| 6498 | ac_status=$? |
| 6499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6500 | (exit $ac_status); }; }; then |
| 6501 | ac_cv_type_float=yes |
| 6502 | else |
| 6503 | echo "$as_me: failed program was:" >&5 |
| 6504 | cat conftest.$ac_ext >&5 |
| 6505 | ac_cv_type_float=no |
| 6506 | fi |
| 6507 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6508 | fi |
| 6509 | echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 6510 | echo "${ECHO_T}$ac_cv_type_float" >&6 |
| 6511 | |
| 6512 | echo "$as_me:$LINENO: checking size of float" >&5 |
| 6513 | echo $ECHO_N "checking size of float... $ECHO_C" >&6 |
| 6514 | if test "${ac_cv_sizeof_float+set}" = set; then |
| 6515 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6516 | else |
| 6517 | if test "$ac_cv_type_float" = yes; then |
| 6518 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6519 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6520 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6521 | # This bug is HP SR number 8606223364. |
| 6522 | if test "$cross_compiling" = yes; then |
| 6523 | # Depending upon the size, compute the lo and hi bounds. |
| 6524 | cat >conftest.$ac_ext <<_ACEOF |
| 6525 | #line $LINENO "configure" |
| 6526 | #include "confdefs.h" |
| 6527 | $ac_includes_default |
| 6528 | #ifdef F77_DUMMY_MAIN |
| 6529 | # ifdef __cplusplus |
| 6530 | extern "C" |
| 6531 | # endif |
| 6532 | int F77_DUMMY_MAIN() { return 1; } |
| 6533 | #endif |
| 6534 | int |
| 6535 | main () |
| 6536 | { |
| 6537 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)]; |
| 6538 | test_array [0] = 0 |
| 6539 | |
| 6540 | ; |
| 6541 | return 0; |
| 6542 | } |
| 6543 | _ACEOF |
| 6544 | rm -f conftest.$ac_objext |
| 6545 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6546 | (eval $ac_compile) 2>&5 |
| 6547 | ac_status=$? |
| 6548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6549 | (exit $ac_status); } && |
| 6550 | { ac_try='test -s conftest.$ac_objext' |
| 6551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6552 | (eval $ac_try) 2>&5 |
| 6553 | ac_status=$? |
| 6554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6555 | (exit $ac_status); }; }; then |
| 6556 | ac_lo=0 ac_mid=0 |
| 6557 | while :; do |
| 6558 | cat >conftest.$ac_ext <<_ACEOF |
| 6559 | #line $LINENO "configure" |
| 6560 | #include "confdefs.h" |
| 6561 | $ac_includes_default |
| 6562 | #ifdef F77_DUMMY_MAIN |
| 6563 | # ifdef __cplusplus |
| 6564 | extern "C" |
| 6565 | # endif |
| 6566 | int F77_DUMMY_MAIN() { return 1; } |
| 6567 | #endif |
| 6568 | int |
| 6569 | main () |
| 6570 | { |
| 6571 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 6572 | test_array [0] = 0 |
| 6573 | |
| 6574 | ; |
| 6575 | return 0; |
| 6576 | } |
| 6577 | _ACEOF |
| 6578 | rm -f conftest.$ac_objext |
| 6579 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6580 | (eval $ac_compile) 2>&5 |
| 6581 | ac_status=$? |
| 6582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6583 | (exit $ac_status); } && |
| 6584 | { ac_try='test -s conftest.$ac_objext' |
| 6585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6586 | (eval $ac_try) 2>&5 |
| 6587 | ac_status=$? |
| 6588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6589 | (exit $ac_status); }; }; then |
| 6590 | ac_hi=$ac_mid; break |
| 6591 | else |
| 6592 | echo "$as_me: failed program was:" >&5 |
| 6593 | cat conftest.$ac_ext >&5 |
| 6594 | ac_lo=`expr $ac_mid + 1` |
| 6595 | if test $ac_lo -le $ac_mid; then |
| 6596 | ac_lo= ac_hi= |
| 6597 | break |
| 6598 | fi |
| 6599 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6600 | fi |
| 6601 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6602 | done |
| 6603 | else |
| 6604 | echo "$as_me: failed program was:" >&5 |
| 6605 | cat conftest.$ac_ext >&5 |
| 6606 | cat >conftest.$ac_ext <<_ACEOF |
| 6607 | #line $LINENO "configure" |
| 6608 | #include "confdefs.h" |
| 6609 | $ac_includes_default |
| 6610 | #ifdef F77_DUMMY_MAIN |
| 6611 | # ifdef __cplusplus |
| 6612 | extern "C" |
| 6613 | # endif |
| 6614 | int F77_DUMMY_MAIN() { return 1; } |
| 6615 | #endif |
| 6616 | int |
| 6617 | main () |
| 6618 | { |
| 6619 | static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)]; |
| 6620 | test_array [0] = 0 |
| 6621 | |
| 6622 | ; |
| 6623 | return 0; |
| 6624 | } |
| 6625 | _ACEOF |
| 6626 | rm -f conftest.$ac_objext |
| 6627 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6628 | (eval $ac_compile) 2>&5 |
| 6629 | ac_status=$? |
| 6630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6631 | (exit $ac_status); } && |
| 6632 | { ac_try='test -s conftest.$ac_objext' |
| 6633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6634 | (eval $ac_try) 2>&5 |
| 6635 | ac_status=$? |
| 6636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6637 | (exit $ac_status); }; }; then |
| 6638 | ac_hi=-1 ac_mid=-1 |
| 6639 | while :; do |
| 6640 | cat >conftest.$ac_ext <<_ACEOF |
| 6641 | #line $LINENO "configure" |
| 6642 | #include "confdefs.h" |
| 6643 | $ac_includes_default |
| 6644 | #ifdef F77_DUMMY_MAIN |
| 6645 | # ifdef __cplusplus |
| 6646 | extern "C" |
| 6647 | # endif |
| 6648 | int F77_DUMMY_MAIN() { return 1; } |
| 6649 | #endif |
| 6650 | int |
| 6651 | main () |
| 6652 | { |
| 6653 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)]; |
| 6654 | test_array [0] = 0 |
| 6655 | |
| 6656 | ; |
| 6657 | return 0; |
| 6658 | } |
| 6659 | _ACEOF |
| 6660 | rm -f conftest.$ac_objext |
| 6661 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6662 | (eval $ac_compile) 2>&5 |
| 6663 | ac_status=$? |
| 6664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6665 | (exit $ac_status); } && |
| 6666 | { ac_try='test -s conftest.$ac_objext' |
| 6667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6668 | (eval $ac_try) 2>&5 |
| 6669 | ac_status=$? |
| 6670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6671 | (exit $ac_status); }; }; then |
| 6672 | ac_lo=$ac_mid; break |
| 6673 | else |
| 6674 | echo "$as_me: failed program was:" >&5 |
| 6675 | cat conftest.$ac_ext >&5 |
| 6676 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6677 | if test $ac_mid -le $ac_hi; then |
| 6678 | ac_lo= ac_hi= |
| 6679 | break |
| 6680 | fi |
| 6681 | ac_mid=`expr 2 '*' $ac_mid` |
| 6682 | fi |
| 6683 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6684 | done |
| 6685 | else |
| 6686 | echo "$as_me: failed program was:" >&5 |
| 6687 | cat conftest.$ac_ext >&5 |
| 6688 | ac_lo= ac_hi= |
| 6689 | fi |
| 6690 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6691 | fi |
| 6692 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6693 | # Binary search between lo and hi bounds. |
| 6694 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6695 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6696 | cat >conftest.$ac_ext <<_ACEOF |
| 6697 | #line $LINENO "configure" |
| 6698 | #include "confdefs.h" |
| 6699 | $ac_includes_default |
| 6700 | #ifdef F77_DUMMY_MAIN |
| 6701 | # ifdef __cplusplus |
| 6702 | extern "C" |
| 6703 | # endif |
| 6704 | int F77_DUMMY_MAIN() { return 1; } |
| 6705 | #endif |
| 6706 | int |
| 6707 | main () |
| 6708 | { |
| 6709 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 6710 | test_array [0] = 0 |
| 6711 | |
| 6712 | ; |
| 6713 | return 0; |
| 6714 | } |
| 6715 | _ACEOF |
| 6716 | rm -f conftest.$ac_objext |
| 6717 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6718 | (eval $ac_compile) 2>&5 |
| 6719 | ac_status=$? |
| 6720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6721 | (exit $ac_status); } && |
| 6722 | { ac_try='test -s conftest.$ac_objext' |
| 6723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6724 | (eval $ac_try) 2>&5 |
| 6725 | ac_status=$? |
| 6726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6727 | (exit $ac_status); }; }; then |
| 6728 | ac_hi=$ac_mid |
| 6729 | else |
| 6730 | echo "$as_me: failed program was:" >&5 |
| 6731 | cat conftest.$ac_ext >&5 |
| 6732 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6733 | fi |
| 6734 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6735 | done |
| 6736 | case $ac_lo in |
| 6737 | ?*) ac_cv_sizeof_float=$ac_lo;; |
| 6738 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5 |
| 6739 | echo "$as_me: error: cannot compute sizeof (float), 77" >&2;} |
| 6740 | { (exit 1); exit 1; }; } ;; |
| 6741 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6742 | else |
| 6743 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6744 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6745 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6746 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6747 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6748 | cat >conftest.$ac_ext <<_ACEOF |
| 6749 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6750 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6751 | $ac_includes_default |
| 6752 | long longval () { return (long) (sizeof (float)); } |
| 6753 | unsigned long ulongval () { return (long) (sizeof (float)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6754 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6755 | #include <stdlib.h> |
| 6756 | #ifdef F77_DUMMY_MAIN |
| 6757 | # ifdef __cplusplus |
| 6758 | extern "C" |
| 6759 | # endif |
| 6760 | int F77_DUMMY_MAIN() { return 1; } |
| 6761 | #endif |
| 6762 | int |
| 6763 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6764 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6765 | |
| 6766 | FILE *f = fopen ("conftest.val", "w"); |
| 6767 | if (! f) |
| 6768 | exit (1); |
| 6769 | if (((long) (sizeof (float))) < 0) |
| 6770 | { |
| 6771 | long i = longval (); |
| 6772 | if (i != ((long) (sizeof (float)))) |
| 6773 | exit (1); |
| 6774 | fprintf (f, "%ld\n", i); |
| 6775 | } |
| 6776 | else |
| 6777 | { |
| 6778 | unsigned long i = ulongval (); |
| 6779 | if (i != ((long) (sizeof (float)))) |
| 6780 | exit (1); |
| 6781 | fprintf (f, "%lu\n", i); |
| 6782 | } |
| 6783 | exit (ferror (f) || fclose (f) != 0); |
| 6784 | |
| 6785 | ; |
| 6786 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6787 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6788 | _ACEOF |
| 6789 | rm -f conftest$ac_exeext |
| 6790 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6791 | (eval $ac_link) 2>&5 |
| 6792 | ac_status=$? |
| 6793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6794 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6796 | (eval $ac_try) 2>&5 |
| 6797 | ac_status=$? |
| 6798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6799 | (exit $ac_status); }; }; then |
| 6800 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6801 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6802 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6803 | echo "$as_me: failed program was:" >&5 |
| 6804 | cat conftest.$ac_ext >&5 |
| 6805 | ( exit $ac_status ) |
| 6806 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5 |
| 6807 | echo "$as_me: error: cannot compute sizeof (float), 77" >&2;} |
| 6808 | { (exit 1); exit 1; }; } |
| 6809 | fi |
| 6810 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6811 | fi |
| 6812 | fi |
| 6813 | rm -f conftest.val |
| 6814 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6815 | ac_cv_sizeof_float=0 |
| 6816 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6817 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6818 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 6819 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6 |
| 6820 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6821 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6822 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6823 | |
| 6824 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6825 | echo "$as_me:$LINENO: checking for double" >&5 |
| 6826 | echo $ECHO_N "checking for double... $ECHO_C" >&6 |
| 6827 | if test "${ac_cv_type_double+set}" = set; then |
| 6828 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6829 | else |
| 6830 | cat >conftest.$ac_ext <<_ACEOF |
| 6831 | #line $LINENO "configure" |
| 6832 | #include "confdefs.h" |
| 6833 | $ac_includes_default |
| 6834 | #ifdef F77_DUMMY_MAIN |
| 6835 | # ifdef __cplusplus |
| 6836 | extern "C" |
| 6837 | # endif |
| 6838 | int F77_DUMMY_MAIN() { return 1; } |
| 6839 | #endif |
| 6840 | int |
| 6841 | main () |
| 6842 | { |
| 6843 | if ((double *) 0) |
| 6844 | return 0; |
| 6845 | if (sizeof (double)) |
| 6846 | return 0; |
| 6847 | ; |
| 6848 | return 0; |
| 6849 | } |
| 6850 | _ACEOF |
| 6851 | rm -f conftest.$ac_objext |
| 6852 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6853 | (eval $ac_compile) 2>&5 |
| 6854 | ac_status=$? |
| 6855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6856 | (exit $ac_status); } && |
| 6857 | { ac_try='test -s conftest.$ac_objext' |
| 6858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6859 | (eval $ac_try) 2>&5 |
| 6860 | ac_status=$? |
| 6861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6862 | (exit $ac_status); }; }; then |
| 6863 | ac_cv_type_double=yes |
| 6864 | else |
| 6865 | echo "$as_me: failed program was:" >&5 |
| 6866 | cat conftest.$ac_ext >&5 |
| 6867 | ac_cv_type_double=no |
| 6868 | fi |
| 6869 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6870 | fi |
| 6871 | echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 6872 | echo "${ECHO_T}$ac_cv_type_double" >&6 |
| 6873 | |
| 6874 | echo "$as_me:$LINENO: checking size of double" >&5 |
| 6875 | echo $ECHO_N "checking size of double... $ECHO_C" >&6 |
| 6876 | if test "${ac_cv_sizeof_double+set}" = set; then |
| 6877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6878 | else |
| 6879 | if test "$ac_cv_type_double" = yes; then |
| 6880 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6881 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6882 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6883 | # This bug is HP SR number 8606223364. |
| 6884 | if test "$cross_compiling" = yes; then |
| 6885 | # Depending upon the size, compute the lo and hi bounds. |
| 6886 | cat >conftest.$ac_ext <<_ACEOF |
| 6887 | #line $LINENO "configure" |
| 6888 | #include "confdefs.h" |
| 6889 | $ac_includes_default |
| 6890 | #ifdef F77_DUMMY_MAIN |
| 6891 | # ifdef __cplusplus |
| 6892 | extern "C" |
| 6893 | # endif |
| 6894 | int F77_DUMMY_MAIN() { return 1; } |
| 6895 | #endif |
| 6896 | int |
| 6897 | main () |
| 6898 | { |
| 6899 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)]; |
| 6900 | test_array [0] = 0 |
| 6901 | |
| 6902 | ; |
| 6903 | return 0; |
| 6904 | } |
| 6905 | _ACEOF |
| 6906 | rm -f conftest.$ac_objext |
| 6907 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6908 | (eval $ac_compile) 2>&5 |
| 6909 | ac_status=$? |
| 6910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6911 | (exit $ac_status); } && |
| 6912 | { ac_try='test -s conftest.$ac_objext' |
| 6913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6914 | (eval $ac_try) 2>&5 |
| 6915 | ac_status=$? |
| 6916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6917 | (exit $ac_status); }; }; then |
| 6918 | ac_lo=0 ac_mid=0 |
| 6919 | while :; do |
| 6920 | cat >conftest.$ac_ext <<_ACEOF |
| 6921 | #line $LINENO "configure" |
| 6922 | #include "confdefs.h" |
| 6923 | $ac_includes_default |
| 6924 | #ifdef F77_DUMMY_MAIN |
| 6925 | # ifdef __cplusplus |
| 6926 | extern "C" |
| 6927 | # endif |
| 6928 | int F77_DUMMY_MAIN() { return 1; } |
| 6929 | #endif |
| 6930 | int |
| 6931 | main () |
| 6932 | { |
| 6933 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 6934 | test_array [0] = 0 |
| 6935 | |
| 6936 | ; |
| 6937 | return 0; |
| 6938 | } |
| 6939 | _ACEOF |
| 6940 | rm -f conftest.$ac_objext |
| 6941 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6942 | (eval $ac_compile) 2>&5 |
| 6943 | ac_status=$? |
| 6944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6945 | (exit $ac_status); } && |
| 6946 | { ac_try='test -s conftest.$ac_objext' |
| 6947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6948 | (eval $ac_try) 2>&5 |
| 6949 | ac_status=$? |
| 6950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6951 | (exit $ac_status); }; }; then |
| 6952 | ac_hi=$ac_mid; break |
| 6953 | else |
| 6954 | echo "$as_me: failed program was:" >&5 |
| 6955 | cat conftest.$ac_ext >&5 |
| 6956 | ac_lo=`expr $ac_mid + 1` |
| 6957 | if test $ac_lo -le $ac_mid; then |
| 6958 | ac_lo= ac_hi= |
| 6959 | break |
| 6960 | fi |
| 6961 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6962 | fi |
| 6963 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6964 | done |
| 6965 | else |
| 6966 | echo "$as_me: failed program was:" >&5 |
| 6967 | cat conftest.$ac_ext >&5 |
| 6968 | cat >conftest.$ac_ext <<_ACEOF |
| 6969 | #line $LINENO "configure" |
| 6970 | #include "confdefs.h" |
| 6971 | $ac_includes_default |
| 6972 | #ifdef F77_DUMMY_MAIN |
| 6973 | # ifdef __cplusplus |
| 6974 | extern "C" |
| 6975 | # endif |
| 6976 | int F77_DUMMY_MAIN() { return 1; } |
| 6977 | #endif |
| 6978 | int |
| 6979 | main () |
| 6980 | { |
| 6981 | static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)]; |
| 6982 | test_array [0] = 0 |
| 6983 | |
| 6984 | ; |
| 6985 | return 0; |
| 6986 | } |
| 6987 | _ACEOF |
| 6988 | rm -f conftest.$ac_objext |
| 6989 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6990 | (eval $ac_compile) 2>&5 |
| 6991 | ac_status=$? |
| 6992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6993 | (exit $ac_status); } && |
| 6994 | { ac_try='test -s conftest.$ac_objext' |
| 6995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6996 | (eval $ac_try) 2>&5 |
| 6997 | ac_status=$? |
| 6998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6999 | (exit $ac_status); }; }; then |
| 7000 | ac_hi=-1 ac_mid=-1 |
| 7001 | while :; do |
| 7002 | cat >conftest.$ac_ext <<_ACEOF |
| 7003 | #line $LINENO "configure" |
| 7004 | #include "confdefs.h" |
| 7005 | $ac_includes_default |
| 7006 | #ifdef F77_DUMMY_MAIN |
| 7007 | # ifdef __cplusplus |
| 7008 | extern "C" |
| 7009 | # endif |
| 7010 | int F77_DUMMY_MAIN() { return 1; } |
| 7011 | #endif |
| 7012 | int |
| 7013 | main () |
| 7014 | { |
| 7015 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)]; |
| 7016 | test_array [0] = 0 |
| 7017 | |
| 7018 | ; |
| 7019 | return 0; |
| 7020 | } |
| 7021 | _ACEOF |
| 7022 | rm -f conftest.$ac_objext |
| 7023 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7024 | (eval $ac_compile) 2>&5 |
| 7025 | ac_status=$? |
| 7026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7027 | (exit $ac_status); } && |
| 7028 | { ac_try='test -s conftest.$ac_objext' |
| 7029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7030 | (eval $ac_try) 2>&5 |
| 7031 | ac_status=$? |
| 7032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7033 | (exit $ac_status); }; }; then |
| 7034 | ac_lo=$ac_mid; break |
| 7035 | else |
| 7036 | echo "$as_me: failed program was:" >&5 |
| 7037 | cat conftest.$ac_ext >&5 |
| 7038 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7039 | if test $ac_mid -le $ac_hi; then |
| 7040 | ac_lo= ac_hi= |
| 7041 | break |
| 7042 | fi |
| 7043 | ac_mid=`expr 2 '*' $ac_mid` |
| 7044 | fi |
| 7045 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7046 | done |
| 7047 | else |
| 7048 | echo "$as_me: failed program was:" >&5 |
| 7049 | cat conftest.$ac_ext >&5 |
| 7050 | ac_lo= ac_hi= |
| 7051 | fi |
| 7052 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7053 | fi |
| 7054 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7055 | # Binary search between lo and hi bounds. |
| 7056 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7057 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7058 | cat >conftest.$ac_ext <<_ACEOF |
| 7059 | #line $LINENO "configure" |
| 7060 | #include "confdefs.h" |
| 7061 | $ac_includes_default |
| 7062 | #ifdef F77_DUMMY_MAIN |
| 7063 | # ifdef __cplusplus |
| 7064 | extern "C" |
| 7065 | # endif |
| 7066 | int F77_DUMMY_MAIN() { return 1; } |
| 7067 | #endif |
| 7068 | int |
| 7069 | main () |
| 7070 | { |
| 7071 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 7072 | test_array [0] = 0 |
| 7073 | |
| 7074 | ; |
| 7075 | return 0; |
| 7076 | } |
| 7077 | _ACEOF |
| 7078 | rm -f conftest.$ac_objext |
| 7079 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7080 | (eval $ac_compile) 2>&5 |
| 7081 | ac_status=$? |
| 7082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7083 | (exit $ac_status); } && |
| 7084 | { ac_try='test -s conftest.$ac_objext' |
| 7085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7086 | (eval $ac_try) 2>&5 |
| 7087 | ac_status=$? |
| 7088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7089 | (exit $ac_status); }; }; then |
| 7090 | ac_hi=$ac_mid |
| 7091 | else |
| 7092 | echo "$as_me: failed program was:" >&5 |
| 7093 | cat conftest.$ac_ext >&5 |
| 7094 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7095 | fi |
| 7096 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7097 | done |
| 7098 | case $ac_lo in |
| 7099 | ?*) ac_cv_sizeof_double=$ac_lo;; |
| 7100 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5 |
| 7101 | echo "$as_me: error: cannot compute sizeof (double), 77" >&2;} |
| 7102 | { (exit 1); exit 1; }; } ;; |
| 7103 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7104 | else |
| 7105 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7106 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7107 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7108 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7109 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7110 | cat >conftest.$ac_ext <<_ACEOF |
| 7111 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7112 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7113 | $ac_includes_default |
| 7114 | long longval () { return (long) (sizeof (double)); } |
| 7115 | unsigned long ulongval () { return (long) (sizeof (double)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7116 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7117 | #include <stdlib.h> |
| 7118 | #ifdef F77_DUMMY_MAIN |
| 7119 | # ifdef __cplusplus |
| 7120 | extern "C" |
| 7121 | # endif |
| 7122 | int F77_DUMMY_MAIN() { return 1; } |
| 7123 | #endif |
| 7124 | int |
| 7125 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7126 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7127 | |
| 7128 | FILE *f = fopen ("conftest.val", "w"); |
| 7129 | if (! f) |
| 7130 | exit (1); |
| 7131 | if (((long) (sizeof (double))) < 0) |
| 7132 | { |
| 7133 | long i = longval (); |
| 7134 | if (i != ((long) (sizeof (double)))) |
| 7135 | exit (1); |
| 7136 | fprintf (f, "%ld\n", i); |
| 7137 | } |
| 7138 | else |
| 7139 | { |
| 7140 | unsigned long i = ulongval (); |
| 7141 | if (i != ((long) (sizeof (double)))) |
| 7142 | exit (1); |
| 7143 | fprintf (f, "%lu\n", i); |
| 7144 | } |
| 7145 | exit (ferror (f) || fclose (f) != 0); |
| 7146 | |
| 7147 | ; |
| 7148 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7149 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7150 | _ACEOF |
| 7151 | rm -f conftest$ac_exeext |
| 7152 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7153 | (eval $ac_link) 2>&5 |
| 7154 | ac_status=$? |
| 7155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7156 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7158 | (eval $ac_try) 2>&5 |
| 7159 | ac_status=$? |
| 7160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7161 | (exit $ac_status); }; }; then |
| 7162 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7163 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7164 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7165 | echo "$as_me: failed program was:" >&5 |
| 7166 | cat conftest.$ac_ext >&5 |
| 7167 | ( exit $ac_status ) |
| 7168 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5 |
| 7169 | echo "$as_me: error: cannot compute sizeof (double), 77" >&2;} |
| 7170 | { (exit 1); exit 1; }; } |
| 7171 | fi |
| 7172 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7173 | fi |
| 7174 | fi |
| 7175 | rm -f conftest.val |
| 7176 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7177 | ac_cv_sizeof_double=0 |
| 7178 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7179 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7180 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 7181 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6 |
| 7182 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7183 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7184 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7185 | |
| 7186 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7187 | echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 7188 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6 |
| 7189 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 7190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7191 | else |
| 7192 | cat >conftest.$ac_ext <<_ACEOF |
| 7193 | #line $LINENO "configure" |
| 7194 | #include "confdefs.h" |
| 7195 | $ac_includes_default |
| 7196 | #ifdef F77_DUMMY_MAIN |
| 7197 | # ifdef __cplusplus |
| 7198 | extern "C" |
| 7199 | # endif |
| 7200 | int F77_DUMMY_MAIN() { return 1; } |
| 7201 | #endif |
| 7202 | int |
| 7203 | main () |
| 7204 | { |
| 7205 | if ((fpos_t *) 0) |
| 7206 | return 0; |
| 7207 | if (sizeof (fpos_t)) |
| 7208 | return 0; |
| 7209 | ; |
| 7210 | return 0; |
| 7211 | } |
| 7212 | _ACEOF |
| 7213 | rm -f conftest.$ac_objext |
| 7214 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7215 | (eval $ac_compile) 2>&5 |
| 7216 | ac_status=$? |
| 7217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7218 | (exit $ac_status); } && |
| 7219 | { ac_try='test -s conftest.$ac_objext' |
| 7220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7221 | (eval $ac_try) 2>&5 |
| 7222 | ac_status=$? |
| 7223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7224 | (exit $ac_status); }; }; then |
| 7225 | ac_cv_type_fpos_t=yes |
| 7226 | else |
| 7227 | echo "$as_me: failed program was:" >&5 |
| 7228 | cat conftest.$ac_ext >&5 |
| 7229 | ac_cv_type_fpos_t=no |
| 7230 | fi |
| 7231 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7232 | fi |
| 7233 | echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 7234 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6 |
| 7235 | |
| 7236 | echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 7237 | echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6 |
| 7238 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| 7239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7240 | else |
| 7241 | if test "$ac_cv_type_fpos_t" = yes; then |
| 7242 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7243 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7244 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7245 | # This bug is HP SR number 8606223364. |
| 7246 | if test "$cross_compiling" = yes; then |
| 7247 | # Depending upon the size, compute the lo and hi bounds. |
| 7248 | cat >conftest.$ac_ext <<_ACEOF |
| 7249 | #line $LINENO "configure" |
| 7250 | #include "confdefs.h" |
| 7251 | $ac_includes_default |
| 7252 | #ifdef F77_DUMMY_MAIN |
| 7253 | # ifdef __cplusplus |
| 7254 | extern "C" |
| 7255 | # endif |
| 7256 | int F77_DUMMY_MAIN() { return 1; } |
| 7257 | #endif |
| 7258 | int |
| 7259 | main () |
| 7260 | { |
| 7261 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)]; |
| 7262 | test_array [0] = 0 |
| 7263 | |
| 7264 | ; |
| 7265 | return 0; |
| 7266 | } |
| 7267 | _ACEOF |
| 7268 | rm -f conftest.$ac_objext |
| 7269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7270 | (eval $ac_compile) 2>&5 |
| 7271 | ac_status=$? |
| 7272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7273 | (exit $ac_status); } && |
| 7274 | { ac_try='test -s conftest.$ac_objext' |
| 7275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7276 | (eval $ac_try) 2>&5 |
| 7277 | ac_status=$? |
| 7278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7279 | (exit $ac_status); }; }; then |
| 7280 | ac_lo=0 ac_mid=0 |
| 7281 | while :; do |
| 7282 | cat >conftest.$ac_ext <<_ACEOF |
| 7283 | #line $LINENO "configure" |
| 7284 | #include "confdefs.h" |
| 7285 | $ac_includes_default |
| 7286 | #ifdef F77_DUMMY_MAIN |
| 7287 | # ifdef __cplusplus |
| 7288 | extern "C" |
| 7289 | # endif |
| 7290 | int F77_DUMMY_MAIN() { return 1; } |
| 7291 | #endif |
| 7292 | int |
| 7293 | main () |
| 7294 | { |
| 7295 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 7296 | test_array [0] = 0 |
| 7297 | |
| 7298 | ; |
| 7299 | return 0; |
| 7300 | } |
| 7301 | _ACEOF |
| 7302 | rm -f conftest.$ac_objext |
| 7303 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7304 | (eval $ac_compile) 2>&5 |
| 7305 | ac_status=$? |
| 7306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7307 | (exit $ac_status); } && |
| 7308 | { ac_try='test -s conftest.$ac_objext' |
| 7309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7310 | (eval $ac_try) 2>&5 |
| 7311 | ac_status=$? |
| 7312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7313 | (exit $ac_status); }; }; then |
| 7314 | ac_hi=$ac_mid; break |
| 7315 | else |
| 7316 | echo "$as_me: failed program was:" >&5 |
| 7317 | cat conftest.$ac_ext >&5 |
| 7318 | ac_lo=`expr $ac_mid + 1` |
| 7319 | if test $ac_lo -le $ac_mid; then |
| 7320 | ac_lo= ac_hi= |
| 7321 | break |
| 7322 | fi |
| 7323 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7324 | fi |
| 7325 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7326 | done |
| 7327 | else |
| 7328 | echo "$as_me: failed program was:" >&5 |
| 7329 | cat conftest.$ac_ext >&5 |
| 7330 | cat >conftest.$ac_ext <<_ACEOF |
| 7331 | #line $LINENO "configure" |
| 7332 | #include "confdefs.h" |
| 7333 | $ac_includes_default |
| 7334 | #ifdef F77_DUMMY_MAIN |
| 7335 | # ifdef __cplusplus |
| 7336 | extern "C" |
| 7337 | # endif |
| 7338 | int F77_DUMMY_MAIN() { return 1; } |
| 7339 | #endif |
| 7340 | int |
| 7341 | main () |
| 7342 | { |
| 7343 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)]; |
| 7344 | test_array [0] = 0 |
| 7345 | |
| 7346 | ; |
| 7347 | return 0; |
| 7348 | } |
| 7349 | _ACEOF |
| 7350 | rm -f conftest.$ac_objext |
| 7351 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7352 | (eval $ac_compile) 2>&5 |
| 7353 | ac_status=$? |
| 7354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7355 | (exit $ac_status); } && |
| 7356 | { ac_try='test -s conftest.$ac_objext' |
| 7357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7358 | (eval $ac_try) 2>&5 |
| 7359 | ac_status=$? |
| 7360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7361 | (exit $ac_status); }; }; then |
| 7362 | ac_hi=-1 ac_mid=-1 |
| 7363 | while :; do |
| 7364 | cat >conftest.$ac_ext <<_ACEOF |
| 7365 | #line $LINENO "configure" |
| 7366 | #include "confdefs.h" |
| 7367 | $ac_includes_default |
| 7368 | #ifdef F77_DUMMY_MAIN |
| 7369 | # ifdef __cplusplus |
| 7370 | extern "C" |
| 7371 | # endif |
| 7372 | int F77_DUMMY_MAIN() { return 1; } |
| 7373 | #endif |
| 7374 | int |
| 7375 | main () |
| 7376 | { |
| 7377 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)]; |
| 7378 | test_array [0] = 0 |
| 7379 | |
| 7380 | ; |
| 7381 | return 0; |
| 7382 | } |
| 7383 | _ACEOF |
| 7384 | rm -f conftest.$ac_objext |
| 7385 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7386 | (eval $ac_compile) 2>&5 |
| 7387 | ac_status=$? |
| 7388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7389 | (exit $ac_status); } && |
| 7390 | { ac_try='test -s conftest.$ac_objext' |
| 7391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7392 | (eval $ac_try) 2>&5 |
| 7393 | ac_status=$? |
| 7394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7395 | (exit $ac_status); }; }; then |
| 7396 | ac_lo=$ac_mid; break |
| 7397 | else |
| 7398 | echo "$as_me: failed program was:" >&5 |
| 7399 | cat conftest.$ac_ext >&5 |
| 7400 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7401 | if test $ac_mid -le $ac_hi; then |
| 7402 | ac_lo= ac_hi= |
| 7403 | break |
| 7404 | fi |
| 7405 | ac_mid=`expr 2 '*' $ac_mid` |
| 7406 | fi |
| 7407 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7408 | done |
| 7409 | else |
| 7410 | echo "$as_me: failed program was:" >&5 |
| 7411 | cat conftest.$ac_ext >&5 |
| 7412 | ac_lo= ac_hi= |
| 7413 | fi |
| 7414 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7415 | fi |
| 7416 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7417 | # Binary search between lo and hi bounds. |
| 7418 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7419 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7420 | cat >conftest.$ac_ext <<_ACEOF |
| 7421 | #line $LINENO "configure" |
| 7422 | #include "confdefs.h" |
| 7423 | $ac_includes_default |
| 7424 | #ifdef F77_DUMMY_MAIN |
| 7425 | # ifdef __cplusplus |
| 7426 | extern "C" |
| 7427 | # endif |
| 7428 | int F77_DUMMY_MAIN() { return 1; } |
| 7429 | #endif |
| 7430 | int |
| 7431 | main () |
| 7432 | { |
| 7433 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 7434 | test_array [0] = 0 |
| 7435 | |
| 7436 | ; |
| 7437 | return 0; |
| 7438 | } |
| 7439 | _ACEOF |
| 7440 | rm -f conftest.$ac_objext |
| 7441 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7442 | (eval $ac_compile) 2>&5 |
| 7443 | ac_status=$? |
| 7444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7445 | (exit $ac_status); } && |
| 7446 | { ac_try='test -s conftest.$ac_objext' |
| 7447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7448 | (eval $ac_try) 2>&5 |
| 7449 | ac_status=$? |
| 7450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7451 | (exit $ac_status); }; }; then |
| 7452 | ac_hi=$ac_mid |
| 7453 | else |
| 7454 | echo "$as_me: failed program was:" >&5 |
| 7455 | cat conftest.$ac_ext >&5 |
| 7456 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7457 | fi |
| 7458 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7459 | done |
| 7460 | case $ac_lo in |
| 7461 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
| 7462 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5 |
| 7463 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;} |
| 7464 | { (exit 1); exit 1; }; } ;; |
| 7465 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7466 | else |
| 7467 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7468 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7469 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7470 | { (exit 1); exit 1; }; } |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7471 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7472 | cat >conftest.$ac_ext <<_ACEOF |
| 7473 | #line $LINENO "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7474 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7475 | $ac_includes_default |
| 7476 | long longval () { return (long) (sizeof (fpos_t)); } |
| 7477 | unsigned long ulongval () { return (long) (sizeof (fpos_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7478 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7479 | #include <stdlib.h> |
| 7480 | #ifdef F77_DUMMY_MAIN |
| 7481 | # ifdef __cplusplus |
| 7482 | extern "C" |
| 7483 | # endif |
| 7484 | int F77_DUMMY_MAIN() { return 1; } |
| 7485 | #endif |
| 7486 | int |
| 7487 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7488 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7489 | |
| 7490 | FILE *f = fopen ("conftest.val", "w"); |
| 7491 | if (! f) |
| 7492 | exit (1); |
| 7493 | if (((long) (sizeof (fpos_t))) < 0) |
| 7494 | { |
| 7495 | long i = longval (); |
| 7496 | if (i != ((long) (sizeof (fpos_t)))) |
| 7497 | exit (1); |
| 7498 | fprintf (f, "%ld\n", i); |
| 7499 | } |
| 7500 | else |
| 7501 | { |
| 7502 | unsigned long i = ulongval (); |
| 7503 | if (i != ((long) (sizeof (fpos_t)))) |
| 7504 | exit (1); |
| 7505 | fprintf (f, "%lu\n", i); |
| 7506 | } |
| 7507 | exit (ferror (f) || fclose (f) != 0); |
| 7508 | |
| 7509 | ; |
| 7510 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7511 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7512 | _ACEOF |
| 7513 | rm -f conftest$ac_exeext |
| 7514 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7515 | (eval $ac_link) 2>&5 |
| 7516 | ac_status=$? |
| 7517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7518 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7520 | (eval $ac_try) 2>&5 |
| 7521 | ac_status=$? |
| 7522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7523 | (exit $ac_status); }; }; then |
| 7524 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7525 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7526 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7527 | echo "$as_me: failed program was:" >&5 |
| 7528 | cat conftest.$ac_ext >&5 |
| 7529 | ( exit $ac_status ) |
| 7530 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5 |
| 7531 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;} |
| 7532 | { (exit 1); exit 1; }; } |
| 7533 | fi |
| 7534 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7535 | fi |
| 7536 | fi |
| 7537 | rm -f conftest.val |
| 7538 | else |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7539 | ac_cv_sizeof_fpos_t=0 |
| 7540 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7541 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7542 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 7543 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6 |
| 7544 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7545 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7546 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7547 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7548 | |
| 7549 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7550 | echo "$as_me:$LINENO: checking for long long support" >&5 |
| 7551 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7552 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7553 | cat >conftest.$ac_ext <<_ACEOF |
| 7554 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7555 | #include "confdefs.h" |
| 7556 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7557 | #ifdef F77_DUMMY_MAIN |
| 7558 | # ifdef __cplusplus |
| 7559 | extern "C" |
| 7560 | # endif |
| 7561 | int F77_DUMMY_MAIN() { return 1; } |
| 7562 | #endif |
| 7563 | int |
| 7564 | main () |
| 7565 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7566 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7567 | ; |
| 7568 | return 0; |
| 7569 | } |
| 7570 | _ACEOF |
| 7571 | rm -f conftest.$ac_objext |
| 7572 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7573 | (eval $ac_compile) 2>&5 |
| 7574 | ac_status=$? |
| 7575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7576 | (exit $ac_status); } && |
| 7577 | { ac_try='test -s conftest.$ac_objext' |
| 7578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7579 | (eval $ac_try) 2>&5 |
| 7580 | ac_status=$? |
| 7581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7582 | (exit $ac_status); }; }; then |
| 7583 | |
| 7584 | |
| 7585 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7586 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7587 | _ACEOF |
| 7588 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 7589 | have_long_long=yes |
| 7590 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7591 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7592 | echo "$as_me: failed program was:" >&5 |
| 7593 | cat conftest.$ac_ext >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7594 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7595 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7596 | echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 7597 | echo "${ECHO_T}$have_long_long" >&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 7598 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7599 | echo "$as_me:$LINENO: checking for long long" >&5 |
| 7600 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 7601 | if test "${ac_cv_type_long_long+set}" = set; then |
| 7602 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7603 | else |
| 7604 | cat >conftest.$ac_ext <<_ACEOF |
| 7605 | #line $LINENO "configure" |
| 7606 | #include "confdefs.h" |
| 7607 | $ac_includes_default |
| 7608 | #ifdef F77_DUMMY_MAIN |
| 7609 | # ifdef __cplusplus |
| 7610 | extern "C" |
| 7611 | # endif |
| 7612 | int F77_DUMMY_MAIN() { return 1; } |
| 7613 | #endif |
| 7614 | int |
| 7615 | main () |
| 7616 | { |
| 7617 | if ((long long *) 0) |
| 7618 | return 0; |
| 7619 | if (sizeof (long long)) |
| 7620 | return 0; |
| 7621 | ; |
| 7622 | return 0; |
| 7623 | } |
| 7624 | _ACEOF |
| 7625 | rm -f conftest.$ac_objext |
| 7626 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7627 | (eval $ac_compile) 2>&5 |
| 7628 | ac_status=$? |
| 7629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7630 | (exit $ac_status); } && |
| 7631 | { ac_try='test -s conftest.$ac_objext' |
| 7632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7633 | (eval $ac_try) 2>&5 |
| 7634 | ac_status=$? |
| 7635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7636 | (exit $ac_status); }; }; then |
| 7637 | ac_cv_type_long_long=yes |
| 7638 | else |
| 7639 | echo "$as_me: failed program was:" >&5 |
| 7640 | cat conftest.$ac_ext >&5 |
| 7641 | ac_cv_type_long_long=no |
| 7642 | fi |
| 7643 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7644 | fi |
| 7645 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 7646 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 7647 | |
| 7648 | echo "$as_me:$LINENO: checking size of long long" >&5 |
| 7649 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 7650 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 7651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7652 | else |
| 7653 | if test "$ac_cv_type_long_long" = yes; then |
| 7654 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7655 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7656 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7657 | # This bug is HP SR number 8606223364. |
| 7658 | if test "$cross_compiling" = yes; then |
| 7659 | # Depending upon the size, compute the lo and hi bounds. |
| 7660 | cat >conftest.$ac_ext <<_ACEOF |
| 7661 | #line $LINENO "configure" |
| 7662 | #include "confdefs.h" |
| 7663 | $ac_includes_default |
| 7664 | #ifdef F77_DUMMY_MAIN |
| 7665 | # ifdef __cplusplus |
| 7666 | extern "C" |
| 7667 | # endif |
| 7668 | int F77_DUMMY_MAIN() { return 1; } |
| 7669 | #endif |
| 7670 | int |
| 7671 | main () |
| 7672 | { |
| 7673 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
| 7674 | test_array [0] = 0 |
| 7675 | |
| 7676 | ; |
| 7677 | return 0; |
| 7678 | } |
| 7679 | _ACEOF |
| 7680 | rm -f conftest.$ac_objext |
| 7681 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7682 | (eval $ac_compile) 2>&5 |
| 7683 | ac_status=$? |
| 7684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7685 | (exit $ac_status); } && |
| 7686 | { ac_try='test -s conftest.$ac_objext' |
| 7687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7688 | (eval $ac_try) 2>&5 |
| 7689 | ac_status=$? |
| 7690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7691 | (exit $ac_status); }; }; then |
| 7692 | ac_lo=0 ac_mid=0 |
| 7693 | while :; do |
| 7694 | cat >conftest.$ac_ext <<_ACEOF |
| 7695 | #line $LINENO "configure" |
| 7696 | #include "confdefs.h" |
| 7697 | $ac_includes_default |
| 7698 | #ifdef F77_DUMMY_MAIN |
| 7699 | # ifdef __cplusplus |
| 7700 | extern "C" |
| 7701 | # endif |
| 7702 | int F77_DUMMY_MAIN() { return 1; } |
| 7703 | #endif |
| 7704 | int |
| 7705 | main () |
| 7706 | { |
| 7707 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 7708 | test_array [0] = 0 |
| 7709 | |
| 7710 | ; |
| 7711 | return 0; |
| 7712 | } |
| 7713 | _ACEOF |
| 7714 | rm -f conftest.$ac_objext |
| 7715 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7716 | (eval $ac_compile) 2>&5 |
| 7717 | ac_status=$? |
| 7718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7719 | (exit $ac_status); } && |
| 7720 | { ac_try='test -s conftest.$ac_objext' |
| 7721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7722 | (eval $ac_try) 2>&5 |
| 7723 | ac_status=$? |
| 7724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7725 | (exit $ac_status); }; }; then |
| 7726 | ac_hi=$ac_mid; break |
| 7727 | else |
| 7728 | echo "$as_me: failed program was:" >&5 |
| 7729 | cat conftest.$ac_ext >&5 |
| 7730 | ac_lo=`expr $ac_mid + 1` |
| 7731 | if test $ac_lo -le $ac_mid; then |
| 7732 | ac_lo= ac_hi= |
| 7733 | break |
| 7734 | fi |
| 7735 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7736 | fi |
| 7737 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7738 | done |
| 7739 | else |
| 7740 | echo "$as_me: failed program was:" >&5 |
| 7741 | cat conftest.$ac_ext >&5 |
| 7742 | cat >conftest.$ac_ext <<_ACEOF |
| 7743 | #line $LINENO "configure" |
| 7744 | #include "confdefs.h" |
| 7745 | $ac_includes_default |
| 7746 | #ifdef F77_DUMMY_MAIN |
| 7747 | # ifdef __cplusplus |
| 7748 | extern "C" |
| 7749 | # endif |
| 7750 | int F77_DUMMY_MAIN() { return 1; } |
| 7751 | #endif |
| 7752 | int |
| 7753 | main () |
| 7754 | { |
| 7755 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| 7756 | test_array [0] = 0 |
| 7757 | |
| 7758 | ; |
| 7759 | return 0; |
| 7760 | } |
| 7761 | _ACEOF |
| 7762 | rm -f conftest.$ac_objext |
| 7763 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7764 | (eval $ac_compile) 2>&5 |
| 7765 | ac_status=$? |
| 7766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7767 | (exit $ac_status); } && |
| 7768 | { ac_try='test -s conftest.$ac_objext' |
| 7769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7770 | (eval $ac_try) 2>&5 |
| 7771 | ac_status=$? |
| 7772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7773 | (exit $ac_status); }; }; then |
| 7774 | ac_hi=-1 ac_mid=-1 |
| 7775 | while :; do |
| 7776 | cat >conftest.$ac_ext <<_ACEOF |
| 7777 | #line $LINENO "configure" |
| 7778 | #include "confdefs.h" |
| 7779 | $ac_includes_default |
| 7780 | #ifdef F77_DUMMY_MAIN |
| 7781 | # ifdef __cplusplus |
| 7782 | extern "C" |
| 7783 | # endif |
| 7784 | int F77_DUMMY_MAIN() { return 1; } |
| 7785 | #endif |
| 7786 | int |
| 7787 | main () |
| 7788 | { |
| 7789 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| 7790 | test_array [0] = 0 |
| 7791 | |
| 7792 | ; |
| 7793 | return 0; |
| 7794 | } |
| 7795 | _ACEOF |
| 7796 | rm -f conftest.$ac_objext |
| 7797 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7798 | (eval $ac_compile) 2>&5 |
| 7799 | ac_status=$? |
| 7800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7801 | (exit $ac_status); } && |
| 7802 | { ac_try='test -s conftest.$ac_objext' |
| 7803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7804 | (eval $ac_try) 2>&5 |
| 7805 | ac_status=$? |
| 7806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7807 | (exit $ac_status); }; }; then |
| 7808 | ac_lo=$ac_mid; break |
| 7809 | else |
| 7810 | echo "$as_me: failed program was:" >&5 |
| 7811 | cat conftest.$ac_ext >&5 |
| 7812 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7813 | if test $ac_mid -le $ac_hi; then |
| 7814 | ac_lo= ac_hi= |
| 7815 | break |
| 7816 | fi |
| 7817 | ac_mid=`expr 2 '*' $ac_mid` |
| 7818 | fi |
| 7819 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7820 | done |
| 7821 | else |
| 7822 | echo "$as_me: failed program was:" >&5 |
| 7823 | cat conftest.$ac_ext >&5 |
| 7824 | ac_lo= ac_hi= |
| 7825 | fi |
| 7826 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7827 | fi |
| 7828 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7829 | # Binary search between lo and hi bounds. |
| 7830 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7831 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7832 | cat >conftest.$ac_ext <<_ACEOF |
| 7833 | #line $LINENO "configure" |
| 7834 | #include "confdefs.h" |
| 7835 | $ac_includes_default |
| 7836 | #ifdef F77_DUMMY_MAIN |
| 7837 | # ifdef __cplusplus |
| 7838 | extern "C" |
| 7839 | # endif |
| 7840 | int F77_DUMMY_MAIN() { return 1; } |
| 7841 | #endif |
| 7842 | int |
| 7843 | main () |
| 7844 | { |
| 7845 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 7846 | test_array [0] = 0 |
| 7847 | |
| 7848 | ; |
| 7849 | return 0; |
| 7850 | } |
| 7851 | _ACEOF |
| 7852 | rm -f conftest.$ac_objext |
| 7853 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7854 | (eval $ac_compile) 2>&5 |
| 7855 | ac_status=$? |
| 7856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7857 | (exit $ac_status); } && |
| 7858 | { ac_try='test -s conftest.$ac_objext' |
| 7859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7860 | (eval $ac_try) 2>&5 |
| 7861 | ac_status=$? |
| 7862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7863 | (exit $ac_status); }; }; then |
| 7864 | ac_hi=$ac_mid |
| 7865 | else |
| 7866 | echo "$as_me: failed program was:" >&5 |
| 7867 | cat conftest.$ac_ext >&5 |
| 7868 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7869 | fi |
| 7870 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7871 | done |
| 7872 | case $ac_lo in |
| 7873 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
| 7874 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 7875 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 7876 | { (exit 1); exit 1; }; } ;; |
| 7877 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7878 | else |
| 7879 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7880 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7881 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7882 | { (exit 1); exit 1; }; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7883 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7884 | cat >conftest.$ac_ext <<_ACEOF |
| 7885 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7886 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7887 | $ac_includes_default |
| 7888 | long longval () { return (long) (sizeof (long long)); } |
| 7889 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7890 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7891 | #include <stdlib.h> |
| 7892 | #ifdef F77_DUMMY_MAIN |
| 7893 | # ifdef __cplusplus |
| 7894 | extern "C" |
| 7895 | # endif |
| 7896 | int F77_DUMMY_MAIN() { return 1; } |
| 7897 | #endif |
| 7898 | int |
| 7899 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7900 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7901 | |
| 7902 | FILE *f = fopen ("conftest.val", "w"); |
| 7903 | if (! f) |
| 7904 | exit (1); |
| 7905 | if (((long) (sizeof (long long))) < 0) |
| 7906 | { |
| 7907 | long i = longval (); |
| 7908 | if (i != ((long) (sizeof (long long)))) |
| 7909 | exit (1); |
| 7910 | fprintf (f, "%ld\n", i); |
| 7911 | } |
| 7912 | else |
| 7913 | { |
| 7914 | unsigned long i = ulongval (); |
| 7915 | if (i != ((long) (sizeof (long long)))) |
| 7916 | exit (1); |
| 7917 | fprintf (f, "%lu\n", i); |
| 7918 | } |
| 7919 | exit (ferror (f) || fclose (f) != 0); |
| 7920 | |
| 7921 | ; |
| 7922 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7923 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7924 | _ACEOF |
| 7925 | rm -f conftest$ac_exeext |
| 7926 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7927 | (eval $ac_link) 2>&5 |
| 7928 | ac_status=$? |
| 7929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7930 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7932 | (eval $ac_try) 2>&5 |
| 7933 | ac_status=$? |
| 7934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7935 | (exit $ac_status); }; }; then |
| 7936 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7937 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7938 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7939 | echo "$as_me: failed program was:" >&5 |
| 7940 | cat conftest.$ac_ext >&5 |
| 7941 | ( exit $ac_status ) |
| 7942 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 7943 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 7944 | { (exit 1); exit 1; }; } |
| 7945 | fi |
| 7946 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7947 | fi |
| 7948 | fi |
| 7949 | rm -f conftest.val |
| 7950 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7951 | ac_cv_sizeof_long_long=0 |
| 7952 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7953 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7954 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 7955 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
| 7956 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7957 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7958 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7959 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7960 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 7961 | fi |
| 7962 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7963 | echo "$as_me:$LINENO: checking for uintptr_t support" >&5 |
| 7964 | echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7965 | have_uintptr_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7966 | cat >conftest.$ac_ext <<_ACEOF |
| 7967 | #line $LINENO "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7968 | #include "confdefs.h" |
| 7969 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7970 | #ifdef F77_DUMMY_MAIN |
| 7971 | # ifdef __cplusplus |
| 7972 | extern "C" |
| 7973 | # endif |
| 7974 | int F77_DUMMY_MAIN() { return 1; } |
| 7975 | #endif |
| 7976 | int |
| 7977 | main () |
| 7978 | { |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7979 | uintptr_t x; x = (uintptr_t)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7980 | ; |
| 7981 | return 0; |
| 7982 | } |
| 7983 | _ACEOF |
| 7984 | rm -f conftest.$ac_objext |
| 7985 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7986 | (eval $ac_compile) 2>&5 |
| 7987 | ac_status=$? |
| 7988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7989 | (exit $ac_status); } && |
| 7990 | { ac_try='test -s conftest.$ac_objext' |
| 7991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7992 | (eval $ac_try) 2>&5 |
| 7993 | ac_status=$? |
| 7994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7995 | (exit $ac_status); }; }; then |
| 7996 | |
| 7997 | |
| 7998 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 7999 | #define HAVE_UINTPTR_T 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8000 | _ACEOF |
| 8001 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8002 | have_uintptr_t=yes |
| 8003 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8004 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8005 | echo "$as_me: failed program was:" >&5 |
| 8006 | cat conftest.$ac_ext >&5 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8007 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8008 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8009 | echo "$as_me:$LINENO: result: $have_uintptr_t" >&5 |
| 8010 | echo "${ECHO_T}$have_uintptr_t" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8011 | if test "$have_uintptr_t" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8012 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 8013 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 8014 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 8015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8016 | else |
| 8017 | cat >conftest.$ac_ext <<_ACEOF |
| 8018 | #line $LINENO "configure" |
| 8019 | #include "confdefs.h" |
| 8020 | $ac_includes_default |
| 8021 | #ifdef F77_DUMMY_MAIN |
| 8022 | # ifdef __cplusplus |
| 8023 | extern "C" |
| 8024 | # endif |
| 8025 | int F77_DUMMY_MAIN() { return 1; } |
| 8026 | #endif |
| 8027 | int |
| 8028 | main () |
| 8029 | { |
| 8030 | if ((uintptr_t *) 0) |
| 8031 | return 0; |
| 8032 | if (sizeof (uintptr_t)) |
| 8033 | return 0; |
| 8034 | ; |
| 8035 | return 0; |
| 8036 | } |
| 8037 | _ACEOF |
| 8038 | rm -f conftest.$ac_objext |
| 8039 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8040 | (eval $ac_compile) 2>&5 |
| 8041 | ac_status=$? |
| 8042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8043 | (exit $ac_status); } && |
| 8044 | { ac_try='test -s conftest.$ac_objext' |
| 8045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8046 | (eval $ac_try) 2>&5 |
| 8047 | ac_status=$? |
| 8048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8049 | (exit $ac_status); }; }; then |
| 8050 | ac_cv_type_uintptr_t=yes |
| 8051 | else |
| 8052 | echo "$as_me: failed program was:" >&5 |
| 8053 | cat conftest.$ac_ext >&5 |
| 8054 | ac_cv_type_uintptr_t=no |
| 8055 | fi |
| 8056 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8057 | fi |
| 8058 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 8059 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 8060 | |
| 8061 | echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 8062 | echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6 |
| 8063 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| 8064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8065 | else |
| 8066 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 8067 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8068 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8069 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8070 | # This bug is HP SR number 8606223364. |
| 8071 | if test "$cross_compiling" = yes; then |
| 8072 | # Depending upon the size, compute the lo and hi bounds. |
| 8073 | cat >conftest.$ac_ext <<_ACEOF |
| 8074 | #line $LINENO "configure" |
| 8075 | #include "confdefs.h" |
| 8076 | $ac_includes_default |
| 8077 | #ifdef F77_DUMMY_MAIN |
| 8078 | # ifdef __cplusplus |
| 8079 | extern "C" |
| 8080 | # endif |
| 8081 | int F77_DUMMY_MAIN() { return 1; } |
| 8082 | #endif |
| 8083 | int |
| 8084 | main () |
| 8085 | { |
| 8086 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)]; |
| 8087 | test_array [0] = 0 |
| 8088 | |
| 8089 | ; |
| 8090 | return 0; |
| 8091 | } |
| 8092 | _ACEOF |
| 8093 | rm -f conftest.$ac_objext |
| 8094 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8095 | (eval $ac_compile) 2>&5 |
| 8096 | ac_status=$? |
| 8097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8098 | (exit $ac_status); } && |
| 8099 | { ac_try='test -s conftest.$ac_objext' |
| 8100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8101 | (eval $ac_try) 2>&5 |
| 8102 | ac_status=$? |
| 8103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8104 | (exit $ac_status); }; }; then |
| 8105 | ac_lo=0 ac_mid=0 |
| 8106 | while :; do |
| 8107 | cat >conftest.$ac_ext <<_ACEOF |
| 8108 | #line $LINENO "configure" |
| 8109 | #include "confdefs.h" |
| 8110 | $ac_includes_default |
| 8111 | #ifdef F77_DUMMY_MAIN |
| 8112 | # ifdef __cplusplus |
| 8113 | extern "C" |
| 8114 | # endif |
| 8115 | int F77_DUMMY_MAIN() { return 1; } |
| 8116 | #endif |
| 8117 | int |
| 8118 | main () |
| 8119 | { |
| 8120 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 8121 | test_array [0] = 0 |
| 8122 | |
| 8123 | ; |
| 8124 | return 0; |
| 8125 | } |
| 8126 | _ACEOF |
| 8127 | rm -f conftest.$ac_objext |
| 8128 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8129 | (eval $ac_compile) 2>&5 |
| 8130 | ac_status=$? |
| 8131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8132 | (exit $ac_status); } && |
| 8133 | { ac_try='test -s conftest.$ac_objext' |
| 8134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8135 | (eval $ac_try) 2>&5 |
| 8136 | ac_status=$? |
| 8137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8138 | (exit $ac_status); }; }; then |
| 8139 | ac_hi=$ac_mid; break |
| 8140 | else |
| 8141 | echo "$as_me: failed program was:" >&5 |
| 8142 | cat conftest.$ac_ext >&5 |
| 8143 | ac_lo=`expr $ac_mid + 1` |
| 8144 | if test $ac_lo -le $ac_mid; then |
| 8145 | ac_lo= ac_hi= |
| 8146 | break |
| 8147 | fi |
| 8148 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8149 | fi |
| 8150 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8151 | done |
| 8152 | else |
| 8153 | echo "$as_me: failed program was:" >&5 |
| 8154 | cat conftest.$ac_ext >&5 |
| 8155 | cat >conftest.$ac_ext <<_ACEOF |
| 8156 | #line $LINENO "configure" |
| 8157 | #include "confdefs.h" |
| 8158 | $ac_includes_default |
| 8159 | #ifdef F77_DUMMY_MAIN |
| 8160 | # ifdef __cplusplus |
| 8161 | extern "C" |
| 8162 | # endif |
| 8163 | int F77_DUMMY_MAIN() { return 1; } |
| 8164 | #endif |
| 8165 | int |
| 8166 | main () |
| 8167 | { |
| 8168 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)]; |
| 8169 | test_array [0] = 0 |
| 8170 | |
| 8171 | ; |
| 8172 | return 0; |
| 8173 | } |
| 8174 | _ACEOF |
| 8175 | rm -f conftest.$ac_objext |
| 8176 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8177 | (eval $ac_compile) 2>&5 |
| 8178 | ac_status=$? |
| 8179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8180 | (exit $ac_status); } && |
| 8181 | { ac_try='test -s conftest.$ac_objext' |
| 8182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8183 | (eval $ac_try) 2>&5 |
| 8184 | ac_status=$? |
| 8185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8186 | (exit $ac_status); }; }; then |
| 8187 | ac_hi=-1 ac_mid=-1 |
| 8188 | while :; do |
| 8189 | cat >conftest.$ac_ext <<_ACEOF |
| 8190 | #line $LINENO "configure" |
| 8191 | #include "confdefs.h" |
| 8192 | $ac_includes_default |
| 8193 | #ifdef F77_DUMMY_MAIN |
| 8194 | # ifdef __cplusplus |
| 8195 | extern "C" |
| 8196 | # endif |
| 8197 | int F77_DUMMY_MAIN() { return 1; } |
| 8198 | #endif |
| 8199 | int |
| 8200 | main () |
| 8201 | { |
| 8202 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)]; |
| 8203 | test_array [0] = 0 |
| 8204 | |
| 8205 | ; |
| 8206 | return 0; |
| 8207 | } |
| 8208 | _ACEOF |
| 8209 | rm -f conftest.$ac_objext |
| 8210 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8211 | (eval $ac_compile) 2>&5 |
| 8212 | ac_status=$? |
| 8213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8214 | (exit $ac_status); } && |
| 8215 | { ac_try='test -s conftest.$ac_objext' |
| 8216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8217 | (eval $ac_try) 2>&5 |
| 8218 | ac_status=$? |
| 8219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8220 | (exit $ac_status); }; }; then |
| 8221 | ac_lo=$ac_mid; break |
| 8222 | else |
| 8223 | echo "$as_me: failed program was:" >&5 |
| 8224 | cat conftest.$ac_ext >&5 |
| 8225 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8226 | if test $ac_mid -le $ac_hi; then |
| 8227 | ac_lo= ac_hi= |
| 8228 | break |
| 8229 | fi |
| 8230 | ac_mid=`expr 2 '*' $ac_mid` |
| 8231 | fi |
| 8232 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8233 | done |
| 8234 | else |
| 8235 | echo "$as_me: failed program was:" >&5 |
| 8236 | cat conftest.$ac_ext >&5 |
| 8237 | ac_lo= ac_hi= |
| 8238 | fi |
| 8239 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8240 | fi |
| 8241 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8242 | # Binary search between lo and hi bounds. |
| 8243 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8244 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8245 | cat >conftest.$ac_ext <<_ACEOF |
| 8246 | #line $LINENO "configure" |
| 8247 | #include "confdefs.h" |
| 8248 | $ac_includes_default |
| 8249 | #ifdef F77_DUMMY_MAIN |
| 8250 | # ifdef __cplusplus |
| 8251 | extern "C" |
| 8252 | # endif |
| 8253 | int F77_DUMMY_MAIN() { return 1; } |
| 8254 | #endif |
| 8255 | int |
| 8256 | main () |
| 8257 | { |
| 8258 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 8259 | test_array [0] = 0 |
| 8260 | |
| 8261 | ; |
| 8262 | return 0; |
| 8263 | } |
| 8264 | _ACEOF |
| 8265 | rm -f conftest.$ac_objext |
| 8266 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8267 | (eval $ac_compile) 2>&5 |
| 8268 | ac_status=$? |
| 8269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8270 | (exit $ac_status); } && |
| 8271 | { ac_try='test -s conftest.$ac_objext' |
| 8272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8273 | (eval $ac_try) 2>&5 |
| 8274 | ac_status=$? |
| 8275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8276 | (exit $ac_status); }; }; then |
| 8277 | ac_hi=$ac_mid |
| 8278 | else |
| 8279 | echo "$as_me: failed program was:" >&5 |
| 8280 | cat conftest.$ac_ext >&5 |
| 8281 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8282 | fi |
| 8283 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8284 | done |
| 8285 | case $ac_lo in |
| 8286 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
| 8287 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5 |
| 8288 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;} |
| 8289 | { (exit 1); exit 1; }; } ;; |
| 8290 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8291 | else |
| 8292 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8293 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 8294 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 8295 | { (exit 1); exit 1; }; } |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8296 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8297 | cat >conftest.$ac_ext <<_ACEOF |
| 8298 | #line $LINENO "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8299 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8300 | $ac_includes_default |
| 8301 | long longval () { return (long) (sizeof (uintptr_t)); } |
| 8302 | unsigned long ulongval () { return (long) (sizeof (uintptr_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8303 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8304 | #include <stdlib.h> |
| 8305 | #ifdef F77_DUMMY_MAIN |
| 8306 | # ifdef __cplusplus |
| 8307 | extern "C" |
| 8308 | # endif |
| 8309 | int F77_DUMMY_MAIN() { return 1; } |
| 8310 | #endif |
| 8311 | int |
| 8312 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8313 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8314 | |
| 8315 | FILE *f = fopen ("conftest.val", "w"); |
| 8316 | if (! f) |
| 8317 | exit (1); |
| 8318 | if (((long) (sizeof (uintptr_t))) < 0) |
| 8319 | { |
| 8320 | long i = longval (); |
| 8321 | if (i != ((long) (sizeof (uintptr_t)))) |
| 8322 | exit (1); |
| 8323 | fprintf (f, "%ld\n", i); |
| 8324 | } |
| 8325 | else |
| 8326 | { |
| 8327 | unsigned long i = ulongval (); |
| 8328 | if (i != ((long) (sizeof (uintptr_t)))) |
| 8329 | exit (1); |
| 8330 | fprintf (f, "%lu\n", i); |
| 8331 | } |
| 8332 | exit (ferror (f) || fclose (f) != 0); |
| 8333 | |
| 8334 | ; |
| 8335 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8336 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8337 | _ACEOF |
| 8338 | rm -f conftest$ac_exeext |
| 8339 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8340 | (eval $ac_link) 2>&5 |
| 8341 | ac_status=$? |
| 8342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8343 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8345 | (eval $ac_try) 2>&5 |
| 8346 | ac_status=$? |
| 8347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8348 | (exit $ac_status); }; }; then |
| 8349 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8350 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8351 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8352 | echo "$as_me: failed program was:" >&5 |
| 8353 | cat conftest.$ac_ext >&5 |
| 8354 | ( exit $ac_status ) |
| 8355 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5 |
| 8356 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;} |
| 8357 | { (exit 1); exit 1; }; } |
| 8358 | fi |
| 8359 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8360 | fi |
| 8361 | fi |
| 8362 | rm -f conftest.val |
| 8363 | else |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8364 | ac_cv_sizeof_uintptr_t=0 |
| 8365 | fi |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8366 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8367 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 8368 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6 |
| 8369 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8370 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8371 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8372 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8373 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8374 | fi |
| 8375 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8376 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8377 | echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 8378 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 |
| 8379 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 8380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8381 | else |
| 8382 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 8383 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8384 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8385 | cat >conftest.$ac_ext <<_ACEOF |
| 8386 | #line $LINENO "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8387 | #include "confdefs.h" |
| 8388 | #include <stdio.h> |
| 8389 | #include <sys/types.h> |
| 8390 | main() |
| 8391 | { |
| 8392 | FILE *f=fopen("conftestval", "w"); |
| 8393 | if (!f) exit(1); |
| 8394 | fprintf(f, "%d\n", sizeof(off_t)); |
| 8395 | exit(0); |
| 8396 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8397 | _ACEOF |
| 8398 | rm -f conftest$ac_exeext |
| 8399 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8400 | (eval $ac_link) 2>&5 |
| 8401 | ac_status=$? |
| 8402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8403 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8405 | (eval $ac_try) 2>&5 |
| 8406 | ac_status=$? |
| 8407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8408 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8409 | ac_cv_sizeof_off_t=`cat conftestval` |
| 8410 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8411 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8412 | echo "$as_me: failed program was:" >&5 |
| 8413 | cat conftest.$ac_ext >&5 |
| 8414 | ( exit $ac_status ) |
| 8415 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8416 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8417 | 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] | 8418 | fi |
| 8419 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8420 | fi |
| 8421 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8422 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 8423 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 |
| 8424 | |
| 8425 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8426 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8427 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8428 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8429 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8430 | echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 8431 | 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] | 8432 | if test "$have_long_long" = yes -a \ |
| 8433 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 8434 | "$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] | 8435 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8436 | cat >>confdefs.h <<\_ACEOF |
| 8437 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 8438 | _ACEOF |
| 8439 | |
| 8440 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8441 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8442 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8443 | echo "$as_me:$LINENO: result: no" >&5 |
| 8444 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8445 | fi |
| 8446 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8447 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8448 | echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 8449 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6 |
| 8450 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 8451 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8452 | else |
| 8453 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 8454 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8455 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8456 | cat >conftest.$ac_ext <<_ACEOF |
| 8457 | #line $LINENO "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8458 | #include "confdefs.h" |
| 8459 | #include <stdio.h> |
| 8460 | #include <time.h> |
| 8461 | main() |
| 8462 | { |
| 8463 | FILE *f=fopen("conftestval", "w"); |
| 8464 | if (!f) exit(1); |
| 8465 | fprintf(f, "%d\n", sizeof(time_t)); |
| 8466 | exit(0); |
| 8467 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8468 | _ACEOF |
| 8469 | rm -f conftest$ac_exeext |
| 8470 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8471 | (eval $ac_link) 2>&5 |
| 8472 | ac_status=$? |
| 8473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8474 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8476 | (eval $ac_try) 2>&5 |
| 8477 | ac_status=$? |
| 8478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8479 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8480 | ac_cv_sizeof_time_t=`cat conftestval` |
| 8481 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8482 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8483 | echo "$as_me: failed program was:" >&5 |
| 8484 | cat conftest.$ac_ext >&5 |
| 8485 | ( exit $ac_status ) |
| 8486 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8487 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8488 | 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] | 8489 | fi |
| 8490 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8491 | fi |
| 8492 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8493 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 8494 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6 |
| 8495 | |
| 8496 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8497 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8498 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8499 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8500 | |
| 8501 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8502 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8503 | ac_save_cc="$CC" |
| 8504 | if test "$ac_cv_kpthread" = "yes" |
| 8505 | then CC="$CC -Kpthread" |
| 8506 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8507 | echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 8508 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8509 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8510 | cat >conftest.$ac_ext <<_ACEOF |
| 8511 | #line $LINENO "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8512 | #include "confdefs.h" |
| 8513 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8514 | #ifdef F77_DUMMY_MAIN |
| 8515 | # ifdef __cplusplus |
| 8516 | extern "C" |
| 8517 | # endif |
| 8518 | int F77_DUMMY_MAIN() { return 1; } |
| 8519 | #endif |
| 8520 | int |
| 8521 | main () |
| 8522 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 8523 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8524 | ; |
| 8525 | return 0; |
| 8526 | } |
| 8527 | _ACEOF |
| 8528 | rm -f conftest.$ac_objext |
| 8529 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8530 | (eval $ac_compile) 2>&5 |
| 8531 | ac_status=$? |
| 8532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8533 | (exit $ac_status); } && |
| 8534 | { ac_try='test -s conftest.$ac_objext' |
| 8535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8536 | (eval $ac_try) 2>&5 |
| 8537 | ac_status=$? |
| 8538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8539 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8540 | have_pthread_t=yes |
| 8541 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8542 | echo "$as_me: failed program was:" >&5 |
| 8543 | cat conftest.$ac_ext >&5 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8544 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8545 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8546 | echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 8547 | echo "${ECHO_T}$have_pthread_t" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8548 | if test "$have_pthread_t" = yes ; then |
| 8549 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8550 | echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 8551 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6 |
| 8552 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 8553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8554 | else |
| 8555 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 8556 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8557 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8558 | cat >conftest.$ac_ext <<_ACEOF |
| 8559 | #line $LINENO "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8560 | #include "confdefs.h" |
| 8561 | #include <stdio.h> |
| 8562 | #include <pthread.h> |
| 8563 | main() |
| 8564 | { |
| 8565 | FILE *f=fopen("conftestval", "w"); |
| 8566 | if (!f) exit(1); |
| 8567 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 8568 | exit(0); |
| 8569 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8570 | _ACEOF |
| 8571 | rm -f conftest$ac_exeext |
| 8572 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8573 | (eval $ac_link) 2>&5 |
| 8574 | ac_status=$? |
| 8575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8576 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8578 | (eval $ac_try) 2>&5 |
| 8579 | ac_status=$? |
| 8580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8581 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8582 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 8583 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8584 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8585 | echo "$as_me: failed program was:" >&5 |
| 8586 | cat conftest.$ac_ext >&5 |
| 8587 | ( exit $ac_status ) |
| 8588 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8589 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8590 | 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] | 8591 | fi |
| 8592 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8593 | fi |
| 8594 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8595 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 8596 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6 |
| 8597 | |
| 8598 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8599 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8600 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8601 | |
| 8602 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8603 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8604 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8605 | echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 8606 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8607 | # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given. |
| 8608 | if test "${enable_toolbox_glue+set}" = set; then |
| 8609 | enableval="$enable_toolbox_glue" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8610 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8611 | fi; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8612 | |
| 8613 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8614 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8615 | case $ac_sys_system/$ac_sys_release in |
| 8616 | Darwin/*) |
| 8617 | enable_toolbox_glue="yes";; |
| 8618 | *) |
| 8619 | enable_toolbox_glue="no";; |
| 8620 | esac |
| 8621 | fi |
| 8622 | case "$enable_toolbox_glue" in |
| 8623 | yes) |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 8624 | extra_frameworks="-framework CoreServices -framework Foundation" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8625 | extra_machdep_objs="Python/mactoolboxglue.o" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 8626 | extra_undefs="-u __dummy -u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8627 | |
| 8628 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8629 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8630 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8631 | |
| 8632 | ;; |
| 8633 | *) |
| 8634 | extra_frameworks="" |
| 8635 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 8636 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8637 | ;; |
| 8638 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8639 | echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 8640 | echo "${ECHO_T}$enable_toolbox_glue" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8641 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8642 | |
| 8643 | case $ac_sys_system/$ac_sys_release in |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8644 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 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 -U $ns_undef_sym" |
| 8647 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +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 | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 8650 | Darwin/*) |
| 8651 | ns_undef_sym='_environ' |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8652 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc -flat_namespace -U $ns_undef_sym" |
| 8653 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8654 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' |
| 8655 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8656 | esac |
| 8657 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8658 | echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 8659 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8660 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8661 | then |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 8662 | OPT="$OPT -fno-common -dynamic" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8663 | # -U __environ is needed since bundles don't have access |
| 8664 | # 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] | 8665 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8666 | # in the build location. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8667 | |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8668 | case $ac_sys_system/$ac_sys_release in |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8669 | Darwin/1.3*)LDFLAGS="$LDFLAGS -Wl,-F. -Wl,-U,$ns_undef_sym";; |
| 8670 | Darwin/*)LDFLAGS="$LDFLAGS -Wl,-F. -Wl,-flat_namespace,-U,$ns_undef_sym";; |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8671 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8672 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8673 | cat >>confdefs.h <<\_ACEOF |
| 8674 | #define WITH_NEXT_FRAMEWORK 1 |
| 8675 | _ACEOF |
| 8676 | |
| 8677 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8678 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8679 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8680 | echo "$as_me:$LINENO: result: no" >&5 |
| 8681 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8682 | fi |
| 8683 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8684 | echo "$as_me:$LINENO: checking for dyld" >&5 |
| 8685 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8686 | case $ac_sys_system/$ac_sys_release in |
| 8687 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8688 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8689 | cat >>confdefs.h <<\_ACEOF |
| 8690 | #define WITH_DYLD 1 |
| 8691 | _ACEOF |
| 8692 | |
| 8693 | echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 8694 | echo "${ECHO_T}always on for Darwin" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8695 | ;; |
| 8696 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8697 | echo "$as_me:$LINENO: result: no" >&5 |
| 8698 | echo "${ECHO_T}no" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8699 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 8700 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8701 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8702 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8703 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8704 | |
| 8705 | |
| 8706 | |
| 8707 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8708 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 8709 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8710 | echo "$as_me:$LINENO: checking SO" >&5 |
| 8711 | echo $ECHO_N "checking SO... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8712 | if test -z "$SO" |
| 8713 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8714 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 8715 | hp*|HP*) SO=.sl;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 8716 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 8717 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8718 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8719 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8720 | echo "$as_me:$LINENO: result: $SO" >&5 |
| 8721 | echo "${ECHO_T}$SO" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8722 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 5b718fc | 2001-09-10 15:34:42 +0000 | [diff] [blame] | 8723 | # -- "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] | 8724 | # (Shared libraries in this instance are shared modules to be loaded into |
| 8725 | # 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] | 8726 | echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 8727 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8728 | if test -z "$LDSHARED" |
| 8729 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8730 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8731 | AIX*) |
| 8732 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 8733 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8734 | ;; |
| 8735 | BeOS*) |
| 8736 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 8737 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8738 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8739 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 8740 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8741 | SunOS/4*) LDSHARED="ld";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8742 | SunOS/5*) |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 8743 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 8744 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | 5b718fc | 2001-09-10 15:34:42 +0000 | [diff] [blame] | 8745 | else LDSHARED="$(CC) -G"; |
Greg Ward | 57c9a663 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 8746 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8747 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 8748 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 8749 | DYNIX/ptx*) LDSHARED="ld -G";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8750 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8751 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 8752 | if test "$enable_framework" ; then |
| 8753 | # Link against the framework. All externals should be defined. |
| 8754 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 8755 | else |
| 8756 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 8757 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 8758 | fi ;; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8759 | Darwin/*) |
| 8760 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 8761 | if test "$enable_framework" ; then |
| 8762 | # Link against the framework. All externals should be defined. |
| 8763 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 8764 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 8765 | # No framework, use the Python app as bundle-loader |
| 8766 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 8767 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/$(PYTHON)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8768 | fi ;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8769 | Linux*|GNU*) LDSHARED="gcc -shared";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 8770 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 8771 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 8772 | OpenBSD*|NetBSD*|FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 8773 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 8774 | then |
| 8775 | LDSHARED="cc -shared ${LDFLAGS}" |
| 8776 | else |
| 8777 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 8778 | fi;; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8779 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8780 | if test "$GCC" = "yes" |
| 8781 | then LDSHARED="$(CC) -shared" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8782 | else LDSHARED="$(CC) -G" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8783 | fi;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 8784 | SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8785 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 8786 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8787 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8788 | *) LDSHARED="ld";; |
| 8789 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8790 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8791 | echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 8792 | echo "${ECHO_T}$LDSHARED" >&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8793 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8794 | # 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] | 8795 | # library (module) -- this is only needed for a few systems |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8796 | echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 8797 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8798 | if test -z "$CCSHARED" |
| 8799 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8800 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 8801 | SunOS*) if test "$GCC" = yes; |
| 8802 | then CCSHARED="-fPIC"; |
| 8803 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 8804 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 8805 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 8806 | else CCSHARED="+z"; |
| 8807 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8808 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 8809 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 8810 | FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8811 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8812 | if test "$GCC" = "yes" |
| 8813 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 8814 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 8815 | fi;; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 8816 | SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8817 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8818 | IRIX*/6*) case $CC in |
| 8819 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 8820 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8821 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8822 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8823 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8824 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8825 | echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 8826 | echo "${ECHO_T}$CCSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8827 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8828 | # 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] | 8829 | echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 8830 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8831 | if test -z "$LINKFORSHARED" |
| 8832 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 8833 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 8834 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 8835 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 8836 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 8837 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 8838 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 8839 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 8840 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8841 | Darwin/*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8842 | # -u __dummy makes the linker aware of the objc runtime |
| 8843 | # in System.framework; otherwise, __objcInit (referenced in |
| 8844 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 8845 | # loading of any modules which reference it in System.framework. |
| 8846 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, which is |
| 8847 | # not used by the core itself but which needs to be in the core so |
| 8848 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 8849 | LINKFORSHARED="$extra_undefs -framework System" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 8850 | if test "$enable_framework" |
| 8851 | then |
| 8852 | LINKFORSHARED="$LINKFORSHARED -framework Python" |
| 8853 | fi |
| 8854 | LINKFORSHARED="$LINKFORSHARED $extra_frameworks";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 8855 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 8856 | SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 8857 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8858 | FreeBSD*|NetBSD*|OpenBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 8859 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 8860 | then |
| 8861 | LINKFORSHARED="-Wl,--export-dynamic" |
| 8862 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8863 | SunOS/5*) case $CC in |
| 8864 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 8865 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 8866 | then |
| 8867 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 8868 | fi;; |
| 8869 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8870 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8871 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8872 | echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 8873 | echo "${ECHO_T}$LINKFORSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 8874 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8875 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8876 | echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 8877 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 8878 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 8879 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 8880 | case $ac_sys_system in |
| 8881 | CYGWIN*) |
| 8882 | # Cygwin needs CCSHARED when building extension DLLs |
| 8883 | # but not when building the interpreter DLL. |
| 8884 | CFLAGSFORSHARED='';; |
| 8885 | *) |
| 8886 | CFLAGSFORSHARED='$(CCSHARED)' |
| 8887 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 8888 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8889 | echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 8890 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 8891 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 8892 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 8893 | # library (with --enable-shared). |
| 8894 | # For platforms on which shared libraries are not allowed to have unresolved |
| 8895 | # symbols, this must be set to $(LIBS) (expanded by make). |
| 8896 | |
| 8897 | echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 8898 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6 |
| 8899 | case "$ac_sys_system" in |
| 8900 | atheos*) |
| 8901 | SHLIBS='$(LIBS)';; |
| 8902 | *) |
| 8903 | SHLIBS='';; |
| 8904 | esac |
| 8905 | echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 8906 | echo "${ECHO_T}$SHLIBS" >&6 |
| 8907 | |
| 8908 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8909 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8910 | |
| 8911 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 8912 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 8913 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 8914 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8915 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8916 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8917 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8918 | cat >conftest.$ac_ext <<_ACEOF |
| 8919 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8920 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8921 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 8922 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8923 | #ifdef __cplusplus |
| 8924 | extern "C" |
| 8925 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 8926 | /* 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] | 8927 | builtin and then its argument prototype would still apply. */ |
| 8928 | char dlopen (); |
| 8929 | #ifdef F77_DUMMY_MAIN |
| 8930 | # ifdef __cplusplus |
| 8931 | extern "C" |
| 8932 | # endif |
| 8933 | int F77_DUMMY_MAIN() { return 1; } |
| 8934 | #endif |
| 8935 | int |
| 8936 | main () |
| 8937 | { |
| 8938 | dlopen (); |
| 8939 | ; |
| 8940 | return 0; |
| 8941 | } |
| 8942 | _ACEOF |
| 8943 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 8944 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8945 | (eval $ac_link) 2>&5 |
| 8946 | ac_status=$? |
| 8947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8948 | (exit $ac_status); } && |
| 8949 | { ac_try='test -s conftest$ac_exeext' |
| 8950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8951 | (eval $ac_try) 2>&5 |
| 8952 | ac_status=$? |
| 8953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8954 | (exit $ac_status); }; }; then |
| 8955 | ac_cv_lib_dl_dlopen=yes |
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 | echo "$as_me: failed program was:" >&5 |
| 8958 | cat conftest.$ac_ext >&5 |
| 8959 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8960 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8961 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 8962 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8963 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8964 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 8965 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 8966 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 8967 | cat >>confdefs.h <<_ACEOF |
| 8968 | #define HAVE_LIBDL 1 |
| 8969 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8970 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8971 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 8972 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8973 | fi |
| 8974 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8975 | |
| 8976 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 8977 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 8978 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 8979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 8980 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8981 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 8982 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8983 | cat >conftest.$ac_ext <<_ACEOF |
| 8984 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 8985 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8986 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 8987 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8988 | #ifdef __cplusplus |
| 8989 | extern "C" |
| 8990 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 8991 | /* 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] | 8992 | builtin and then its argument prototype would still apply. */ |
| 8993 | char shl_load (); |
| 8994 | #ifdef F77_DUMMY_MAIN |
| 8995 | # ifdef __cplusplus |
| 8996 | extern "C" |
| 8997 | # endif |
| 8998 | int F77_DUMMY_MAIN() { return 1; } |
| 8999 | #endif |
| 9000 | int |
| 9001 | main () |
| 9002 | { |
| 9003 | shl_load (); |
| 9004 | ; |
| 9005 | return 0; |
| 9006 | } |
| 9007 | _ACEOF |
| 9008 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9009 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9010 | (eval $ac_link) 2>&5 |
| 9011 | ac_status=$? |
| 9012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9013 | (exit $ac_status); } && |
| 9014 | { ac_try='test -s conftest$ac_exeext' |
| 9015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9016 | (eval $ac_try) 2>&5 |
| 9017 | ac_status=$? |
| 9018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9019 | (exit $ac_status); }; }; then |
| 9020 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9021 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9022 | echo "$as_me: failed program was:" >&5 |
| 9023 | cat conftest.$ac_ext >&5 |
| 9024 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9025 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9026 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9027 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9028 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9029 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9030 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 9031 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 9032 | cat >>confdefs.h <<_ACEOF |
| 9033 | #define HAVE_LIBDLD 1 |
| 9034 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9035 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9036 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9037 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9038 | fi |
| 9039 | # Dynamic linking for HP-UX |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9040 | |
| 9041 | echo "$as_me:$LINENO: checking for sem_init in -lrt" >&5 |
| 9042 | echo $ECHO_N "checking for sem_init in -lrt... $ECHO_C" >&6 |
| 9043 | if test "${ac_cv_lib_rt_sem_init+set}" = set; then |
| 9044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9045 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9046 | ac_check_lib_save_LIBS=$LIBS |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9047 | LIBS="-lrt $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9048 | cat >conftest.$ac_ext <<_ACEOF |
| 9049 | #line $LINENO "configure" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9050 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9051 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9052 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9053 | #ifdef __cplusplus |
| 9054 | extern "C" |
| 9055 | #endif |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9056 | /* 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] | 9057 | builtin and then its argument prototype would still apply. */ |
| 9058 | char sem_init (); |
| 9059 | #ifdef F77_DUMMY_MAIN |
| 9060 | # ifdef __cplusplus |
| 9061 | extern "C" |
| 9062 | # endif |
| 9063 | int F77_DUMMY_MAIN() { return 1; } |
| 9064 | #endif |
| 9065 | int |
| 9066 | main () |
| 9067 | { |
| 9068 | sem_init (); |
| 9069 | ; |
| 9070 | return 0; |
| 9071 | } |
| 9072 | _ACEOF |
| 9073 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9074 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9075 | (eval $ac_link) 2>&5 |
| 9076 | ac_status=$? |
| 9077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9078 | (exit $ac_status); } && |
| 9079 | { ac_try='test -s conftest$ac_exeext' |
| 9080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9081 | (eval $ac_try) 2>&5 |
| 9082 | ac_status=$? |
| 9083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9084 | (exit $ac_status); }; }; then |
| 9085 | ac_cv_lib_rt_sem_init=yes |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9086 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9087 | echo "$as_me: failed program was:" >&5 |
| 9088 | cat conftest.$ac_ext >&5 |
| 9089 | ac_cv_lib_rt_sem_init=no |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9090 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9091 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9092 | LIBS=$ac_check_lib_save_LIBS |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9093 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9094 | echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sem_init" >&5 |
| 9095 | echo "${ECHO_T}$ac_cv_lib_rt_sem_init" >&6 |
| 9096 | if test $ac_cv_lib_rt_sem_init = yes; then |
| 9097 | cat >>confdefs.h <<_ACEOF |
| 9098 | #define HAVE_LIBRT 1 |
| 9099 | _ACEOF |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9100 | |
| 9101 | LIBS="-lrt $LIBS" |
| 9102 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9103 | fi |
| 9104 | # 'Real Time' functions on Solaris |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9105 | |
| 9106 | # checks for system dependent C++ extensions support |
| 9107 | case "$ac_sys_system" in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9108 | AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 9109 | echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6 |
| 9110 | cat >conftest.$ac_ext <<_ACEOF |
| 9111 | #line $LINENO "configure" |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9112 | #include "confdefs.h" |
| 9113 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9114 | #ifdef F77_DUMMY_MAIN |
| 9115 | # ifdef __cplusplus |
| 9116 | extern "C" |
| 9117 | # endif |
| 9118 | int F77_DUMMY_MAIN() { return 1; } |
| 9119 | #endif |
| 9120 | int |
| 9121 | main () |
| 9122 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9123 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9124 | ; |
| 9125 | return 0; |
| 9126 | } |
| 9127 | _ACEOF |
| 9128 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9129 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9130 | (eval $ac_link) 2>&5 |
| 9131 | ac_status=$? |
| 9132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9133 | (exit $ac_status); } && |
| 9134 | { ac_try='test -s conftest$ac_exeext' |
| 9135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9136 | (eval $ac_try) 2>&5 |
| 9137 | ac_status=$? |
| 9138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9139 | (exit $ac_status); }; }; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9140 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9141 | cat >>confdefs.h <<\_ACEOF |
| 9142 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 9143 | _ACEOF |
| 9144 | |
| 9145 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9146 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9147 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9148 | echo "$as_me: failed program was:" >&5 |
| 9149 | cat conftest.$ac_ext >&5 |
| 9150 | echo "$as_me:$LINENO: result: no" >&5 |
| 9151 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9152 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9153 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9154 | *) ;; |
| 9155 | esac |
| 9156 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9157 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
| 9158 | # However on SGI IRIX, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9159 | # BeOS' sockets are stashed in libnet. |
| 9160 | case "$ac_sys_system" in |
| 9161 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9162 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9163 | echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 9164 | echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6 |
| 9165 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 9166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9167 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9168 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9169 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9170 | cat >conftest.$ac_ext <<_ACEOF |
| 9171 | #line $LINENO "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9172 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9173 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9174 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9175 | #ifdef __cplusplus |
| 9176 | extern "C" |
| 9177 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9178 | /* 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] | 9179 | builtin and then its argument prototype would still apply. */ |
| 9180 | char t_open (); |
| 9181 | #ifdef F77_DUMMY_MAIN |
| 9182 | # ifdef __cplusplus |
| 9183 | extern "C" |
| 9184 | # endif |
| 9185 | int F77_DUMMY_MAIN() { return 1; } |
| 9186 | #endif |
| 9187 | int |
| 9188 | main () |
| 9189 | { |
| 9190 | t_open (); |
| 9191 | ; |
| 9192 | return 0; |
| 9193 | } |
| 9194 | _ACEOF |
| 9195 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9196 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9197 | (eval $ac_link) 2>&5 |
| 9198 | ac_status=$? |
| 9199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9200 | (exit $ac_status); } && |
| 9201 | { ac_try='test -s conftest$ac_exeext' |
| 9202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9203 | (eval $ac_try) 2>&5 |
| 9204 | ac_status=$? |
| 9205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9206 | (exit $ac_status); }; }; then |
| 9207 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9208 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9209 | echo "$as_me: failed program was:" >&5 |
| 9210 | cat conftest.$ac_ext >&5 |
| 9211 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9212 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9213 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9214 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9215 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9216 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 9217 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6 |
| 9218 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9219 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9220 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 9221 | # SVR4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9222 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 9223 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 9224 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 9225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9226 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9227 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9228 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9229 | cat >conftest.$ac_ext <<_ACEOF |
| 9230 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9231 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9232 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9233 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9234 | #ifdef __cplusplus |
| 9235 | extern "C" |
| 9236 | #endif |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9237 | /* 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] | 9238 | builtin and then its argument prototype would still apply. */ |
| 9239 | char socket (); |
| 9240 | #ifdef F77_DUMMY_MAIN |
| 9241 | # ifdef __cplusplus |
| 9242 | extern "C" |
| 9243 | # endif |
| 9244 | int F77_DUMMY_MAIN() { return 1; } |
| 9245 | #endif |
| 9246 | int |
| 9247 | main () |
| 9248 | { |
| 9249 | socket (); |
| 9250 | ; |
| 9251 | return 0; |
| 9252 | } |
| 9253 | _ACEOF |
| 9254 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9255 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9256 | (eval $ac_link) 2>&5 |
| 9257 | ac_status=$? |
| 9258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9259 | (exit $ac_status); } && |
| 9260 | { ac_try='test -s conftest$ac_exeext' |
| 9261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9262 | (eval $ac_try) 2>&5 |
| 9263 | ac_status=$? |
| 9264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9265 | (exit $ac_status); }; }; then |
| 9266 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9267 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9268 | echo "$as_me: failed program was:" >&5 |
| 9269 | cat conftest.$ac_ext >&5 |
| 9270 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9271 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9272 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9273 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9274 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9275 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 9276 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 9277 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9278 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9279 | fi |
| 9280 | # SVR4 sockets |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 9281 | ;; |
| 9282 | esac |
| 9283 | case "$ac_sys_system" in |
| 9284 | BeOS*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9285 | echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 9286 | echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6 |
| 9287 | if test "${ac_cv_lib_net_socket+set}" = set; then |
| 9288 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9289 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9290 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9291 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9292 | cat >conftest.$ac_ext <<_ACEOF |
| 9293 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9294 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9295 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9296 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9297 | #ifdef __cplusplus |
| 9298 | extern "C" |
| 9299 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9300 | /* 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] | 9301 | builtin and then its argument prototype would still apply. */ |
| 9302 | char socket (); |
| 9303 | #ifdef F77_DUMMY_MAIN |
| 9304 | # ifdef __cplusplus |
| 9305 | extern "C" |
| 9306 | # endif |
| 9307 | int F77_DUMMY_MAIN() { return 1; } |
| 9308 | #endif |
| 9309 | int |
| 9310 | main () |
| 9311 | { |
| 9312 | socket (); |
| 9313 | ; |
| 9314 | return 0; |
| 9315 | } |
| 9316 | _ACEOF |
| 9317 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9318 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9319 | (eval $ac_link) 2>&5 |
| 9320 | ac_status=$? |
| 9321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9322 | (exit $ac_status); } && |
| 9323 | { ac_try='test -s conftest$ac_exeext' |
| 9324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9325 | (eval $ac_try) 2>&5 |
| 9326 | ac_status=$? |
| 9327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9328 | (exit $ac_status); }; }; then |
| 9329 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9330 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9331 | echo "$as_me: failed program was:" >&5 |
| 9332 | cat conftest.$ac_ext >&5 |
| 9333 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9334 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9335 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9336 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9337 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9338 | echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 9339 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6 |
| 9340 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9341 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9342 | fi |
| 9343 | # BeOS |
| 9344 | ;; |
| 9345 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9346 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9347 | echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 9348 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6 |
| 9349 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9350 | # Check whether --with-libs or --without-libs was given. |
| 9351 | if test "${with_libs+set}" = set; then |
| 9352 | withval="$with_libs" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9353 | |
| 9354 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 9355 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9356 | LIBS="$withval $LIBS" |
| 9357 | |
| 9358 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9359 | echo "$as_me:$LINENO: result: no" >&5 |
| 9360 | echo "${ECHO_T}no" >&6 |
| 9361 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9362 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9363 | # Determine if signalmodule should be used. |
| 9364 | |
| 9365 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9366 | echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 9367 | echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6 |
| 9368 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9369 | # Check whether --with-signal-module or --without-signal-module was given. |
| 9370 | if test "${with_signal_module+set}" = set; then |
| 9371 | withval="$with_signal_module" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9372 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9373 | fi; |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9374 | |
| 9375 | if test -z "$with_signal_module" |
| 9376 | then with_signal_module="yes" |
| 9377 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9378 | echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 9379 | echo "${ECHO_T}$with_signal_module" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9380 | |
| 9381 | if test "${with_signal_module}" = "yes"; then |
| 9382 | USE_SIGNAL_MODULE="" |
| 9383 | SIGNAL_OBJS="" |
| 9384 | else |
| 9385 | USE_SIGNAL_MODULE="#" |
| 9386 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 9387 | fi |
| 9388 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 9389 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9390 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9391 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9392 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9393 | echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 9394 | echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6 |
| 9395 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9396 | |
| 9397 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 9398 | if test "${with_dec_threads+set}" = set; then |
| 9399 | withval="$with_dec_threads" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9400 | |
| 9401 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 9402 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9403 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9404 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9405 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9406 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9407 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9408 | echo "$as_me:$LINENO: result: no" >&5 |
| 9409 | echo "${ECHO_T}no" >&6 |
| 9410 | fi; |
| 9411 | |
| 9412 | # Templates for things AC_DEFINEd more than once. |
| 9413 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9414 | |
| 9415 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9416 | |
| 9417 | |
| 9418 | |
| 9419 | |
| 9420 | |
| 9421 | echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 9422 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6 |
| 9423 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9424 | # Check whether --with-threads or --without-threads was given. |
| 9425 | if test "${with_threads+set}" = set; then |
| 9426 | withval="$with_threads" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9427 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9428 | fi; |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9429 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9430 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9431 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9432 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9433 | if test "${with_thread+set}" = set; then |
| 9434 | withval="$with_thread" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9435 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9436 | with_threads=$with_thread |
| 9437 | fi; |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9438 | |
| 9439 | if test -z "$with_threads" |
| 9440 | then with_threads="yes" |
| 9441 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9442 | echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 9443 | echo "${ECHO_T}$with_threads" >&6 |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9444 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9445 | |
Barry Warsaw | c0d24d8b | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9446 | if test "$with_threads" = "no" |
| 9447 | then |
| 9448 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9449 | elif test "$ac_cv_pthread_is_default" = yes |
| 9450 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9451 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9452 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9453 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9454 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9455 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9456 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9457 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9458 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9459 | |
| 9460 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9461 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9462 | elif test "$ac_cv_kpthread" = "yes" |
| 9463 | then |
| 9464 | CC="$CC -Kpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9465 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 9466 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9467 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 9468 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9469 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9470 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9471 | else |
| 9472 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 9473 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 9474 | fi |
| 9475 | if test ! -z "$withval" -a -d "$withval" |
| 9476 | then LDFLAGS="$LDFLAGS -L$withval" |
| 9477 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9478 | |
| 9479 | # According to the POSIX spec, a pthreads implementation must |
| 9480 | # 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] | 9481 | echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 9482 | echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6 |
| 9483 | cat >conftest.$ac_ext <<_ACEOF |
| 9484 | #line $LINENO "configure" |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9485 | #include "confdefs.h" |
| 9486 | #include <unistd.h> |
| 9487 | #ifdef _POSIX_THREADS |
| 9488 | yes |
| 9489 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9490 | |
| 9491 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9492 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 9493 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9494 | unistd_defines_pthreads=yes |
| 9495 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9496 | unistd_defines_pthreads=no |
| 9497 | fi |
| 9498 | rm -f conftest* |
| 9499 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9500 | echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 9501 | echo "${ECHO_T}$unistd_defines_pthreads" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9502 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9503 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 9504 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9505 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 9506 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9507 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 9508 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 9509 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 9510 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 9511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9512 | fi |
| 9513 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 9514 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9515 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9516 | # Is the header compilable? |
| 9517 | echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 9518 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6 |
| 9519 | cat >conftest.$ac_ext <<_ACEOF |
| 9520 | #line $LINENO "configure" |
| 9521 | #include "confdefs.h" |
| 9522 | $ac_includes_default |
| 9523 | #include <cthreads.h> |
| 9524 | _ACEOF |
| 9525 | rm -f conftest.$ac_objext |
| 9526 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9527 | (eval $ac_compile) 2>&5 |
| 9528 | ac_status=$? |
| 9529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9530 | (exit $ac_status); } && |
| 9531 | { ac_try='test -s conftest.$ac_objext' |
| 9532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9533 | (eval $ac_try) 2>&5 |
| 9534 | ac_status=$? |
| 9535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9536 | (exit $ac_status); }; }; then |
| 9537 | ac_header_compiler=yes |
| 9538 | else |
| 9539 | echo "$as_me: failed program was:" >&5 |
| 9540 | cat conftest.$ac_ext >&5 |
| 9541 | ac_header_compiler=no |
| 9542 | fi |
| 9543 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9544 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9545 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9546 | |
| 9547 | # Is the header present? |
| 9548 | echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 9549 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6 |
| 9550 | cat >conftest.$ac_ext <<_ACEOF |
| 9551 | #line $LINENO "configure" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9552 | #include "confdefs.h" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9553 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9554 | _ACEOF |
| 9555 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9556 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9557 | ac_status=$? |
| 9558 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 9559 | rm -f conftest.er1 |
| 9560 | cat conftest.err >&5 |
| 9561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9562 | (exit $ac_status); } >/dev/null; then |
| 9563 | if test -s conftest.err; then |
| 9564 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9565 | else |
| 9566 | ac_cpp_err= |
| 9567 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9568 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9569 | ac_cpp_err=yes |
| 9570 | fi |
| 9571 | if test -z "$ac_cpp_err"; then |
| 9572 | ac_header_preproc=yes |
| 9573 | else |
| 9574 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9575 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9576 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9577 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9578 | rm -f conftest.err conftest.$ac_ext |
| 9579 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9580 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9581 | |
| 9582 | # So? What about this header? |
| 9583 | case $ac_header_compiler:$ac_header_preproc in |
| 9584 | yes:no ) |
| 9585 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9586 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9587 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 9588 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 9589 | no:yes ) |
| 9590 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 9591 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 9592 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 9593 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 9594 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 9595 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 9596 | esac |
| 9597 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 9598 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 9599 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 9600 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9601 | else |
| 9602 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9603 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9604 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 9605 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
| 9606 | |
| 9607 | fi |
| 9608 | if test $ac_cv_header_cthreads_h = yes; then |
| 9609 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9610 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9611 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9612 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9613 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9614 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9615 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9616 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9617 | |
| 9618 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9619 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9620 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9621 | |
| 9622 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9623 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9624 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9625 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9626 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 9627 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 9628 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 9629 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 9630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9631 | fi |
| 9632 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 9633 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9634 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9635 | # Is the header compilable? |
| 9636 | echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 9637 | echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6 |
| 9638 | cat >conftest.$ac_ext <<_ACEOF |
| 9639 | #line $LINENO "configure" |
| 9640 | #include "confdefs.h" |
| 9641 | $ac_includes_default |
| 9642 | #include <mach/cthreads.h> |
| 9643 | _ACEOF |
| 9644 | rm -f conftest.$ac_objext |
| 9645 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9646 | (eval $ac_compile) 2>&5 |
| 9647 | ac_status=$? |
| 9648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9649 | (exit $ac_status); } && |
| 9650 | { ac_try='test -s conftest.$ac_objext' |
| 9651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9652 | (eval $ac_try) 2>&5 |
| 9653 | ac_status=$? |
| 9654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9655 | (exit $ac_status); }; }; then |
| 9656 | ac_header_compiler=yes |
| 9657 | else |
| 9658 | echo "$as_me: failed program was:" >&5 |
| 9659 | cat conftest.$ac_ext >&5 |
| 9660 | ac_header_compiler=no |
| 9661 | fi |
| 9662 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9663 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9664 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9665 | |
| 9666 | # Is the header present? |
| 9667 | echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 9668 | echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6 |
| 9669 | cat >conftest.$ac_ext <<_ACEOF |
| 9670 | #line $LINENO "configure" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9671 | #include "confdefs.h" |
| 9672 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9673 | _ACEOF |
| 9674 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9675 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9676 | ac_status=$? |
| 9677 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 9678 | rm -f conftest.er1 |
| 9679 | cat conftest.err >&5 |
| 9680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9681 | (exit $ac_status); } >/dev/null; then |
| 9682 | if test -s conftest.err; then |
| 9683 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9684 | else |
| 9685 | ac_cpp_err= |
| 9686 | fi |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9687 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9688 | ac_cpp_err=yes |
| 9689 | fi |
| 9690 | if test -z "$ac_cpp_err"; then |
| 9691 | ac_header_preproc=yes |
| 9692 | else |
| 9693 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9694 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9695 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9696 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9697 | rm -f conftest.err conftest.$ac_ext |
| 9698 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9699 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9700 | |
| 9701 | # So? What about this header? |
| 9702 | case $ac_header_compiler:$ac_header_preproc in |
| 9703 | yes:no ) |
| 9704 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9705 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9706 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 9707 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 9708 | no:yes ) |
| 9709 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 9710 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 9711 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 9712 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 9713 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 9714 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 9715 | esac |
| 9716 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 9717 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 9718 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 9719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9720 | else |
| 9721 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9722 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9723 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 9724 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
| 9725 | |
| 9726 | fi |
| 9727 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 9728 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9729 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9730 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9731 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9732 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9733 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9734 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9735 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9736 | |
| 9737 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9738 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9739 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9740 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9741 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9742 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 9743 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9744 | echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 9745 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6 |
| 9746 | |
| 9747 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9748 | if test "${with_pth+set}" = set; then |
| 9749 | withval="$with_pth" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9750 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9751 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 9752 | echo "${ECHO_T}$withval" >&6 |
| 9753 | cat >>confdefs.h <<\_ACEOF |
| 9754 | #define WITH_THREAD 1 |
| 9755 | _ACEOF |
| 9756 | |
| 9757 | |
| 9758 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9759 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9760 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9761 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9762 | LIBS="-lpth $LIBS" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9763 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 9764 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9765 | |
| 9766 | echo "$as_me:$LINENO: result: no" >&5 |
| 9767 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9768 | |
| 9769 | # Just looking for pthread_create in libpthread is not enough: |
| 9770 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 9771 | # So we really have to include pthread.h, and then link. |
| 9772 | _libs=$LIBS |
| 9773 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9774 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 9775 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 9776 | cat >conftest.$ac_ext <<_ACEOF |
| 9777 | #line $LINENO "configure" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9778 | #include "confdefs.h" |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9779 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9780 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9781 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9782 | #ifdef F77_DUMMY_MAIN |
| 9783 | # ifdef __cplusplus |
| 9784 | extern "C" |
| 9785 | # endif |
| 9786 | int F77_DUMMY_MAIN() { return 1; } |
| 9787 | #endif |
| 9788 | int |
| 9789 | main () |
| 9790 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9791 | |
| 9792 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9793 | ; |
| 9794 | return 0; |
| 9795 | } |
| 9796 | _ACEOF |
| 9797 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9798 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9799 | (eval $ac_link) 2>&5 |
| 9800 | ac_status=$? |
| 9801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9802 | (exit $ac_status); } && |
| 9803 | { ac_try='test -s conftest$ac_exeext' |
| 9804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9805 | (eval $ac_try) 2>&5 |
| 9806 | ac_status=$? |
| 9807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9808 | (exit $ac_status); }; }; then |
| 9809 | |
| 9810 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9811 | echo "${ECHO_T}yes" >&6 |
| 9812 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9813 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9814 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9815 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9816 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9817 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 9818 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9819 | echo "$as_me: failed program was:" >&5 |
| 9820 | cat conftest.$ac_ext >&5 |
| 9821 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 9822 | LIBS=$_libs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9823 | echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 9824 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6 |
| 9825 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 9826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9827 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9828 | cat >conftest.$ac_ext <<_ACEOF |
| 9829 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9830 | #include "confdefs.h" |
| 9831 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9832 | which can conflict with char pthread_detach (); below. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9833 | #include <assert.h> |
| 9834 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9835 | #ifdef __cplusplus |
| 9836 | extern "C" |
| 9837 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9838 | /* 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] | 9839 | builtin and then its argument prototype would still apply. */ |
| 9840 | char pthread_detach (); |
| 9841 | char (*f) (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9842 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9843 | #ifdef F77_DUMMY_MAIN |
| 9844 | # ifdef __cplusplus |
| 9845 | extern "C" |
| 9846 | # endif |
| 9847 | int F77_DUMMY_MAIN() { return 1; } |
| 9848 | #endif |
| 9849 | int |
| 9850 | main () |
| 9851 | { |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9852 | /* The GNU C library defines this for functions which it implements |
| 9853 | to always fail with ENOSYS. Some functions are actually named |
| 9854 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 9855 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9856 | choke me |
| 9857 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9858 | f = pthread_detach; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9859 | #endif |
| 9860 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9861 | ; |
| 9862 | return 0; |
| 9863 | } |
| 9864 | _ACEOF |
| 9865 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9866 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9867 | (eval $ac_link) 2>&5 |
| 9868 | ac_status=$? |
| 9869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9870 | (exit $ac_status); } && |
| 9871 | { ac_try='test -s conftest$ac_exeext' |
| 9872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9873 | (eval $ac_try) 2>&5 |
| 9874 | ac_status=$? |
| 9875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9876 | (exit $ac_status); }; }; then |
| 9877 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9878 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9879 | echo "$as_me: failed program was:" >&5 |
| 9880 | cat conftest.$ac_ext >&5 |
| 9881 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9882 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9883 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9884 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9885 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 9886 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6 |
| 9887 | if test $ac_cv_func_pthread_detach = yes; then |
| 9888 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9889 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9890 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9891 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9892 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9893 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9894 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9895 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9896 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 9897 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 9898 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 9899 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 9900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9901 | fi |
| 9902 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 9903 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 9904 | else |
| 9905 | # Is the header compilable? |
| 9906 | echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 9907 | echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6 |
| 9908 | cat >conftest.$ac_ext <<_ACEOF |
| 9909 | #line $LINENO "configure" |
| 9910 | #include "confdefs.h" |
| 9911 | $ac_includes_default |
| 9912 | #include <atheos/threads.h> |
| 9913 | _ACEOF |
| 9914 | rm -f conftest.$ac_objext |
| 9915 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9916 | (eval $ac_compile) 2>&5 |
| 9917 | ac_status=$? |
| 9918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9919 | (exit $ac_status); } && |
| 9920 | { ac_try='test -s conftest.$ac_objext' |
| 9921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9922 | (eval $ac_try) 2>&5 |
| 9923 | ac_status=$? |
| 9924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9925 | (exit $ac_status); }; }; then |
| 9926 | ac_header_compiler=yes |
| 9927 | else |
| 9928 | echo "$as_me: failed program was:" >&5 |
| 9929 | cat conftest.$ac_ext >&5 |
| 9930 | ac_header_compiler=no |
| 9931 | fi |
| 9932 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9933 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 9934 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 9935 | |
| 9936 | # Is the header present? |
| 9937 | echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 9938 | echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6 |
| 9939 | cat >conftest.$ac_ext <<_ACEOF |
| 9940 | #line $LINENO "configure" |
| 9941 | #include "confdefs.h" |
| 9942 | #include <atheos/threads.h> |
| 9943 | _ACEOF |
| 9944 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 9945 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9946 | ac_status=$? |
| 9947 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 9948 | rm -f conftest.er1 |
| 9949 | cat conftest.err >&5 |
| 9950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9951 | (exit $ac_status); } >/dev/null; then |
| 9952 | if test -s conftest.err; then |
| 9953 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 9954 | else |
| 9955 | ac_cpp_err= |
| 9956 | fi |
| 9957 | else |
| 9958 | ac_cpp_err=yes |
| 9959 | fi |
| 9960 | if test -z "$ac_cpp_err"; then |
| 9961 | ac_header_preproc=yes |
| 9962 | else |
| 9963 | echo "$as_me: failed program was:" >&5 |
| 9964 | cat conftest.$ac_ext >&5 |
| 9965 | ac_header_preproc=no |
| 9966 | fi |
| 9967 | rm -f conftest.err conftest.$ac_ext |
| 9968 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 9969 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 9970 | |
| 9971 | # So? What about this header? |
| 9972 | case $ac_header_compiler:$ac_header_preproc in |
| 9973 | yes:no ) |
| 9974 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 9975 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 9976 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 9977 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};; |
| 9978 | no:yes ) |
| 9979 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 9980 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
| 9981 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 9982 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 9983 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 9984 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};; |
| 9985 | esac |
| 9986 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 9987 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 9988 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 9989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 9990 | else |
| 9991 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 9992 | fi |
| 9993 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 9994 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 9995 | |
| 9996 | fi |
| 9997 | if test $ac_cv_header_atheos_threads_h = yes; then |
| 9998 | cat >>confdefs.h <<\_ACEOF |
| 9999 | #define WITH_THREAD 1 |
| 10000 | _ACEOF |
| 10001 | |
| 10002 | |
| 10003 | cat >>confdefs.h <<\_ACEOF |
| 10004 | #define ATHEOS_THREADS 1 |
| 10005 | _ACEOF |
| 10006 | |
| 10007 | THREADOBJ="Python/thread.o" |
| 10008 | else |
| 10009 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10010 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10011 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 10012 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 10013 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10014 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10015 | fi |
| 10016 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 10017 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10018 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10019 | # Is the header compilable? |
| 10020 | echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 10021 | echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6 |
| 10022 | cat >conftest.$ac_ext <<_ACEOF |
| 10023 | #line $LINENO "configure" |
| 10024 | #include "confdefs.h" |
| 10025 | $ac_includes_default |
| 10026 | #include <kernel/OS.h> |
| 10027 | _ACEOF |
| 10028 | rm -f conftest.$ac_objext |
| 10029 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10030 | (eval $ac_compile) 2>&5 |
| 10031 | ac_status=$? |
| 10032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10033 | (exit $ac_status); } && |
| 10034 | { ac_try='test -s conftest.$ac_objext' |
| 10035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10036 | (eval $ac_try) 2>&5 |
| 10037 | ac_status=$? |
| 10038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10039 | (exit $ac_status); }; }; then |
| 10040 | ac_header_compiler=yes |
| 10041 | else |
| 10042 | echo "$as_me: failed program was:" >&5 |
| 10043 | cat conftest.$ac_ext >&5 |
| 10044 | ac_header_compiler=no |
| 10045 | fi |
| 10046 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10047 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10048 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10049 | |
| 10050 | # Is the header present? |
| 10051 | echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 10052 | echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6 |
| 10053 | cat >conftest.$ac_ext <<_ACEOF |
| 10054 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10055 | #include "confdefs.h" |
| 10056 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10057 | _ACEOF |
| 10058 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10059 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10060 | ac_status=$? |
| 10061 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 10062 | rm -f conftest.er1 |
| 10063 | cat conftest.err >&5 |
| 10064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10065 | (exit $ac_status); } >/dev/null; then |
| 10066 | if test -s conftest.err; then |
| 10067 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10068 | else |
| 10069 | ac_cpp_err= |
| 10070 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10071 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10072 | ac_cpp_err=yes |
| 10073 | fi |
| 10074 | if test -z "$ac_cpp_err"; then |
| 10075 | ac_header_preproc=yes |
| 10076 | else |
| 10077 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10078 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10079 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10080 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10081 | rm -f conftest.err conftest.$ac_ext |
| 10082 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10083 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10084 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10085 | # So? What about this header? |
| 10086 | case $ac_header_compiler:$ac_header_preproc in |
| 10087 | yes:no ) |
| 10088 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10089 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10090 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 10091 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};; |
| 10092 | no:yes ) |
| 10093 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 10094 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
| 10095 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 10096 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 10097 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 10098 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};; |
| 10099 | esac |
| 10100 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 10101 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 10102 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10104 | else |
| 10105 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 10106 | fi |
| 10107 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 10108 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
| 10109 | |
| 10110 | fi |
| 10111 | if test $ac_cv_header_kernel_OS_h = yes; then |
| 10112 | cat >>confdefs.h <<\_ACEOF |
| 10113 | #define WITH_THREAD 1 |
| 10114 | _ACEOF |
| 10115 | |
| 10116 | |
| 10117 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10118 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10119 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10120 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10121 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10122 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10123 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10124 | echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 10125 | echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6 |
| 10126 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 10127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10128 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10129 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10130 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10131 | cat >conftest.$ac_ext <<_ACEOF |
| 10132 | #line $LINENO "configure" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10133 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10134 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10135 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10136 | #ifdef __cplusplus |
| 10137 | extern "C" |
| 10138 | #endif |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10139 | /* 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] | 10140 | builtin and then its argument prototype would still apply. */ |
| 10141 | char pthread_create (); |
| 10142 | #ifdef F77_DUMMY_MAIN |
| 10143 | # ifdef __cplusplus |
| 10144 | extern "C" |
| 10145 | # endif |
| 10146 | int F77_DUMMY_MAIN() { return 1; } |
| 10147 | #endif |
| 10148 | int |
| 10149 | main () |
| 10150 | { |
| 10151 | pthread_create (); |
| 10152 | ; |
| 10153 | return 0; |
| 10154 | } |
| 10155 | _ACEOF |
| 10156 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10157 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10158 | (eval $ac_link) 2>&5 |
| 10159 | ac_status=$? |
| 10160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10161 | (exit $ac_status); } && |
| 10162 | { ac_try='test -s conftest$ac_exeext' |
| 10163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10164 | (eval $ac_try) 2>&5 |
| 10165 | ac_status=$? |
| 10166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10167 | (exit $ac_status); }; }; then |
| 10168 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10169 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10170 | echo "$as_me: failed program was:" >&5 |
| 10171 | cat conftest.$ac_ext >&5 |
| 10172 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10173 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10174 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10175 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10176 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10177 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 10178 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6 |
| 10179 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 10180 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10181 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10182 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10183 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10184 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10185 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10186 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10187 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10188 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10189 | echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 10190 | echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 |
| 10191 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 10192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10193 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10194 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10195 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10196 | cat >conftest.$ac_ext <<_ACEOF |
| 10197 | #line $LINENO "configure" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10198 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10199 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10200 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10201 | #ifdef __cplusplus |
| 10202 | extern "C" |
| 10203 | #endif |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10204 | /* 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] | 10205 | builtin and then its argument prototype would still apply. */ |
| 10206 | char pthread_create (); |
| 10207 | #ifdef F77_DUMMY_MAIN |
| 10208 | # ifdef __cplusplus |
| 10209 | extern "C" |
| 10210 | # endif |
| 10211 | int F77_DUMMY_MAIN() { return 1; } |
| 10212 | #endif |
| 10213 | int |
| 10214 | main () |
| 10215 | { |
| 10216 | pthread_create (); |
| 10217 | ; |
| 10218 | return 0; |
| 10219 | } |
| 10220 | _ACEOF |
| 10221 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10222 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10223 | (eval $ac_link) 2>&5 |
| 10224 | ac_status=$? |
| 10225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10226 | (exit $ac_status); } && |
| 10227 | { ac_try='test -s conftest$ac_exeext' |
| 10228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10229 | (eval $ac_try) 2>&5 |
| 10230 | ac_status=$? |
| 10231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10232 | (exit $ac_status); }; }; then |
| 10233 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10234 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10235 | echo "$as_me: failed program was:" >&5 |
| 10236 | cat conftest.$ac_ext >&5 |
| 10237 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10238 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10239 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10240 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10241 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10242 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 10243 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 |
| 10244 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 10245 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10246 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10247 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10248 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10249 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10250 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10251 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10252 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10253 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10254 | echo "$as_me:$LINENO: checking for __d6_pthread_create in -lthread" >&5 |
| 10255 | echo $ECHO_N "checking for __d6_pthread_create in -lthread... $ECHO_C" >&6 |
| 10256 | if test "${ac_cv_lib_thread___d6_pthread_create+set}" = set; then |
| 10257 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10258 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10259 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10260 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10261 | cat >conftest.$ac_ext <<_ACEOF |
| 10262 | #line $LINENO "configure" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10263 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10264 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10265 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10266 | #ifdef __cplusplus |
| 10267 | extern "C" |
| 10268 | #endif |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10269 | /* 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] | 10270 | builtin and then its argument prototype would still apply. */ |
| 10271 | char __d6_pthread_create (); |
| 10272 | #ifdef F77_DUMMY_MAIN |
| 10273 | # ifdef __cplusplus |
| 10274 | extern "C" |
| 10275 | # endif |
| 10276 | int F77_DUMMY_MAIN() { return 1; } |
| 10277 | #endif |
| 10278 | int |
| 10279 | main () |
| 10280 | { |
| 10281 | __d6_pthread_create (); |
| 10282 | ; |
| 10283 | return 0; |
| 10284 | } |
| 10285 | _ACEOF |
| 10286 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10287 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10288 | (eval $ac_link) 2>&5 |
| 10289 | ac_status=$? |
| 10290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10291 | (exit $ac_status); } && |
| 10292 | { ac_try='test -s conftest$ac_exeext' |
| 10293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10294 | (eval $ac_try) 2>&5 |
| 10295 | ac_status=$? |
| 10296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10297 | (exit $ac_status); }; }; then |
| 10298 | ac_cv_lib_thread___d6_pthread_create=yes |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10299 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10300 | echo "$as_me: failed program was:" >&5 |
| 10301 | cat conftest.$ac_ext >&5 |
| 10302 | ac_cv_lib_thread___d6_pthread_create=no |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10303 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10304 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10305 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10306 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10307 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread___d6_pthread_create" >&5 |
| 10308 | echo "${ECHO_T}$ac_cv_lib_thread___d6_pthread_create" >&6 |
| 10309 | if test $ac_cv_lib_thread___d6_pthread_create = yes; then |
| 10310 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10311 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10312 | _ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10313 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10314 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10315 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10316 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10317 | else |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10318 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10319 | echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 10320 | echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6 |
| 10321 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 10322 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10323 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10324 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10325 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10326 | cat >conftest.$ac_ext <<_ACEOF |
| 10327 | #line $LINENO "configure" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10328 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10329 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10330 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10331 | #ifdef __cplusplus |
| 10332 | extern "C" |
| 10333 | #endif |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10334 | /* 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] | 10335 | builtin and then its argument prototype would still apply. */ |
| 10336 | char __pthread_create_system (); |
| 10337 | #ifdef F77_DUMMY_MAIN |
| 10338 | # ifdef __cplusplus |
| 10339 | extern "C" |
| 10340 | # endif |
| 10341 | int F77_DUMMY_MAIN() { return 1; } |
| 10342 | #endif |
| 10343 | int |
| 10344 | main () |
| 10345 | { |
| 10346 | __pthread_create_system (); |
| 10347 | ; |
| 10348 | return 0; |
| 10349 | } |
| 10350 | _ACEOF |
| 10351 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10352 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10353 | (eval $ac_link) 2>&5 |
| 10354 | ac_status=$? |
| 10355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10356 | (exit $ac_status); } && |
| 10357 | { ac_try='test -s conftest$ac_exeext' |
| 10358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10359 | (eval $ac_try) 2>&5 |
| 10360 | ac_status=$? |
| 10361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10362 | (exit $ac_status); }; }; then |
| 10363 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10364 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10365 | echo "$as_me: failed program was:" >&5 |
| 10366 | cat conftest.$ac_ext >&5 |
| 10367 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10368 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10369 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10370 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10371 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10372 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 10373 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6 |
| 10374 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 10375 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10376 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10377 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10378 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10379 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10380 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10381 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10382 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10383 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10384 | echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 10385 | echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6 |
| 10386 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 10387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10388 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10389 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10390 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10391 | cat >conftest.$ac_ext <<_ACEOF |
| 10392 | #line $LINENO "configure" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10393 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10394 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10395 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10396 | #ifdef __cplusplus |
| 10397 | extern "C" |
| 10398 | #endif |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10399 | /* 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] | 10400 | builtin and then its argument prototype would still apply. */ |
| 10401 | char pthread_create (); |
| 10402 | #ifdef F77_DUMMY_MAIN |
| 10403 | # ifdef __cplusplus |
| 10404 | extern "C" |
| 10405 | # endif |
| 10406 | int F77_DUMMY_MAIN() { return 1; } |
| 10407 | #endif |
| 10408 | int |
| 10409 | main () |
| 10410 | { |
| 10411 | pthread_create (); |
| 10412 | ; |
| 10413 | return 0; |
| 10414 | } |
| 10415 | _ACEOF |
| 10416 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10417 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10418 | (eval $ac_link) 2>&5 |
| 10419 | ac_status=$? |
| 10420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10421 | (exit $ac_status); } && |
| 10422 | { ac_try='test -s conftest$ac_exeext' |
| 10423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10424 | (eval $ac_try) 2>&5 |
| 10425 | ac_status=$? |
| 10426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10427 | (exit $ac_status); }; }; then |
| 10428 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10429 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10430 | echo "$as_me: failed program was:" >&5 |
| 10431 | cat conftest.$ac_ext >&5 |
| 10432 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10433 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10434 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10435 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10436 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10437 | echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 10438 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6 |
| 10439 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 10440 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10441 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10442 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10443 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10444 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10445 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10446 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10447 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 10448 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10449 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 10450 | fi |
| 10451 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10452 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10453 | fi |
| 10454 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 10455 | fi |
| 10456 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10457 | fi |
| 10458 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10459 | fi |
| 10460 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10461 | fi |
| 10462 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10463 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10464 | fi |
| 10465 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10466 | |
| 10467 | fi |
| 10468 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10469 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10470 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10471 | fi; |
| 10472 | fi |
| 10473 | |
| 10474 | |
| 10475 | fi |
| 10476 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10477 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10478 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10479 | if test "$posix_threads" = "yes"; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10480 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10481 | |
| 10482 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10483 | #define _POSIX_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10484 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10485 | |
| 10486 | fi |
| 10487 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10488 | echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 10489 | echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6 |
| 10490 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 10491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10492 | else |
| 10493 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 10494 | ac_cv_pthread_system_supported=no |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10495 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10496 | cat >conftest.$ac_ext <<_ACEOF |
| 10497 | #line $LINENO "configure" |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10498 | #include "confdefs.h" |
| 10499 | #include <pthread.h> |
| 10500 | void *foo(void *parm) { |
| 10501 | return NULL; |
| 10502 | } |
| 10503 | main() { |
| 10504 | pthread_attr_t attr; |
Martin v. Löwis | a82d347 | 2002-02-24 16:05:05 +0000 | [diff] [blame] | 10505 | pthread_t id; |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10506 | if (pthread_attr_init(&attr)) exit(-1); |
| 10507 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
Martin v. Löwis | a82d347 | 2002-02-24 16:05:05 +0000 | [diff] [blame] | 10508 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10509 | exit(0); |
| 10510 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10511 | _ACEOF |
| 10512 | rm -f conftest$ac_exeext |
| 10513 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10514 | (eval $ac_link) 2>&5 |
| 10515 | ac_status=$? |
| 10516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10517 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10519 | (eval $ac_try) 2>&5 |
| 10520 | ac_status=$? |
| 10521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10522 | (exit $ac_status); }; }; then |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10523 | ac_cv_pthread_system_supported=yes |
| 10524 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10525 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10526 | echo "$as_me: failed program was:" >&5 |
| 10527 | cat conftest.$ac_ext >&5 |
| 10528 | ( exit $ac_status ) |
| 10529 | ac_cv_pthread_system_supported=no |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10530 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10531 | 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] | 10532 | fi |
| 10533 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10534 | fi |
| 10535 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10536 | echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 10537 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10538 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10539 | |
| 10540 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10541 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10542 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10543 | |
| 10544 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10545 | |
| 10546 | for ac_func in pthread_sigmask |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10547 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10548 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10549 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 10550 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 10551 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 10552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10553 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10554 | cat >conftest.$ac_ext <<_ACEOF |
| 10555 | #line $LINENO "configure" |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10556 | #include "confdefs.h" |
| 10557 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10558 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10559 | #include <assert.h> |
| 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 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +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 $ac_func (); |
| 10567 | char (*f) (); |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10568 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10569 | #ifdef F77_DUMMY_MAIN |
| 10570 | # ifdef __cplusplus |
| 10571 | extern "C" |
| 10572 | # endif |
| 10573 | int F77_DUMMY_MAIN() { return 1; } |
| 10574 | #endif |
| 10575 | int |
| 10576 | main () |
| 10577 | { |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10578 | /* The GNU C library defines this for functions which it implements |
| 10579 | to always fail with ENOSYS. Some functions are actually named |
| 10580 | something starting with __ and the normal name is an alias. */ |
| 10581 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 10582 | choke me |
| 10583 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10584 | f = $ac_func; |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10585 | #endif |
| 10586 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10587 | ; |
| 10588 | return 0; |
| 10589 | } |
| 10590 | _ACEOF |
| 10591 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10592 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10593 | (eval $ac_link) 2>&5 |
| 10594 | ac_status=$? |
| 10595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10596 | (exit $ac_status); } && |
| 10597 | { ac_try='test -s conftest$ac_exeext' |
| 10598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10599 | (eval $ac_try) 2>&5 |
| 10600 | ac_status=$? |
| 10601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10602 | (exit $ac_status); }; }; then |
| 10603 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10604 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10605 | echo "$as_me: failed program was:" >&5 |
| 10606 | cat conftest.$ac_ext >&5 |
| 10607 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10608 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10609 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10610 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10611 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 10612 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 10613 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 10614 | cat >>confdefs.h <<_ACEOF |
| 10615 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10616 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10617 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10618 | fi |
| 10619 | done |
| 10620 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10621 | fi |
| 10622 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10623 | echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 10624 | echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6 |
| 10625 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 10626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10627 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10628 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10629 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10630 | cat >conftest.$ac_ext <<_ACEOF |
| 10631 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10632 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10633 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10634 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10635 | #ifdef __cplusplus |
| 10636 | extern "C" |
| 10637 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10638 | /* 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] | 10639 | builtin and then its argument prototype would still apply. */ |
| 10640 | char usconfig (); |
| 10641 | #ifdef F77_DUMMY_MAIN |
| 10642 | # ifdef __cplusplus |
| 10643 | extern "C" |
| 10644 | # endif |
| 10645 | int F77_DUMMY_MAIN() { return 1; } |
| 10646 | #endif |
| 10647 | int |
| 10648 | main () |
| 10649 | { |
| 10650 | usconfig (); |
| 10651 | ; |
| 10652 | return 0; |
| 10653 | } |
| 10654 | _ACEOF |
| 10655 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10656 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10657 | (eval $ac_link) 2>&5 |
| 10658 | ac_status=$? |
| 10659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10660 | (exit $ac_status); } && |
| 10661 | { ac_try='test -s conftest$ac_exeext' |
| 10662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10663 | (eval $ac_try) 2>&5 |
| 10664 | ac_status=$? |
| 10665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10666 | (exit $ac_status); }; }; then |
| 10667 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10668 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10669 | echo "$as_me: failed program was:" >&5 |
| 10670 | cat conftest.$ac_ext >&5 |
| 10671 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10672 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10673 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10674 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10675 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10676 | echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 10677 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6 |
| 10678 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 10679 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10680 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10681 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10682 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10683 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10684 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10685 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10686 | fi |
| 10687 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10688 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10689 | if test $posix_threads != "yes"; then |
| 10690 | echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 10691 | echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6 |
| 10692 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 10693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10694 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10695 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10696 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10697 | cat >conftest.$ac_ext <<_ACEOF |
| 10698 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10699 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10700 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10701 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10702 | #ifdef __cplusplus |
| 10703 | extern "C" |
| 10704 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10705 | /* 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] | 10706 | builtin and then its argument prototype would still apply. */ |
| 10707 | char thr_create (); |
| 10708 | #ifdef F77_DUMMY_MAIN |
| 10709 | # ifdef __cplusplus |
| 10710 | extern "C" |
| 10711 | # endif |
| 10712 | int F77_DUMMY_MAIN() { return 1; } |
| 10713 | #endif |
| 10714 | int |
| 10715 | main () |
| 10716 | { |
| 10717 | thr_create (); |
| 10718 | ; |
| 10719 | return 0; |
| 10720 | } |
| 10721 | _ACEOF |
| 10722 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10723 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10724 | (eval $ac_link) 2>&5 |
| 10725 | ac_status=$? |
| 10726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10727 | (exit $ac_status); } && |
| 10728 | { ac_try='test -s conftest$ac_exeext' |
| 10729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10730 | (eval $ac_try) 2>&5 |
| 10731 | ac_status=$? |
| 10732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10733 | (exit $ac_status); }; }; then |
| 10734 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10735 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10736 | echo "$as_me: failed program was:" >&5 |
| 10737 | cat conftest.$ac_ext >&5 |
| 10738 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10739 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10740 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10741 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10742 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10743 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 10744 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6 |
| 10745 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 10746 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10747 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10748 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10749 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10750 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10751 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10752 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10753 | fi |
| 10754 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 10755 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10756 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10757 | if test "$USE_THREAD_MODULE" != "#" |
| 10758 | then |
| 10759 | # If the above checks didn't disable threads, (at least) OSF1 |
| 10760 | # needs this '-threads' argument during linking. |
| 10761 | case $ac_sys_system in |
| 10762 | OSF1) LDLAST=-threads;; |
| 10763 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 10764 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10765 | fi |
| 10766 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10767 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10768 | |
| 10769 | |
| 10770 | echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 10771 | 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] | 10772 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 10773 | if test "${enable_ipv6+set}" = set; then |
| 10774 | enableval="$enable_ipv6" |
| 10775 | case "$enableval" in |
| 10776 | no) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10777 | echo "$as_me:$LINENO: result: no" >&5 |
| 10778 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10779 | ipv6=no |
| 10780 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10781 | *) echo "$as_me:$LINENO: result: yes" >&5 |
| 10782 | echo "${ECHO_T}yes" >&6 |
| 10783 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10784 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10785 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10786 | |
| 10787 | ipv6=yes |
| 10788 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10789 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10790 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10791 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10792 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10793 | echo "$as_me:$LINENO: result: no" >&5 |
| 10794 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10795 | ipv6=no |
| 10796 | |
| 10797 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10798 | cat >conftest.$ac_ext <<_ACEOF |
| 10799 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10800 | #include "confdefs.h" |
| 10801 | /* AF_INET6 available check */ |
| 10802 | #include <sys/types.h> |
| 10803 | #include <sys/socket.h> |
| 10804 | main() |
| 10805 | { |
| 10806 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 10807 | exit(1); |
| 10808 | else |
| 10809 | exit(0); |
| 10810 | } |
| 10811 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10812 | _ACEOF |
| 10813 | rm -f conftest$ac_exeext |
| 10814 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10815 | (eval $ac_link) 2>&5 |
| 10816 | ac_status=$? |
| 10817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10818 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 10819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10820 | (eval $ac_try) 2>&5 |
| 10821 | ac_status=$? |
| 10822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10823 | (exit $ac_status); }; }; then |
| 10824 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10825 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10826 | ipv6=yes |
| 10827 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10828 | echo "$as_me: program exited with status $ac_status" >&5 |
| 10829 | echo "$as_me: failed program was:" >&5 |
| 10830 | cat conftest.$ac_ext >&5 |
| 10831 | ( exit $ac_status ) |
| 10832 | echo "$as_me:$LINENO: result: no" >&5 |
| 10833 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10834 | ipv6=no |
| 10835 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10836 | 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] | 10837 | fi |
| 10838 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10839 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10840 | echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 10841 | echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6 |
| 10842 | cat >conftest.$ac_ext <<_ACEOF |
| 10843 | #line $LINENO "configure" |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10844 | #include "confdefs.h" |
| 10845 | #include <sys/types.h> |
| 10846 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10847 | #ifdef F77_DUMMY_MAIN |
| 10848 | # ifdef __cplusplus |
| 10849 | extern "C" |
| 10850 | # endif |
| 10851 | int F77_DUMMY_MAIN() { return 1; } |
| 10852 | #endif |
| 10853 | int |
| 10854 | main () |
| 10855 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10856 | struct sockaddr_in6 x; |
| 10857 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10858 | ; |
| 10859 | return 0; |
| 10860 | } |
| 10861 | _ACEOF |
| 10862 | rm -f conftest.$ac_objext |
| 10863 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10864 | (eval $ac_compile) 2>&5 |
| 10865 | ac_status=$? |
| 10866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10867 | (exit $ac_status); } && |
| 10868 | { ac_try='test -s conftest.$ac_objext' |
| 10869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10870 | (eval $ac_try) 2>&5 |
| 10871 | ac_status=$? |
| 10872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10873 | (exit $ac_status); }; }; then |
| 10874 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10875 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10876 | ipv6=yes |
| 10877 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10878 | echo "$as_me: failed program was:" >&5 |
| 10879 | cat conftest.$ac_ext >&5 |
| 10880 | echo "$as_me:$LINENO: result: no" >&5 |
| 10881 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10882 | ipv6=no |
| 10883 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10884 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10885 | fi |
| 10886 | |
| 10887 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10888 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10889 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10890 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 10891 | |
| 10892 | fi |
| 10893 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10894 | fi; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10895 | |
| 10896 | ipv6type=unknown |
| 10897 | ipv6lib=none |
| 10898 | ipv6trylibc=no |
| 10899 | |
| 10900 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10901 | echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 10902 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 10903 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 10904 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10905 | case $i in |
| 10906 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10907 | cat >conftest.$ac_ext <<_ACEOF |
| 10908 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10909 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10910 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10911 | #include <netinet/in.h> |
| 10912 | #ifdef IPV6_INRIA_VERSION |
| 10913 | yes |
| 10914 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10915 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10916 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10917 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10918 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10919 | fi |
| 10920 | rm -f conftest* |
| 10921 | |
| 10922 | ;; |
| 10923 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10924 | cat >conftest.$ac_ext <<_ACEOF |
| 10925 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10926 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10927 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10928 | #include <netinet/in.h> |
| 10929 | #ifdef __KAME__ |
| 10930 | yes |
| 10931 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10932 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10933 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10934 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10935 | ipv6type=$i; |
| 10936 | ipv6lib=inet6 |
| 10937 | ipv6libdir=/usr/local/v6/lib |
| 10938 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10939 | fi |
| 10940 | rm -f conftest* |
| 10941 | |
| 10942 | ;; |
| 10943 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10944 | cat >conftest.$ac_ext <<_ACEOF |
| 10945 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10946 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10947 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10948 | #include <features.h> |
| 10949 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 10950 | yes |
| 10951 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10952 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10953 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10954 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10955 | ipv6type=$i; |
| 10956 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10957 | fi |
| 10958 | rm -f conftest* |
| 10959 | |
| 10960 | ;; |
| 10961 | linux-inet6) |
| 10962 | if test -d /usr/inet6; then |
| 10963 | ipv6type=$i |
| 10964 | ipv6lib=inet6 |
| 10965 | ipv6libdir=/usr/inet6/lib |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10966 | OPT="-I/usr/inet6/include $OPT" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10967 | fi |
| 10968 | ;; |
| 10969 | solaris) |
| 10970 | if test -f /etc/netconfig; then |
| 10971 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 10972 | ipv6type=$i |
| 10973 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10974 | fi |
| 10975 | fi |
| 10976 | ;; |
| 10977 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10978 | cat >conftest.$ac_ext <<_ACEOF |
| 10979 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10980 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10981 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10982 | #include <sys/param.h> |
| 10983 | #ifdef _TOSHIBA_INET6 |
| 10984 | yes |
| 10985 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10986 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10987 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10988 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10989 | ipv6type=$i; |
| 10990 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 10991 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10992 | fi |
| 10993 | rm -f conftest* |
| 10994 | |
| 10995 | ;; |
| 10996 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10997 | cat >conftest.$ac_ext <<_ACEOF |
| 10998 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 10999 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11000 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11001 | #include </usr/local/v6/include/sys/v6config.h> |
| 11002 | #ifdef __V6D__ |
| 11003 | yes |
| 11004 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11005 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11006 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11007 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11008 | ipv6type=$i; |
| 11009 | ipv6lib=v6; |
| 11010 | ipv6libdir=/usr/local/v6/lib; |
| 11011 | OPT="-I/usr/local/v6/include $OPT" |
| 11012 | fi |
| 11013 | rm -f conftest* |
| 11014 | |
| 11015 | ;; |
| 11016 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11017 | cat >conftest.$ac_ext <<_ACEOF |
| 11018 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11019 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11020 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11021 | #include <sys/param.h> |
| 11022 | #ifdef _ZETA_MINAMI_INET6 |
| 11023 | yes |
| 11024 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11025 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11026 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11027 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11028 | ipv6type=$i; |
| 11029 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11030 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11031 | fi |
| 11032 | rm -f conftest* |
| 11033 | |
| 11034 | ;; |
| 11035 | esac |
| 11036 | if test "$ipv6type" != "unknown"; then |
| 11037 | break |
| 11038 | fi |
| 11039 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11040 | echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 11041 | echo "${ECHO_T}$ipv6type" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11042 | fi |
| 11043 | |
| 11044 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 11045 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 11046 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 11047 | echo "using lib$ipv6lib" |
| 11048 | else |
| 11049 | if test $ipv6trylibc = "yes"; then |
| 11050 | echo "using libc" |
| 11051 | else |
| 11052 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 11053 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 11054 | echo 'ipv6 kit and compile beforehand.' |
| 11055 | exit 1 |
| 11056 | fi |
| 11057 | fi |
| 11058 | fi |
| 11059 | |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11060 | # Check for universal newline support |
| 11061 | echo "$as_me:$LINENO: checking for --with-universal-newline" >&5 |
| 11062 | echo $ECHO_N "checking for --with-universal-newline... $ECHO_C" >&6 |
| 11063 | |
| 11064 | # Check whether --with-universal-newlines or --without-universal-newlines was given. |
| 11065 | if test "${with_universal_newlines+set}" = set; then |
| 11066 | withval="$with_universal_newlines" |
| 11067 | |
| 11068 | fi; |
| 11069 | |
| 11070 | if test -z "$with_universal_newlines" |
| 11071 | then with_universal_newlines="yes" |
| 11072 | fi |
| 11073 | if test "$with_universal_newlines" != "no" |
| 11074 | then |
Martin v. Löwis | e8aea58 | 2002-04-16 05:51:02 +0000 | [diff] [blame] | 11075 | |
| 11076 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11077 | #define WITH_UNIVERSAL_NEWLINES 1 |
| 11078 | _ACEOF |
| 11079 | |
| 11080 | fi |
| 11081 | echo "$as_me:$LINENO: result: $with_universal_newlines" >&5 |
| 11082 | echo "${ECHO_T}$with_universal_newlines" >&6 |
| 11083 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11084 | # Check for --with-doc-strings |
| 11085 | echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 11086 | echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6 |
| 11087 | |
| 11088 | # Check whether --with-doc-strings or --without-doc-strings was given. |
| 11089 | if test "${with_doc_strings+set}" = set; then |
| 11090 | withval="$with_doc_strings" |
| 11091 | |
| 11092 | fi; |
| 11093 | |
| 11094 | if test -z "$with_doc_strings" |
| 11095 | then with_doc_strings="yes" |
| 11096 | fi |
| 11097 | if test "$with_doc_strings" != "no" |
| 11098 | then |
| 11099 | |
| 11100 | cat >>confdefs.h <<\_ACEOF |
| 11101 | #define WITH_DOC_STRINGS 1 |
| 11102 | _ACEOF |
| 11103 | |
| 11104 | fi |
| 11105 | echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 11106 | echo "${ECHO_T}$with_doc_strings" >&6 |
| 11107 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11108 | # Check for Python-specific malloc support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11109 | echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 11110 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6 |
| 11111 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11112 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 11113 | if test "${with_pymalloc+set}" = set; then |
| 11114 | withval="$with_pymalloc" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11115 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11116 | fi; |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11117 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11118 | if test -z "$with_pymalloc" |
| 11119 | then with_pymalloc="yes" |
| 11120 | fi |
| 11121 | if test "$with_pymalloc" != "no" |
| 11122 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11123 | |
| 11124 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11125 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11126 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11127 | |
| 11128 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11129 | echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 11130 | echo "${ECHO_T}$with_pymalloc" >&6 |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11131 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11132 | # Check for --with-wctype-functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11133 | echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 11134 | echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6 |
| 11135 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11136 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 11137 | if test "${with_wctype_functions+set}" = set; then |
| 11138 | withval="$with_wctype_functions" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11139 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11140 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11141 | then |
| 11142 | |
| 11143 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11144 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11145 | _ACEOF |
| 11146 | |
| 11147 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11148 | echo "${ECHO_T}yes" >&6 |
| 11149 | else echo "$as_me:$LINENO: result: no" >&5 |
| 11150 | echo "${ECHO_T}no" >&6 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11151 | fi |
| 11152 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11153 | echo "$as_me:$LINENO: result: no" >&5 |
| 11154 | echo "${ECHO_T}no" >&6 |
| 11155 | fi; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11156 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11157 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11158 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 11159 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11160 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11161 | echo "$as_me:$LINENO: checking for --with-sgi-dl" >&5 |
| 11162 | echo $ECHO_N "checking for --with-sgi-dl... $ECHO_C" >&6 |
| 11163 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11164 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11165 | if test "${with_sgi_dl+set}" = set; then |
| 11166 | withval="$with_sgi_dl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11167 | |
| 11168 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11169 | echo "${ECHO_T}$withval" >&6 |
| 11170 | |
| 11171 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11172 | #define WITH_SGI_DL 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11173 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11174 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11175 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11176 | dldir=$withval |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 11177 | if test ! -z "$dldir" -a -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 11178 | then LDFLAGS="$LDFLAGS -L$dldir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11179 | else { { echo "$as_me:$LINENO: error: proper usage is --with-sgi-dl=DIRECTORY" >&5 |
| 11180 | echo "$as_me: error: proper usage is --with-sgi-dl=DIRECTORY" >&2;} |
| 11181 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11182 | fi |
| 11183 | DLINCLDIR=${dldir} |
| 11184 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11185 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11186 | echo "$as_me:$LINENO: result: no" >&5 |
| 11187 | echo "${ECHO_T}no" >&6 |
| 11188 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11189 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11190 | echo "$as_me:$LINENO: checking for --with-dl-dld" >&5 |
| 11191 | echo $ECHO_N "checking for --with-dl-dld... $ECHO_C" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11192 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11193 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11194 | if test "${with_dl_dld+set}" = set; then |
| 11195 | withval="$with_dl_dld" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11196 | |
| 11197 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11198 | echo "${ECHO_T}$withval" >&6 |
| 11199 | |
| 11200 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11201 | #define WITH_DL_DLD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11202 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11203 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11204 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11205 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 11206 | dlddir=`echo "$withval" | sed 's/.*,//'` |
Barry Warsaw | 7d1219d | 2000-10-05 18:45:53 +0000 | [diff] [blame] | 11207 | 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] | 11208 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11209 | else { { echo "$as_me:$LINENO: error: proper usage is --with-dl-dld=DL_DIRECTORY" >&5 |
| 11210 | echo "$as_me: error: proper usage is --with-dl-dld=DL_DIRECTORY" >&2;} |
| 11211 | { (exit DLD_DIRECTORY); exit DLD_DIRECTORY; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11212 | fi |
| 11213 | DLINCLDIR=${dldir} |
| 11214 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11215 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11216 | echo "$as_me:$LINENO: result: no" >&5 |
| 11217 | echo "${ECHO_T}no" >&6 |
| 11218 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11219 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11220 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 11221 | # 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] | 11222 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11223 | for ac_func in dlopen |
| 11224 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11225 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11226 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11227 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11228 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11229 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11230 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11231 | cat >conftest.$ac_ext <<_ACEOF |
| 11232 | #line $LINENO "configure" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11233 | #include "confdefs.h" |
| 11234 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11235 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11236 | #include <assert.h> |
| 11237 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11238 | #ifdef __cplusplus |
| 11239 | extern "C" |
| 11240 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11241 | /* 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] | 11242 | builtin and then its argument prototype would still apply. */ |
| 11243 | char $ac_func (); |
| 11244 | char (*f) (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11245 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11246 | #ifdef F77_DUMMY_MAIN |
| 11247 | # ifdef __cplusplus |
| 11248 | extern "C" |
| 11249 | # endif |
| 11250 | int F77_DUMMY_MAIN() { return 1; } |
| 11251 | #endif |
| 11252 | int |
| 11253 | main () |
| 11254 | { |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11255 | /* The GNU C library defines this for functions which it implements |
| 11256 | to always fail with ENOSYS. Some functions are actually named |
| 11257 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11258 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11259 | choke me |
| 11260 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11261 | f = $ac_func; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11262 | #endif |
| 11263 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11264 | ; |
| 11265 | return 0; |
| 11266 | } |
| 11267 | _ACEOF |
| 11268 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11269 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11270 | (eval $ac_link) 2>&5 |
| 11271 | ac_status=$? |
| 11272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11273 | (exit $ac_status); } && |
| 11274 | { ac_try='test -s conftest$ac_exeext' |
| 11275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11276 | (eval $ac_try) 2>&5 |
| 11277 | ac_status=$? |
| 11278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11279 | (exit $ac_status); }; }; then |
| 11280 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11281 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11282 | echo "$as_me: failed program was:" >&5 |
| 11283 | cat conftest.$ac_ext >&5 |
| 11284 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11285 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11286 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11287 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11288 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11289 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11290 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11291 | cat >>confdefs.h <<_ACEOF |
| 11292 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11293 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11294 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11295 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11296 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11297 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11298 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11299 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 11300 | # loading of modules. |
| 11301 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11302 | echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 11303 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11304 | if test -z "$DYNLOADFILE" |
| 11305 | then |
| 11306 | case $ac_sys_system/$ac_sys_release in |
| 11307 | AIX*) DYNLOADFILE="dynload_aix.o";; |
| 11308 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 11309 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11310 | Darwin/*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11311 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11312 | *) |
| 11313 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 11314 | # out any dynamic loading |
| 11315 | if test "$ac_cv_func_dlopen" = yes |
| 11316 | then DYNLOADFILE="dynload_shlib.o" |
| 11317 | else DYNLOADFILE="dynload_stub.o" |
| 11318 | fi |
| 11319 | ;; |
| 11320 | esac |
| 11321 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11322 | echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 11323 | echo "${ECHO_T}$DYNLOADFILE" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11324 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 11325 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11326 | |
| 11327 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11328 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11329 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11330 | |
| 11331 | fi |
| 11332 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11333 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 11334 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11335 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11336 | echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 11337 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11338 | if test -z "$MACHDEP_OBJS" |
| 11339 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11340 | MACHDEP_OBJS=$extra_machdep_objs |
| 11341 | else |
| 11342 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11343 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11344 | echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 11345 | echo "${ECHO_T}MACHDEP_OBJS" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11346 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11347 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11348 | |
| 11349 | |
| 11350 | |
| 11351 | |
| 11352 | |
| 11353 | |
| 11354 | |
| 11355 | |
| 11356 | |
| 11357 | |
| 11358 | |
| 11359 | |
| 11360 | |
| 11361 | |
| 11362 | |
| 11363 | |
| 11364 | |
| 11365 | |
| 11366 | |
| 11367 | |
| 11368 | |
| 11369 | |
| 11370 | |
| 11371 | |
| 11372 | |
| 11373 | |
| 11374 | |
| 11375 | |
| 11376 | |
| 11377 | |
| 11378 | |
| 11379 | |
| 11380 | |
| 11381 | |
| 11382 | |
| 11383 | |
| 11384 | |
| 11385 | |
| 11386 | |
| 11387 | |
| 11388 | |
| 11389 | |
| 11390 | |
| 11391 | |
| 11392 | |
| 11393 | |
| 11394 | |
| 11395 | |
| 11396 | |
| 11397 | |
| 11398 | |
| 11399 | |
| 11400 | |
| 11401 | |
| 11402 | |
| 11403 | |
| 11404 | |
| 11405 | |
| 11406 | |
| 11407 | |
| 11408 | |
| 11409 | |
| 11410 | |
| 11411 | |
| 11412 | |
| 11413 | |
| 11414 | |
| 11415 | |
| 11416 | |
| 11417 | |
| 11418 | |
| 11419 | |
| 11420 | |
Martin v. Löwis | 06a83e9 | 2002-04-14 10:19:44 +0000 | [diff] [blame] | 11421 | |
Fred Drake | 6b3cc52 | 2002-04-15 19:20:27 +0000 | [diff] [blame] | 11422 | |
Jack Jansen | 0b06be7 | 2002-06-21 14:48:38 +0000 | [diff] [blame] | 11423 | |
Martin v. Löwis | 244edc8 | 2001-10-04 22:44:26 +0000 | [diff] [blame] | 11424 | 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] | 11425 | fchdir flock fork fsync fdatasync fpathconf ftime ftruncate \ |
Martin v. Löwis | 606edc1 | 2002-06-13 21:09:11 +0000 | [diff] [blame] | 11426 | gai_strerror getgroups getlogin getpeername getpgid getpid getpwent getwd \ |
Martin v. Löwis | 06a83e9 | 2002-04-14 10:19:44 +0000 | [diff] [blame] | 11427 | hstrerror inet_pton kill killpg link lstat mkfifo mknod mktime mremap \ |
Andrew M. Kuchling | 5821b77 | 2000-08-25 01:14:08 +0000 | [diff] [blame] | 11428 | nice pathconf pause plock poll pthread_init \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 11429 | putenv readlink \ |
Martin v. Löwis | 61c5edf | 2001-10-18 04:06:00 +0000 | [diff] [blame] | 11430 | select setegid seteuid setgid setgroups \ |
Martin v. Löwis | 791bfda | 2001-07-24 06:33:08 +0000 | [diff] [blame] | 11431 | setlocale setregid setreuid setsid setpgid setuid setvbuf snprintf \ |
Michael W. Hudson | 065c1a2 | 2002-06-06 13:03:44 +0000 | [diff] [blame] | 11432 | sigaction siginterrupt sigrelse strftime strptime symlink \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 11433 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Guido van Rossum | c524d95 | 2001-10-19 01:31:59 +0000 | [diff] [blame] | 11434 | truncate uname unsetenv waitpid _getpty getpriority |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11435 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11436 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11437 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11438 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11439 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11441 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11442 | cat >conftest.$ac_ext <<_ACEOF |
| 11443 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11444 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11445 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11446 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11447 | #include <assert.h> |
| 11448 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11449 | #ifdef __cplusplus |
| 11450 | extern "C" |
| 11451 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11452 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11453 | builtin and then its argument prototype would still apply. */ |
| 11454 | char $ac_func (); |
| 11455 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11456 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11457 | #ifdef F77_DUMMY_MAIN |
| 11458 | # ifdef __cplusplus |
| 11459 | extern "C" |
| 11460 | # endif |
| 11461 | int F77_DUMMY_MAIN() { return 1; } |
| 11462 | #endif |
| 11463 | int |
| 11464 | main () |
| 11465 | { |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11466 | /* The GNU C library defines this for functions which it implements |
| 11467 | to always fail with ENOSYS. Some functions are actually named |
| 11468 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11469 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11470 | choke me |
| 11471 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11472 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11473 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11474 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11475 | ; |
| 11476 | return 0; |
| 11477 | } |
| 11478 | _ACEOF |
| 11479 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11480 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11481 | (eval $ac_link) 2>&5 |
| 11482 | ac_status=$? |
| 11483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11484 | (exit $ac_status); } && |
| 11485 | { ac_try='test -s conftest$ac_exeext' |
| 11486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11487 | (eval $ac_try) 2>&5 |
| 11488 | ac_status=$? |
| 11489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11490 | (exit $ac_status); }; }; then |
| 11491 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11492 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11493 | echo "$as_me: failed program was:" >&5 |
| 11494 | cat conftest.$ac_ext >&5 |
| 11495 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11496 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11497 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11498 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11499 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11500 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11501 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11502 | cat >>confdefs.h <<_ACEOF |
| 11503 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11504 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11505 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11506 | fi |
| 11507 | done |
| 11508 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11509 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11510 | # check for openpty and forkpty |
| 11511 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11512 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11513 | for ac_func in openpty |
| 11514 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11515 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11516 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11517 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11518 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11520 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11521 | cat >conftest.$ac_ext <<_ACEOF |
| 11522 | #line $LINENO "configure" |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11523 | #include "confdefs.h" |
| 11524 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11525 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11526 | #include <assert.h> |
| 11527 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11528 | #ifdef __cplusplus |
| 11529 | extern "C" |
| 11530 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11531 | /* 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] | 11532 | builtin and then its argument prototype would still apply. */ |
| 11533 | char $ac_func (); |
| 11534 | char (*f) (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11535 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11536 | #ifdef F77_DUMMY_MAIN |
| 11537 | # ifdef __cplusplus |
| 11538 | extern "C" |
| 11539 | # endif |
| 11540 | int F77_DUMMY_MAIN() { return 1; } |
| 11541 | #endif |
| 11542 | int |
| 11543 | main () |
| 11544 | { |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11545 | /* The GNU C library defines this for functions which it implements |
| 11546 | to always fail with ENOSYS. Some functions are actually named |
| 11547 | something starting with __ and the normal name is an alias. */ |
| 11548 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11549 | choke me |
| 11550 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11551 | f = $ac_func; |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11552 | #endif |
| 11553 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11554 | ; |
| 11555 | return 0; |
| 11556 | } |
| 11557 | _ACEOF |
| 11558 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11559 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11560 | (eval $ac_link) 2>&5 |
| 11561 | ac_status=$? |
| 11562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11563 | (exit $ac_status); } && |
| 11564 | { ac_try='test -s conftest$ac_exeext' |
| 11565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11566 | (eval $ac_try) 2>&5 |
| 11567 | ac_status=$? |
| 11568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11569 | (exit $ac_status); }; }; then |
| 11570 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11571 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11572 | echo "$as_me: failed program was:" >&5 |
| 11573 | cat conftest.$ac_ext >&5 |
| 11574 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11575 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11576 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11577 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11578 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11579 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11580 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11581 | cat >>confdefs.h <<_ACEOF |
| 11582 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11583 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11584 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11585 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11586 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 11587 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
| 11588 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 11589 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11590 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11591 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11592 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11593 | cat >conftest.$ac_ext <<_ACEOF |
| 11594 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11595 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11596 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11597 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11598 | #ifdef __cplusplus |
| 11599 | extern "C" |
| 11600 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11601 | /* 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] | 11602 | builtin and then its argument prototype would still apply. */ |
| 11603 | char openpty (); |
| 11604 | #ifdef F77_DUMMY_MAIN |
| 11605 | # ifdef __cplusplus |
| 11606 | extern "C" |
| 11607 | # endif |
| 11608 | int F77_DUMMY_MAIN() { return 1; } |
| 11609 | #endif |
| 11610 | int |
| 11611 | main () |
| 11612 | { |
| 11613 | openpty (); |
| 11614 | ; |
| 11615 | return 0; |
| 11616 | } |
| 11617 | _ACEOF |
| 11618 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11619 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11620 | (eval $ac_link) 2>&5 |
| 11621 | ac_status=$? |
| 11622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11623 | (exit $ac_status); } && |
| 11624 | { ac_try='test -s conftest$ac_exeext' |
| 11625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11626 | (eval $ac_try) 2>&5 |
| 11627 | ac_status=$? |
| 11628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11629 | (exit $ac_status); }; }; then |
| 11630 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11631 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11632 | echo "$as_me: failed program was:" >&5 |
| 11633 | cat conftest.$ac_ext >&5 |
| 11634 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11635 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11636 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11637 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11638 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11639 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 11640 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
| 11641 | if test $ac_cv_lib_util_openpty = yes; then |
| 11642 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11643 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11644 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11645 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11646 | fi |
| 11647 | |
| 11648 | fi |
| 11649 | done |
| 11650 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11651 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11652 | for ac_func in forkpty |
| 11653 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11654 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11655 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11656 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11657 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11658 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11659 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11660 | cat >conftest.$ac_ext <<_ACEOF |
| 11661 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11662 | #include "confdefs.h" |
| 11663 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11664 | which can conflict with char $ac_func (); below. */ |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11665 | #include <assert.h> |
| 11666 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11667 | #ifdef __cplusplus |
| 11668 | extern "C" |
| 11669 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11670 | /* 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] | 11671 | builtin and then its argument prototype would still apply. */ |
| 11672 | char $ac_func (); |
| 11673 | char (*f) (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11674 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11675 | #ifdef F77_DUMMY_MAIN |
| 11676 | # ifdef __cplusplus |
| 11677 | extern "C" |
| 11678 | # endif |
| 11679 | int F77_DUMMY_MAIN() { return 1; } |
| 11680 | #endif |
| 11681 | int |
| 11682 | main () |
| 11683 | { |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11684 | /* The GNU C library defines this for functions which it implements |
| 11685 | to always fail with ENOSYS. Some functions are actually named |
| 11686 | something starting with __ and the normal name is an alias. */ |
| 11687 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11688 | choke me |
| 11689 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11690 | f = $ac_func; |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11691 | #endif |
| 11692 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11693 | ; |
| 11694 | return 0; |
| 11695 | } |
| 11696 | _ACEOF |
| 11697 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11698 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11699 | (eval $ac_link) 2>&5 |
| 11700 | ac_status=$? |
| 11701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11702 | (exit $ac_status); } && |
| 11703 | { ac_try='test -s conftest$ac_exeext' |
| 11704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11705 | (eval $ac_try) 2>&5 |
| 11706 | ac_status=$? |
| 11707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11708 | (exit $ac_status); }; }; then |
| 11709 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11710 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11711 | echo "$as_me: failed program was:" >&5 |
| 11712 | cat conftest.$ac_ext >&5 |
| 11713 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11714 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11715 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11716 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11717 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11718 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11719 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11720 | cat >>confdefs.h <<_ACEOF |
| 11721 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11722 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11723 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11724 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11725 | echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 11726 | echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6 |
| 11727 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 11728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11729 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11730 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11731 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11732 | cat >conftest.$ac_ext <<_ACEOF |
| 11733 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11734 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11735 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11736 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11737 | #ifdef __cplusplus |
| 11738 | extern "C" |
| 11739 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11740 | /* 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] | 11741 | builtin and then its argument prototype would still apply. */ |
| 11742 | char forkpty (); |
| 11743 | #ifdef F77_DUMMY_MAIN |
| 11744 | # ifdef __cplusplus |
| 11745 | extern "C" |
| 11746 | # endif |
| 11747 | int F77_DUMMY_MAIN() { return 1; } |
| 11748 | #endif |
| 11749 | int |
| 11750 | main () |
| 11751 | { |
| 11752 | forkpty (); |
| 11753 | ; |
| 11754 | return 0; |
| 11755 | } |
| 11756 | _ACEOF |
| 11757 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11758 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11759 | (eval $ac_link) 2>&5 |
| 11760 | ac_status=$? |
| 11761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11762 | (exit $ac_status); } && |
| 11763 | { ac_try='test -s conftest$ac_exeext' |
| 11764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11765 | (eval $ac_try) 2>&5 |
| 11766 | ac_status=$? |
| 11767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11768 | (exit $ac_status); }; }; then |
| 11769 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11770 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11771 | echo "$as_me: failed program was:" >&5 |
| 11772 | cat conftest.$ac_ext >&5 |
| 11773 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11774 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11775 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11776 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11777 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11778 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 11779 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6 |
| 11780 | if test $ac_cv_lib_util_forkpty = yes; then |
| 11781 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11782 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11783 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11784 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11785 | fi |
| 11786 | |
| 11787 | fi |
| 11788 | done |
| 11789 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 11790 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11791 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11792 | |
| 11793 | |
| 11794 | |
| 11795 | |
| 11796 | |
| 11797 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 11798 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 11799 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11800 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11801 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11802 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11803 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11804 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11805 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11806 | cat >conftest.$ac_ext <<_ACEOF |
| 11807 | #line $LINENO "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11808 | #include "confdefs.h" |
| 11809 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11810 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11811 | #include <assert.h> |
| 11812 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11813 | #ifdef __cplusplus |
| 11814 | extern "C" |
| 11815 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11816 | /* 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] | 11817 | builtin and then its argument prototype would still apply. */ |
| 11818 | char $ac_func (); |
| 11819 | char (*f) (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11820 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11821 | #ifdef F77_DUMMY_MAIN |
| 11822 | # ifdef __cplusplus |
| 11823 | extern "C" |
| 11824 | # endif |
| 11825 | int F77_DUMMY_MAIN() { return 1; } |
| 11826 | #endif |
| 11827 | int |
| 11828 | main () |
| 11829 | { |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11830 | /* The GNU C library defines this for functions which it implements |
| 11831 | to always fail with ENOSYS. Some functions are actually named |
| 11832 | something starting with __ and the normal name is an alias. */ |
| 11833 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11834 | choke me |
| 11835 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11836 | f = $ac_func; |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 11837 | #endif |
| 11838 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11839 | ; |
| 11840 | return 0; |
| 11841 | } |
| 11842 | _ACEOF |
| 11843 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11844 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11845 | (eval $ac_link) 2>&5 |
| 11846 | ac_status=$? |
| 11847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11848 | (exit $ac_status); } && |
| 11849 | { ac_try='test -s conftest$ac_exeext' |
| 11850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11851 | (eval $ac_try) 2>&5 |
| 11852 | ac_status=$? |
| 11853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11854 | (exit $ac_status); }; }; then |
| 11855 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11856 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11857 | echo "$as_me: failed program was:" >&5 |
| 11858 | cat conftest.$ac_ext >&5 |
| 11859 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11860 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11861 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11862 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11863 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11864 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11865 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11866 | cat >>confdefs.h <<_ACEOF |
| 11867 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11868 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11869 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11870 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11871 | done |
| 11872 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11873 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11874 | |
| 11875 | |
| 11876 | |
| 11877 | |
| 11878 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11879 | for ac_func in dup2 getcwd strdup strerror memmove |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11880 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11881 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11882 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11883 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11884 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11886 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11887 | cat >conftest.$ac_ext <<_ACEOF |
| 11888 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11889 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11890 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11891 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11892 | #include <assert.h> |
| 11893 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11894 | #ifdef __cplusplus |
| 11895 | extern "C" |
| 11896 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11897 | /* 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] | 11898 | builtin and then its argument prototype would still apply. */ |
| 11899 | char $ac_func (); |
| 11900 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11901 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11902 | #ifdef F77_DUMMY_MAIN |
| 11903 | # ifdef __cplusplus |
| 11904 | extern "C" |
| 11905 | # endif |
| 11906 | int F77_DUMMY_MAIN() { return 1; } |
| 11907 | #endif |
| 11908 | int |
| 11909 | main () |
| 11910 | { |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11911 | /* The GNU C library defines this for functions which it implements |
| 11912 | to always fail with ENOSYS. Some functions are actually named |
| 11913 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11914 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11915 | choke me |
| 11916 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11917 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11918 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11919 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11920 | ; |
| 11921 | return 0; |
| 11922 | } |
| 11923 | _ACEOF |
| 11924 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11925 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11926 | (eval $ac_link) 2>&5 |
| 11927 | ac_status=$? |
| 11928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11929 | (exit $ac_status); } && |
| 11930 | { ac_try='test -s conftest$ac_exeext' |
| 11931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11932 | (eval $ac_try) 2>&5 |
| 11933 | ac_status=$? |
| 11934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11935 | (exit $ac_status); }; }; then |
| 11936 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11937 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11938 | echo "$as_me: failed program was:" >&5 |
| 11939 | cat conftest.$ac_ext >&5 |
| 11940 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11941 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11942 | 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] | 11943 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11944 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11945 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11946 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11947 | cat >>confdefs.h <<_ACEOF |
| 11948 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11949 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11950 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11951 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11952 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11953 | fi |
| 11954 | done |
| 11955 | |
| 11956 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11957 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11958 | for ac_func in getpgrp |
| 11959 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11960 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11961 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11962 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11963 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11964 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11965 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11966 | cat >conftest.$ac_ext <<_ACEOF |
| 11967 | #line $LINENO "configure" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11968 | #include "confdefs.h" |
| 11969 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11970 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11971 | #include <assert.h> |
| 11972 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11973 | #ifdef __cplusplus |
| 11974 | extern "C" |
| 11975 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11976 | /* 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] | 11977 | builtin and then its argument prototype would still apply. */ |
| 11978 | char $ac_func (); |
| 11979 | char (*f) (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11980 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11981 | #ifdef F77_DUMMY_MAIN |
| 11982 | # ifdef __cplusplus |
| 11983 | extern "C" |
| 11984 | # endif |
| 11985 | int F77_DUMMY_MAIN() { return 1; } |
| 11986 | #endif |
| 11987 | int |
| 11988 | main () |
| 11989 | { |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11990 | /* The GNU C library defines this for functions which it implements |
| 11991 | to always fail with ENOSYS. Some functions are actually named |
| 11992 | something starting with __ and the normal name is an alias. */ |
| 11993 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11994 | choke me |
| 11995 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11996 | f = $ac_func; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 11997 | #endif |
| 11998 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11999 | ; |
| 12000 | return 0; |
| 12001 | } |
| 12002 | _ACEOF |
| 12003 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12004 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12005 | (eval $ac_link) 2>&5 |
| 12006 | ac_status=$? |
| 12007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12008 | (exit $ac_status); } && |
| 12009 | { ac_try='test -s conftest$ac_exeext' |
| 12010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12011 | (eval $ac_try) 2>&5 |
| 12012 | ac_status=$? |
| 12013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12014 | (exit $ac_status); }; }; then |
| 12015 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12016 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12017 | echo "$as_me: failed program was:" >&5 |
| 12018 | cat conftest.$ac_ext >&5 |
| 12019 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12020 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12021 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12022 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12023 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12024 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12025 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12026 | cat >>confdefs.h <<_ACEOF |
| 12027 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12028 | _ACEOF |
| 12029 | cat >conftest.$ac_ext <<_ACEOF |
| 12030 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12031 | #include "confdefs.h" |
| 12032 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12033 | #ifdef F77_DUMMY_MAIN |
| 12034 | # ifdef __cplusplus |
| 12035 | extern "C" |
| 12036 | # endif |
| 12037 | int F77_DUMMY_MAIN() { return 1; } |
| 12038 | #endif |
| 12039 | int |
| 12040 | main () |
| 12041 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12042 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12043 | ; |
| 12044 | return 0; |
| 12045 | } |
| 12046 | _ACEOF |
| 12047 | rm -f conftest.$ac_objext |
| 12048 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12049 | (eval $ac_compile) 2>&5 |
| 12050 | ac_status=$? |
| 12051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12052 | (exit $ac_status); } && |
| 12053 | { ac_try='test -s conftest.$ac_objext' |
| 12054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12055 | (eval $ac_try) 2>&5 |
| 12056 | ac_status=$? |
| 12057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12058 | (exit $ac_status); }; }; then |
| 12059 | |
| 12060 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12061 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12062 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12063 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12064 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 12065 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12066 | echo "$as_me: failed program was:" >&5 |
| 12067 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12068 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12069 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12070 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12071 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12072 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12073 | |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12074 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
| 12075 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 |
| 12076 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12078 | else |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12079 | if test "$cross_compiling" = yes; then |
| 12080 | { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 |
| 12081 | echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} |
| 12082 | { (exit 1); exit 1; }; } |
| 12083 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12084 | cat >conftest.$ac_ext <<_ACEOF |
| 12085 | #line $LINENO "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12086 | #include "confdefs.h" |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12087 | #if HAVE_UNISTD_H |
| 12088 | # include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12089 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12090 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12091 | #ifdef F77_DUMMY_MAIN |
| 12092 | # ifdef __cplusplus |
| 12093 | extern "C" |
| 12094 | # endif |
| 12095 | int F77_DUMMY_MAIN() { return 1; } |
| 12096 | #endif |
| 12097 | int |
| 12098 | main () |
| 12099 | { |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12100 | /* If this system has a BSD-style setpgrp which takes arguments, |
| 12101 | setpgrp(1, 1) will fail with ESRCH and return -1, in that case |
| 12102 | exit successfully. */ |
| 12103 | exit (setpgrp (1,1) == -1 ? 0 : 1); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12104 | ; |
| 12105 | return 0; |
| 12106 | } |
| 12107 | _ACEOF |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12108 | rm -f conftest$ac_exeext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12109 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12110 | (eval $ac_link) 2>&5 |
| 12111 | ac_status=$? |
| 12112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12113 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12115 | (eval $ac_try) 2>&5 |
| 12116 | ac_status=$? |
| 12117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12118 | (exit $ac_status); }; }; then |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12119 | ac_cv_func_setpgrp_void=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12120 | else |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12121 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12122 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12123 | cat conftest.$ac_ext >&5 |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12124 | ( exit $ac_status ) |
| 12125 | ac_cv_func_setpgrp_void=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12126 | fi |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12127 | 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] | 12128 | fi |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12129 | fi |
| 12130 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
| 12131 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 |
| 12132 | if test $ac_cv_func_setpgrp_void = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12133 | |
| 12134 | cat >>confdefs.h <<\_ACEOF |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12135 | #define SETPGRP_VOID 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12136 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12137 | |
| 12138 | fi |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12139 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12140 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12141 | for ac_func in gettimeofday |
| 12142 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12143 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12144 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12145 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12146 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12148 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12149 | cat >conftest.$ac_ext <<_ACEOF |
| 12150 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12151 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12152 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12153 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12154 | #include <assert.h> |
| 12155 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12156 | #ifdef __cplusplus |
| 12157 | extern "C" |
| 12158 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12159 | /* 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] | 12160 | builtin and then its argument prototype would still apply. */ |
| 12161 | char $ac_func (); |
| 12162 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12163 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12164 | #ifdef F77_DUMMY_MAIN |
| 12165 | # ifdef __cplusplus |
| 12166 | extern "C" |
| 12167 | # endif |
| 12168 | int F77_DUMMY_MAIN() { return 1; } |
| 12169 | #endif |
| 12170 | int |
| 12171 | main () |
| 12172 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12173 | /* The GNU C library defines this for functions which it implements |
| 12174 | to always fail with ENOSYS. Some functions are actually named |
| 12175 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12176 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12177 | choke me |
| 12178 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12179 | f = $ac_func; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12180 | #endif |
| 12181 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12182 | ; |
| 12183 | return 0; |
| 12184 | } |
| 12185 | _ACEOF |
| 12186 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12187 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12188 | (eval $ac_link) 2>&5 |
| 12189 | ac_status=$? |
| 12190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12191 | (exit $ac_status); } && |
| 12192 | { ac_try='test -s conftest$ac_exeext' |
| 12193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12194 | (eval $ac_try) 2>&5 |
| 12195 | ac_status=$? |
| 12196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12197 | (exit $ac_status); }; }; then |
| 12198 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12199 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12200 | echo "$as_me: failed program was:" >&5 |
| 12201 | cat conftest.$ac_ext >&5 |
| 12202 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12203 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12204 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12205 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12206 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12207 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12208 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12209 | cat >>confdefs.h <<_ACEOF |
| 12210 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12211 | _ACEOF |
| 12212 | cat >conftest.$ac_ext <<_ACEOF |
| 12213 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12214 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12215 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12216 | #ifdef F77_DUMMY_MAIN |
| 12217 | # ifdef __cplusplus |
| 12218 | extern "C" |
| 12219 | # endif |
| 12220 | int F77_DUMMY_MAIN() { return 1; } |
| 12221 | #endif |
| 12222 | int |
| 12223 | main () |
| 12224 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12225 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12226 | ; |
| 12227 | return 0; |
| 12228 | } |
| 12229 | _ACEOF |
| 12230 | rm -f conftest.$ac_objext |
| 12231 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12232 | (eval $ac_compile) 2>&5 |
| 12233 | ac_status=$? |
| 12234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12235 | (exit $ac_status); } && |
| 12236 | { ac_try='test -s conftest.$ac_objext' |
| 12237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12238 | (eval $ac_try) 2>&5 |
| 12239 | ac_status=$? |
| 12240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12241 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12242 | : |
| 12243 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12244 | echo "$as_me: failed program was:" >&5 |
| 12245 | cat conftest.$ac_ext >&5 |
| 12246 | |
| 12247 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12248 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12249 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12250 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12251 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12252 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12253 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12254 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12255 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12256 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12257 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12258 | |
| 12259 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12260 | # 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] | 12261 | # for [no]getaddrinfo in netdb.h. |
| 12262 | echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 12263 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 |
| 12264 | cat >conftest.$ac_ext <<_ACEOF |
| 12265 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12266 | #include "confdefs.h" |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12267 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12268 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12269 | #include <sys/socket.h> |
| 12270 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12271 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12272 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12273 | #ifdef F77_DUMMY_MAIN |
| 12274 | # ifdef __cplusplus |
| 12275 | extern "C" |
| 12276 | # endif |
| 12277 | int F77_DUMMY_MAIN() { return 1; } |
| 12278 | #endif |
| 12279 | int |
| 12280 | main () |
| 12281 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12282 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12283 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12284 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12285 | ; |
| 12286 | return 0; |
| 12287 | } |
| 12288 | _ACEOF |
| 12289 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12290 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12291 | (eval $ac_link) 2>&5 |
| 12292 | ac_status=$? |
| 12293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12294 | (exit $ac_status); } && |
| 12295 | { ac_try='test -s conftest$ac_exeext' |
| 12296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12297 | (eval $ac_try) 2>&5 |
| 12298 | ac_status=$? |
| 12299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12300 | (exit $ac_status); }; }; then |
| 12301 | |
| 12302 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12303 | echo "${ECHO_T}yes" >&6 |
| 12304 | echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 12305 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12306 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12307 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 12308 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12309 | buggygetaddrinfo=yes |
| 12310 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12311 | cat >conftest.$ac_ext <<_ACEOF |
| 12312 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12313 | #include "confdefs.h" |
| 12314 | |
| 12315 | #include <sys/types.h> |
| 12316 | #include <netdb.h> |
| 12317 | #include <string.h> |
| 12318 | #include <sys/socket.h> |
| 12319 | #include <netinet/in.h> |
| 12320 | |
| 12321 | main() |
| 12322 | { |
| 12323 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 12324 | struct addrinfo hints, *ai, *aitop; |
| 12325 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 12326 | |
| 12327 | for (passive = 0; passive <= 1; passive++) { |
| 12328 | memset(&hints, 0, sizeof(hints)); |
| 12329 | hints.ai_family = AF_UNSPEC; |
| 12330 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 12331 | hints.ai_socktype = SOCK_STREAM; |
| 12332 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 12333 | (void)gai_strerror(gaierr); |
| 12334 | goto bad; |
| 12335 | } |
| 12336 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 12337 | if (ai->ai_addr == NULL || |
| 12338 | ai->ai_addrlen == 0 || |
| 12339 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 12340 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 12341 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 12342 | goto bad; |
| 12343 | } |
| 12344 | switch (ai->ai_family) { |
| 12345 | case AF_INET: |
| 12346 | if (strcmp(strport, "54321") != 0) { |
| 12347 | goto bad; |
| 12348 | } |
| 12349 | if (passive) { |
| 12350 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 12351 | goto bad; |
| 12352 | } |
| 12353 | } else { |
| 12354 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 12355 | goto bad; |
| 12356 | } |
| 12357 | } |
| 12358 | inet4++; |
| 12359 | break; |
| 12360 | case AF_INET6: |
| 12361 | if (strcmp(strport, "54321") != 0) { |
| 12362 | goto bad; |
| 12363 | } |
| 12364 | if (passive) { |
| 12365 | if (strcmp(straddr, "::") != 0) { |
| 12366 | goto bad; |
| 12367 | } |
| 12368 | } else { |
| 12369 | if (strcmp(straddr, "::1") != 0) { |
| 12370 | goto bad; |
| 12371 | } |
| 12372 | } |
| 12373 | inet6++; |
| 12374 | break; |
| 12375 | case AF_UNSPEC: |
| 12376 | goto bad; |
| 12377 | break; |
| 12378 | default: |
| 12379 | /* another family support? */ |
| 12380 | break; |
| 12381 | } |
| 12382 | } |
| 12383 | } |
| 12384 | |
| 12385 | if (!(inet4 == 0 || inet4 == 2)) |
| 12386 | goto bad; |
| 12387 | if (!(inet6 == 0 || inet6 == 2)) |
| 12388 | goto bad; |
| 12389 | |
| 12390 | if (aitop) |
| 12391 | freeaddrinfo(aitop); |
| 12392 | exit(0); |
| 12393 | |
| 12394 | bad: |
| 12395 | if (aitop) |
| 12396 | freeaddrinfo(aitop); |
| 12397 | exit(1); |
| 12398 | } |
| 12399 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12400 | _ACEOF |
| 12401 | rm -f conftest$ac_exeext |
| 12402 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12403 | (eval $ac_link) 2>&5 |
| 12404 | ac_status=$? |
| 12405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12406 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12408 | (eval $ac_try) 2>&5 |
| 12409 | ac_status=$? |
| 12410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12411 | (exit $ac_status); }; }; then |
| 12412 | echo "$as_me:$LINENO: result: good" >&5 |
| 12413 | echo "${ECHO_T}good" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12414 | buggygetaddrinfo=no |
| 12415 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12416 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12417 | echo "$as_me: failed program was:" >&5 |
| 12418 | cat conftest.$ac_ext >&5 |
| 12419 | ( exit $ac_status ) |
| 12420 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 12421 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12422 | buggygetaddrinfo=yes |
| 12423 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12424 | 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] | 12425 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12426 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12427 | echo "$as_me: failed program was:" >&5 |
| 12428 | cat conftest.$ac_ext >&5 |
| 12429 | |
| 12430 | echo "$as_me:$LINENO: result: no" >&5 |
| 12431 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12432 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12433 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12434 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12435 | 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] | 12436 | |
| 12437 | if test "$buggygetaddrinfo" = "yes"; then |
| 12438 | if test "$ipv6" = "yes"; then |
| 12439 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 12440 | echo ' or you can specify "--disable-ipv6"'. |
| 12441 | exit 1 |
| 12442 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12443 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12444 | |
| 12445 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12446 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12447 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12448 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12449 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12450 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 12451 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12452 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12453 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12454 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12455 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12456 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12458 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12459 | cat >conftest.$ac_ext <<_ACEOF |
| 12460 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12461 | #include "confdefs.h" |
| 12462 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12463 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12464 | #include <assert.h> |
| 12465 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12466 | #ifdef __cplusplus |
| 12467 | extern "C" |
| 12468 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12469 | /* 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] | 12470 | builtin and then its argument prototype would still apply. */ |
| 12471 | char $ac_func (); |
| 12472 | char (*f) (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12473 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12474 | #ifdef F77_DUMMY_MAIN |
| 12475 | # ifdef __cplusplus |
| 12476 | extern "C" |
| 12477 | # endif |
| 12478 | int F77_DUMMY_MAIN() { return 1; } |
| 12479 | #endif |
| 12480 | int |
| 12481 | main () |
| 12482 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12483 | /* The GNU C library defines this for functions which it implements |
| 12484 | to always fail with ENOSYS. Some functions are actually named |
| 12485 | something starting with __ and the normal name is an alias. */ |
| 12486 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12487 | choke me |
| 12488 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12489 | f = $ac_func; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12490 | #endif |
| 12491 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12492 | ; |
| 12493 | return 0; |
| 12494 | } |
| 12495 | _ACEOF |
| 12496 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12497 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12498 | (eval $ac_link) 2>&5 |
| 12499 | ac_status=$? |
| 12500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12501 | (exit $ac_status); } && |
| 12502 | { ac_try='test -s conftest$ac_exeext' |
| 12503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12504 | (eval $ac_try) 2>&5 |
| 12505 | ac_status=$? |
| 12506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12507 | (exit $ac_status); }; }; then |
| 12508 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12509 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12510 | echo "$as_me: failed program was:" >&5 |
| 12511 | cat conftest.$ac_ext >&5 |
| 12512 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12513 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12514 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12515 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12516 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12517 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12518 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12519 | cat >>confdefs.h <<_ACEOF |
| 12520 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12521 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12522 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12523 | fi |
| 12524 | done |
| 12525 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12526 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12527 | # checks for structures |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12528 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 12529 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 12530 | if test "${ac_cv_header_time+set}" = set; then |
| 12531 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12532 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12533 | cat >conftest.$ac_ext <<_ACEOF |
| 12534 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12535 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12536 | #include <sys/types.h> |
| 12537 | #include <sys/time.h> |
| 12538 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12539 | |
| 12540 | #ifdef F77_DUMMY_MAIN |
| 12541 | # ifdef __cplusplus |
| 12542 | extern "C" |
| 12543 | # endif |
| 12544 | int F77_DUMMY_MAIN() { return 1; } |
| 12545 | #endif |
| 12546 | int |
| 12547 | main () |
| 12548 | { |
| 12549 | if ((struct tm *) 0) |
| 12550 | return 0; |
| 12551 | ; |
| 12552 | return 0; |
| 12553 | } |
| 12554 | _ACEOF |
| 12555 | rm -f conftest.$ac_objext |
| 12556 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12557 | (eval $ac_compile) 2>&5 |
| 12558 | ac_status=$? |
| 12559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12560 | (exit $ac_status); } && |
| 12561 | { ac_try='test -s conftest.$ac_objext' |
| 12562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12563 | (eval $ac_try) 2>&5 |
| 12564 | ac_status=$? |
| 12565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12566 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12567 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12568 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12569 | echo "$as_me: failed program was:" >&5 |
| 12570 | cat conftest.$ac_ext >&5 |
| 12571 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12572 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12573 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12574 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12575 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 12576 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12577 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12578 | |
| 12579 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12580 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12581 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12582 | |
| 12583 | fi |
| 12584 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12585 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 12586 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 12587 | if test "${ac_cv_struct_tm+set}" = set; then |
| 12588 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12589 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12590 | cat >conftest.$ac_ext <<_ACEOF |
| 12591 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12592 | #include "confdefs.h" |
| 12593 | #include <sys/types.h> |
| 12594 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12595 | |
| 12596 | #ifdef F77_DUMMY_MAIN |
| 12597 | # ifdef __cplusplus |
| 12598 | extern "C" |
| 12599 | # endif |
| 12600 | int F77_DUMMY_MAIN() { return 1; } |
| 12601 | #endif |
| 12602 | int |
| 12603 | main () |
| 12604 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12605 | struct tm *tp; tp->tm_sec; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12606 | ; |
| 12607 | return 0; |
| 12608 | } |
| 12609 | _ACEOF |
| 12610 | rm -f conftest.$ac_objext |
| 12611 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12612 | (eval $ac_compile) 2>&5 |
| 12613 | ac_status=$? |
| 12614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12615 | (exit $ac_status); } && |
| 12616 | { ac_try='test -s conftest.$ac_objext' |
| 12617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12618 | (eval $ac_try) 2>&5 |
| 12619 | ac_status=$? |
| 12620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12621 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12622 | ac_cv_struct_tm=time.h |
| 12623 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12624 | echo "$as_me: failed program was:" >&5 |
| 12625 | cat conftest.$ac_ext >&5 |
| 12626 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12627 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12628 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12629 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12630 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 12631 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12632 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12633 | |
| 12634 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12635 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12636 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12637 | |
| 12638 | fi |
| 12639 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12640 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 12641 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 12642 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 12643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12644 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12645 | cat >conftest.$ac_ext <<_ACEOF |
| 12646 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12647 | #include "confdefs.h" |
| 12648 | #include <sys/types.h> |
| 12649 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12650 | |
| 12651 | |
| 12652 | #ifdef F77_DUMMY_MAIN |
| 12653 | # ifdef __cplusplus |
| 12654 | extern "C" |
| 12655 | # endif |
| 12656 | int F77_DUMMY_MAIN() { return 1; } |
| 12657 | #endif |
| 12658 | int |
| 12659 | main () |
| 12660 | { |
| 12661 | static struct tm ac_aggr; |
| 12662 | if (ac_aggr.tm_zone) |
| 12663 | return 0; |
| 12664 | ; |
| 12665 | return 0; |
| 12666 | } |
| 12667 | _ACEOF |
| 12668 | rm -f conftest.$ac_objext |
| 12669 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12670 | (eval $ac_compile) 2>&5 |
| 12671 | ac_status=$? |
| 12672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12673 | (exit $ac_status); } && |
| 12674 | { ac_try='test -s conftest.$ac_objext' |
| 12675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12676 | (eval $ac_try) 2>&5 |
| 12677 | ac_status=$? |
| 12678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12679 | (exit $ac_status); }; }; then |
| 12680 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12681 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12682 | echo "$as_me: failed program was:" >&5 |
| 12683 | cat conftest.$ac_ext >&5 |
| 12684 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12685 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12686 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12687 | fi |
| 12688 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 12689 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 12690 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 12691 | |
| 12692 | cat >>confdefs.h <<_ACEOF |
| 12693 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 12694 | _ACEOF |
| 12695 | |
| 12696 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12697 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12698 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12699 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 12700 | |
| 12701 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12702 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12703 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12704 | |
| 12705 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12706 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 12707 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 12708 | if test "${ac_cv_var_tzname+set}" = set; then |
| 12709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12710 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12711 | cat >conftest.$ac_ext <<_ACEOF |
| 12712 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12713 | #include "confdefs.h" |
| 12714 | #include <time.h> |
| 12715 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12716 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12717 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12718 | |
| 12719 | #ifdef F77_DUMMY_MAIN |
| 12720 | # ifdef __cplusplus |
| 12721 | extern "C" |
| 12722 | # endif |
| 12723 | int F77_DUMMY_MAIN() { return 1; } |
| 12724 | #endif |
| 12725 | int |
| 12726 | main () |
| 12727 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12728 | atoi(*tzname); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12729 | ; |
| 12730 | return 0; |
| 12731 | } |
| 12732 | _ACEOF |
| 12733 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12734 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12735 | (eval $ac_link) 2>&5 |
| 12736 | ac_status=$? |
| 12737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12738 | (exit $ac_status); } && |
| 12739 | { ac_try='test -s conftest$ac_exeext' |
| 12740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12741 | (eval $ac_try) 2>&5 |
| 12742 | ac_status=$? |
| 12743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12744 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12745 | ac_cv_var_tzname=yes |
| 12746 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12747 | echo "$as_me: failed program was:" >&5 |
| 12748 | cat conftest.$ac_ext >&5 |
| 12749 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12750 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12751 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12752 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12753 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 12754 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12755 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12756 | |
| 12757 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12758 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12759 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12760 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12761 | fi |
| 12762 | fi |
| 12763 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12764 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12765 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 12766 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 |
| 12767 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 12768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 12769 | else |
| 12770 | cat >conftest.$ac_ext <<_ACEOF |
| 12771 | #line $LINENO "configure" |
| 12772 | #include "confdefs.h" |
| 12773 | $ac_includes_default |
| 12774 | #ifdef F77_DUMMY_MAIN |
| 12775 | # ifdef __cplusplus |
| 12776 | extern "C" |
| 12777 | # endif |
| 12778 | int F77_DUMMY_MAIN() { return 1; } |
| 12779 | #endif |
| 12780 | int |
| 12781 | main () |
| 12782 | { |
| 12783 | static struct stat ac_aggr; |
| 12784 | if (ac_aggr.st_rdev) |
| 12785 | return 0; |
| 12786 | ; |
| 12787 | return 0; |
| 12788 | } |
| 12789 | _ACEOF |
| 12790 | rm -f conftest.$ac_objext |
| 12791 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12792 | (eval $ac_compile) 2>&5 |
| 12793 | ac_status=$? |
| 12794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12795 | (exit $ac_status); } && |
| 12796 | { ac_try='test -s conftest.$ac_objext' |
| 12797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12798 | (eval $ac_try) 2>&5 |
| 12799 | ac_status=$? |
| 12800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12801 | (exit $ac_status); }; }; then |
| 12802 | ac_cv_member_struct_stat_st_rdev=yes |
| 12803 | else |
| 12804 | echo "$as_me: failed program was:" >&5 |
| 12805 | cat conftest.$ac_ext >&5 |
| 12806 | ac_cv_member_struct_stat_st_rdev=no |
| 12807 | fi |
| 12808 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12809 | fi |
| 12810 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 12811 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 |
| 12812 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 12813 | |
| 12814 | cat >>confdefs.h <<_ACEOF |
| 12815 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 12816 | _ACEOF |
| 12817 | |
| 12818 | |
| 12819 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12820 | #define HAVE_ST_RDEV 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12821 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12822 | |
| 12823 | fi |
| 12824 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12825 | |
| 12826 | |
| 12827 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 12828 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| 12829 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 12830 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12831 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12832 | cat >conftest.$ac_ext <<_ACEOF |
| 12833 | #line $LINENO "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12834 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12835 | $ac_includes_default |
| 12836 | #ifdef F77_DUMMY_MAIN |
| 12837 | # ifdef __cplusplus |
| 12838 | extern "C" |
| 12839 | # endif |
| 12840 | int F77_DUMMY_MAIN() { return 1; } |
| 12841 | #endif |
| 12842 | int |
| 12843 | main () |
| 12844 | { |
| 12845 | static struct stat ac_aggr; |
| 12846 | if (ac_aggr.st_blksize) |
| 12847 | return 0; |
| 12848 | ; |
| 12849 | return 0; |
| 12850 | } |
| 12851 | _ACEOF |
| 12852 | rm -f conftest.$ac_objext |
| 12853 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12854 | (eval $ac_compile) 2>&5 |
| 12855 | ac_status=$? |
| 12856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12857 | (exit $ac_status); } && |
| 12858 | { ac_try='test -s conftest.$ac_objext' |
| 12859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12860 | (eval $ac_try) 2>&5 |
| 12861 | ac_status=$? |
| 12862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12863 | (exit $ac_status); }; }; then |
| 12864 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12865 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12866 | echo "$as_me: failed program was:" >&5 |
| 12867 | cat conftest.$ac_ext >&5 |
| 12868 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12869 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12870 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12871 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12872 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 12873 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| 12874 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12875 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12876 | cat >>confdefs.h <<_ACEOF |
| 12877 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 12878 | _ACEOF |
| 12879 | |
| 12880 | |
| 12881 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12882 | #define HAVE_ST_BLKSIZE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12883 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12884 | |
| 12885 | fi |
| 12886 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12887 | |
| 12888 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 12889 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 12890 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 12891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12892 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12893 | cat >conftest.$ac_ext <<_ACEOF |
| 12894 | #line $LINENO "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12895 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12896 | $ac_includes_default |
| 12897 | #ifdef F77_DUMMY_MAIN |
| 12898 | # ifdef __cplusplus |
| 12899 | extern "C" |
| 12900 | # endif |
| 12901 | int F77_DUMMY_MAIN() { return 1; } |
| 12902 | #endif |
| 12903 | int |
| 12904 | main () |
| 12905 | { |
| 12906 | static struct stat ac_aggr; |
| 12907 | if (ac_aggr.st_blocks) |
| 12908 | return 0; |
| 12909 | ; |
| 12910 | return 0; |
| 12911 | } |
| 12912 | _ACEOF |
| 12913 | rm -f conftest.$ac_objext |
| 12914 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12915 | (eval $ac_compile) 2>&5 |
| 12916 | ac_status=$? |
| 12917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12918 | (exit $ac_status); } && |
| 12919 | { ac_try='test -s conftest.$ac_objext' |
| 12920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12921 | (eval $ac_try) 2>&5 |
| 12922 | ac_status=$? |
| 12923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12924 | (exit $ac_status); }; }; then |
| 12925 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12926 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12927 | echo "$as_me: failed program was:" >&5 |
| 12928 | cat conftest.$ac_ext >&5 |
| 12929 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12930 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12931 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12932 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12933 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 12934 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 12935 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12936 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12937 | cat >>confdefs.h <<_ACEOF |
| 12938 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 12939 | _ACEOF |
| 12940 | |
| 12941 | |
| 12942 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12943 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12944 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12945 | |
| 12946 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12947 | LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 12948 | fi |
| 12949 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12950 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12951 | |
| 12952 | echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 12953 | echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6 |
| 12954 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 12955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12956 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12957 | cat >conftest.$ac_ext <<_ACEOF |
| 12958 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12959 | #include "confdefs.h" |
| 12960 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12961 | #ifdef F77_DUMMY_MAIN |
| 12962 | # ifdef __cplusplus |
| 12963 | extern "C" |
| 12964 | # endif |
| 12965 | int F77_DUMMY_MAIN() { return 1; } |
| 12966 | #endif |
| 12967 | int |
| 12968 | main () |
| 12969 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12970 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12971 | ; |
| 12972 | return 0; |
| 12973 | } |
| 12974 | _ACEOF |
| 12975 | rm -f conftest.$ac_objext |
| 12976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12977 | (eval $ac_compile) 2>&5 |
| 12978 | ac_status=$? |
| 12979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12980 | (exit $ac_status); } && |
| 12981 | { ac_try='test -s conftest.$ac_objext' |
| 12982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12983 | (eval $ac_try) 2>&5 |
| 12984 | ac_status=$? |
| 12985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12986 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12987 | ac_cv_header_time_altzone=yes |
| 12988 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12989 | echo "$as_me: failed program was:" >&5 |
| 12990 | cat conftest.$ac_ext >&5 |
| 12991 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 12992 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12993 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12994 | fi |
| 12995 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12996 | echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 12997 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12998 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12999 | |
| 13000 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13001 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13002 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13003 | |
| 13004 | fi |
| 13005 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13006 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13007 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 13008 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 13009 | cat >conftest.$ac_ext <<_ACEOF |
| 13010 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13011 | #include "confdefs.h" |
| 13012 | |
| 13013 | #include <sys/types.h> |
| 13014 | #include <sys/select.h> |
| 13015 | #include <sys/time.h> |
| 13016 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13017 | #ifdef F77_DUMMY_MAIN |
| 13018 | # ifdef __cplusplus |
| 13019 | extern "C" |
| 13020 | # endif |
| 13021 | int F77_DUMMY_MAIN() { return 1; } |
| 13022 | #endif |
| 13023 | int |
| 13024 | main () |
| 13025 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13026 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13027 | ; |
| 13028 | return 0; |
| 13029 | } |
| 13030 | _ACEOF |
| 13031 | rm -f conftest.$ac_objext |
| 13032 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13033 | (eval $ac_compile) 2>&5 |
| 13034 | ac_status=$? |
| 13035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13036 | (exit $ac_status); } && |
| 13037 | { ac_try='test -s conftest.$ac_objext' |
| 13038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13039 | (eval $ac_try) 2>&5 |
| 13040 | ac_status=$? |
| 13041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13042 | (exit $ac_status); }; }; then |
| 13043 | |
| 13044 | |
| 13045 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13046 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13047 | _ACEOF |
| 13048 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13049 | was_it_defined=yes |
| 13050 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13051 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13052 | echo "$as_me: failed program was:" >&5 |
| 13053 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13054 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13055 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13056 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 13057 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13058 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13059 | echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 13060 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6 |
| 13061 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 13062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13063 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13064 | cat >conftest.$ac_ext <<_ACEOF |
| 13065 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13066 | #include "confdefs.h" |
| 13067 | |
| 13068 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13069 | #ifdef F77_DUMMY_MAIN |
| 13070 | # ifdef __cplusplus |
| 13071 | extern "C" |
| 13072 | # endif |
| 13073 | int F77_DUMMY_MAIN() { return 1; } |
| 13074 | #endif |
| 13075 | int |
| 13076 | main () |
| 13077 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13078 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13079 | ; |
| 13080 | return 0; |
| 13081 | } |
| 13082 | _ACEOF |
| 13083 | rm -f conftest.$ac_objext |
| 13084 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13085 | (eval $ac_compile) 2>&5 |
| 13086 | ac_status=$? |
| 13087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13088 | (exit $ac_status); } && |
| 13089 | { ac_try='test -s conftest.$ac_objext' |
| 13090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13091 | (eval $ac_try) 2>&5 |
| 13092 | ac_status=$? |
| 13093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13094 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13095 | ac_cv_struct_addrinfo=yes |
| 13096 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13097 | echo "$as_me: failed program was:" >&5 |
| 13098 | cat conftest.$ac_ext >&5 |
| 13099 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13100 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13101 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13102 | fi |
| 13103 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13104 | echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 13105 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13106 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13107 | |
| 13108 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13109 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13110 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13111 | |
| 13112 | fi |
| 13113 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13114 | echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 13115 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 |
| 13116 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 13117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13118 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13119 | cat >conftest.$ac_ext <<_ACEOF |
| 13120 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13121 | #include "confdefs.h" |
| 13122 | |
| 13123 | # include <sys/types.h> |
| 13124 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13125 | #ifdef F77_DUMMY_MAIN |
| 13126 | # ifdef __cplusplus |
| 13127 | extern "C" |
| 13128 | # endif |
| 13129 | int F77_DUMMY_MAIN() { return 1; } |
| 13130 | #endif |
| 13131 | int |
| 13132 | main () |
| 13133 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13134 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13135 | ; |
| 13136 | return 0; |
| 13137 | } |
| 13138 | _ACEOF |
| 13139 | rm -f conftest.$ac_objext |
| 13140 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13141 | (eval $ac_compile) 2>&5 |
| 13142 | ac_status=$? |
| 13143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13144 | (exit $ac_status); } && |
| 13145 | { ac_try='test -s conftest.$ac_objext' |
| 13146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13147 | (eval $ac_try) 2>&5 |
| 13148 | ac_status=$? |
| 13149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13150 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13151 | ac_cv_struct_sockaddr_storage=yes |
| 13152 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13153 | echo "$as_me: failed program was:" >&5 |
| 13154 | cat conftest.$ac_ext >&5 |
| 13155 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13156 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13157 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13158 | fi |
| 13159 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13160 | echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 13161 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13162 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13163 | |
| 13164 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13165 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13166 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13167 | |
| 13168 | fi |
| 13169 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13170 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13171 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13172 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13173 | echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 13174 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
| 13175 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 13176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13177 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13178 | cat >conftest.$ac_ext <<_ACEOF |
| 13179 | #line $LINENO "configure" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13180 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13181 | $ac_includes_default |
| 13182 | #ifdef F77_DUMMY_MAIN |
| 13183 | # ifdef __cplusplus |
| 13184 | extern "C" |
| 13185 | # endif |
| 13186 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13187 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13188 | int |
| 13189 | main () |
| 13190 | { |
| 13191 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 13192 | test_array [0] = 0 |
| 13193 | |
| 13194 | ; |
| 13195 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13196 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13197 | _ACEOF |
| 13198 | rm -f conftest.$ac_objext |
| 13199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13200 | (eval $ac_compile) 2>&5 |
| 13201 | ac_status=$? |
| 13202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13203 | (exit $ac_status); } && |
| 13204 | { ac_try='test -s conftest.$ac_objext' |
| 13205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13206 | (eval $ac_try) 2>&5 |
| 13207 | ac_status=$? |
| 13208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13209 | (exit $ac_status); }; }; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13210 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13211 | else |
| 13212 | echo "$as_me: failed program was:" >&5 |
| 13213 | cat conftest.$ac_ext >&5 |
| 13214 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13215 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13216 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13217 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13218 | echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 13219 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13220 | 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] | 13221 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13222 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13223 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13224 | |
| 13225 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13226 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13227 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 13228 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 13229 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 13230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13231 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13232 | ac_cv_prog_cc_stdc=no |
| 13233 | ac_save_CC=$CC |
| 13234 | cat >conftest.$ac_ext <<_ACEOF |
| 13235 | #line $LINENO "configure" |
| 13236 | #include "confdefs.h" |
| 13237 | #include <stdarg.h> |
| 13238 | #include <stdio.h> |
| 13239 | #include <sys/types.h> |
| 13240 | #include <sys/stat.h> |
| 13241 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 13242 | struct buf { int x; }; |
| 13243 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 13244 | static char *e (p, i) |
| 13245 | char **p; |
| 13246 | int i; |
| 13247 | { |
| 13248 | return p[i]; |
| 13249 | } |
| 13250 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 13251 | { |
| 13252 | char *s; |
| 13253 | va_list v; |
| 13254 | va_start (v,p); |
| 13255 | s = g (p, va_arg (v,int)); |
| 13256 | va_end (v); |
| 13257 | return s; |
| 13258 | } |
| 13259 | int test (int i, double x); |
| 13260 | struct s1 {int (*f) (int a);}; |
| 13261 | struct s2 {int (*f) (double a);}; |
| 13262 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 13263 | int argc; |
| 13264 | char **argv; |
| 13265 | #ifdef F77_DUMMY_MAIN |
| 13266 | # ifdef __cplusplus |
| 13267 | extern "C" |
| 13268 | # endif |
| 13269 | int F77_DUMMY_MAIN() { return 1; } |
| 13270 | #endif |
| 13271 | int |
| 13272 | main () |
| 13273 | { |
| 13274 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 13275 | ; |
| 13276 | return 0; |
| 13277 | } |
| 13278 | _ACEOF |
| 13279 | # Don't try gcc -ansi; that turns off useful extensions and |
| 13280 | # breaks some systems' header files. |
| 13281 | # AIX -qlanglvl=ansi |
| 13282 | # Ultrix and OSF/1 -std1 |
| 13283 | # HP-UX 10.20 and later -Ae |
| 13284 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 13285 | # SVR4 -Xc -D__EXTENSIONS__ |
| 13286 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 13287 | do |
| 13288 | CC="$ac_save_CC $ac_arg" |
| 13289 | rm -f conftest.$ac_objext |
| 13290 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13291 | (eval $ac_compile) 2>&5 |
| 13292 | ac_status=$? |
| 13293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13294 | (exit $ac_status); } && |
| 13295 | { ac_try='test -s conftest.$ac_objext' |
| 13296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13297 | (eval $ac_try) 2>&5 |
| 13298 | ac_status=$? |
| 13299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13300 | (exit $ac_status); }; }; then |
| 13301 | ac_cv_prog_cc_stdc=$ac_arg |
| 13302 | break |
| 13303 | else |
| 13304 | echo "$as_me: failed program was:" >&5 |
| 13305 | cat conftest.$ac_ext >&5 |
| 13306 | fi |
| 13307 | rm -f conftest.$ac_objext |
| 13308 | done |
| 13309 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 13310 | CC=$ac_save_CC |
| 13311 | |
| 13312 | fi |
| 13313 | |
| 13314 | case "x$ac_cv_prog_cc_stdc" in |
| 13315 | x|xno) |
| 13316 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 13317 | echo "${ECHO_T}none needed" >&6 ;; |
| 13318 | *) |
| 13319 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 13320 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 13321 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 13322 | esac |
| 13323 | |
| 13324 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 13325 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 13326 | if test "${ac_cv_c_const+set}" = set; then |
| 13327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13328 | else |
| 13329 | cat >conftest.$ac_ext <<_ACEOF |
| 13330 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13331 | #include "confdefs.h" |
| 13332 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13333 | #ifdef F77_DUMMY_MAIN |
| 13334 | # ifdef __cplusplus |
| 13335 | extern "C" |
| 13336 | # endif |
| 13337 | int F77_DUMMY_MAIN() { return 1; } |
| 13338 | #endif |
| 13339 | int |
| 13340 | main () |
| 13341 | { |
| 13342 | /* FIXME: Include the comments suggested by Paul. */ |
| 13343 | #ifndef __cplusplus |
| 13344 | /* Ultrix mips cc rejects this. */ |
| 13345 | typedef int charset[2]; |
| 13346 | const charset x; |
| 13347 | /* SunOS 4.1.1 cc rejects this. */ |
| 13348 | char const *const *ccp; |
| 13349 | char **p; |
| 13350 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 13351 | struct point {int x, y;}; |
| 13352 | static struct point const zero = {0,0}; |
| 13353 | /* AIX XL C 1.02.0.0 rejects this. |
| 13354 | It does not let you subtract one const X* pointer from another in |
| 13355 | an arm of an if-expression whose if-part is not a constant |
| 13356 | expression */ |
| 13357 | const char *g = "string"; |
| 13358 | ccp = &g + (g ? g-g : 0); |
| 13359 | /* HPUX 7.0 cc rejects these. */ |
| 13360 | ++ccp; |
| 13361 | p = (char**) ccp; |
| 13362 | ccp = (char const *const *) p; |
| 13363 | { /* SCO 3.2v4 cc rejects this. */ |
| 13364 | char *t; |
| 13365 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13366 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13367 | *t++ = 0; |
| 13368 | } |
| 13369 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 13370 | int x[] = {25, 17}; |
| 13371 | const int *foo = &x[0]; |
| 13372 | ++foo; |
| 13373 | } |
| 13374 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 13375 | typedef const int *iptr; |
| 13376 | iptr p = 0; |
| 13377 | ++p; |
| 13378 | } |
| 13379 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 13380 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 13381 | struct s { int j; const int *ap[3]; }; |
| 13382 | struct s *b; b->j = 5; |
| 13383 | } |
| 13384 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 13385 | const int foo = 10; |
| 13386 | } |
| 13387 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13388 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13389 | ; |
| 13390 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13391 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13392 | _ACEOF |
| 13393 | rm -f conftest.$ac_objext |
| 13394 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13395 | (eval $ac_compile) 2>&5 |
| 13396 | ac_status=$? |
| 13397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13398 | (exit $ac_status); } && |
| 13399 | { ac_try='test -s conftest.$ac_objext' |
| 13400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13401 | (eval $ac_try) 2>&5 |
| 13402 | ac_status=$? |
| 13403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13404 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13405 | ac_cv_c_const=yes |
| 13406 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13407 | echo "$as_me: failed program was:" >&5 |
| 13408 | cat conftest.$ac_ext >&5 |
| 13409 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13410 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13411 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13412 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13413 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 13414 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13415 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13416 | |
| 13417 | cat >>confdefs.h <<\_ACEOF |
| 13418 | #define const |
| 13419 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13420 | |
| 13421 | fi |
| 13422 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13423 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13424 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13425 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 13426 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| 13427 | cat >conftest.$ac_ext <<_ACEOF |
| 13428 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13429 | #include "confdefs.h" |
| 13430 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13431 | #ifdef F77_DUMMY_MAIN |
| 13432 | # ifdef __cplusplus |
| 13433 | extern "C" |
| 13434 | # endif |
| 13435 | int F77_DUMMY_MAIN() { return 1; } |
| 13436 | #endif |
| 13437 | int |
| 13438 | main () |
| 13439 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13440 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13441 | ; |
| 13442 | return 0; |
| 13443 | } |
| 13444 | _ACEOF |
| 13445 | rm -f conftest.$ac_objext |
| 13446 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13447 | (eval $ac_compile) 2>&5 |
| 13448 | ac_status=$? |
| 13449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13450 | (exit $ac_status); } && |
| 13451 | { ac_try='test -s conftest.$ac_objext' |
| 13452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13453 | (eval $ac_try) 2>&5 |
| 13454 | ac_status=$? |
| 13455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13456 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13457 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13458 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13459 | echo "$as_me: failed program was:" >&5 |
| 13460 | cat conftest.$ac_ext >&5 |
| 13461 | |
| 13462 | cat >>confdefs.h <<\_ACEOF |
| 13463 | #define volatile |
| 13464 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13465 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13466 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13467 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13468 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13469 | echo "$as_me:$LINENO: result: $works" >&5 |
| 13470 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13471 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13472 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13473 | echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 13474 | echo $ECHO_N "checking for working signed char... $ECHO_C" >&6 |
| 13475 | cat >conftest.$ac_ext <<_ACEOF |
| 13476 | #line $LINENO "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13477 | #include "confdefs.h" |
| 13478 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13479 | #ifdef F77_DUMMY_MAIN |
| 13480 | # ifdef __cplusplus |
| 13481 | extern "C" |
| 13482 | # endif |
| 13483 | int F77_DUMMY_MAIN() { return 1; } |
| 13484 | #endif |
| 13485 | int |
| 13486 | main () |
| 13487 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13488 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13489 | ; |
| 13490 | return 0; |
| 13491 | } |
| 13492 | _ACEOF |
| 13493 | rm -f conftest.$ac_objext |
| 13494 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13495 | (eval $ac_compile) 2>&5 |
| 13496 | ac_status=$? |
| 13497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13498 | (exit $ac_status); } && |
| 13499 | { ac_try='test -s conftest.$ac_objext' |
| 13500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13501 | (eval $ac_try) 2>&5 |
| 13502 | ac_status=$? |
| 13503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13504 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13505 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 13506 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13507 | echo "$as_me: failed program was:" >&5 |
| 13508 | cat conftest.$ac_ext >&5 |
| 13509 | |
| 13510 | cat >>confdefs.h <<\_ACEOF |
| 13511 | #define signed |
| 13512 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13513 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13514 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13515 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13516 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13517 | echo "$as_me:$LINENO: result: $works" >&5 |
| 13518 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13519 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13520 | have_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13521 | echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 13522 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6 |
| 13523 | cat >conftest.$ac_ext <<_ACEOF |
| 13524 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13525 | #include "confdefs.h" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13526 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13527 | #ifdef F77_DUMMY_MAIN |
| 13528 | # ifdef __cplusplus |
| 13529 | extern "C" |
| 13530 | # endif |
| 13531 | int F77_DUMMY_MAIN() { return 1; } |
| 13532 | #endif |
| 13533 | int |
| 13534 | main () |
| 13535 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13536 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13537 | ; |
| 13538 | return 0; |
| 13539 | } |
| 13540 | _ACEOF |
| 13541 | rm -f conftest.$ac_objext |
| 13542 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13543 | (eval $ac_compile) 2>&5 |
| 13544 | ac_status=$? |
| 13545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13546 | (exit $ac_status); } && |
| 13547 | { ac_try='test -s conftest.$ac_objext' |
| 13548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13549 | (eval $ac_try) 2>&5 |
| 13550 | ac_status=$? |
| 13551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13552 | (exit $ac_status); }; }; then |
| 13553 | |
| 13554 | |
| 13555 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13556 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13557 | _ACEOF |
| 13558 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13559 | have_prototypes=yes |
| 13560 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13561 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13562 | echo "$as_me: failed program was:" >&5 |
| 13563 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13564 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13565 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13566 | echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 13567 | echo "${ECHO_T}$have_prototypes" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13568 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13569 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13570 | echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 13571 | echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6 |
| 13572 | cat >conftest.$ac_ext <<_ACEOF |
| 13573 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13574 | #include "confdefs.h" |
| 13575 | |
| 13576 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13577 | int foo(int x, ...) { |
| 13578 | va_list va; |
| 13579 | va_start(va, x); |
| 13580 | va_arg(va, int); |
| 13581 | va_arg(va, char *); |
| 13582 | va_arg(va, double); |
| 13583 | return 0; |
| 13584 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13585 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13586 | #ifdef F77_DUMMY_MAIN |
| 13587 | # ifdef __cplusplus |
| 13588 | extern "C" |
| 13589 | # endif |
| 13590 | int F77_DUMMY_MAIN() { return 1; } |
| 13591 | #endif |
| 13592 | int |
| 13593 | main () |
| 13594 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 13595 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13596 | ; |
| 13597 | return 0; |
| 13598 | } |
| 13599 | _ACEOF |
| 13600 | rm -f conftest.$ac_objext |
| 13601 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13602 | (eval $ac_compile) 2>&5 |
| 13603 | ac_status=$? |
| 13604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13605 | (exit $ac_status); } && |
| 13606 | { ac_try='test -s conftest.$ac_objext' |
| 13607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13608 | (eval $ac_try) 2>&5 |
| 13609 | ac_status=$? |
| 13610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13611 | (exit $ac_status); }; }; then |
| 13612 | |
| 13613 | |
| 13614 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13615 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13616 | _ACEOF |
| 13617 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13618 | works=yes |
| 13619 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13620 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13621 | echo "$as_me: failed program was:" >&5 |
| 13622 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13623 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13624 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13625 | echo "$as_me:$LINENO: result: $works" >&5 |
| 13626 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13627 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13628 | if test "$have_prototypes" = yes; then |
| 13629 | bad_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13630 | echo "$as_me:$LINENO: checking for bad exec* prototypes" >&5 |
| 13631 | echo $ECHO_N "checking for bad exec* prototypes... $ECHO_C" >&6 |
| 13632 | cat >conftest.$ac_ext <<_ACEOF |
| 13633 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13634 | #include "confdefs.h" |
| 13635 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13636 | #ifdef F77_DUMMY_MAIN |
| 13637 | # ifdef __cplusplus |
| 13638 | extern "C" |
| 13639 | # endif |
| 13640 | int F77_DUMMY_MAIN() { return 1; } |
| 13641 | #endif |
| 13642 | int |
| 13643 | main () |
| 13644 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13645 | char **t;execve("@",t,t); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13646 | ; |
| 13647 | return 0; |
| 13648 | } |
| 13649 | _ACEOF |
| 13650 | rm -f conftest.$ac_objext |
| 13651 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13652 | (eval $ac_compile) 2>&5 |
| 13653 | ac_status=$? |
| 13654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13655 | (exit $ac_status); } && |
| 13656 | { ac_try='test -s conftest.$ac_objext' |
| 13657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13658 | (eval $ac_try) 2>&5 |
| 13659 | ac_status=$? |
| 13660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13661 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13662 | : |
| 13663 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13664 | echo "$as_me: failed program was:" >&5 |
| 13665 | cat conftest.$ac_ext >&5 |
| 13666 | |
| 13667 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13668 | #define BAD_EXEC_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13669 | _ACEOF |
| 13670 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13671 | bad_prototypes=yes |
| 13672 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13673 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13674 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13675 | echo "$as_me:$LINENO: result: $bad_prototypes" >&5 |
| 13676 | echo "${ECHO_T}$bad_prototypes" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13677 | fi |
| 13678 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13679 | # check if sockaddr has sa_len member |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13680 | echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 13681 | echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6 |
| 13682 | cat >conftest.$ac_ext <<_ACEOF |
| 13683 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13684 | #include "confdefs.h" |
| 13685 | #include <sys/types.h> |
| 13686 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13687 | #ifdef F77_DUMMY_MAIN |
| 13688 | # ifdef __cplusplus |
| 13689 | extern "C" |
| 13690 | # endif |
| 13691 | int F77_DUMMY_MAIN() { return 1; } |
| 13692 | #endif |
| 13693 | int |
| 13694 | main () |
| 13695 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13696 | struct sockaddr x; |
| 13697 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13698 | ; |
| 13699 | return 0; |
| 13700 | } |
| 13701 | _ACEOF |
| 13702 | rm -f conftest.$ac_objext |
| 13703 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13704 | (eval $ac_compile) 2>&5 |
| 13705 | ac_status=$? |
| 13706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13707 | (exit $ac_status); } && |
| 13708 | { ac_try='test -s conftest.$ac_objext' |
| 13709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13710 | (eval $ac_try) 2>&5 |
| 13711 | ac_status=$? |
| 13712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13713 | (exit $ac_status); }; }; then |
| 13714 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13715 | echo "${ECHO_T}yes" >&6 |
| 13716 | |
| 13717 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13718 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13719 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13720 | |
| 13721 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13722 | echo "$as_me: failed program was:" >&5 |
| 13723 | cat conftest.$ac_ext >&5 |
| 13724 | echo "$as_me:$LINENO: result: no" >&5 |
| 13725 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13726 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13727 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13728 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13729 | va_list_is_array=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13730 | echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 13731 | echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6 |
| 13732 | cat >conftest.$ac_ext <<_ACEOF |
| 13733 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13734 | #include "confdefs.h" |
| 13735 | |
| 13736 | #ifdef HAVE_STDARG_PROTOTYPES |
| 13737 | #include <stdarg.h> |
| 13738 | #else |
| 13739 | #include <varargs.h> |
| 13740 | #endif |
| 13741 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13742 | #ifdef F77_DUMMY_MAIN |
| 13743 | # ifdef __cplusplus |
| 13744 | extern "C" |
| 13745 | # endif |
| 13746 | int F77_DUMMY_MAIN() { return 1; } |
| 13747 | #endif |
| 13748 | int |
| 13749 | main () |
| 13750 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13751 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13752 | ; |
| 13753 | return 0; |
| 13754 | } |
| 13755 | _ACEOF |
| 13756 | rm -f conftest.$ac_objext |
| 13757 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13758 | (eval $ac_compile) 2>&5 |
| 13759 | ac_status=$? |
| 13760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13761 | (exit $ac_status); } && |
| 13762 | { ac_try='test -s conftest.$ac_objext' |
| 13763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13764 | (eval $ac_try) 2>&5 |
| 13765 | ac_status=$? |
| 13766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13767 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13768 | : |
| 13769 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13770 | echo "$as_me: failed program was:" >&5 |
| 13771 | cat conftest.$ac_ext >&5 |
| 13772 | |
| 13773 | |
| 13774 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13775 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13776 | _ACEOF |
| 13777 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13778 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13779 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13780 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13781 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13782 | echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 13783 | echo "${ECHO_T}$va_list_is_array" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13784 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13785 | # 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] | 13786 | |
| 13787 | |
| 13788 | |
| 13789 | echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 13790 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6 |
| 13791 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 13792 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13793 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13794 | cat >conftest.$ac_ext <<_ACEOF |
| 13795 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13796 | #include "confdefs.h" |
| 13797 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13798 | which can conflict with char gethostbyname_r (); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13799 | #include <assert.h> |
| 13800 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13801 | #ifdef __cplusplus |
| 13802 | extern "C" |
| 13803 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13804 | /* 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] | 13805 | builtin and then its argument prototype would still apply. */ |
| 13806 | char gethostbyname_r (); |
| 13807 | char (*f) (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13808 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13809 | #ifdef F77_DUMMY_MAIN |
| 13810 | # ifdef __cplusplus |
| 13811 | extern "C" |
| 13812 | # endif |
| 13813 | int F77_DUMMY_MAIN() { return 1; } |
| 13814 | #endif |
| 13815 | int |
| 13816 | main () |
| 13817 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13818 | /* The GNU C library defines this for functions which it implements |
| 13819 | to always fail with ENOSYS. Some functions are actually named |
| 13820 | something starting with __ and the normal name is an alias. */ |
| 13821 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 13822 | choke me |
| 13823 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13824 | f = gethostbyname_r; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13825 | #endif |
| 13826 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13827 | ; |
| 13828 | return 0; |
| 13829 | } |
| 13830 | _ACEOF |
| 13831 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13832 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13833 | (eval $ac_link) 2>&5 |
| 13834 | ac_status=$? |
| 13835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13836 | (exit $ac_status); } && |
| 13837 | { ac_try='test -s conftest$ac_exeext' |
| 13838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13839 | (eval $ac_try) 2>&5 |
| 13840 | ac_status=$? |
| 13841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13842 | (exit $ac_status); }; }; then |
| 13843 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13844 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13845 | echo "$as_me: failed program was:" >&5 |
| 13846 | cat conftest.$ac_ext >&5 |
| 13847 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13848 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13849 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13850 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13851 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 13852 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6 |
| 13853 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13854 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13855 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13856 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13857 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13858 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13859 | echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 13860 | 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] | 13861 | OLD_CFLAGS=$CFLAGS |
| 13862 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13863 | cat >conftest.$ac_ext <<_ACEOF |
| 13864 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13865 | #include "confdefs.h" |
| 13866 | |
| 13867 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13868 | |
| 13869 | #ifdef F77_DUMMY_MAIN |
| 13870 | # ifdef __cplusplus |
| 13871 | extern "C" |
| 13872 | # endif |
| 13873 | int F77_DUMMY_MAIN() { return 1; } |
| 13874 | #endif |
| 13875 | int |
| 13876 | main () |
| 13877 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13878 | |
| 13879 | char *name; |
| 13880 | struct hostent *he, *res; |
| 13881 | char buffer[2048]; |
| 13882 | int buflen = 2048; |
| 13883 | int h_errnop; |
| 13884 | |
| 13885 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13886 | |
| 13887 | ; |
| 13888 | return 0; |
| 13889 | } |
| 13890 | _ACEOF |
| 13891 | rm -f conftest.$ac_objext |
| 13892 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13893 | (eval $ac_compile) 2>&5 |
| 13894 | ac_status=$? |
| 13895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13896 | (exit $ac_status); } && |
| 13897 | { ac_try='test -s conftest.$ac_objext' |
| 13898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13899 | (eval $ac_try) 2>&5 |
| 13900 | ac_status=$? |
| 13901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13902 | (exit $ac_status); }; }; then |
| 13903 | |
| 13904 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13905 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13906 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13907 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13908 | |
| 13909 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13910 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13911 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13912 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13913 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13914 | echo "${ECHO_T}yes" >&6 |
| 13915 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13916 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13917 | echo "$as_me: failed program was:" >&5 |
| 13918 | cat conftest.$ac_ext >&5 |
| 13919 | |
| 13920 | echo "$as_me:$LINENO: result: no" >&5 |
| 13921 | echo "${ECHO_T}no" >&6 |
| 13922 | echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 13923 | echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6 |
| 13924 | cat >conftest.$ac_ext <<_ACEOF |
| 13925 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13926 | #include "confdefs.h" |
| 13927 | |
| 13928 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13929 | |
| 13930 | #ifdef F77_DUMMY_MAIN |
| 13931 | # ifdef __cplusplus |
| 13932 | extern "C" |
| 13933 | # endif |
| 13934 | int F77_DUMMY_MAIN() { return 1; } |
| 13935 | #endif |
| 13936 | int |
| 13937 | main () |
| 13938 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13939 | |
| 13940 | char *name; |
| 13941 | struct hostent *he; |
| 13942 | char buffer[2048]; |
| 13943 | int buflen = 2048; |
| 13944 | int h_errnop; |
| 13945 | |
| 13946 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13947 | |
| 13948 | ; |
| 13949 | return 0; |
| 13950 | } |
| 13951 | _ACEOF |
| 13952 | rm -f conftest.$ac_objext |
| 13953 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13954 | (eval $ac_compile) 2>&5 |
| 13955 | ac_status=$? |
| 13956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13957 | (exit $ac_status); } && |
| 13958 | { ac_try='test -s conftest.$ac_objext' |
| 13959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13960 | (eval $ac_try) 2>&5 |
| 13961 | ac_status=$? |
| 13962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13963 | (exit $ac_status); }; }; then |
| 13964 | |
| 13965 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13966 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13967 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 13968 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13969 | |
| 13970 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13971 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13972 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13973 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13974 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13975 | echo "${ECHO_T}yes" >&6 |
| 13976 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13977 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13978 | echo "$as_me: failed program was:" >&5 |
| 13979 | cat conftest.$ac_ext >&5 |
| 13980 | |
| 13981 | echo "$as_me:$LINENO: result: no" >&5 |
| 13982 | echo "${ECHO_T}no" >&6 |
| 13983 | echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 13984 | echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6 |
| 13985 | cat >conftest.$ac_ext <<_ACEOF |
| 13986 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 13987 | #include "confdefs.h" |
| 13988 | |
| 13989 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13990 | |
| 13991 | #ifdef F77_DUMMY_MAIN |
| 13992 | # ifdef __cplusplus |
| 13993 | extern "C" |
| 13994 | # endif |
| 13995 | int F77_DUMMY_MAIN() { return 1; } |
| 13996 | #endif |
| 13997 | int |
| 13998 | main () |
| 13999 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14000 | |
| 14001 | char *name; |
| 14002 | struct hostent *he; |
| 14003 | struct hostent_data data; |
| 14004 | |
| 14005 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14006 | |
| 14007 | ; |
| 14008 | return 0; |
| 14009 | } |
| 14010 | _ACEOF |
| 14011 | rm -f conftest.$ac_objext |
| 14012 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14013 | (eval $ac_compile) 2>&5 |
| 14014 | ac_status=$? |
| 14015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14016 | (exit $ac_status); } && |
| 14017 | { ac_try='test -s conftest.$ac_objext' |
| 14018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14019 | (eval $ac_try) 2>&5 |
| 14020 | ac_status=$? |
| 14021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14022 | (exit $ac_status); }; }; then |
| 14023 | |
| 14024 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14025 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14026 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14027 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14028 | |
| 14029 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14030 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14031 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14032 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14033 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14034 | echo "${ECHO_T}yes" >&6 |
| 14035 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14036 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14037 | echo "$as_me: failed program was:" >&5 |
| 14038 | cat conftest.$ac_ext >&5 |
| 14039 | |
| 14040 | echo "$as_me:$LINENO: result: no" >&5 |
| 14041 | echo "${ECHO_T}no" >&6 |
| 14042 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14043 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14044 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14045 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14046 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14047 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14048 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14049 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14050 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14051 | CFLAGS=$OLD_CFLAGS |
| 14052 | |
| 14053 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14054 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14055 | |
| 14056 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14057 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14058 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14059 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14060 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14061 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14063 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14064 | cat >conftest.$ac_ext <<_ACEOF |
| 14065 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14066 | #include "confdefs.h" |
| 14067 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14068 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14069 | #include <assert.h> |
| 14070 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14071 | #ifdef __cplusplus |
| 14072 | extern "C" |
| 14073 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14074 | /* 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] | 14075 | builtin and then its argument prototype would still apply. */ |
| 14076 | char $ac_func (); |
| 14077 | char (*f) (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14078 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14079 | #ifdef F77_DUMMY_MAIN |
| 14080 | # ifdef __cplusplus |
| 14081 | extern "C" |
| 14082 | # endif |
| 14083 | int F77_DUMMY_MAIN() { return 1; } |
| 14084 | #endif |
| 14085 | int |
| 14086 | main () |
| 14087 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14088 | /* The GNU C library defines this for functions which it implements |
| 14089 | to always fail with ENOSYS. Some functions are actually named |
| 14090 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14091 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14092 | choke me |
| 14093 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14094 | f = $ac_func; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14095 | #endif |
| 14096 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14097 | ; |
| 14098 | return 0; |
| 14099 | } |
| 14100 | _ACEOF |
| 14101 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14102 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14103 | (eval $ac_link) 2>&5 |
| 14104 | ac_status=$? |
| 14105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14106 | (exit $ac_status); } && |
| 14107 | { ac_try='test -s conftest$ac_exeext' |
| 14108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14109 | (eval $ac_try) 2>&5 |
| 14110 | ac_status=$? |
| 14111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14112 | (exit $ac_status); }; }; then |
| 14113 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14114 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14115 | echo "$as_me: failed program was:" >&5 |
| 14116 | cat conftest.$ac_ext >&5 |
| 14117 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14118 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14119 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14120 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14121 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14122 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14123 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14124 | cat >>confdefs.h <<_ACEOF |
| 14125 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14126 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14127 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14128 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14129 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14130 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14131 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14132 | fi |
| 14133 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14134 | |
| 14135 | |
| 14136 | |
| 14137 | |
| 14138 | |
| 14139 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14140 | # checks for system services |
| 14141 | # (none yet) |
| 14142 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14143 | # Linux requires this for correct f.p. operations |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14144 | echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 14145 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6 |
| 14146 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 14147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14148 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14149 | cat >conftest.$ac_ext <<_ACEOF |
| 14150 | #line $LINENO "configure" |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14151 | #include "confdefs.h" |
| 14152 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14153 | which can conflict with char __fpu_control (); below. */ |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14154 | #include <assert.h> |
| 14155 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14156 | #ifdef __cplusplus |
| 14157 | extern "C" |
| 14158 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14159 | /* 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] | 14160 | builtin and then its argument prototype would still apply. */ |
| 14161 | char __fpu_control (); |
| 14162 | char (*f) (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14163 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14164 | #ifdef F77_DUMMY_MAIN |
| 14165 | # ifdef __cplusplus |
| 14166 | extern "C" |
| 14167 | # endif |
| 14168 | int F77_DUMMY_MAIN() { return 1; } |
| 14169 | #endif |
| 14170 | int |
| 14171 | main () |
| 14172 | { |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14173 | /* The GNU C library defines this for functions which it implements |
| 14174 | to always fail with ENOSYS. Some functions are actually named |
| 14175 | something starting with __ and the normal name is an alias. */ |
| 14176 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 14177 | choke me |
| 14178 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14179 | f = __fpu_control; |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14180 | #endif |
| 14181 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14182 | ; |
| 14183 | return 0; |
| 14184 | } |
| 14185 | _ACEOF |
| 14186 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14187 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14188 | (eval $ac_link) 2>&5 |
| 14189 | ac_status=$? |
| 14190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14191 | (exit $ac_status); } && |
| 14192 | { ac_try='test -s conftest$ac_exeext' |
| 14193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14194 | (eval $ac_try) 2>&5 |
| 14195 | ac_status=$? |
| 14196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14197 | (exit $ac_status); }; }; then |
| 14198 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14199 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14200 | echo "$as_me: failed program was:" >&5 |
| 14201 | cat conftest.$ac_ext >&5 |
| 14202 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14203 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14204 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14205 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14206 | echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 14207 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6 |
| 14208 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14209 | : |
| 14210 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14211 | |
| 14212 | echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 14213 | echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6 |
| 14214 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 14215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14216 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14217 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14218 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14219 | cat >conftest.$ac_ext <<_ACEOF |
| 14220 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14221 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14222 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14223 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14224 | #ifdef __cplusplus |
| 14225 | extern "C" |
| 14226 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14227 | /* 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] | 14228 | builtin and then its argument prototype would still apply. */ |
| 14229 | char __fpu_control (); |
| 14230 | #ifdef F77_DUMMY_MAIN |
| 14231 | # ifdef __cplusplus |
| 14232 | extern "C" |
| 14233 | # endif |
| 14234 | int F77_DUMMY_MAIN() { return 1; } |
| 14235 | #endif |
| 14236 | int |
| 14237 | main () |
| 14238 | { |
| 14239 | __fpu_control (); |
| 14240 | ; |
| 14241 | return 0; |
| 14242 | } |
| 14243 | _ACEOF |
| 14244 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14245 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14246 | (eval $ac_link) 2>&5 |
| 14247 | ac_status=$? |
| 14248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14249 | (exit $ac_status); } && |
| 14250 | { ac_try='test -s conftest$ac_exeext' |
| 14251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14252 | (eval $ac_try) 2>&5 |
| 14253 | ac_status=$? |
| 14254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14255 | (exit $ac_status); }; }; then |
| 14256 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14257 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14258 | echo "$as_me: failed program was:" >&5 |
| 14259 | cat conftest.$ac_ext >&5 |
| 14260 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14261 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14262 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 14263 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14264 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14265 | echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 14266 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6 |
| 14267 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 14268 | cat >>confdefs.h <<_ACEOF |
| 14269 | #define HAVE_LIBIEEE 1 |
| 14270 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14271 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14272 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14273 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14274 | fi |
| 14275 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14276 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14277 | fi |
| 14278 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14279 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14280 | # Check for --with-fpectl |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14281 | echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 14282 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6 |
| 14283 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14284 | # Check whether --with-fpectl or --without-fpectl was given. |
| 14285 | if test "${with_fpectl+set}" = set; then |
| 14286 | withval="$with_fpectl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14287 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14288 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14289 | then |
| 14290 | |
| 14291 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14292 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14293 | _ACEOF |
| 14294 | |
| 14295 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14296 | echo "${ECHO_T}yes" >&6 |
| 14297 | else echo "$as_me:$LINENO: result: no" >&5 |
| 14298 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14299 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14300 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14301 | echo "$as_me:$LINENO: result: no" >&5 |
| 14302 | echo "${ECHO_T}no" >&6 |
| 14303 | fi; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14304 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14305 | # check for --with-libm=... |
| 14306 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 14307 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 14308 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 14309 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 14310 | *) LIBM=-lm |
| 14311 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14312 | echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 14313 | echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6 |
| 14314 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14315 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14316 | if test "${with_libm+set}" = set; then |
| 14317 | withval="$with_libm" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14318 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14319 | if test "$withval" = no |
| 14320 | then LIBM= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14321 | echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 14322 | echo "${ECHO_T}force LIBM empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14323 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14324 | then LIBM=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14325 | echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 14326 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6 |
| 14327 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 14328 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 14329 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14330 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14331 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14332 | echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 14333 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6 |
| 14334 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14335 | |
| 14336 | # check for --with-libc=... |
| 14337 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14338 | echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 14339 | echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6 |
| 14340 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14341 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14342 | if test "${with_libc+set}" = set; then |
| 14343 | withval="$with_libc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14344 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14345 | if test "$withval" = no |
| 14346 | then LIBC= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14347 | echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 14348 | echo "${ECHO_T}force LIBC empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14349 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14350 | then LIBC=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14351 | echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 14352 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6 |
| 14353 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 14354 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 14355 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14356 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14357 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14358 | echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 14359 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6 |
| 14360 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14361 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14362 | # check for hypot() in math library |
| 14363 | LIBS_SAVE=$LIBS |
| 14364 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14365 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14366 | for ac_func in hypot |
| 14367 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14368 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14369 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14370 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14371 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14373 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14374 | cat >conftest.$ac_ext <<_ACEOF |
| 14375 | #line $LINENO "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14376 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14377 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14378 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14379 | #include <assert.h> |
| 14380 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14381 | #ifdef __cplusplus |
| 14382 | extern "C" |
| 14383 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14384 | /* 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] | 14385 | builtin and then its argument prototype would still apply. */ |
| 14386 | char $ac_func (); |
| 14387 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14388 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14389 | #ifdef F77_DUMMY_MAIN |
| 14390 | # ifdef __cplusplus |
| 14391 | extern "C" |
| 14392 | # endif |
| 14393 | int F77_DUMMY_MAIN() { return 1; } |
| 14394 | #endif |
| 14395 | int |
| 14396 | main () |
| 14397 | { |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14398 | /* The GNU C library defines this for functions which it implements |
| 14399 | to always fail with ENOSYS. Some functions are actually named |
| 14400 | something starting with __ and the normal name is an alias. */ |
| 14401 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14402 | choke me |
| 14403 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14404 | f = $ac_func; |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14405 | #endif |
| 14406 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14407 | ; |
| 14408 | return 0; |
| 14409 | } |
| 14410 | _ACEOF |
| 14411 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14412 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14413 | (eval $ac_link) 2>&5 |
| 14414 | ac_status=$? |
| 14415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14416 | (exit $ac_status); } && |
| 14417 | { ac_try='test -s conftest$ac_exeext' |
| 14418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14419 | (eval $ac_try) 2>&5 |
| 14420 | ac_status=$? |
| 14421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14422 | (exit $ac_status); }; }; then |
| 14423 | eval "$as_ac_var=yes" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 14424 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14425 | echo "$as_me: failed program was:" >&5 |
| 14426 | cat conftest.$ac_ext >&5 |
| 14427 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14428 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14429 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14430 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14431 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14432 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14433 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14434 | cat >>confdefs.h <<_ACEOF |
| 14435 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14436 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14437 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14438 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14439 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 14440 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 14441 | done |
| 14442 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14443 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14444 | LIBS=$LIBS_SAVE |
| 14445 | |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14446 | # check whether malloc(0) returns NULL or not |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14447 | echo "$as_me:$LINENO: checking what malloc(0) returns" >&5 |
| 14448 | echo $ECHO_N "checking what malloc(0) returns... $ECHO_C" >&6 |
| 14449 | if test "${ac_cv_malloc_zero+set}" = set; then |
| 14450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14451 | else |
| 14452 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 14453 | ac_cv_malloc_zero=nonnull |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14454 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14455 | cat >conftest.$ac_ext <<_ACEOF |
| 14456 | #line $LINENO "configure" |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14457 | #include "confdefs.h" |
| 14458 | #include <stdio.h> |
| 14459 | #ifdef HAVE_STDLIB |
| 14460 | #include <stdlib.h> |
| 14461 | #else |
| 14462 | char *malloc(), *realloc(); |
| 14463 | int *free(); |
| 14464 | #endif |
| 14465 | main() { |
| 14466 | char *p; |
| 14467 | p = malloc(0); |
| 14468 | if (p == NULL) exit(1); |
| 14469 | p = realloc(p, 0); |
| 14470 | if (p == NULL) exit(1); |
| 14471 | free(p); |
| 14472 | exit(0); |
| 14473 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14474 | _ACEOF |
| 14475 | rm -f conftest$ac_exeext |
| 14476 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14477 | (eval $ac_link) 2>&5 |
| 14478 | ac_status=$? |
| 14479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14480 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 14481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14482 | (eval $ac_try) 2>&5 |
| 14483 | ac_status=$? |
| 14484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14485 | (exit $ac_status); }; }; then |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14486 | ac_cv_malloc_zero=nonnull |
| 14487 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14488 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14489 | echo "$as_me: failed program was:" >&5 |
| 14490 | cat conftest.$ac_ext >&5 |
| 14491 | ( exit $ac_status ) |
| 14492 | ac_cv_malloc_zero=null |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14493 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14494 | 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] | 14495 | fi |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14496 | fi |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 14497 | # XXX arm cross-compile? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14498 | echo "$as_me:$LINENO: result: $ac_cv_malloc_zero" >&5 |
| 14499 | echo "${ECHO_T}$ac_cv_malloc_zero" >&6 |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14500 | if test "$ac_cv_malloc_zero" = null |
| 14501 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14502 | |
| 14503 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14504 | #define MALLOC_ZERO_RETURNS_NULL 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14505 | _ACEOF |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 14506 | |
| 14507 | fi |
| 14508 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14509 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14510 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 14511 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 14512 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 14513 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 14514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14515 | fi |
| 14516 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 14517 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14518 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14519 | # Is the header compilable? |
| 14520 | echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 14521 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 |
| 14522 | cat >conftest.$ac_ext <<_ACEOF |
| 14523 | #line $LINENO "configure" |
| 14524 | #include "confdefs.h" |
| 14525 | $ac_includes_default |
| 14526 | #include <wchar.h> |
| 14527 | _ACEOF |
| 14528 | rm -f conftest.$ac_objext |
| 14529 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14530 | (eval $ac_compile) 2>&5 |
| 14531 | ac_status=$? |
| 14532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14533 | (exit $ac_status); } && |
| 14534 | { ac_try='test -s conftest.$ac_objext' |
| 14535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14536 | (eval $ac_try) 2>&5 |
| 14537 | ac_status=$? |
| 14538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14539 | (exit $ac_status); }; }; then |
| 14540 | ac_header_compiler=yes |
| 14541 | else |
| 14542 | echo "$as_me: failed program was:" >&5 |
| 14543 | cat conftest.$ac_ext >&5 |
| 14544 | ac_header_compiler=no |
| 14545 | fi |
| 14546 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14547 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 14548 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 14549 | |
| 14550 | # Is the header present? |
| 14551 | echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 14552 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 |
| 14553 | cat >conftest.$ac_ext <<_ACEOF |
| 14554 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14555 | #include "confdefs.h" |
| 14556 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14557 | _ACEOF |
| 14558 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 14559 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 14560 | ac_status=$? |
| 14561 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 14562 | rm -f conftest.er1 |
| 14563 | cat conftest.err >&5 |
| 14564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14565 | (exit $ac_status); } >/dev/null; then |
| 14566 | if test -s conftest.err; then |
| 14567 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 14568 | else |
| 14569 | ac_cpp_err= |
| 14570 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14571 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14572 | ac_cpp_err=yes |
| 14573 | fi |
| 14574 | if test -z "$ac_cpp_err"; then |
| 14575 | ac_header_preproc=yes |
| 14576 | else |
| 14577 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14578 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14579 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14580 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14581 | rm -f conftest.err conftest.$ac_ext |
| 14582 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 14583 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 14584 | |
| 14585 | # So? What about this header? |
| 14586 | case $ac_header_compiler:$ac_header_preproc in |
| 14587 | yes:no ) |
| 14588 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 14589 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 14590 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 14591 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};; |
| 14592 | no:yes ) |
| 14593 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 14594 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 14595 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 14596 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 14597 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 14598 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};; |
| 14599 | esac |
| 14600 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 14601 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 14602 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 14603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14604 | else |
| 14605 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14606 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14607 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 14608 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
| 14609 | |
| 14610 | fi |
| 14611 | if test $ac_cv_header_wchar_h = yes; then |
| 14612 | |
| 14613 | |
| 14614 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14615 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14616 | _ACEOF |
| 14617 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14618 | wchar_h="yes" |
| 14619 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14620 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14621 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14622 | |
| 14623 | fi |
| 14624 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14625 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14626 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14627 | # determine wchar_t size |
| 14628 | if test "$wchar_h" = yes |
| 14629 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14630 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 14631 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 |
| 14632 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 14633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14634 | else |
| 14635 | cat >conftest.$ac_ext <<_ACEOF |
| 14636 | #line $LINENO "configure" |
| 14637 | #include "confdefs.h" |
| 14638 | #include <wchar.h> |
| 14639 | |
| 14640 | #ifdef F77_DUMMY_MAIN |
| 14641 | # ifdef __cplusplus |
| 14642 | extern "C" |
| 14643 | # endif |
| 14644 | int F77_DUMMY_MAIN() { return 1; } |
| 14645 | #endif |
| 14646 | int |
| 14647 | main () |
| 14648 | { |
| 14649 | if ((wchar_t *) 0) |
| 14650 | return 0; |
| 14651 | if (sizeof (wchar_t)) |
| 14652 | return 0; |
| 14653 | ; |
| 14654 | return 0; |
| 14655 | } |
| 14656 | _ACEOF |
| 14657 | rm -f conftest.$ac_objext |
| 14658 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14659 | (eval $ac_compile) 2>&5 |
| 14660 | ac_status=$? |
| 14661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14662 | (exit $ac_status); } && |
| 14663 | { ac_try='test -s conftest.$ac_objext' |
| 14664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14665 | (eval $ac_try) 2>&5 |
| 14666 | ac_status=$? |
| 14667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14668 | (exit $ac_status); }; }; then |
| 14669 | ac_cv_type_wchar_t=yes |
| 14670 | else |
| 14671 | echo "$as_me: failed program was:" >&5 |
| 14672 | cat conftest.$ac_ext >&5 |
| 14673 | ac_cv_type_wchar_t=no |
| 14674 | fi |
| 14675 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14676 | fi |
| 14677 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 14678 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 |
| 14679 | |
| 14680 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 14681 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 |
| 14682 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 14683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14684 | else |
| 14685 | if test "$ac_cv_type_wchar_t" = yes; then |
| 14686 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 14687 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 14688 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 14689 | # This bug is HP SR number 8606223364. |
| 14690 | if test "$cross_compiling" = yes; then |
| 14691 | # Depending upon the size, compute the lo and hi bounds. |
| 14692 | cat >conftest.$ac_ext <<_ACEOF |
| 14693 | #line $LINENO "configure" |
| 14694 | #include "confdefs.h" |
| 14695 | #include <wchar.h> |
| 14696 | |
| 14697 | #ifdef F77_DUMMY_MAIN |
| 14698 | # ifdef __cplusplus |
| 14699 | extern "C" |
| 14700 | # endif |
| 14701 | int F77_DUMMY_MAIN() { return 1; } |
| 14702 | #endif |
| 14703 | int |
| 14704 | main () |
| 14705 | { |
| 14706 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; |
| 14707 | test_array [0] = 0 |
| 14708 | |
| 14709 | ; |
| 14710 | return 0; |
| 14711 | } |
| 14712 | _ACEOF |
| 14713 | rm -f conftest.$ac_objext |
| 14714 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14715 | (eval $ac_compile) 2>&5 |
| 14716 | ac_status=$? |
| 14717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14718 | (exit $ac_status); } && |
| 14719 | { ac_try='test -s conftest.$ac_objext' |
| 14720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14721 | (eval $ac_try) 2>&5 |
| 14722 | ac_status=$? |
| 14723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14724 | (exit $ac_status); }; }; then |
| 14725 | ac_lo=0 ac_mid=0 |
| 14726 | while :; do |
| 14727 | cat >conftest.$ac_ext <<_ACEOF |
| 14728 | #line $LINENO "configure" |
| 14729 | #include "confdefs.h" |
| 14730 | #include <wchar.h> |
| 14731 | |
| 14732 | #ifdef F77_DUMMY_MAIN |
| 14733 | # ifdef __cplusplus |
| 14734 | extern "C" |
| 14735 | # endif |
| 14736 | int F77_DUMMY_MAIN() { return 1; } |
| 14737 | #endif |
| 14738 | int |
| 14739 | main () |
| 14740 | { |
| 14741 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 14742 | test_array [0] = 0 |
| 14743 | |
| 14744 | ; |
| 14745 | return 0; |
| 14746 | } |
| 14747 | _ACEOF |
| 14748 | rm -f conftest.$ac_objext |
| 14749 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14750 | (eval $ac_compile) 2>&5 |
| 14751 | ac_status=$? |
| 14752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14753 | (exit $ac_status); } && |
| 14754 | { ac_try='test -s conftest.$ac_objext' |
| 14755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14756 | (eval $ac_try) 2>&5 |
| 14757 | ac_status=$? |
| 14758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14759 | (exit $ac_status); }; }; then |
| 14760 | ac_hi=$ac_mid; break |
| 14761 | else |
| 14762 | echo "$as_me: failed program was:" >&5 |
| 14763 | cat conftest.$ac_ext >&5 |
| 14764 | ac_lo=`expr $ac_mid + 1` |
| 14765 | if test $ac_lo -le $ac_mid; then |
| 14766 | ac_lo= ac_hi= |
| 14767 | break |
| 14768 | fi |
| 14769 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 14770 | fi |
| 14771 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14772 | done |
| 14773 | else |
| 14774 | echo "$as_me: failed program was:" >&5 |
| 14775 | cat conftest.$ac_ext >&5 |
| 14776 | cat >conftest.$ac_ext <<_ACEOF |
| 14777 | #line $LINENO "configure" |
| 14778 | #include "confdefs.h" |
| 14779 | #include <wchar.h> |
| 14780 | |
| 14781 | #ifdef F77_DUMMY_MAIN |
| 14782 | # ifdef __cplusplus |
| 14783 | extern "C" |
| 14784 | # endif |
| 14785 | int F77_DUMMY_MAIN() { return 1; } |
| 14786 | #endif |
| 14787 | int |
| 14788 | main () |
| 14789 | { |
| 14790 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; |
| 14791 | test_array [0] = 0 |
| 14792 | |
| 14793 | ; |
| 14794 | return 0; |
| 14795 | } |
| 14796 | _ACEOF |
| 14797 | rm -f conftest.$ac_objext |
| 14798 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14799 | (eval $ac_compile) 2>&5 |
| 14800 | ac_status=$? |
| 14801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14802 | (exit $ac_status); } && |
| 14803 | { ac_try='test -s conftest.$ac_objext' |
| 14804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14805 | (eval $ac_try) 2>&5 |
| 14806 | ac_status=$? |
| 14807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14808 | (exit $ac_status); }; }; then |
| 14809 | ac_hi=-1 ac_mid=-1 |
| 14810 | while :; do |
| 14811 | cat >conftest.$ac_ext <<_ACEOF |
| 14812 | #line $LINENO "configure" |
| 14813 | #include "confdefs.h" |
| 14814 | #include <wchar.h> |
| 14815 | |
| 14816 | #ifdef F77_DUMMY_MAIN |
| 14817 | # ifdef __cplusplus |
| 14818 | extern "C" |
| 14819 | # endif |
| 14820 | int F77_DUMMY_MAIN() { return 1; } |
| 14821 | #endif |
| 14822 | int |
| 14823 | main () |
| 14824 | { |
| 14825 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; |
| 14826 | test_array [0] = 0 |
| 14827 | |
| 14828 | ; |
| 14829 | return 0; |
| 14830 | } |
| 14831 | _ACEOF |
| 14832 | rm -f conftest.$ac_objext |
| 14833 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14834 | (eval $ac_compile) 2>&5 |
| 14835 | ac_status=$? |
| 14836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14837 | (exit $ac_status); } && |
| 14838 | { ac_try='test -s conftest.$ac_objext' |
| 14839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14840 | (eval $ac_try) 2>&5 |
| 14841 | ac_status=$? |
| 14842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14843 | (exit $ac_status); }; }; then |
| 14844 | ac_lo=$ac_mid; break |
| 14845 | else |
| 14846 | echo "$as_me: failed program was:" >&5 |
| 14847 | cat conftest.$ac_ext >&5 |
| 14848 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 14849 | if test $ac_mid -le $ac_hi; then |
| 14850 | ac_lo= ac_hi= |
| 14851 | break |
| 14852 | fi |
| 14853 | ac_mid=`expr 2 '*' $ac_mid` |
| 14854 | fi |
| 14855 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14856 | done |
| 14857 | else |
| 14858 | echo "$as_me: failed program was:" >&5 |
| 14859 | cat conftest.$ac_ext >&5 |
| 14860 | ac_lo= ac_hi= |
| 14861 | fi |
| 14862 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14863 | fi |
| 14864 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14865 | # Binary search between lo and hi bounds. |
| 14866 | while test "x$ac_lo" != "x$ac_hi"; do |
| 14867 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 14868 | cat >conftest.$ac_ext <<_ACEOF |
| 14869 | #line $LINENO "configure" |
| 14870 | #include "confdefs.h" |
| 14871 | #include <wchar.h> |
| 14872 | |
| 14873 | #ifdef F77_DUMMY_MAIN |
| 14874 | # ifdef __cplusplus |
| 14875 | extern "C" |
| 14876 | # endif |
| 14877 | int F77_DUMMY_MAIN() { return 1; } |
| 14878 | #endif |
| 14879 | int |
| 14880 | main () |
| 14881 | { |
| 14882 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 14883 | test_array [0] = 0 |
| 14884 | |
| 14885 | ; |
| 14886 | return 0; |
| 14887 | } |
| 14888 | _ACEOF |
| 14889 | rm -f conftest.$ac_objext |
| 14890 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14891 | (eval $ac_compile) 2>&5 |
| 14892 | ac_status=$? |
| 14893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14894 | (exit $ac_status); } && |
| 14895 | { ac_try='test -s conftest.$ac_objext' |
| 14896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14897 | (eval $ac_try) 2>&5 |
| 14898 | ac_status=$? |
| 14899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14900 | (exit $ac_status); }; }; then |
| 14901 | ac_hi=$ac_mid |
| 14902 | else |
| 14903 | echo "$as_me: failed program was:" >&5 |
| 14904 | cat conftest.$ac_ext >&5 |
| 14905 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 14906 | fi |
| 14907 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14908 | done |
| 14909 | case $ac_lo in |
| 14910 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
| 14911 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5 |
| 14912 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;} |
| 14913 | { (exit 1); exit 1; }; } ;; |
| 14914 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14915 | else |
| 14916 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14917 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 14918 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 14919 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14920 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14921 | cat >conftest.$ac_ext <<_ACEOF |
| 14922 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14923 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14924 | #include <wchar.h> |
| 14925 | |
| 14926 | long longval () { return (long) (sizeof (wchar_t)); } |
| 14927 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14928 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14929 | #include <stdlib.h> |
| 14930 | #ifdef F77_DUMMY_MAIN |
| 14931 | # ifdef __cplusplus |
| 14932 | extern "C" |
| 14933 | # endif |
| 14934 | int F77_DUMMY_MAIN() { return 1; } |
| 14935 | #endif |
| 14936 | int |
| 14937 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14938 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14939 | |
| 14940 | FILE *f = fopen ("conftest.val", "w"); |
| 14941 | if (! f) |
| 14942 | exit (1); |
| 14943 | if (((long) (sizeof (wchar_t))) < 0) |
| 14944 | { |
| 14945 | long i = longval (); |
| 14946 | if (i != ((long) (sizeof (wchar_t)))) |
| 14947 | exit (1); |
| 14948 | fprintf (f, "%ld\n", i); |
| 14949 | } |
| 14950 | else |
| 14951 | { |
| 14952 | unsigned long i = ulongval (); |
| 14953 | if (i != ((long) (sizeof (wchar_t)))) |
| 14954 | exit (1); |
| 14955 | fprintf (f, "%lu\n", i); |
| 14956 | } |
| 14957 | exit (ferror (f) || fclose (f) != 0); |
| 14958 | |
| 14959 | ; |
| 14960 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14961 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14962 | _ACEOF |
| 14963 | rm -f conftest$ac_exeext |
| 14964 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14965 | (eval $ac_link) 2>&5 |
| 14966 | ac_status=$? |
| 14967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14968 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 14969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14970 | (eval $ac_try) 2>&5 |
| 14971 | ac_status=$? |
| 14972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14973 | (exit $ac_status); }; }; then |
| 14974 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14975 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14976 | echo "$as_me: program exited with status $ac_status" >&5 |
| 14977 | echo "$as_me: failed program was:" >&5 |
| 14978 | cat conftest.$ac_ext >&5 |
| 14979 | ( exit $ac_status ) |
| 14980 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5 |
| 14981 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;} |
| 14982 | { (exit 1); exit 1; }; } |
| 14983 | fi |
| 14984 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 14985 | fi |
| 14986 | fi |
| 14987 | rm -f conftest.val |
| 14988 | else |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14989 | ac_cv_sizeof_wchar_t=0 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14990 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14991 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14992 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 14993 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 |
| 14994 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14995 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14996 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14997 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14998 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 14999 | fi |
| 15000 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15001 | echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 15002 | 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] | 15003 | # Check whether --enable-unicode or --disable-unicode was given. |
| 15004 | if test "${enable_unicode+set}" = set; then |
| 15005 | enableval="$enable_unicode" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15006 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15007 | else |
| 15008 | enable_unicode=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15009 | fi; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15010 | |
| 15011 | if test $enable_unicode = yes |
| 15012 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 15013 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
| 15014 | enable_unicode="ucs2" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15015 | fi |
| 15016 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 15017 | |
| 15018 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15019 | case "$enable_unicode" in |
| 15020 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15021 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15022 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15023 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15024 | |
| 15025 | ;; |
| 15026 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15027 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15028 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15029 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15030 | |
| 15031 | ;; |
| 15032 | esac |
| 15033 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15034 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15035 | |
| 15036 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 15037 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15038 | if test "$enable_unicode" = "no" |
| 15039 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 15040 | UNICODE_OBJS="" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15041 | echo "$as_me:$LINENO: result: not used" >&5 |
| 15042 | echo "${ECHO_T}not used" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15043 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 15044 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15045 | |
| 15046 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15047 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15048 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15049 | |
| 15050 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" |
| 15051 | then |
| 15052 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15053 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15054 | cat >>confdefs.h <<\_ACEOF |
| 15055 | #define HAVE_USABLE_WCHAR_T 1 |
| 15056 | _ACEOF |
| 15057 | |
| 15058 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15059 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15060 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15061 | |
| 15062 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 15063 | then |
| 15064 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15065 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15066 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15067 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15068 | |
| 15069 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 15070 | then |
| 15071 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15072 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15073 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15074 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15075 | |
| 15076 | else |
| 15077 | PY_UNICODE_TYPE="no type found" |
| 15078 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15079 | echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 15080 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15081 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15082 | |
| 15083 | # check for endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15084 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 15085 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 15086 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 15087 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15088 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15089 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 15090 | cat >conftest.$ac_ext <<_ACEOF |
| 15091 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15092 | #include "confdefs.h" |
| 15093 | #include <sys/types.h> |
| 15094 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15095 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15096 | #ifdef F77_DUMMY_MAIN |
| 15097 | # ifdef __cplusplus |
| 15098 | extern "C" |
| 15099 | # endif |
| 15100 | int F77_DUMMY_MAIN() { return 1; } |
| 15101 | #endif |
| 15102 | int |
| 15103 | main () |
| 15104 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15105 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 15106 | bogus endian macros |
| 15107 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15108 | |
| 15109 | ; |
| 15110 | return 0; |
| 15111 | } |
| 15112 | _ACEOF |
| 15113 | rm -f conftest.$ac_objext |
| 15114 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15115 | (eval $ac_compile) 2>&5 |
| 15116 | ac_status=$? |
| 15117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15118 | (exit $ac_status); } && |
| 15119 | { ac_try='test -s conftest.$ac_objext' |
| 15120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15121 | (eval $ac_try) 2>&5 |
| 15122 | ac_status=$? |
| 15123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15124 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15125 | # 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] | 15126 | cat >conftest.$ac_ext <<_ACEOF |
| 15127 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15128 | #include "confdefs.h" |
| 15129 | #include <sys/types.h> |
| 15130 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15131 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15132 | #ifdef F77_DUMMY_MAIN |
| 15133 | # ifdef __cplusplus |
| 15134 | extern "C" |
| 15135 | # endif |
| 15136 | int F77_DUMMY_MAIN() { return 1; } |
| 15137 | #endif |
| 15138 | int |
| 15139 | main () |
| 15140 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15141 | #if BYTE_ORDER != BIG_ENDIAN |
| 15142 | not big endian |
| 15143 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15144 | |
| 15145 | ; |
| 15146 | return 0; |
| 15147 | } |
| 15148 | _ACEOF |
| 15149 | rm -f conftest.$ac_objext |
| 15150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15151 | (eval $ac_compile) 2>&5 |
| 15152 | ac_status=$? |
| 15153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15154 | (exit $ac_status); } && |
| 15155 | { ac_try='test -s conftest.$ac_objext' |
| 15156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15157 | (eval $ac_try) 2>&5 |
| 15158 | ac_status=$? |
| 15159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15160 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15161 | ac_cv_c_bigendian=yes |
| 15162 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15163 | echo "$as_me: failed program was:" >&5 |
| 15164 | cat conftest.$ac_ext >&5 |
| 15165 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15166 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15167 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15168 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15169 | echo "$as_me: failed program was:" >&5 |
| 15170 | cat conftest.$ac_ext >&5 |
| 15171 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15172 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15173 | # try to guess the endianess by grep'ing values into an object file |
| 15174 | ac_cv_c_bigendian=unknown |
| 15175 | cat >conftest.$ac_ext <<_ACEOF |
| 15176 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15177 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15178 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 15179 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 15180 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 15181 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 15182 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 15183 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 15184 | #ifdef F77_DUMMY_MAIN |
| 15185 | # ifdef __cplusplus |
| 15186 | extern "C" |
| 15187 | # endif |
| 15188 | int F77_DUMMY_MAIN() { return 1; } |
| 15189 | #endif |
| 15190 | int |
| 15191 | main () |
| 15192 | { |
| 15193 | _ascii (); _ebcdic (); |
| 15194 | ; |
| 15195 | return 0; |
| 15196 | } |
| 15197 | _ACEOF |
| 15198 | rm -f conftest.$ac_objext |
| 15199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15200 | (eval $ac_compile) 2>&5 |
| 15201 | ac_status=$? |
| 15202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15203 | (exit $ac_status); } && |
| 15204 | { ac_try='test -s conftest.$ac_objext' |
| 15205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15206 | (eval $ac_try) 2>&5 |
| 15207 | ac_status=$? |
| 15208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15209 | (exit $ac_status); }; }; then |
| 15210 | if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 15211 | ac_cv_c_bigendian=yes |
| 15212 | fi |
| 15213 | if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 15214 | if test "$ac_cv_c_bigendian" = unknown; then |
| 15215 | ac_cv_c_bigendian=no |
| 15216 | else |
| 15217 | # finding both strings is unlikely to happen, but who knows? |
| 15218 | ac_cv_c_bigendian=unknown |
| 15219 | fi |
| 15220 | fi |
| 15221 | else |
| 15222 | echo "$as_me: failed program was:" >&5 |
| 15223 | cat conftest.$ac_ext >&5 |
| 15224 | fi |
| 15225 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15226 | else |
| 15227 | cat >conftest.$ac_ext <<_ACEOF |
| 15228 | #line $LINENO "configure" |
| 15229 | #include "confdefs.h" |
| 15230 | int |
| 15231 | main () |
| 15232 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15233 | /* Are we little or big endian? From Harbison&Steele. */ |
| 15234 | union |
| 15235 | { |
| 15236 | long l; |
| 15237 | char c[sizeof (long)]; |
| 15238 | } u; |
| 15239 | u.l = 1; |
| 15240 | exit (u.c[sizeof (long) - 1] == 1); |
| 15241 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15242 | _ACEOF |
| 15243 | rm -f conftest$ac_exeext |
| 15244 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15245 | (eval $ac_link) 2>&5 |
| 15246 | ac_status=$? |
| 15247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15248 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15250 | (eval $ac_try) 2>&5 |
| 15251 | ac_status=$? |
| 15252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15253 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15254 | ac_cv_c_bigendian=no |
| 15255 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15256 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15257 | echo "$as_me: failed program was:" >&5 |
| 15258 | cat conftest.$ac_ext >&5 |
| 15259 | ( exit $ac_status ) |
| 15260 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15261 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15262 | 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] | 15263 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15264 | fi |
| 15265 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15266 | fi |
| 15267 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 15268 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 15269 | case $ac_cv_c_bigendian in |
| 15270 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15271 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15272 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15273 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15274 | _ACEOF |
| 15275 | ;; |
| 15276 | no) |
| 15277 | ;; |
| 15278 | *) |
| 15279 | { { echo "$as_me:$LINENO: error: unknown endianess |
| 15280 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 15281 | echo "$as_me: error: unknown endianess |
| 15282 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 15283 | { (exit 1); exit 1; }; } ;; |
| 15284 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15285 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15286 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15287 | # Check whether right shifting a negative integer extends the sign bit |
| 15288 | # 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] | 15289 | echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 15290 | echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6 |
| 15291 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 15292 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15293 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15294 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15295 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15296 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15297 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15298 | cat >conftest.$ac_ext <<_ACEOF |
| 15299 | #line $LINENO "configure" |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15300 | #include "confdefs.h" |
| 15301 | |
| 15302 | int main() |
| 15303 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15304 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15305 | } |
| 15306 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15307 | _ACEOF |
| 15308 | rm -f conftest$ac_exeext |
| 15309 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15310 | (eval $ac_link) 2>&5 |
| 15311 | ac_status=$? |
| 15312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15313 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15315 | (eval $ac_try) 2>&5 |
| 15316 | ac_status=$? |
| 15317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15318 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15319 | ac_cv_rshift_extends_sign=yes |
| 15320 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15321 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15322 | echo "$as_me: failed program was:" >&5 |
| 15323 | cat conftest.$ac_ext >&5 |
| 15324 | ( exit $ac_status ) |
| 15325 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15326 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15327 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15328 | fi |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15329 | fi |
| 15330 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15331 | echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 15332 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15333 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15334 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15335 | |
| 15336 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15337 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15338 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15339 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15340 | fi |
| 15341 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15342 | # check for getc_unlocked and related locking functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15343 | echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 15344 | echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6 |
| 15345 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 15346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15347 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15348 | |
| 15349 | cat >conftest.$ac_ext <<_ACEOF |
| 15350 | #line $LINENO "configure" |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15351 | #include "confdefs.h" |
| 15352 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15353 | #ifdef F77_DUMMY_MAIN |
| 15354 | # ifdef __cplusplus |
| 15355 | extern "C" |
| 15356 | # endif |
| 15357 | int F77_DUMMY_MAIN() { return 1; } |
| 15358 | #endif |
| 15359 | int |
| 15360 | main () |
| 15361 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15362 | |
| 15363 | FILE *f = fopen("/dev/null", "r"); |
| 15364 | flockfile(f); |
| 15365 | getc_unlocked(f); |
| 15366 | funlockfile(f); |
| 15367 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15368 | ; |
| 15369 | return 0; |
| 15370 | } |
| 15371 | _ACEOF |
| 15372 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15373 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15374 | (eval $ac_link) 2>&5 |
| 15375 | ac_status=$? |
| 15376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15377 | (exit $ac_status); } && |
| 15378 | { ac_try='test -s conftest$ac_exeext' |
| 15379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15380 | (eval $ac_try) 2>&5 |
| 15381 | ac_status=$? |
| 15382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15383 | (exit $ac_status); }; }; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15384 | ac_cv_have_getc_unlocked=yes |
| 15385 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15386 | echo "$as_me: failed program was:" >&5 |
| 15387 | cat conftest.$ac_ext >&5 |
| 15388 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15389 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15390 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15391 | fi |
| 15392 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15393 | echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 15394 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15395 | if test "$ac_cv_have_getc_unlocked" = yes |
| 15396 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15397 | |
| 15398 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15399 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15400 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15401 | |
| 15402 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15403 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15404 | # check for readline 4.0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15405 | echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 15406 | echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6 |
| 15407 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 15408 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15409 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15410 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15411 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15412 | cat >conftest.$ac_ext <<_ACEOF |
| 15413 | #line $LINENO "configure" |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15414 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15415 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15416 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15417 | #ifdef __cplusplus |
| 15418 | extern "C" |
| 15419 | #endif |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15420 | /* 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] | 15421 | builtin and then its argument prototype would still apply. */ |
| 15422 | char rl_pre_input_hook (); |
| 15423 | #ifdef F77_DUMMY_MAIN |
| 15424 | # ifdef __cplusplus |
| 15425 | extern "C" |
| 15426 | # endif |
| 15427 | int F77_DUMMY_MAIN() { return 1; } |
| 15428 | #endif |
| 15429 | int |
| 15430 | main () |
| 15431 | { |
| 15432 | rl_pre_input_hook (); |
| 15433 | ; |
| 15434 | return 0; |
| 15435 | } |
| 15436 | _ACEOF |
| 15437 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15438 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15439 | (eval $ac_link) 2>&5 |
| 15440 | ac_status=$? |
| 15441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15442 | (exit $ac_status); } && |
| 15443 | { ac_try='test -s conftest$ac_exeext' |
| 15444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15445 | (eval $ac_try) 2>&5 |
| 15446 | ac_status=$? |
| 15447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15448 | (exit $ac_status); }; }; then |
| 15449 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15450 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15451 | echo "$as_me: failed program was:" >&5 |
| 15452 | cat conftest.$ac_ext >&5 |
| 15453 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15454 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15455 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 15456 | LIBS=$ac_check_lib_save_LIBS |
| 15457 | fi |
| 15458 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 15459 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6 |
| 15460 | 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] | 15461 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15462 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15463 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15464 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15465 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15466 | fi |
| 15467 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15468 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15469 | # check for readline 4.2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15470 | echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 15471 | echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6 |
| 15472 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 15473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15474 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15475 | ac_check_lib_save_LIBS=$LIBS |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15476 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15477 | cat >conftest.$ac_ext <<_ACEOF |
| 15478 | #line $LINENO "configure" |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15479 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15480 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15481 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15482 | #ifdef __cplusplus |
| 15483 | extern "C" |
| 15484 | #endif |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15485 | /* 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] | 15486 | builtin and then its argument prototype would still apply. */ |
| 15487 | char rl_completion_matches (); |
| 15488 | #ifdef F77_DUMMY_MAIN |
| 15489 | # ifdef __cplusplus |
| 15490 | extern "C" |
| 15491 | # endif |
| 15492 | int F77_DUMMY_MAIN() { return 1; } |
| 15493 | #endif |
| 15494 | int |
| 15495 | main () |
| 15496 | { |
| 15497 | rl_completion_matches (); |
| 15498 | ; |
| 15499 | return 0; |
| 15500 | } |
| 15501 | _ACEOF |
| 15502 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15503 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15504 | (eval $ac_link) 2>&5 |
| 15505 | ac_status=$? |
| 15506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15507 | (exit $ac_status); } && |
| 15508 | { ac_try='test -s conftest$ac_exeext' |
| 15509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15510 | (eval $ac_try) 2>&5 |
| 15511 | ac_status=$? |
| 15512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15513 | (exit $ac_status); }; }; then |
| 15514 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15515 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15516 | echo "$as_me: failed program was:" >&5 |
| 15517 | cat conftest.$ac_ext >&5 |
| 15518 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15519 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15520 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 15521 | LIBS=$ac_check_lib_save_LIBS |
| 15522 | fi |
| 15523 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 15524 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6 |
| 15525 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15526 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15527 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15528 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15529 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15530 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15531 | fi |
| 15532 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15533 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15534 | echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 15535 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6 |
| 15536 | if test "${ac_cv_broken_nice+set}" = set; then |
| 15537 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15538 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15539 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15540 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15541 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15542 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15543 | cat >conftest.$ac_ext <<_ACEOF |
| 15544 | #line $LINENO "configure" |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15545 | #include "confdefs.h" |
| 15546 | |
| 15547 | int main() |
| 15548 | { |
| 15549 | int val1 = nice(1); |
| 15550 | if (val1 != -1 && val1 == nice(2)) |
| 15551 | exit(0); |
| 15552 | exit(1); |
| 15553 | } |
| 15554 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15555 | _ACEOF |
| 15556 | rm -f conftest$ac_exeext |
| 15557 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15558 | (eval $ac_link) 2>&5 |
| 15559 | ac_status=$? |
| 15560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15561 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15563 | (eval $ac_try) 2>&5 |
| 15564 | ac_status=$? |
| 15565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15566 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15567 | ac_cv_broken_nice=yes |
| 15568 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15569 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15570 | echo "$as_me: failed program was:" >&5 |
| 15571 | cat conftest.$ac_ext >&5 |
| 15572 | ( exit $ac_status ) |
| 15573 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15574 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15575 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15576 | fi |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15577 | fi |
| 15578 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15579 | echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 15580 | echo "${ECHO_T}$ac_cv_broken_nice" >&6 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15581 | if test "$ac_cv_broken_nice" = yes |
| 15582 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15583 | |
| 15584 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15585 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15586 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 15587 | |
| 15588 | fi |
| 15589 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15590 | # 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] | 15591 | echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 15592 | echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6 |
| 15593 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 15594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15595 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15596 | cat >conftest.$ac_ext <<_ACEOF |
| 15597 | #line $LINENO "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15598 | #include "confdefs.h" |
| 15599 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15600 | #ifdef F77_DUMMY_MAIN |
| 15601 | # ifdef __cplusplus |
| 15602 | extern "C" |
| 15603 | # endif |
| 15604 | int F77_DUMMY_MAIN() { return 1; } |
| 15605 | #endif |
| 15606 | int |
| 15607 | main () |
| 15608 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15609 | |
| 15610 | int rtn; |
| 15611 | rtn = mvwdelch(0,0,0); |
| 15612 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15613 | ; |
| 15614 | return 0; |
| 15615 | } |
| 15616 | _ACEOF |
| 15617 | rm -f conftest.$ac_objext |
| 15618 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15619 | (eval $ac_compile) 2>&5 |
| 15620 | ac_status=$? |
| 15621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15622 | (exit $ac_status); } && |
| 15623 | { ac_try='test -s conftest.$ac_objext' |
| 15624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15625 | (eval $ac_try) 2>&5 |
| 15626 | ac_status=$? |
| 15627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15628 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15629 | ac_cv_mvwdelch_is_expression=yes |
| 15630 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15631 | echo "$as_me: failed program was:" >&5 |
| 15632 | cat conftest.$ac_ext >&5 |
| 15633 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15634 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15635 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15636 | fi |
| 15637 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15638 | echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 15639 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15640 | |
| 15641 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 15642 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15643 | |
| 15644 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15645 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15646 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15647 | |
| 15648 | fi |
| 15649 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15650 | echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 15651 | echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6 |
| 15652 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 15653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15654 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15655 | cat >conftest.$ac_ext <<_ACEOF |
| 15656 | #line $LINENO "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15657 | #include "confdefs.h" |
| 15658 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15659 | #ifdef F77_DUMMY_MAIN |
| 15660 | # ifdef __cplusplus |
| 15661 | extern "C" |
| 15662 | # endif |
| 15663 | int F77_DUMMY_MAIN() { return 1; } |
| 15664 | #endif |
| 15665 | int |
| 15666 | main () |
| 15667 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15668 | |
| 15669 | WINDOW *w; |
| 15670 | w->_flags = 0; |
| 15671 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15672 | ; |
| 15673 | return 0; |
| 15674 | } |
| 15675 | _ACEOF |
| 15676 | rm -f conftest.$ac_objext |
| 15677 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15678 | (eval $ac_compile) 2>&5 |
| 15679 | ac_status=$? |
| 15680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15681 | (exit $ac_status); } && |
| 15682 | { ac_try='test -s conftest.$ac_objext' |
| 15683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15684 | (eval $ac_try) 2>&5 |
| 15685 | ac_status=$? |
| 15686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15687 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15688 | ac_cv_window_has_flags=yes |
| 15689 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15690 | echo "$as_me: failed program was:" >&5 |
| 15691 | cat conftest.$ac_ext >&5 |
| 15692 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15693 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15694 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15695 | fi |
| 15696 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15697 | echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 15698 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15699 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15700 | |
| 15701 | if test "$ac_cv_window_has_flags" = yes |
| 15702 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15703 | |
| 15704 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15705 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15706 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 15707 | |
| 15708 | fi |
| 15709 | |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15710 | # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS! |
| 15711 | # Add sys/socket.h to confdefs.h |
| 15712 | cat >> confdefs.h <<\EOF |
| 15713 | #ifdef HAVE_SYS_SOCKET_H |
| 15714 | #include <sys/socket.h> |
| 15715 | #endif |
| 15716 | EOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15717 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 15718 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 15719 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 15720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15721 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15722 | cat >conftest.$ac_ext <<_ACEOF |
| 15723 | #line $LINENO "configure" |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15724 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15725 | $ac_includes_default |
| 15726 | #ifdef F77_DUMMY_MAIN |
| 15727 | # ifdef __cplusplus |
| 15728 | extern "C" |
| 15729 | # endif |
| 15730 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15731 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15732 | int |
| 15733 | main () |
| 15734 | { |
| 15735 | if ((socklen_t *) 0) |
| 15736 | return 0; |
| 15737 | if (sizeof (socklen_t)) |
| 15738 | return 0; |
| 15739 | ; |
| 15740 | return 0; |
| 15741 | } |
| 15742 | _ACEOF |
| 15743 | rm -f conftest.$ac_objext |
| 15744 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15745 | (eval $ac_compile) 2>&5 |
| 15746 | ac_status=$? |
| 15747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15748 | (exit $ac_status); } && |
| 15749 | { ac_try='test -s conftest.$ac_objext' |
| 15750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15751 | (eval $ac_try) 2>&5 |
| 15752 | ac_status=$? |
| 15753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15754 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 15755 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15756 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15757 | echo "$as_me: failed program was:" >&5 |
| 15758 | cat conftest.$ac_ext >&5 |
| 15759 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15760 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15761 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15762 | fi |
| 15763 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 15764 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| 15765 | if test $ac_cv_type_socklen_t = yes; then |
| 15766 | : |
| 15767 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15768 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15769 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15770 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15771 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 15772 | |
| 15773 | fi |
| 15774 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15775 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15776 | #AC_MSG_CHECKING(for Modules/Setup) |
| 15777 | #if test ! -f Modules/Setup ; then |
| 15778 | # if test ! -d Modules ; then |
| 15779 | # mkdir Modules |
| 15780 | # fi |
| 15781 | # cp "$srcdir/Modules/Setup.dist" Modules/Setup |
| 15782 | # AC_MSG_RESULT(creating) |
| 15783 | #else |
| 15784 | # AC_MSG_RESULT(already exists) |
| 15785 | #fi |
| 15786 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15787 | |
| 15788 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 15789 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 15790 | do |
| 15791 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 15792 | done |
| 15793 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15794 | |
Jack Jansen | 0b06be7 | 2002-06-21 14:48:38 +0000 | [diff] [blame] | 15795 | SRCDIRS="Parser Grammar Objects Python Modules Mac Mac/Python" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15796 | echo "$as_me:$LINENO: checking for build directories" >&5 |
| 15797 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15798 | for dir in $SRCDIRS; do |
| 15799 | if test ! -d $dir; then |
| 15800 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 15801 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 15802 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15803 | echo "$as_me:$LINENO: result: done" >&5 |
| 15804 | echo "${ECHO_T}done" >&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 15805 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15806 | # generate output files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15807 | ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config" |
| 15808 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15809 | # This file is a shell script that caches the results of configure |
| 15810 | # 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] | 15811 | # scripts and configure runs, see configure's option --config-cache. |
| 15812 | # It is not useful on other systems. If it contains results you don't |
| 15813 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15814 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15815 | # config.status only pays attention to the cache file if you give it |
| 15816 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15817 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15818 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
| 15819 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 15820 | # following values. |
| 15821 | |
| 15822 | _ACEOF |
| 15823 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 15824 | # The following way of writing the cache mishandles newlines in values, |
| 15825 | # but we know of no workaround that is simple, portable, and efficient. |
| 15826 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15827 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 15828 | # 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] | 15829 | { |
| 15830 | (set) 2>&1 | |
| 15831 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 15832 | *ac_space=\ *) |
| 15833 | # `set' does not quote correctly, so add quotes (double-quote |
| 15834 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 15835 | sed -n \ |
| 15836 | "s/'/'\\\\''/g; |
| 15837 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 15838 | ;; |
| 15839 | *) |
| 15840 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 15841 | sed -n \ |
| 15842 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 15843 | ;; |
| 15844 | esac; |
| 15845 | } | |
| 15846 | sed ' |
| 15847 | t clear |
| 15848 | : clear |
| 15849 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 15850 | t end |
| 15851 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 15852 | : end' >>confcache |
| 15853 | if cmp -s $cache_file confcache; then :; else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15854 | if test -w $cache_file; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15855 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 15856 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15857 | else |
| 15858 | echo "not updating unwritable cache $cache_file" |
| 15859 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15860 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15861 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 15862 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15863 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 15864 | # Let make expand exec_prefix. |
| 15865 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 15866 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15867 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 15868 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 15869 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 15870 | # (actually we leave an empty line to preserve line numbers). |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15871 | if test "x$srcdir" = x.; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15872 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 15873 | s/:*\$(srcdir):*/:/; |
| 15874 | s/:*\${srcdir}:*/:/; |
| 15875 | s/:*@srcdir@:*/:/; |
| 15876 | s/^\([^=]*=[ ]*\):*/\1/; |
| 15877 | s/:*$//; |
| 15878 | s/^[^=]*=[ ]*$//; |
| 15879 | }' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15880 | fi |
| 15881 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15882 | DEFS=-DHAVE_CONFIG_H |
| 15883 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15884 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15885 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15886 | ac_clean_files_save=$ac_clean_files |
| 15887 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 15888 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 15889 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 15890 | cat >$CONFIG_STATUS <<_ACEOF |
| 15891 | #! $SHELL |
| 15892 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15893 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15894 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15895 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15896 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15897 | debug=false |
| 15898 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 15899 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15900 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15901 | cat >>$CONFIG_STATUS <<\_ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15902 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15903 | ## --------------------- ## |
| 15904 | ## M4sh Initialization. ## |
| 15905 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15906 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15907 | # Be Bourne compatible |
| 15908 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 15909 | emulate sh |
| 15910 | NULLCMD=: |
| 15911 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 15912 | set -o posix |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15913 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15914 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15915 | # NLS nuisances. |
| 15916 | # Support unset when possible. |
| 15917 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 15918 | as_unset=unset |
| 15919 | else |
| 15920 | as_unset=false |
| 15921 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15922 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15923 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && |
| 15924 | { $as_unset LANG || test "${LANG+set}" != set; } || |
| 15925 | { LANG=C; export LANG; } |
| 15926 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && |
| 15927 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || |
| 15928 | { LC_ALL=C; export LC_ALL; } |
| 15929 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && |
| 15930 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || |
| 15931 | { LC_TIME=C; export LC_TIME; } |
| 15932 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && |
| 15933 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || |
| 15934 | { LC_CTYPE=C; export LC_CTYPE; } |
| 15935 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && |
| 15936 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || |
| 15937 | { LANGUAGE=C; export LANGUAGE; } |
| 15938 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && |
| 15939 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || |
| 15940 | { LC_COLLATE=C; export LC_COLLATE; } |
| 15941 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && |
| 15942 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || |
| 15943 | { LC_NUMERIC=C; export LC_NUMERIC; } |
| 15944 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && |
| 15945 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || |
| 15946 | { LC_MESSAGES=C; export LC_MESSAGES; } |
| 15947 | |
| 15948 | |
| 15949 | # Name of the executable. |
| 15950 | as_me=`(basename "$0") 2>/dev/null || |
| 15951 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 15952 | X"$0" : 'X\(//\)$' \| \ |
| 15953 | X"$0" : 'X\(/\)$' \| \ |
| 15954 | . : '\(.\)' 2>/dev/null || |
| 15955 | echo X/"$0" | |
| 15956 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 15957 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 15958 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 15959 | s/.*/./; q'` |
| 15960 | |
| 15961 | # PATH needs CR, and LINENO needs CR and PATH. |
| 15962 | # Avoid depending upon Character Ranges. |
| 15963 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 15964 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 15965 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 15966 | as_cr_digits='0123456789' |
| 15967 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 15968 | |
| 15969 | # The user is always right. |
| 15970 | if test "${PATH_SEPARATOR+set}" != set; then |
| 15971 | echo "#! /bin/sh" >conftest.sh |
| 15972 | echo "exit 0" >>conftest.sh |
| 15973 | chmod +x conftest.sh |
| 15974 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
| 15975 | PATH_SEPARATOR=';' |
| 15976 | else |
| 15977 | PATH_SEPARATOR=: |
| 15978 | fi |
| 15979 | rm -f conftest.sh |
| 15980 | fi |
| 15981 | |
| 15982 | |
| 15983 | as_lineno_1=$LINENO |
| 15984 | as_lineno_2=$LINENO |
| 15985 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 15986 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 15987 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 15988 | # Find who we are. Look in the path if we contain no path at all |
| 15989 | # relative or not. |
| 15990 | case $0 in |
| 15991 | *[\\/]* ) as_myself=$0 ;; |
| 15992 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15993 | for as_dir in $PATH |
| 15994 | do |
| 15995 | IFS=$as_save_IFS |
| 15996 | test -z "$as_dir" && as_dir=. |
| 15997 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 15998 | done |
| 15999 | |
| 16000 | ;; |
| 16001 | esac |
| 16002 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 16003 | # in which case we are not to be found in the path. |
| 16004 | if test "x$as_myself" = x; then |
| 16005 | as_myself=$0 |
| 16006 | fi |
| 16007 | if test ! -f "$as_myself"; then |
| 16008 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 16009 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 16010 | { (exit 1); exit 1; }; } |
| 16011 | fi |
| 16012 | case $CONFIG_SHELL in |
| 16013 | '') |
| 16014 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16015 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 16016 | do |
| 16017 | IFS=$as_save_IFS |
| 16018 | test -z "$as_dir" && as_dir=. |
| 16019 | for as_base in sh bash ksh sh5; do |
| 16020 | case $as_dir in |
| 16021 | /*) |
| 16022 | if ("$as_dir/$as_base" -c ' |
| 16023 | as_lineno_1=$LINENO |
| 16024 | as_lineno_2=$LINENO |
| 16025 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 16026 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 16027 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 16028 | CONFIG_SHELL=$as_dir/$as_base |
| 16029 | export CONFIG_SHELL |
| 16030 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 16031 | fi;; |
| 16032 | esac |
| 16033 | done |
| 16034 | done |
| 16035 | ;; |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16036 | esac |
| 16037 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16038 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 16039 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 16040 | # line-number line before each line; the second 'sed' does the real |
| 16041 | # work. The second script uses 'N' to pair each line-number line |
| 16042 | # with the numbered line, and appends trailing '-' during |
| 16043 | # substitution so that $LINENO is not a special case at line end. |
| 16044 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 16045 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 16046 | sed '=' <$as_myself | |
| 16047 | sed ' |
| 16048 | N |
| 16049 | s,$,-, |
| 16050 | : loop |
| 16051 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 16052 | t loop |
| 16053 | s,-$,, |
| 16054 | s,^['$as_cr_digits']*\n,, |
| 16055 | ' >$as_me.lineno && |
| 16056 | chmod +x $as_me.lineno || |
| 16057 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 16058 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 16059 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16060 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16061 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 16062 | # (the dirname of $[0] is not the place where we might find the |
| 16063 | # original and so on. Autoconf is especially sensible to this). |
| 16064 | . ./$as_me.lineno |
| 16065 | # Exit status is that of the last command. |
| 16066 | exit |
| 16067 | } |
| 16068 | |
| 16069 | |
| 16070 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 16071 | *c*,-n*) ECHO_N= ECHO_C=' |
| 16072 | ' ECHO_T=' ' ;; |
| 16073 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 16074 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 16075 | esac |
| 16076 | |
| 16077 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 16078 | as_expr=expr |
| 16079 | else |
| 16080 | as_expr=false |
| 16081 | fi |
| 16082 | |
| 16083 | rm -f conf$$ conf$$.exe conf$$.file |
| 16084 | echo >conf$$.file |
| 16085 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 16086 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 16087 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 16088 | if test -f conf$$.exe; then |
| 16089 | # Don't use ln at all; we don't have any links |
| 16090 | as_ln_s='cp -p' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16091 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16092 | as_ln_s='ln -s' |
| 16093 | fi |
| 16094 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 16095 | as_ln_s=ln |
| 16096 | else |
| 16097 | as_ln_s='cp -p' |
| 16098 | fi |
| 16099 | rm -f conf$$ conf$$.exe conf$$.file |
| 16100 | |
| 16101 | as_executable_p="test -f" |
| 16102 | |
| 16103 | # Sed expression to map a string onto a valid CPP name. |
| 16104 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 16105 | |
| 16106 | # Sed expression to map a string onto a valid variable name. |
| 16107 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 16108 | |
| 16109 | |
| 16110 | # IFS |
| 16111 | # We need space, tab and new line, in precisely that order. |
| 16112 | as_nl=' |
| 16113 | ' |
| 16114 | IFS=" $as_nl" |
| 16115 | |
| 16116 | # CDPATH. |
| 16117 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
| 16118 | |
| 16119 | exec 6>&1 |
| 16120 | |
| 16121 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 16122 | # report actual input values of CONFIG_FILES etc. instead of their |
| 16123 | # values after options handling. Logging --version etc. is OK. |
| 16124 | exec 5>>config.log |
| 16125 | { |
| 16126 | echo |
| 16127 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 16128 | ## Running $as_me. ## |
| 16129 | _ASBOX |
| 16130 | } >&5 |
| 16131 | cat >&5 <<_CSEOF |
| 16132 | |
| 16133 | This file was extended by $as_me, which was |
| 16134 | generated by GNU Autoconf 2.53. Invocation command line was |
| 16135 | |
| 16136 | CONFIG_FILES = $CONFIG_FILES |
| 16137 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 16138 | CONFIG_LINKS = $CONFIG_LINKS |
| 16139 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 16140 | $ $0 $@ |
| 16141 | |
| 16142 | _CSEOF |
| 16143 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 16144 | echo >&5 |
| 16145 | _ACEOF |
| 16146 | |
| 16147 | # Files that config.status was made for. |
| 16148 | if test -n "$ac_config_files"; then |
| 16149 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 16150 | fi |
| 16151 | |
| 16152 | if test -n "$ac_config_headers"; then |
| 16153 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 16154 | fi |
| 16155 | |
| 16156 | if test -n "$ac_config_links"; then |
| 16157 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 16158 | fi |
| 16159 | |
| 16160 | if test -n "$ac_config_commands"; then |
| 16161 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 16162 | fi |
| 16163 | |
| 16164 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16165 | |
| 16166 | ac_cs_usage="\ |
| 16167 | \`$as_me' instantiates files from templates according to the |
| 16168 | current configuration. |
| 16169 | |
| 16170 | Usage: $0 [OPTIONS] [FILE]... |
| 16171 | |
| 16172 | -h, --help print this help, then exit |
| 16173 | -V, --version print version number, then exit |
| 16174 | -d, --debug don't remove temporary files |
| 16175 | --recheck update $as_me by reconfiguring in the same conditions |
| 16176 | --file=FILE[:TEMPLATE] |
| 16177 | instantiate the configuration file FILE |
| 16178 | --header=FILE[:TEMPLATE] |
| 16179 | instantiate the configuration header FILE |
| 16180 | |
| 16181 | Configuration files: |
| 16182 | $config_files |
| 16183 | |
| 16184 | Configuration headers: |
| 16185 | $config_headers |
| 16186 | |
| 16187 | Report bugs to <bug-autoconf@gnu.org>." |
| 16188 | _ACEOF |
| 16189 | |
| 16190 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16191 | ac_cs_version="\\ |
| 16192 | config.status |
| 16193 | configured by $0, generated by GNU Autoconf 2.53, |
| 16194 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 16195 | |
| 16196 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 16197 | Free Software Foundation, Inc. |
| 16198 | This config.status script is free software; the Free Software Foundation |
| 16199 | gives unlimited permission to copy, distribute and modify it." |
| 16200 | srcdir=$srcdir |
| 16201 | INSTALL="$INSTALL" |
| 16202 | _ACEOF |
| 16203 | |
| 16204 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16205 | # If no file are specified by the user, then we need to provide default |
| 16206 | # value. By we need to know if files were specified by the user. |
| 16207 | ac_need_defaults=: |
| 16208 | while test $# != 0 |
| 16209 | do |
| 16210 | case $1 in |
| 16211 | --*=*) |
| 16212 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 16213 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 16214 | shift |
| 16215 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} |
| 16216 | shift |
| 16217 | ;; |
| 16218 | -*);; |
| 16219 | *) # This is not an option, so the user has probably given explicit |
| 16220 | # arguments. |
| 16221 | ac_need_defaults=false;; |
| 16222 | esac |
| 16223 | |
| 16224 | case $1 in |
| 16225 | # Handling of the options. |
| 16226 | _ACEOF |
| 16227 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16228 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 16229 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
| 16230 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; |
| 16231 | _ACEOF |
| 16232 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16233 | --version | --vers* | -V ) |
| 16234 | echo "$ac_cs_version"; exit 0 ;; |
| 16235 | --he | --h) |
| 16236 | # Conflict between --help and --header |
| 16237 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 16238 | Try \`$0 --help' for more information." >&5 |
| 16239 | echo "$as_me: error: ambiguous option: $1 |
| 16240 | Try \`$0 --help' for more information." >&2;} |
| 16241 | { (exit 1); exit 1; }; };; |
| 16242 | --help | --hel | -h ) |
| 16243 | echo "$ac_cs_usage"; exit 0 ;; |
| 16244 | --debug | --d* | -d ) |
| 16245 | debug=: ;; |
| 16246 | --file | --fil | --fi | --f ) |
| 16247 | shift |
| 16248 | CONFIG_FILES="$CONFIG_FILES $1" |
| 16249 | ac_need_defaults=false;; |
| 16250 | --header | --heade | --head | --hea ) |
| 16251 | shift |
| 16252 | CONFIG_HEADERS="$CONFIG_HEADERS $1" |
| 16253 | ac_need_defaults=false;; |
| 16254 | |
| 16255 | # This is an error. |
| 16256 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 16257 | Try \`$0 --help' for more information." >&5 |
| 16258 | echo "$as_me: error: unrecognized option: $1 |
| 16259 | Try \`$0 --help' for more information." >&2;} |
| 16260 | { (exit 1); exit 1; }; } ;; |
| 16261 | |
| 16262 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 16263 | |
| 16264 | esac |
| 16265 | shift |
| 16266 | done |
| 16267 | |
| 16268 | _ACEOF |
| 16269 | |
| 16270 | |
| 16271 | |
| 16272 | |
| 16273 | |
| 16274 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16275 | for ac_config_target in $ac_config_targets |
| 16276 | do |
| 16277 | case "$ac_config_target" in |
| 16278 | # Handling of arguments. |
| 16279 | "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 16280 | "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 16281 | "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 16282 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 16283 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 16284 | { (exit 1); exit 1; }; };; |
| 16285 | esac |
| 16286 | done |
| 16287 | |
| 16288 | # If the user did not use the arguments to specify the items to instantiate, |
| 16289 | # then the envvar interface is used. Set only those that are not. |
| 16290 | # We use the long form for the default assignment because of an extremely |
| 16291 | # bizarre bug on SunOS 4.1.3. |
| 16292 | if $ac_need_defaults; then |
| 16293 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 16294 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 16295 | fi |
| 16296 | |
| 16297 | # Create a temporary directory, and hook for its removal unless debugging. |
| 16298 | $debug || |
| 16299 | { |
| 16300 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 16301 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 16302 | } |
| 16303 | |
| 16304 | # Create a (secure) tmp directory for tmp files. |
| 16305 | : ${TMPDIR=/tmp} |
| 16306 | { |
| 16307 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && |
| 16308 | test -n "$tmp" && test -d "$tmp" |
| 16309 | } || |
| 16310 | { |
| 16311 | tmp=$TMPDIR/cs$$-$RANDOM |
| 16312 | (umask 077 && mkdir $tmp) |
| 16313 | } || |
| 16314 | { |
| 16315 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
| 16316 | { (exit 1); exit 1; } |
| 16317 | } |
| 16318 | |
| 16319 | _ACEOF |
| 16320 | |
| 16321 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16322 | |
| 16323 | # |
| 16324 | # CONFIG_FILES section. |
| 16325 | # |
| 16326 | |
| 16327 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 16328 | # This happens for instance when ./config.status config.h |
| 16329 | if test -n "\$CONFIG_FILES"; then |
| 16330 | # Protect against being on the right side of a sed subst in config.status. |
| 16331 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 16332 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 16333 | s,@SHELL@,$SHELL,;t t |
| 16334 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 16335 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 16336 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 16337 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 16338 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 16339 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 16340 | s,@exec_prefix@,$exec_prefix,;t t |
| 16341 | s,@prefix@,$prefix,;t t |
| 16342 | s,@program_transform_name@,$program_transform_name,;t t |
| 16343 | s,@bindir@,$bindir,;t t |
| 16344 | s,@sbindir@,$sbindir,;t t |
| 16345 | s,@libexecdir@,$libexecdir,;t t |
| 16346 | s,@datadir@,$datadir,;t t |
| 16347 | s,@sysconfdir@,$sysconfdir,;t t |
| 16348 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 16349 | s,@localstatedir@,$localstatedir,;t t |
| 16350 | s,@libdir@,$libdir,;t t |
| 16351 | s,@includedir@,$includedir,;t t |
| 16352 | s,@oldincludedir@,$oldincludedir,;t t |
| 16353 | s,@infodir@,$infodir,;t t |
| 16354 | s,@mandir@,$mandir,;t t |
| 16355 | s,@build_alias@,$build_alias,;t t |
| 16356 | s,@host_alias@,$host_alias,;t t |
| 16357 | s,@target_alias@,$target_alias,;t t |
| 16358 | s,@DEFS@,$DEFS,;t t |
| 16359 | s,@ECHO_C@,$ECHO_C,;t t |
| 16360 | s,@ECHO_N@,$ECHO_N,;t t |
| 16361 | s,@ECHO_T@,$ECHO_T,;t t |
| 16362 | s,@LIBS@,$LIBS,;t t |
| 16363 | s,@VERSION@,$VERSION,;t t |
| 16364 | s,@SOVERSION@,$SOVERSION,;t t |
| 16365 | s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t |
| 16366 | s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t |
| 16367 | s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t |
| 16368 | s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t |
| 16369 | s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t |
| 16370 | s,@MACHDEP@,$MACHDEP,;t t |
| 16371 | s,@SGI_ABI@,$SGI_ABI,;t t |
| 16372 | s,@CXX@,$CXX,;t t |
| 16373 | s,@MAINOBJ@,$MAINOBJ,;t t |
| 16374 | s,@EXEEXT@,$EXEEXT,;t t |
| 16375 | s,@CC@,$CC,;t t |
| 16376 | s,@CFLAGS@,$CFLAGS,;t t |
| 16377 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 16378 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 16379 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 16380 | s,@OBJEXT@,$OBJEXT,;t t |
| 16381 | s,@CPP@,$CPP,;t t |
| 16382 | s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t |
| 16383 | s,@LIBRARY@,$LIBRARY,;t t |
| 16384 | s,@LDLIBRARY@,$LDLIBRARY,;t t |
| 16385 | s,@DLLLIBRARY@,$DLLLIBRARY,;t t |
| 16386 | s,@BLDLIBRARY@,$BLDLIBRARY,;t t |
| 16387 | s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t |
| 16388 | s,@INSTSONAME@,$INSTSONAME,;t t |
| 16389 | s,@RUNSHARED@,$RUNSHARED,;t t |
| 16390 | s,@LINKCC@,$LINKCC,;t t |
| 16391 | s,@RANLIB@,$RANLIB,;t t |
| 16392 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 16393 | s,@AR@,$AR,;t t |
| 16394 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 16395 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 16396 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 16397 | s,@LN@,$LN,;t t |
| 16398 | s,@OPT@,$OPT,;t t |
| 16399 | s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t |
| 16400 | s,@SO@,$SO,;t t |
| 16401 | s,@LDSHARED@,$LDSHARED,;t t |
| 16402 | s,@BLDSHARED@,$BLDSHARED,;t t |
| 16403 | s,@CCSHARED@,$CCSHARED,;t t |
| 16404 | s,@LINKFORSHARED@,$LINKFORSHARED,;t t |
| 16405 | s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 16406 | s,@SHLIBS@,$SHLIBS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16407 | s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t |
| 16408 | s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t |
| 16409 | s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t |
| 16410 | s,@LDLAST@,$LDLAST,;t t |
| 16411 | s,@THREADOBJ@,$THREADOBJ,;t t |
| 16412 | s,@DLINCLDIR@,$DLINCLDIR,;t t |
| 16413 | s,@DYNLOADFILE@,$DYNLOADFILE,;t t |
| 16414 | s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t |
| 16415 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 16416 | s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t |
| 16417 | s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t |
| 16418 | s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t |
| 16419 | s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t |
| 16420 | s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t |
| 16421 | s,@LIBM@,$LIBM,;t t |
| 16422 | s,@LIBC@,$LIBC,;t t |
| 16423 | s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t |
| 16424 | s,@THREADHEADERS@,$THREADHEADERS,;t t |
| 16425 | s,@SRCDIRS@,$SRCDIRS,;t t |
| 16426 | CEOF |
| 16427 | |
| 16428 | _ACEOF |
| 16429 | |
| 16430 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16431 | # Split the substitutions into bite-sized pieces for seds with |
| 16432 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 16433 | ac_max_sed_lines=48 |
| 16434 | ac_sed_frag=1 # Number of current file. |
| 16435 | ac_beg=1 # First line for current file. |
| 16436 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 16437 | ac_more_lines=: |
| 16438 | ac_sed_cmds= |
| 16439 | while $ac_more_lines; do |
| 16440 | if test $ac_beg -gt 1; then |
| 16441 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 16442 | else |
| 16443 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 16444 | fi |
| 16445 | if test ! -s $tmp/subs.frag; then |
| 16446 | ac_more_lines=false |
| 16447 | else |
| 16448 | # The purpose of the label and of the branching condition is to |
| 16449 | # speed up the sed processing (if there are no `@' at all, there |
| 16450 | # is no need to browse any of the substitutions). |
| 16451 | # These are the two extra sed commands mentioned above. |
| 16452 | (echo ':t |
| 16453 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 16454 | if test -z "$ac_sed_cmds"; then |
| 16455 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 16456 | else |
| 16457 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 16458 | fi |
| 16459 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 16460 | ac_beg=$ac_end |
| 16461 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 16462 | fi |
| 16463 | done |
| 16464 | if test -z "$ac_sed_cmds"; then |
| 16465 | ac_sed_cmds=cat |
| 16466 | fi |
| 16467 | fi # test -n "$CONFIG_FILES" |
| 16468 | |
| 16469 | _ACEOF |
| 16470 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16471 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 16472 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 16473 | case $ac_file in |
| 16474 | - | *:- | *:-:* ) # input from stdin |
| 16475 | cat >$tmp/stdin |
| 16476 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16477 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16478 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16479 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16480 | * ) ac_file_in=$ac_file.in ;; |
| 16481 | esac |
| 16482 | |
| 16483 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 16484 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 16485 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16486 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16487 | X"$ac_file" : 'X\(//\)$' \| \ |
| 16488 | X"$ac_file" : 'X\(/\)' \| \ |
| 16489 | . : '\(.\)' 2>/dev/null || |
| 16490 | echo X"$ac_file" | |
| 16491 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16492 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16493 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16494 | /^X\(\/\).*/{ s//\1/; q; } |
| 16495 | s/.*/./; q'` |
| 16496 | { case "$ac_dir" in |
| 16497 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 16498 | *) as_incr_dir=.;; |
| 16499 | esac |
| 16500 | as_dummy="$ac_dir" |
| 16501 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 16502 | case $as_mkdir_dir in |
| 16503 | # Skip DOS drivespec |
| 16504 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 16505 | *) |
| 16506 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 16507 | test -d "$as_incr_dir" || |
| 16508 | mkdir "$as_incr_dir" || |
| 16509 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 16510 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 16511 | { (exit 1); exit 1; }; } |
| 16512 | ;; |
| 16513 | esac |
| 16514 | done; } |
| 16515 | |
| 16516 | ac_builddir=. |
| 16517 | |
| 16518 | if test "$ac_dir" != .; then |
| 16519 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 16520 | # A "../" for each directory in $ac_dir_suffix. |
| 16521 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 16522 | else |
| 16523 | ac_dir_suffix= ac_top_builddir= |
| 16524 | fi |
| 16525 | |
| 16526 | case $srcdir in |
| 16527 | .) # No --srcdir option. We are building in place. |
| 16528 | ac_srcdir=. |
| 16529 | if test -z "$ac_top_builddir"; then |
| 16530 | ac_top_srcdir=. |
| 16531 | else |
| 16532 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 16533 | fi ;; |
| 16534 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 16535 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 16536 | ac_top_srcdir=$srcdir ;; |
| 16537 | *) # Relative path. |
| 16538 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 16539 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 16540 | esac |
| 16541 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 16542 | # absolute. |
| 16543 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 16544 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` |
| 16545 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 16546 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 16547 | |
| 16548 | |
| 16549 | case $INSTALL in |
| 16550 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 16551 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 16552 | esac |
| 16553 | |
| 16554 | if test x"$ac_file" != x-; then |
| 16555 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 16556 | echo "$as_me: creating $ac_file" >&6;} |
| 16557 | rm -f "$ac_file" |
| 16558 | fi |
| 16559 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16560 | # use $as_me), people would be surprised to read: |
| 16561 | # /* config.h. Generated by config.status. */ |
| 16562 | if test x"$ac_file" = x-; then |
| 16563 | configure_input= |
| 16564 | else |
| 16565 | configure_input="$ac_file. " |
| 16566 | fi |
| 16567 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 16568 | sed 's,.*/,,'` by configure." |
| 16569 | |
| 16570 | # First look for the input files in the build tree, otherwise in the |
| 16571 | # src tree. |
| 16572 | ac_file_inputs=`IFS=: |
| 16573 | for f in $ac_file_in; do |
| 16574 | case $f in |
| 16575 | -) echo $tmp/stdin ;; |
| 16576 | [\\/$]*) |
| 16577 | # Absolute (can't be DOS-style, as IFS=:) |
| 16578 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16579 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16580 | { (exit 1); exit 1; }; } |
| 16581 | echo $f;; |
| 16582 | *) # Relative |
| 16583 | if test -f "$f"; then |
| 16584 | # Build tree |
| 16585 | echo $f |
| 16586 | elif test -f "$srcdir/$f"; then |
| 16587 | # Source tree |
| 16588 | echo $srcdir/$f |
| 16589 | else |
| 16590 | # /dev/null tree |
| 16591 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16592 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16593 | { (exit 1); exit 1; }; } |
| 16594 | fi;; |
| 16595 | esac |
| 16596 | done` || { (exit 1); exit 1; } |
| 16597 | _ACEOF |
| 16598 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16599 | sed "$ac_vpsub |
| 16600 | $extrasub |
| 16601 | _ACEOF |
| 16602 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16603 | :t |
| 16604 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 16605 | s,@configure_input@,$configure_input,;t t |
| 16606 | s,@srcdir@,$ac_srcdir,;t t |
| 16607 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 16608 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 16609 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 16610 | s,@builddir@,$ac_builddir,;t t |
| 16611 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 16612 | s,@top_builddir@,$ac_top_builddir,;t t |
| 16613 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 16614 | s,@INSTALL@,$ac_INSTALL,;t t |
| 16615 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 16616 | rm -f $tmp/stdin |
| 16617 | if test x"$ac_file" != x-; then |
| 16618 | mv $tmp/out $ac_file |
| 16619 | else |
| 16620 | cat $tmp/out |
| 16621 | rm -f $tmp/out |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16622 | fi |
| 16623 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16624 | done |
| 16625 | _ACEOF |
| 16626 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16627 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16628 | # |
| 16629 | # CONFIG_HEADER section. |
| 16630 | # |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16631 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16632 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 16633 | # 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] | 16634 | # |
| 16635 | # ac_d sets the value in "#define NAME VALUE" lines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16636 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 16637 | ac_dB='[ ].*$,\1#\2' |
| 16638 | ac_dC=' ' |
| 16639 | ac_dD=',;t' |
| 16640 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 16641 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 16642 | ac_uB='$,\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16643 | ac_uC=' ' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16644 | ac_uD=',;t' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16645 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16646 | 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] | 16647 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16648 | case $ac_file in |
| 16649 | - | *:- | *:-:* ) # input from stdin |
| 16650 | cat >$tmp/stdin |
| 16651 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16652 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16653 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 16654 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 16655 | * ) ac_file_in=$ac_file.in ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16656 | esac |
| 16657 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16658 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 16659 | echo "$as_me: creating $ac_file" >&6;} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16660 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16661 | # First look for the input files in the build tree, otherwise in the |
| 16662 | # src tree. |
| 16663 | ac_file_inputs=`IFS=: |
| 16664 | for f in $ac_file_in; do |
| 16665 | case $f in |
| 16666 | -) echo $tmp/stdin ;; |
| 16667 | [\\/$]*) |
| 16668 | # Absolute (can't be DOS-style, as IFS=:) |
| 16669 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16670 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16671 | { (exit 1); exit 1; }; } |
| 16672 | echo $f;; |
| 16673 | *) # Relative |
| 16674 | if test -f "$f"; then |
| 16675 | # Build tree |
| 16676 | echo $f |
| 16677 | elif test -f "$srcdir/$f"; then |
| 16678 | # Source tree |
| 16679 | echo $srcdir/$f |
| 16680 | else |
| 16681 | # /dev/null tree |
| 16682 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 16683 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 16684 | { (exit 1); exit 1; }; } |
| 16685 | fi;; |
| 16686 | esac |
| 16687 | done` || { (exit 1); exit 1; } |
| 16688 | # Remove the trailing spaces. |
| 16689 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16690 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16691 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16692 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16693 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 16694 | # `conftest.undefs', that substitutes the proper values into |
| 16695 | # config.h.in to produce config.h. The first handles `#define' |
| 16696 | # templates, and the second `#undef' templates. |
| 16697 | # And first: Protect against being on the right side of a sed subst in |
| 16698 | # config.status. Protect against being in an unquoted here document |
| 16699 | # in config.status. |
| 16700 | rm -f conftest.defines conftest.undefs |
| 16701 | # Using a here document instead of a string reduces the quoting nightmare. |
| 16702 | # Putting comments in sed scripts is not portable. |
| 16703 | # |
| 16704 | # `end' is used to avoid that the second main sed command (meant for |
| 16705 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 16706 | # See the Autoconf documentation for `clear'. |
| 16707 | cat >confdef2sed.sed <<\_ACEOF |
| 16708 | s/[\\&,]/\\&/g |
| 16709 | s,[\\$`],\\&,g |
| 16710 | t clear |
| 16711 | : clear |
| 16712 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 16713 | t end |
| 16714 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 16715 | : end |
| 16716 | _ACEOF |
| 16717 | # If some macros were called several times there might be several times |
| 16718 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 16719 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 16720 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 16721 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 16722 | rm -f confdef2sed.sed |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16723 | |
| 16724 | # This sed command replaces #undef with comments. This is necessary, for |
| 16725 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 16726 | # 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] | 16727 | cat >>conftest.undefs <<\_ACEOF |
| 16728 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 16729 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16730 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16731 | # Break up conftest.defines because some shells have a limit on the size |
| 16732 | # of here documents, and old seds have small limits too (100 cmds). |
| 16733 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 16734 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 16735 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 16736 | echo ' :' >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16737 | rm -f conftest.tail |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16738 | while grep . conftest.defines >/dev/null |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16739 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16740 | # Write a limited-size here document to $tmp/defines.sed. |
| 16741 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 16742 | # Speed up: don't consider the non `#define' lines. |
| 16743 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 16744 | # Work around the forget-to-reset-the-flag bug. |
| 16745 | echo 't clr' >>$CONFIG_STATUS |
| 16746 | echo ': clr' >>$CONFIG_STATUS |
| 16747 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16748 | echo 'CEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16749 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 16750 | rm -f $tmp/in |
| 16751 | mv $tmp/out $tmp/in |
| 16752 | ' >>$CONFIG_STATUS |
| 16753 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 16754 | rm -f conftest.defines |
| 16755 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16756 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16757 | rm -f conftest.defines |
| 16758 | echo ' fi # egrep' >>$CONFIG_STATUS |
| 16759 | echo >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16760 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16761 | # Break up conftest.undefs because some shells have a limit on the size |
| 16762 | # of here documents, and old seds have small limits too (100 cmds). |
| 16763 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 16764 | rm -f conftest.tail |
| 16765 | while grep . conftest.undefs >/dev/null |
| 16766 | do |
| 16767 | # Write a limited-size here document to $tmp/undefs.sed. |
| 16768 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 16769 | # Speed up: don't consider the non `#undef' |
| 16770 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 16771 | # Work around the forget-to-reset-the-flag bug. |
| 16772 | echo 't clr' >>$CONFIG_STATUS |
| 16773 | echo ': clr' >>$CONFIG_STATUS |
| 16774 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 16775 | echo 'CEOF |
| 16776 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 16777 | rm -f $tmp/in |
| 16778 | mv $tmp/out $tmp/in |
| 16779 | ' >>$CONFIG_STATUS |
| 16780 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 16781 | rm -f conftest.undefs |
| 16782 | mv conftest.tail conftest.undefs |
| 16783 | done |
| 16784 | rm -f conftest.undefs |
| 16785 | |
| 16786 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16787 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16788 | # use $as_me), people would be surprised to read: |
| 16789 | # /* config.h. Generated by config.status. */ |
| 16790 | if test x"$ac_file" = x-; then |
| 16791 | echo "/* Generated by configure. */" >$tmp/config.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16792 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16793 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16794 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16795 | cat $tmp/in >>$tmp/config.h |
| 16796 | rm -f $tmp/in |
| 16797 | if test x"$ac_file" != x-; then |
| 16798 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then |
| 16799 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 16800 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 16801 | else |
| 16802 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 16803 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16804 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16805 | X"$ac_file" : 'X\(//\)$' \| \ |
| 16806 | X"$ac_file" : 'X\(/\)' \| \ |
| 16807 | . : '\(.\)' 2>/dev/null || |
| 16808 | echo X"$ac_file" | |
| 16809 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 16810 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 16811 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 16812 | /^X\(\/\).*/{ s//\1/; q; } |
| 16813 | s/.*/./; q'` |
| 16814 | { case "$ac_dir" in |
| 16815 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 16816 | *) as_incr_dir=.;; |
| 16817 | esac |
| 16818 | as_dummy="$ac_dir" |
| 16819 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 16820 | case $as_mkdir_dir in |
| 16821 | # Skip DOS drivespec |
| 16822 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 16823 | *) |
| 16824 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 16825 | test -d "$as_incr_dir" || |
| 16826 | mkdir "$as_incr_dir" || |
| 16827 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 16828 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 16829 | { (exit 1); exit 1; }; } |
| 16830 | ;; |
| 16831 | esac |
| 16832 | done; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16833 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16834 | rm -f $ac_file |
| 16835 | mv $tmp/config.h $ac_file |
| 16836 | fi |
| 16837 | else |
| 16838 | cat $tmp/config.h |
| 16839 | rm -f $tmp/config.h |
| 16840 | fi |
| 16841 | done |
| 16842 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16843 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16844 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16845 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16846 | { (exit 0); exit 0; } |
| 16847 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16848 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16849 | ac_clean_files=$ac_clean_files_save |
| 16850 | |
| 16851 | |
| 16852 | # configure is writing to config.log, and then calls config.status. |
| 16853 | # config.status does its own redirection, appending to config.log. |
| 16854 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 16855 | # by configure, so config.status won't be able to write to it; its |
| 16856 | # output is simply discarded. So we exec the FD to /dev/null, |
| 16857 | # effectively closing config.log, so it can be properly (re)opened and |
| 16858 | # appended to by config.status. When coming back to configure, we |
| 16859 | # need to make the FD available again. |
| 16860 | if test "$no_create" != yes; then |
| 16861 | ac_cs_success=: |
| 16862 | exec 5>/dev/null |
| 16863 | $SHELL $CONFIG_STATUS || ac_cs_success=false |
| 16864 | exec 5>>config.log |
| 16865 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 16866 | # would make configure fail if this is the last instruction. |
| 16867 | $ac_cs_success || { (exit 1); exit 1; } |
| 16868 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16869 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 16870 | |
| 16871 | echo "creating Setup" |
| 16872 | if test ! -f Modules/Setup |
| 16873 | then |
| 16874 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 16875 | fi |
| 16876 | |
| 16877 | echo "creating Setup.local" |
| 16878 | if test ! -f Modules/Setup.local |
| 16879 | then |
| 16880 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 16881 | fi |
| 16882 | |
| 16883 | echo "creating Makefile" |
| 16884 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 16885 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 16886 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 16887 | mv config.c Modules |