Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Martin v. Löwis | e482658 | 2002-10-26 13:33:00 +0000 | [diff] [blame^] | 2 | # From configure.in Revision: 1.358 . |
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` |
Martin v. Löwis | e482658 | 2002-10-26 13:33:00 +0000 | [diff] [blame^] | 904 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1228 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1229 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1230 | |
| 1231 | cat >>confdefs.h <<\_ACEOF |
| 1232 | #define _GNU_SOURCE 1 |
| 1233 | _ACEOF |
| 1234 | |
| 1235 | |
| 1236 | # The definition of _GNU_SOURCE potentially causes a change of the value |
| 1237 | # of _XOPEN_SOURCE. So define it only conditionally. |
| 1238 | |
| 1239 | |
| 1240 | cat >>confdefs.h <<\_ACEOF |
| 1241 | #define _XOPEN_SOURCE 500 |
| 1242 | _ACEOF |
| 1243 | |
| 1244 | |
Martin v. Löwis | e482658 | 2002-10-26 13:33:00 +0000 | [diff] [blame^] | 1245 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires definition |
| 1246 | # of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else several APIs |
| 1247 | # are not declared. Since this is also needed in some cases for HP-UX, |
| 1248 | # we define it globally. |
| 1249 | |
| 1250 | cat >>confdefs.h <<\_ACEOF |
| 1251 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 1252 | _ACEOF |
| 1253 | |
| 1254 | |
| 1255 | cat >>confdefs.h <<\_ACEOF |
| 1256 | #define _POSIX_C_SOURCE 199506L |
| 1257 | _ACEOF |
| 1258 | |
| 1259 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1260 | # Arguments passed to configure. |
| 1261 | |
| 1262 | CONFIG_ARGS="$ac_configure_args" |
| 1263 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1264 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1265 | # Check whether --enable-framework or --disable-framework was given. |
| 1266 | if test "${enable_framework+set}" = set; then |
| 1267 | enableval="$enable_framework" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1268 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1269 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1270 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1271 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1272 | esac |
| 1273 | case $enableval in |
| 1274 | no) |
| 1275 | PYTHONFRAMEWORK= |
| 1276 | PYTHONFRAMEWORKDIR=no-framework |
| 1277 | PYTHONFRAMEWORKPREFIX= |
| 1278 | PYTHONFRAMEWORKINSTALLDIR= |
| 1279 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1280 | ;; |
| 1281 | *) |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1282 | PYTHONFRAMEWORK=Python |
| 1283 | PYTHONFRAMEWORKDIR=Python.framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1284 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1285 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
| 1286 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1287 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1288 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1289 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1290 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1291 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1292 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1293 | PYTHONFRAMEWORKPREFIX= |
| 1294 | PYTHONFRAMEWORKINSTALLDIR= |
| 1295 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1296 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1297 | fi; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1298 | |
| 1299 | |
| 1300 | |
| 1301 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1302 | |
| 1303 | ##AC_ARG_WITH(dyld, |
| 1304 | ##[ --with-dyld Use (OpenStep|Rhapsody) dynamic linker],,) |
| 1305 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1306 | # Set name for machine-dependent library files |
| 1307 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1308 | echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 1309 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1310 | if test -z "$MACHDEP" |
| 1311 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1312 | ac_sys_system=`uname -s` |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 1313 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \ |
| 1314 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1315 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1316 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1317 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1318 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1319 | ac_md_system=`echo $ac_sys_system | |
| 1320 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 1321 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 1322 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1323 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1324 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 1325 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 1326 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 1327 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 1328 | atheos*) MACHDEP="atheos";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1329 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1330 | esac |
| 1331 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1332 | |
| 1333 | # |
| 1334 | # SGI compilers allow the specification of the both the ABI and the |
| 1335 | # ISA on the command line. Depending on the values of these switches, |
| 1336 | # different and often incompatable code will be generated. |
| 1337 | # |
| 1338 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 1339 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 1340 | # variable is also adjusted. |
| 1341 | # |
| 1342 | |
| 1343 | if test ! -z "$SGI_ABI" |
| 1344 | then |
| 1345 | CC="cc $SGI_ABI" |
| 1346 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 1347 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 1348 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1349 | echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 1350 | echo "${ECHO_T}$MACHDEP" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1351 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1352 | # checks for alternative programs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1353 | echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 1354 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6 |
| 1355 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1356 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1357 | if test "${with_gcc+set}" = set; then |
| 1358 | withval="$with_gcc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1359 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1360 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1361 | no) CC=cc |
| 1362 | without_gcc=yes;; |
| 1363 | yes) CC=gcc |
| 1364 | without_gcc=no;; |
| 1365 | *) CC=$withval |
| 1366 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1367 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1368 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1369 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1370 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1371 | AIX*) CC=cc_r |
| 1372 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1373 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1374 | case $BE_HOST_CPU in |
| 1375 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1376 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1377 | without_gcc=yes |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 1378 | OPT="-O -export pragma" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1379 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1380 | ;; |
| 1381 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1382 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1383 | without_gcc=no |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1384 | OPT=-O |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1385 | ;; |
| 1386 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1387 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 1388 | echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
| 1389 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1390 | ;; |
| 1391 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1392 | AR="\$(srcdir)/Modules/ar_beos" |
| 1393 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1394 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1395 | Monterey*) |
| 1396 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1397 | without_gcc=;; |
| 1398 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1399 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1400 | fi; |
| 1401 | echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 1402 | echo "${ECHO_T}$without_gcc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1403 | |
| 1404 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1405 | |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1406 | MAINOBJ=python.o |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1407 | echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5 |
| 1408 | echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6 |
| 1409 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1410 | # Check whether --with-cxx or --without-cxx was given. |
| 1411 | if test "${with_cxx+set}" = set; then |
| 1412 | withval="$with_cxx" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1413 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1414 | check_cxx=no |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1415 | case $withval in |
| 1416 | no) CXX= |
| 1417 | with_cxx=no;; |
| 1418 | *) CXX=$withval |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1419 | MAINOBJ=ccpython.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1420 | with_cxx=$withval;; |
| 1421 | esac |
| 1422 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1423 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1424 | with_cxx=no |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1425 | check_cxx=yes |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1426 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1427 | fi; |
| 1428 | echo "$as_me:$LINENO: result: $with_cxx" >&5 |
| 1429 | echo "${ECHO_T}$with_cxx" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1430 | |
| 1431 | if test "$with_cxx" = "yes" |
| 1432 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1433 | { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5 |
| 1434 | echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;} |
| 1435 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1436 | fi |
| 1437 | |
| 1438 | |
| 1439 | |
| 1440 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1441 | if test "$check_cxx" = "yes" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1442 | then |
| 1443 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 1444 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1445 | # 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] | 1446 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1447 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1448 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1449 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 1450 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1451 | else |
| 1452 | if test -n "$CXX"; then |
| 1453 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 1454 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1455 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1456 | for as_dir in $PATH |
| 1457 | do |
| 1458 | IFS=$as_save_IFS |
| 1459 | test -z "$as_dir" && as_dir=. |
| 1460 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1461 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1462 | ac_cv_prog_CXX="$ac_prog" |
| 1463 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1464 | break 2 |
| 1465 | fi |
| 1466 | done |
| 1467 | done |
| 1468 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1469 | fi |
| 1470 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1471 | CXX=$ac_cv_prog_CXX |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1472 | if test -n "$CXX"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1473 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 1474 | echo "${ECHO_T}$CXX" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1475 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1476 | echo "$as_me:$LINENO: result: no" >&5 |
| 1477 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1478 | fi |
| 1479 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1480 | test -n "$CXX" && break |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1481 | done |
| 1482 | test -n "$CXX" || CXX="notfound" |
| 1483 | |
| 1484 | if test "$CXX" = "notfound" |
| 1485 | then |
| 1486 | CXX= |
| 1487 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1488 | ac_ext=cc |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1489 | ac_cpp='$CXXCPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1490 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1491 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1492 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 1493 | cat >conftest.$ac_ext <<_ACEOF |
| 1494 | #line $LINENO "configure" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1495 | #include "confdefs.h" |
| 1496 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1497 | #ifdef F77_DUMMY_MAIN |
| 1498 | # ifdef __cplusplus |
| 1499 | extern "C" |
| 1500 | # endif |
| 1501 | int F77_DUMMY_MAIN() { return 1; } |
| 1502 | #endif |
| 1503 | int |
| 1504 | main () |
| 1505 | { |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1506 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1507 | ; |
| 1508 | return 0; |
| 1509 | } |
| 1510 | _ACEOF |
| 1511 | ac_clean_files_save=$ac_clean_files |
| 1512 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 1513 | # Try to create an executable without -o first, disregard a.out. |
| 1514 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1515 | # of exeext. |
| 1516 | echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 |
| 1517 | echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 |
| 1518 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1519 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1520 | (eval $ac_link_default) 2>&5 |
| 1521 | ac_status=$? |
| 1522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1523 | (exit $ac_status); }; then |
| 1524 | # Find the output, starting from the most likely. This scheme is |
| 1525 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1526 | # resort. |
| 1527 | |
| 1528 | # Be careful to initialize this variable, since it used to be cached. |
| 1529 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1530 | ac_cv_exeext= |
| 1531 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; |
| 1532 | ls a.out conftest 2>/dev/null; |
| 1533 | ls a.* conftest.* 2>/dev/null`; do |
| 1534 | case $ac_file in |
| 1535 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
| 1536 | a.out ) # We found the default executable, but exeext='' is most |
| 1537 | # certainly right. |
| 1538 | break;; |
| 1539 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1540 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 1541 | export ac_cv_exeext |
| 1542 | break;; |
| 1543 | * ) break;; |
| 1544 | esac |
| 1545 | done |
| 1546 | else |
| 1547 | echo "$as_me: failed program was:" >&5 |
| 1548 | cat conftest.$ac_ext >&5 |
| 1549 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables" >&5 |
| 1550 | echo "$as_me: error: C++ compiler cannot create executables" >&2;} |
| 1551 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1552 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1553 | |
| 1554 | ac_exeext=$ac_cv_exeext |
| 1555 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1556 | echo "${ECHO_T}$ac_file" >&6 |
| 1557 | |
| 1558 | # Check the compiler produces executables we can run. If not, either |
| 1559 | # the compiler is broken, or we cross compile. |
| 1560 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
| 1561 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
| 1562 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1563 | # If not cross compiling, check that we can run a simple program. |
| 1564 | if test "$cross_compiling" != yes; then |
| 1565 | if { ac_try='./$ac_file' |
| 1566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1567 | (eval $ac_try) 2>&5 |
| 1568 | ac_status=$? |
| 1569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1570 | (exit $ac_status); }; }; then |
| 1571 | cross_compiling=no |
| 1572 | else |
| 1573 | if test "$cross_compiling" = maybe; then |
| 1574 | cross_compiling=yes |
| 1575 | else |
| 1576 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
| 1577 | If you meant to cross compile, use \`--host'." >&5 |
| 1578 | echo "$as_me: error: cannot run C++ compiled programs. |
| 1579 | If you meant to cross compile, use \`--host'." >&2;} |
| 1580 | { (exit 1); exit 1; }; } |
| 1581 | fi |
| 1582 | fi |
| 1583 | fi |
| 1584 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1585 | echo "${ECHO_T}yes" >&6 |
| 1586 | |
| 1587 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 1588 | ac_clean_files=$ac_clean_files_save |
| 1589 | # Check the compiler produces executables we can run. If not, either |
| 1590 | # the compiler is broken, or we cross compile. |
| 1591 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1592 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1593 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1594 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1595 | |
| 1596 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1597 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1598 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1599 | (eval $ac_link) 2>&5 |
| 1600 | ac_status=$? |
| 1601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1602 | (exit $ac_status); }; then |
| 1603 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1604 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1605 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1606 | # `rm'. |
| 1607 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
| 1608 | case $ac_file in |
| 1609 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 1610 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1611 | export ac_cv_exeext |
| 1612 | break;; |
| 1613 | * ) break;; |
| 1614 | esac |
| 1615 | done |
| 1616 | else |
| 1617 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 1618 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
| 1619 | { (exit 1); exit 1; }; } |
| 1620 | fi |
| 1621 | |
| 1622 | rm -f conftest$ac_cv_exeext |
| 1623 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1624 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1625 | |
| 1626 | rm -f conftest.$ac_ext |
| 1627 | EXEEXT=$ac_cv_exeext |
| 1628 | ac_exeext=$EXEEXT |
| 1629 | |
| 1630 | ac_ext=c |
| 1631 | ac_cpp='$CPP $CPPFLAGS' |
| 1632 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1633 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1634 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1635 | |
| 1636 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1637 | |
| 1638 | fi |
| 1639 | fi |
| 1640 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1641 | # If the user switches compilers, we can't believe the cache |
| 1642 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 1643 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1644 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
| 1645 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
| 1646 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
| 1647 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 1648 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1649 | fi |
| 1650 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1651 | ac_ext=c |
| 1652 | ac_cpp='$CPP $CPPFLAGS' |
| 1653 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1654 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1655 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1656 | if test -n "$ac_tool_prefix"; then |
| 1657 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1658 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1659 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1660 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1661 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1663 | else |
| 1664 | if test -n "$CC"; then |
| 1665 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1666 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1668 | for as_dir in $PATH |
| 1669 | do |
| 1670 | IFS=$as_save_IFS |
| 1671 | test -z "$as_dir" && as_dir=. |
| 1672 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1673 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1674 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1675 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1676 | break 2 |
| 1677 | fi |
| 1678 | done |
| 1679 | done |
| 1680 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1681 | fi |
| 1682 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1683 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1684 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1685 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1686 | echo "${ECHO_T}$CC" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1687 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1688 | echo "$as_me:$LINENO: result: no" >&5 |
| 1689 | echo "${ECHO_T}no" >&6 |
| 1690 | fi |
| 1691 | |
| 1692 | fi |
| 1693 | if test -z "$ac_cv_prog_CC"; then |
| 1694 | ac_ct_CC=$CC |
| 1695 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1696 | set dummy gcc; ac_word=$2 |
| 1697 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1698 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1699 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1700 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1701 | else |
| 1702 | if test -n "$ac_ct_CC"; then |
| 1703 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1704 | else |
| 1705 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1706 | for as_dir in $PATH |
| 1707 | do |
| 1708 | IFS=$as_save_IFS |
| 1709 | test -z "$as_dir" && as_dir=. |
| 1710 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1711 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1712 | ac_cv_prog_ac_ct_CC="gcc" |
| 1713 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1714 | break 2 |
| 1715 | fi |
| 1716 | done |
| 1717 | done |
| 1718 | |
| 1719 | fi |
| 1720 | fi |
| 1721 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1722 | if test -n "$ac_ct_CC"; then |
| 1723 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1724 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1725 | else |
| 1726 | echo "$as_me:$LINENO: result: no" >&5 |
| 1727 | echo "${ECHO_T}no" >&6 |
| 1728 | fi |
| 1729 | |
| 1730 | CC=$ac_ct_CC |
| 1731 | else |
| 1732 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1733 | fi |
| 1734 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1735 | if test -z "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1736 | if test -n "$ac_tool_prefix"; then |
| 1737 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1738 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1739 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1740 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1741 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1743 | else |
| 1744 | if test -n "$CC"; then |
| 1745 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1746 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1747 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1748 | for as_dir in $PATH |
| 1749 | do |
| 1750 | IFS=$as_save_IFS |
| 1751 | test -z "$as_dir" && as_dir=. |
| 1752 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1753 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1754 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1755 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1756 | break 2 |
| 1757 | fi |
| 1758 | done |
| 1759 | done |
| 1760 | |
| 1761 | fi |
| 1762 | fi |
| 1763 | CC=$ac_cv_prog_CC |
| 1764 | if test -n "$CC"; then |
| 1765 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1766 | echo "${ECHO_T}$CC" >&6 |
| 1767 | else |
| 1768 | echo "$as_me:$LINENO: result: no" >&5 |
| 1769 | echo "${ECHO_T}no" >&6 |
| 1770 | fi |
| 1771 | |
| 1772 | fi |
| 1773 | if test -z "$ac_cv_prog_CC"; then |
| 1774 | ac_ct_CC=$CC |
| 1775 | # Extract the first word of "cc", so it can be a program name with args. |
| 1776 | set dummy cc; ac_word=$2 |
| 1777 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1778 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1779 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1781 | else |
| 1782 | if test -n "$ac_ct_CC"; then |
| 1783 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1784 | else |
| 1785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1786 | for as_dir in $PATH |
| 1787 | do |
| 1788 | IFS=$as_save_IFS |
| 1789 | test -z "$as_dir" && as_dir=. |
| 1790 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1791 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1792 | ac_cv_prog_ac_ct_CC="cc" |
| 1793 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1794 | break 2 |
| 1795 | fi |
| 1796 | done |
| 1797 | done |
| 1798 | |
| 1799 | fi |
| 1800 | fi |
| 1801 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1802 | if test -n "$ac_ct_CC"; then |
| 1803 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1804 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1805 | else |
| 1806 | echo "$as_me:$LINENO: result: no" >&5 |
| 1807 | echo "${ECHO_T}no" >&6 |
| 1808 | fi |
| 1809 | |
| 1810 | CC=$ac_ct_CC |
| 1811 | else |
| 1812 | CC="$ac_cv_prog_CC" |
| 1813 | fi |
| 1814 | |
| 1815 | fi |
| 1816 | if test -z "$CC"; then |
| 1817 | # Extract the first word of "cc", so it can be a program name with args. |
| 1818 | set dummy cc; ac_word=$2 |
| 1819 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1820 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1821 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1823 | else |
| 1824 | if test -n "$CC"; then |
| 1825 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1826 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1827 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1829 | for as_dir in $PATH |
| 1830 | do |
| 1831 | IFS=$as_save_IFS |
| 1832 | test -z "$as_dir" && as_dir=. |
| 1833 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1834 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1835 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1836 | ac_prog_rejected=yes |
| 1837 | continue |
| 1838 | fi |
| 1839 | ac_cv_prog_CC="cc" |
| 1840 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1841 | break 2 |
| 1842 | fi |
| 1843 | done |
| 1844 | done |
| 1845 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1846 | if test $ac_prog_rejected = yes; then |
| 1847 | # We found a bogon in the path, so make sure we never use it. |
| 1848 | set dummy $ac_cv_prog_CC |
| 1849 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1850 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1851 | # We chose a different compiler from the bogus one. |
| 1852 | # However, it has the same basename, so the bogon will be chosen |
| 1853 | # first if we set CC to just the basename; use the full file name. |
| 1854 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1855 | set dummy "$as_dir/$ac_word" ${1+"$@"} |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1856 | shift |
| 1857 | ac_cv_prog_CC="$@" |
| 1858 | fi |
| 1859 | fi |
| 1860 | fi |
| 1861 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1862 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1863 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1864 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1865 | echo "${ECHO_T}$CC" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1866 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1867 | echo "$as_me:$LINENO: result: no" >&5 |
| 1868 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1869 | fi |
| 1870 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1871 | fi |
| 1872 | if test -z "$CC"; then |
| 1873 | if test -n "$ac_tool_prefix"; then |
| 1874 | for ac_prog in cl |
| 1875 | do |
| 1876 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1877 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1878 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1879 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1880 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1882 | else |
| 1883 | if test -n "$CC"; then |
| 1884 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1885 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1887 | for as_dir in $PATH |
| 1888 | do |
| 1889 | IFS=$as_save_IFS |
| 1890 | test -z "$as_dir" && as_dir=. |
| 1891 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1892 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1893 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1894 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1895 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1896 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1897 | done |
| 1898 | done |
| 1899 | |
| 1900 | fi |
| 1901 | fi |
| 1902 | CC=$ac_cv_prog_CC |
| 1903 | if test -n "$CC"; then |
| 1904 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1905 | echo "${ECHO_T}$CC" >&6 |
| 1906 | else |
| 1907 | echo "$as_me:$LINENO: result: no" >&5 |
| 1908 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1909 | fi |
| 1910 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1911 | test -n "$CC" && break |
| 1912 | done |
| 1913 | fi |
| 1914 | if test -z "$CC"; then |
| 1915 | ac_ct_CC=$CC |
| 1916 | for ac_prog in cl |
| 1917 | do |
| 1918 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1919 | set dummy $ac_prog; ac_word=$2 |
| 1920 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1921 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1922 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1924 | else |
| 1925 | if test -n "$ac_ct_CC"; then |
| 1926 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1927 | else |
| 1928 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1929 | for as_dir in $PATH |
| 1930 | do |
| 1931 | IFS=$as_save_IFS |
| 1932 | test -z "$as_dir" && as_dir=. |
| 1933 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1934 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1935 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1936 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1937 | break 2 |
| 1938 | fi |
| 1939 | done |
| 1940 | done |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1941 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1942 | fi |
| 1943 | fi |
| 1944 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1945 | if test -n "$ac_ct_CC"; then |
| 1946 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1947 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1948 | else |
| 1949 | echo "$as_me:$LINENO: result: no" >&5 |
| 1950 | echo "${ECHO_T}no" >&6 |
| 1951 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1952 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1953 | test -n "$ac_ct_CC" && break |
| 1954 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1955 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1956 | CC=$ac_ct_CC |
| 1957 | fi |
| 1958 | |
| 1959 | fi |
| 1960 | |
| 1961 | |
| 1962 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 |
| 1963 | echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} |
| 1964 | { (exit 1); exit 1; }; } |
| 1965 | |
| 1966 | # Provide some information about the compiler. |
| 1967 | echo "$as_me:$LINENO:" \ |
| 1968 | "checking for C compiler version" >&5 |
| 1969 | ac_compiler=`set X $ac_compile; echo $2` |
| 1970 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1971 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1972 | ac_status=$? |
| 1973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1974 | (exit $ac_status); } |
| 1975 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1976 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1977 | ac_status=$? |
| 1978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1979 | (exit $ac_status); } |
| 1980 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 1981 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1982 | ac_status=$? |
| 1983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1984 | (exit $ac_status); } |
| 1985 | |
| 1986 | cat >conftest.$ac_ext <<_ACEOF |
| 1987 | #line $LINENO "configure" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1988 | #include "confdefs.h" |
| 1989 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1990 | #ifdef F77_DUMMY_MAIN |
| 1991 | # ifdef __cplusplus |
| 1992 | extern "C" |
| 1993 | # endif |
| 1994 | int F77_DUMMY_MAIN() { return 1; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1995 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1996 | int |
| 1997 | main () |
| 1998 | { |
| 1999 | |
| 2000 | ; |
| 2001 | return 0; |
| 2002 | } |
| 2003 | _ACEOF |
| 2004 | ac_clean_files_save=$ac_clean_files |
| 2005 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 2006 | # Try to create an executable without -o first, disregard a.out. |
| 2007 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2008 | # of exeext. |
| 2009 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
| 2010 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 2011 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2012 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2013 | (eval $ac_link_default) 2>&5 |
| 2014 | ac_status=$? |
| 2015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2016 | (exit $ac_status); }; then |
| 2017 | # Find the output, starting from the most likely. This scheme is |
| 2018 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2019 | # resort. |
| 2020 | |
| 2021 | # Be careful to initialize this variable, since it used to be cached. |
| 2022 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2023 | ac_cv_exeext= |
| 2024 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; |
| 2025 | ls a.out conftest 2>/dev/null; |
| 2026 | ls a.* conftest.* 2>/dev/null`; do |
| 2027 | case $ac_file in |
| 2028 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
| 2029 | a.out ) # We found the default executable, but exeext='' is most |
| 2030 | # certainly right. |
| 2031 | break;; |
| 2032 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2033 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 2034 | export ac_cv_exeext |
| 2035 | break;; |
| 2036 | * ) break;; |
| 2037 | esac |
| 2038 | done |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2039 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2040 | echo "$as_me: failed program was:" >&5 |
| 2041 | cat conftest.$ac_ext >&5 |
| 2042 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 |
| 2043 | echo "$as_me: error: C compiler cannot create executables" >&2;} |
| 2044 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2045 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2046 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2047 | ac_exeext=$ac_cv_exeext |
| 2048 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2049 | echo "${ECHO_T}$ac_file" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2050 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2051 | # Check the compiler produces executables we can run. If not, either |
| 2052 | # the compiler is broken, or we cross compile. |
| 2053 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2054 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2055 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2056 | # If not cross compiling, check that we can run a simple program. |
| 2057 | if test "$cross_compiling" != yes; then |
| 2058 | if { ac_try='./$ac_file' |
| 2059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2060 | (eval $ac_try) 2>&5 |
| 2061 | ac_status=$? |
| 2062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2063 | (exit $ac_status); }; }; then |
| 2064 | cross_compiling=no |
| 2065 | else |
| 2066 | if test "$cross_compiling" = maybe; then |
| 2067 | cross_compiling=yes |
| 2068 | else |
| 2069 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2070 | If you meant to cross compile, use \`--host'." >&5 |
| 2071 | echo "$as_me: error: cannot run C compiled programs. |
| 2072 | If you meant to cross compile, use \`--host'." >&2;} |
| 2073 | { (exit 1); exit 1; }; } |
| 2074 | fi |
| 2075 | fi |
| 2076 | fi |
| 2077 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2078 | echo "${ECHO_T}yes" >&6 |
| 2079 | |
| 2080 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 2081 | ac_clean_files=$ac_clean_files_save |
| 2082 | # Check the compiler produces executables we can run. If not, either |
| 2083 | # the compiler is broken, or we cross compile. |
| 2084 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2085 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2086 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2087 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2088 | |
| 2089 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2090 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2091 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2092 | (eval $ac_link) 2>&5 |
| 2093 | ac_status=$? |
| 2094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2095 | (exit $ac_status); }; then |
| 2096 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2097 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2098 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2099 | # `rm'. |
| 2100 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
| 2101 | case $ac_file in |
| 2102 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 2103 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2104 | export ac_cv_exeext |
| 2105 | break;; |
| 2106 | * ) break;; |
| 2107 | esac |
| 2108 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2109 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2110 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 2111 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
| 2112 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2113 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2114 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2115 | rm -f conftest$ac_cv_exeext |
| 2116 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2117 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2118 | |
| 2119 | rm -f conftest.$ac_ext |
| 2120 | EXEEXT=$ac_cv_exeext |
| 2121 | ac_exeext=$EXEEXT |
| 2122 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2123 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2124 | if test "${ac_cv_objext+set}" = set; then |
| 2125 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2126 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2127 | cat >conftest.$ac_ext <<_ACEOF |
| 2128 | #line $LINENO "configure" |
| 2129 | #include "confdefs.h" |
| 2130 | |
| 2131 | #ifdef F77_DUMMY_MAIN |
| 2132 | # ifdef __cplusplus |
| 2133 | extern "C" |
| 2134 | # endif |
| 2135 | int F77_DUMMY_MAIN() { return 1; } |
| 2136 | #endif |
| 2137 | int |
| 2138 | main () |
| 2139 | { |
| 2140 | |
| 2141 | ; |
| 2142 | return 0; |
| 2143 | } |
| 2144 | _ACEOF |
| 2145 | rm -f conftest.o conftest.obj |
| 2146 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2147 | (eval $ac_compile) 2>&5 |
| 2148 | ac_status=$? |
| 2149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2150 | (exit $ac_status); }; then |
| 2151 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2152 | case $ac_file in |
| 2153 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 2154 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2155 | break;; |
| 2156 | esac |
| 2157 | done |
| 2158 | else |
| 2159 | echo "$as_me: failed program was:" >&5 |
| 2160 | cat conftest.$ac_ext >&5 |
| 2161 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 |
| 2162 | echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} |
| 2163 | { (exit 1); exit 1; }; } |
| 2164 | fi |
| 2165 | |
| 2166 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2167 | fi |
| 2168 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2169 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2170 | OBJEXT=$ac_cv_objext |
| 2171 | ac_objext=$OBJEXT |
| 2172 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2173 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2174 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2176 | else |
| 2177 | cat >conftest.$ac_ext <<_ACEOF |
| 2178 | #line $LINENO "configure" |
| 2179 | #include "confdefs.h" |
| 2180 | |
| 2181 | #ifdef F77_DUMMY_MAIN |
| 2182 | # ifdef __cplusplus |
| 2183 | extern "C" |
| 2184 | # endif |
| 2185 | int F77_DUMMY_MAIN() { return 1; } |
| 2186 | #endif |
| 2187 | int |
| 2188 | main () |
| 2189 | { |
| 2190 | #ifndef __GNUC__ |
| 2191 | choke me |
| 2192 | #endif |
| 2193 | |
| 2194 | ; |
| 2195 | return 0; |
| 2196 | } |
| 2197 | _ACEOF |
| 2198 | rm -f conftest.$ac_objext |
| 2199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2200 | (eval $ac_compile) 2>&5 |
| 2201 | ac_status=$? |
| 2202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2203 | (exit $ac_status); } && |
| 2204 | { ac_try='test -s conftest.$ac_objext' |
| 2205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2206 | (eval $ac_try) 2>&5 |
| 2207 | ac_status=$? |
| 2208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2209 | (exit $ac_status); }; }; then |
| 2210 | ac_compiler_gnu=yes |
| 2211 | else |
| 2212 | echo "$as_me: failed program was:" >&5 |
| 2213 | cat conftest.$ac_ext >&5 |
| 2214 | ac_compiler_gnu=no |
| 2215 | fi |
| 2216 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2217 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2218 | |
| 2219 | fi |
| 2220 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2221 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2222 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2223 | ac_test_CFLAGS=${CFLAGS+set} |
| 2224 | ac_save_CFLAGS=$CFLAGS |
| 2225 | CFLAGS="-g" |
| 2226 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2227 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2228 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2229 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2230 | else |
| 2231 | cat >conftest.$ac_ext <<_ACEOF |
| 2232 | #line $LINENO "configure" |
| 2233 | #include "confdefs.h" |
| 2234 | |
| 2235 | #ifdef F77_DUMMY_MAIN |
| 2236 | # ifdef __cplusplus |
| 2237 | extern "C" |
| 2238 | # endif |
| 2239 | int F77_DUMMY_MAIN() { return 1; } |
| 2240 | #endif |
| 2241 | int |
| 2242 | main () |
| 2243 | { |
| 2244 | |
| 2245 | ; |
| 2246 | return 0; |
| 2247 | } |
| 2248 | _ACEOF |
| 2249 | rm -f conftest.$ac_objext |
| 2250 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2251 | (eval $ac_compile) 2>&5 |
| 2252 | ac_status=$? |
| 2253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2254 | (exit $ac_status); } && |
| 2255 | { ac_try='test -s conftest.$ac_objext' |
| 2256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2257 | (eval $ac_try) 2>&5 |
| 2258 | ac_status=$? |
| 2259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2260 | (exit $ac_status); }; }; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2261 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2262 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2263 | echo "$as_me: failed program was:" >&5 |
| 2264 | cat conftest.$ac_ext >&5 |
| 2265 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2266 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2267 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2268 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2269 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2270 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2271 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2272 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2273 | elif test $ac_cv_prog_cc_g = yes; then |
| 2274 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2275 | CFLAGS="-g -O2" |
| 2276 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2277 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2278 | fi |
| 2279 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2280 | if test "$GCC" = yes; then |
| 2281 | CFLAGS="-O2" |
| 2282 | else |
| 2283 | CFLAGS= |
| 2284 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2285 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2286 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2287 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2288 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2289 | # the declaration of exit, since it's the most demanding environment. |
| 2290 | cat >conftest.$ac_ext <<_ACEOF |
| 2291 | #ifndef __cplusplus |
| 2292 | choke me |
| 2293 | #endif |
| 2294 | _ACEOF |
| 2295 | rm -f conftest.$ac_objext |
| 2296 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2297 | (eval $ac_compile) 2>&5 |
| 2298 | ac_status=$? |
| 2299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2300 | (exit $ac_status); } && |
| 2301 | { ac_try='test -s conftest.$ac_objext' |
| 2302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2303 | (eval $ac_try) 2>&5 |
| 2304 | ac_status=$? |
| 2305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2306 | (exit $ac_status); }; }; then |
| 2307 | for ac_declaration in \ |
| 2308 | ''\ |
| 2309 | '#include <stdlib.h>' \ |
| 2310 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2311 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2312 | 'extern "C" void exit (int) throw ();' \ |
| 2313 | 'extern "C" void exit (int);' \ |
| 2314 | 'void exit (int);' |
| 2315 | do |
| 2316 | cat >conftest.$ac_ext <<_ACEOF |
| 2317 | #line $LINENO "configure" |
| 2318 | #include "confdefs.h" |
| 2319 | #include <stdlib.h> |
| 2320 | $ac_declaration |
| 2321 | #ifdef F77_DUMMY_MAIN |
| 2322 | # ifdef __cplusplus |
| 2323 | extern "C" |
| 2324 | # endif |
| 2325 | int F77_DUMMY_MAIN() { return 1; } |
| 2326 | #endif |
| 2327 | int |
| 2328 | main () |
| 2329 | { |
| 2330 | exit (42); |
| 2331 | ; |
| 2332 | return 0; |
| 2333 | } |
| 2334 | _ACEOF |
| 2335 | rm -f conftest.$ac_objext |
| 2336 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2337 | (eval $ac_compile) 2>&5 |
| 2338 | ac_status=$? |
| 2339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2340 | (exit $ac_status); } && |
| 2341 | { ac_try='test -s conftest.$ac_objext' |
| 2342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2343 | (eval $ac_try) 2>&5 |
| 2344 | ac_status=$? |
| 2345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2346 | (exit $ac_status); }; }; then |
| 2347 | : |
| 2348 | else |
| 2349 | echo "$as_me: failed program was:" >&5 |
| 2350 | cat conftest.$ac_ext >&5 |
| 2351 | continue |
| 2352 | fi |
| 2353 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2354 | cat >conftest.$ac_ext <<_ACEOF |
| 2355 | #line $LINENO "configure" |
| 2356 | #include "confdefs.h" |
| 2357 | $ac_declaration |
| 2358 | #ifdef F77_DUMMY_MAIN |
| 2359 | # ifdef __cplusplus |
| 2360 | extern "C" |
| 2361 | # endif |
| 2362 | int F77_DUMMY_MAIN() { return 1; } |
| 2363 | #endif |
| 2364 | int |
| 2365 | main () |
| 2366 | { |
| 2367 | exit (42); |
| 2368 | ; |
| 2369 | return 0; |
| 2370 | } |
| 2371 | _ACEOF |
| 2372 | rm -f conftest.$ac_objext |
| 2373 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2374 | (eval $ac_compile) 2>&5 |
| 2375 | ac_status=$? |
| 2376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2377 | (exit $ac_status); } && |
| 2378 | { ac_try='test -s conftest.$ac_objext' |
| 2379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2380 | (eval $ac_try) 2>&5 |
| 2381 | ac_status=$? |
| 2382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2383 | (exit $ac_status); }; }; then |
| 2384 | break |
| 2385 | else |
| 2386 | echo "$as_me: failed program was:" >&5 |
| 2387 | cat conftest.$ac_ext >&5 |
| 2388 | fi |
| 2389 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2390 | done |
| 2391 | rm -f conftest* |
| 2392 | if test -n "$ac_declaration"; then |
| 2393 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2394 | echo $ac_declaration >>confdefs.h |
| 2395 | echo '#endif' >>confdefs.h |
| 2396 | fi |
| 2397 | |
| 2398 | else |
| 2399 | echo "$as_me: failed program was:" >&5 |
| 2400 | cat conftest.$ac_ext >&5 |
| 2401 | fi |
| 2402 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2403 | ac_ext=c |
| 2404 | ac_cpp='$CPP $CPPFLAGS' |
| 2405 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2406 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2407 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2408 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2409 | |
| 2410 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2411 | |
| 2412 | ac_ext=c |
| 2413 | ac_cpp='$CPP $CPPFLAGS' |
| 2414 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2415 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2416 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2417 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2418 | 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] | 2419 | # On Suns, sometimes $CPP names a directory. |
| 2420 | if test -n "$CPP" && test -d "$CPP"; then |
| 2421 | CPP= |
| 2422 | fi |
| 2423 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2424 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2425 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2426 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2427 | # Double quotes because CPP needs to be expanded |
| 2428 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2429 | do |
| 2430 | ac_preproc_ok=false |
| 2431 | for ac_c_preproc_warn_flag in '' yes |
| 2432 | do |
| 2433 | # Use a header file that comes with gcc, so configuring glibc |
| 2434 | # with a fresh cross-compiler works. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2435 | # 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] | 2436 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2437 | cat >conftest.$ac_ext <<_ACEOF |
| 2438 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2439 | #include "confdefs.h" |
| 2440 | #include <assert.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2441 | Syntax error |
| 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 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2460 | : |
| 2461 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2462 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2463 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2464 | # Broken: fails on valid input. |
| 2465 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2466 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2467 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2468 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2469 | # OK, works on sane cases. Now check whether non-existent headers |
| 2470 | # can be detected and how. |
| 2471 | cat >conftest.$ac_ext <<_ACEOF |
| 2472 | #line $LINENO "configure" |
| 2473 | #include "confdefs.h" |
| 2474 | #include <ac_nonexistent.h> |
| 2475 | _ACEOF |
| 2476 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2477 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2478 | ac_status=$? |
| 2479 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2480 | rm -f conftest.er1 |
| 2481 | cat conftest.err >&5 |
| 2482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2483 | (exit $ac_status); } >/dev/null; then |
| 2484 | if test -s conftest.err; then |
| 2485 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2486 | else |
| 2487 | ac_cpp_err= |
| 2488 | fi |
| 2489 | else |
| 2490 | ac_cpp_err=yes |
| 2491 | fi |
| 2492 | if test -z "$ac_cpp_err"; then |
| 2493 | # Broken: success on invalid input. |
| 2494 | continue |
| 2495 | else |
| 2496 | echo "$as_me: failed program was:" >&5 |
| 2497 | cat conftest.$ac_ext >&5 |
| 2498 | # Passes both tests. |
| 2499 | ac_preproc_ok=: |
| 2500 | break |
| 2501 | fi |
| 2502 | rm -f conftest.err conftest.$ac_ext |
| 2503 | |
| 2504 | done |
| 2505 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2506 | rm -f conftest.err conftest.$ac_ext |
| 2507 | if $ac_preproc_ok; then |
| 2508 | break |
| 2509 | fi |
| 2510 | |
| 2511 | done |
| 2512 | ac_cv_prog_CPP=$CPP |
| 2513 | |
| 2514 | fi |
| 2515 | CPP=$ac_cv_prog_CPP |
| 2516 | else |
| 2517 | ac_cv_prog_CPP=$CPP |
| 2518 | fi |
| 2519 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2520 | echo "${ECHO_T}$CPP" >&6 |
| 2521 | ac_preproc_ok=false |
| 2522 | for ac_c_preproc_warn_flag in '' yes |
| 2523 | do |
| 2524 | # Use a header file that comes with gcc, so configuring glibc |
| 2525 | # with a fresh cross-compiler works. |
| 2526 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2527 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2528 | cat >conftest.$ac_ext <<_ACEOF |
| 2529 | #line $LINENO "configure" |
| 2530 | #include "confdefs.h" |
| 2531 | #include <assert.h> |
| 2532 | Syntax error |
| 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 | : |
| 2552 | else |
| 2553 | echo "$as_me: failed program was:" >&5 |
| 2554 | cat conftest.$ac_ext >&5 |
| 2555 | # Broken: fails on valid input. |
| 2556 | continue |
| 2557 | fi |
| 2558 | rm -f conftest.err conftest.$ac_ext |
| 2559 | |
| 2560 | # OK, works on sane cases. Now check whether non-existent headers |
| 2561 | # can be detected and how. |
| 2562 | cat >conftest.$ac_ext <<_ACEOF |
| 2563 | #line $LINENO "configure" |
| 2564 | #include "confdefs.h" |
| 2565 | #include <ac_nonexistent.h> |
| 2566 | _ACEOF |
| 2567 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2568 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2569 | ac_status=$? |
| 2570 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2571 | rm -f conftest.er1 |
| 2572 | cat conftest.err >&5 |
| 2573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2574 | (exit $ac_status); } >/dev/null; then |
| 2575 | if test -s conftest.err; then |
| 2576 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2577 | else |
| 2578 | ac_cpp_err= |
| 2579 | fi |
| 2580 | else |
| 2581 | ac_cpp_err=yes |
| 2582 | fi |
| 2583 | if test -z "$ac_cpp_err"; then |
| 2584 | # Broken: success on invalid input. |
| 2585 | continue |
| 2586 | else |
| 2587 | echo "$as_me: failed program was:" >&5 |
| 2588 | cat conftest.$ac_ext >&5 |
| 2589 | # Passes both tests. |
| 2590 | ac_preproc_ok=: |
| 2591 | break |
| 2592 | fi |
| 2593 | rm -f conftest.err conftest.$ac_ext |
| 2594 | |
| 2595 | done |
| 2596 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2597 | rm -f conftest.err conftest.$ac_ext |
| 2598 | if $ac_preproc_ok; then |
| 2599 | : |
| 2600 | else |
| 2601 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
| 2602 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
| 2603 | { (exit 1); exit 1; }; } |
| 2604 | fi |
| 2605 | |
| 2606 | ac_ext=c |
| 2607 | ac_cpp='$CPP $CPPFLAGS' |
| 2608 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2609 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2610 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2611 | |
| 2612 | |
| 2613 | |
| 2614 | echo "$as_me:$LINENO: checking for AIX" >&5 |
| 2615 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 2616 | cat >conftest.$ac_ext <<_ACEOF |
| 2617 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2618 | #include "confdefs.h" |
| 2619 | #ifdef _AIX |
| 2620 | yes |
| 2621 | #endif |
| 2622 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2623 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2624 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2625 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2626 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2627 | echo "${ECHO_T}yes" >&6 |
| 2628 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2629 | #define _ALL_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2630 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2631 | |
| 2632 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2633 | echo "$as_me:$LINENO: result: no" >&5 |
| 2634 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2635 | fi |
| 2636 | rm -f conftest* |
| 2637 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2638 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2639 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 2640 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 2641 | if test "${ac_cv_header_stdc+set}" = set; then |
| 2642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2643 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2644 | cat >conftest.$ac_ext <<_ACEOF |
| 2645 | #line $LINENO "configure" |
| 2646 | #include "confdefs.h" |
| 2647 | #include <stdlib.h> |
| 2648 | #include <stdarg.h> |
| 2649 | #include <string.h> |
| 2650 | #include <float.h> |
| 2651 | |
| 2652 | _ACEOF |
| 2653 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2654 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2655 | ac_status=$? |
| 2656 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2657 | rm -f conftest.er1 |
| 2658 | cat conftest.err >&5 |
| 2659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2660 | (exit $ac_status); } >/dev/null; then |
| 2661 | if test -s conftest.err; then |
| 2662 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2663 | else |
| 2664 | ac_cpp_err= |
| 2665 | fi |
| 2666 | else |
| 2667 | ac_cpp_err=yes |
| 2668 | fi |
| 2669 | if test -z "$ac_cpp_err"; then |
| 2670 | ac_cv_header_stdc=yes |
| 2671 | else |
| 2672 | echo "$as_me: failed program was:" >&5 |
| 2673 | cat conftest.$ac_ext >&5 |
| 2674 | ac_cv_header_stdc=no |
| 2675 | fi |
| 2676 | rm -f conftest.err conftest.$ac_ext |
| 2677 | |
| 2678 | if test $ac_cv_header_stdc = yes; then |
| 2679 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 2680 | cat >conftest.$ac_ext <<_ACEOF |
| 2681 | #line $LINENO "configure" |
| 2682 | #include "confdefs.h" |
| 2683 | #include <string.h> |
| 2684 | |
| 2685 | _ACEOF |
| 2686 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2687 | egrep "memchr" >/dev/null 2>&1; then |
| 2688 | : |
| 2689 | else |
| 2690 | ac_cv_header_stdc=no |
| 2691 | fi |
| 2692 | rm -f conftest* |
| 2693 | |
| 2694 | fi |
| 2695 | |
| 2696 | if test $ac_cv_header_stdc = yes; then |
| 2697 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 2698 | cat >conftest.$ac_ext <<_ACEOF |
| 2699 | #line $LINENO "configure" |
| 2700 | #include "confdefs.h" |
| 2701 | #include <stdlib.h> |
| 2702 | |
| 2703 | _ACEOF |
| 2704 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2705 | egrep "free" >/dev/null 2>&1; then |
| 2706 | : |
| 2707 | else |
| 2708 | ac_cv_header_stdc=no |
| 2709 | fi |
| 2710 | rm -f conftest* |
| 2711 | |
| 2712 | fi |
| 2713 | |
| 2714 | if test $ac_cv_header_stdc = yes; then |
| 2715 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 2716 | if test "$cross_compiling" = yes; then |
| 2717 | : |
| 2718 | else |
| 2719 | cat >conftest.$ac_ext <<_ACEOF |
| 2720 | #line $LINENO "configure" |
| 2721 | #include "confdefs.h" |
| 2722 | #include <ctype.h> |
| 2723 | #if ((' ' & 0x0FF) == 0x020) |
| 2724 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 2725 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 2726 | #else |
| 2727 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 2728 | || ('j' <= (c) && (c) <= 'r') \ |
| 2729 | || ('s' <= (c) && (c) <= 'z')) |
| 2730 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 2731 | #endif |
| 2732 | |
| 2733 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 2734 | int |
| 2735 | main () |
| 2736 | { |
| 2737 | int i; |
| 2738 | for (i = 0; i < 256; i++) |
| 2739 | if (XOR (islower (i), ISLOWER (i)) |
| 2740 | || toupper (i) != TOUPPER (i)) |
| 2741 | exit(2); |
| 2742 | exit (0); |
| 2743 | } |
| 2744 | _ACEOF |
| 2745 | rm -f conftest$ac_exeext |
| 2746 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2747 | (eval $ac_link) 2>&5 |
| 2748 | ac_status=$? |
| 2749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2750 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 2751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2752 | (eval $ac_try) 2>&5 |
| 2753 | ac_status=$? |
| 2754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2755 | (exit $ac_status); }; }; then |
| 2756 | : |
| 2757 | else |
| 2758 | echo "$as_me: program exited with status $ac_status" >&5 |
| 2759 | echo "$as_me: failed program was:" >&5 |
| 2760 | cat conftest.$ac_ext >&5 |
| 2761 | ( exit $ac_status ) |
| 2762 | ac_cv_header_stdc=no |
| 2763 | fi |
| 2764 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 2765 | fi |
| 2766 | fi |
| 2767 | fi |
| 2768 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 2769 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 2770 | if test $ac_cv_header_stdc = yes; then |
| 2771 | |
| 2772 | cat >>confdefs.h <<\_ACEOF |
| 2773 | #define STDC_HEADERS 1 |
| 2774 | _ACEOF |
| 2775 | |
| 2776 | fi |
| 2777 | |
| 2778 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 2779 | |
| 2780 | |
| 2781 | |
| 2782 | |
| 2783 | |
| 2784 | |
| 2785 | |
| 2786 | |
| 2787 | |
| 2788 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 2789 | inttypes.h stdint.h unistd.h |
| 2790 | do |
| 2791 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 2792 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 2793 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 2794 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 2795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2796 | else |
| 2797 | cat >conftest.$ac_ext <<_ACEOF |
| 2798 | #line $LINENO "configure" |
| 2799 | #include "confdefs.h" |
| 2800 | $ac_includes_default |
| 2801 | |
| 2802 | #include <$ac_header> |
| 2803 | _ACEOF |
| 2804 | rm -f conftest.$ac_objext |
| 2805 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2806 | (eval $ac_compile) 2>&5 |
| 2807 | ac_status=$? |
| 2808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2809 | (exit $ac_status); } && |
| 2810 | { ac_try='test -s conftest.$ac_objext' |
| 2811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2812 | (eval $ac_try) 2>&5 |
| 2813 | ac_status=$? |
| 2814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2815 | (exit $ac_status); }; }; then |
| 2816 | eval "$as_ac_Header=yes" |
| 2817 | else |
| 2818 | echo "$as_me: failed program was:" >&5 |
| 2819 | cat conftest.$ac_ext >&5 |
| 2820 | eval "$as_ac_Header=no" |
| 2821 | fi |
| 2822 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2823 | fi |
| 2824 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 2825 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 2826 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 2827 | cat >>confdefs.h <<_ACEOF |
| 2828 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 2829 | _ACEOF |
| 2830 | |
| 2831 | fi |
| 2832 | |
| 2833 | done |
| 2834 | |
| 2835 | |
| 2836 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2837 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 2838 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 2839 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2841 | fi |
| 2842 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 2843 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 2844 | else |
| 2845 | # Is the header compilable? |
| 2846 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5 |
| 2847 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 |
| 2848 | cat >conftest.$ac_ext <<_ACEOF |
| 2849 | #line $LINENO "configure" |
| 2850 | #include "confdefs.h" |
| 2851 | $ac_includes_default |
| 2852 | #include <minix/config.h> |
| 2853 | _ACEOF |
| 2854 | rm -f conftest.$ac_objext |
| 2855 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2856 | (eval $ac_compile) 2>&5 |
| 2857 | ac_status=$? |
| 2858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2859 | (exit $ac_status); } && |
| 2860 | { ac_try='test -s conftest.$ac_objext' |
| 2861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2862 | (eval $ac_try) 2>&5 |
| 2863 | ac_status=$? |
| 2864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2865 | (exit $ac_status); }; }; then |
| 2866 | ac_header_compiler=yes |
| 2867 | else |
| 2868 | echo "$as_me: failed program was:" >&5 |
| 2869 | cat conftest.$ac_ext >&5 |
| 2870 | ac_header_compiler=no |
| 2871 | fi |
| 2872 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2873 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 2874 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 2875 | |
| 2876 | # Is the header present? |
| 2877 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5 |
| 2878 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 |
| 2879 | cat >conftest.$ac_ext <<_ACEOF |
| 2880 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2881 | #include "confdefs.h" |
| 2882 | #include <minix/config.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2883 | _ACEOF |
| 2884 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2885 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2886 | ac_status=$? |
| 2887 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2888 | rm -f conftest.er1 |
| 2889 | cat conftest.err >&5 |
| 2890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2891 | (exit $ac_status); } >/dev/null; then |
| 2892 | if test -s conftest.err; then |
| 2893 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2894 | else |
| 2895 | ac_cpp_err= |
| 2896 | fi |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2897 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2898 | ac_cpp_err=yes |
| 2899 | fi |
| 2900 | if test -z "$ac_cpp_err"; then |
| 2901 | ac_header_preproc=yes |
| 2902 | else |
| 2903 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2904 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2905 | ac_header_preproc=no |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2906 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2907 | rm -f conftest.err conftest.$ac_ext |
| 2908 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 2909 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 2910 | |
| 2911 | # So? What about this header? |
| 2912 | case $ac_header_compiler:$ac_header_preproc in |
| 2913 | yes:no ) |
| 2914 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 2915 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 2916 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 2917 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};; |
| 2918 | no:yes ) |
| 2919 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 |
| 2920 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} |
| 2921 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 |
| 2922 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} |
| 2923 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 2924 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};; |
| 2925 | esac |
| 2926 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 2927 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 2928 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2929 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2930 | else |
| 2931 | ac_cv_header_minix_config_h=$ac_header_preproc |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2932 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2933 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 2934 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 2935 | |
| 2936 | fi |
| 2937 | if test $ac_cv_header_minix_config_h = yes; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2938 | MINIX=yes |
| 2939 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2940 | MINIX= |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2941 | fi |
| 2942 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2943 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2944 | if test "$MINIX" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2945 | |
| 2946 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2947 | #define _POSIX_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2948 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2949 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2950 | |
| 2951 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2952 | #define _POSIX_1_SOURCE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2953 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2954 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2955 | |
| 2956 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2957 | #define _MINIX 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2958 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2959 | |
| 2960 | fi |
| 2961 | |
| 2962 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2963 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2964 | echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 2965 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2966 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 2967 | # Check whether --with-suffix or --without-suffix was given. |
| 2968 | if test "${with_suffix+set}" = set; then |
| 2969 | withval="$with_suffix" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2970 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 2971 | case $withval in |
| 2972 | no) EXEEXT=;; |
| 2973 | yes) EXEEXT=.exe;; |
| 2974 | *) EXEEXT=$withval;; |
| 2975 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2976 | fi; |
| 2977 | echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 2978 | echo "${ECHO_T}$EXEEXT" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 2979 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 2980 | # Test whether we're running on a non-case-sensitive system, in which |
| 2981 | # case we give a warning if no ext is given |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 2982 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2983 | echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 2984 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6 |
Jack Jansen | 0b06be7 | 2002-06-21 14:48:38 +0000 | [diff] [blame] | 2985 | if test -d "${srcdir}/python" |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 2986 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2987 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2988 | echo "${ECHO_T}yes" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 2989 | BUILDEXEEXT=.exe |
| 2990 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2991 | echo "$as_me:$LINENO: result: no" >&5 |
| 2992 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2993 | BUILDEXEEXT=$EXEEXT |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 2994 | fi |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 2995 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 2996 | case $MACHDEP in |
| 2997 | bsdos*) |
| 2998 | case $CC in |
| 2999 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3000 | esac;; |
| 3001 | esac |
| 3002 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3003 | case $ac_sys_system in |
| 3004 | hp*|HP*) |
| 3005 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 3006 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3007 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3008 | Monterey*) |
| 3009 | case $CC in |
| 3010 | cc) CC="$CC -Wl,-Bexport";; |
| 3011 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3012 | SunOS*) |
| 3013 | # 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] | 3014 | |
| 3015 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3016 | #define __EXTENSIONS__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3017 | _ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3018 | |
| 3019 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3020 | esac |
| 3021 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3022 | |
| 3023 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3024 | echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3025 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3026 | if test -z "$LIBRARY" |
| 3027 | then |
| 3028 | LIBRARY='libpython$(VERSION).a' |
| 3029 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3030 | echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3031 | echo "${ECHO_T}$LIBRARY" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3032 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3033 | # 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] | 3034 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3035 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3036 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3037 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3038 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3039 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3040 | # DLLLIBRARY is the shared (i.e., DLL) library. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3041 | # |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3042 | # RUNSHARED is used to run shared python without installed libraries |
| 3043 | # |
| 3044 | # INSTSONAME is the name of the shared library that will be use to install |
| 3045 | # on the system - some systems like version suffix, others don't |
| 3046 | |
| 3047 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3048 | |
| 3049 | |
| 3050 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3051 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3052 | LDLIBRARY="$LIBRARY" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3053 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 09bdf72 | 2002-05-08 08:51:29 +0000 | [diff] [blame] | 3054 | INSTSONAME='$(LDLIBRARY)' |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 3055 | DLLLIBRARY='' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3056 | LDLIBRARYDIR='' |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3057 | RUNSHARED='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3058 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3059 | # 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] | 3060 | # If CXX is set, and if it is needed to link a main function that was |
| 3061 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3062 | # python might then depend on the C++ runtime |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3063 | # 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] | 3064 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3065 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3066 | echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3067 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3068 | if test -z "$LINKCC" |
| 3069 | then |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3070 | if test -z "$CXX"; then |
| 3071 | LINKCC="\$(PURIFY) \$(CC)" |
| 3072 | else |
Martin v. Löwis | 1931ca7 | 2002-06-01 21:39:58 +0000 | [diff] [blame] | 3073 | 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] | 3074 | $CXX -c conftest.$ac_ext 2>&5 |
| 3075 | if $CC -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 3076 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 3077 | then |
| 3078 | LINKCC="\$(PURIFY) \$(CC)" |
| 3079 | else |
| 3080 | LINKCC="\$(PURIFY) \$(CXX)" |
| 3081 | fi |
| 3082 | rm -fr conftest* |
| 3083 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3084 | case $ac_sys_system in |
| 3085 | AIX*) |
Jack Jansen | 524a098 | 2002-03-12 15:25:52 +0000 | [diff] [blame] | 3086 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp \"\" \$(LIBRARY); $LINKCC";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 3087 | dgux*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3088 | LINKCC="LD_RUN_PATH=$libdir $LINKCC";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3089 | Monterey64*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3090 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3091 | esac |
| 3092 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3093 | echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3094 | echo "${ECHO_T}$LINKCC" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3095 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3096 | echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 3097 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3098 | # Check whether --enable-shared or --disable-shared was given. |
| 3099 | if test "${enable_shared+set}" = set; then |
| 3100 | enableval="$enable_shared" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3101 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3102 | fi; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3103 | |
| 3104 | if test -z "$enable_shared" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3105 | then |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3106 | case $ac_sys_system in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3107 | CYGWIN* | atheos*) |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3108 | enable_shared="yes";; |
| 3109 | *) |
| 3110 | enable_shared="no";; |
| 3111 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3112 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3113 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 3114 | echo "${ECHO_T}$enable_shared" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3115 | |
| 3116 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3117 | echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 3118 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3119 | |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 3120 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 3121 | # library that we build, but we do not want to link against it (we |
| 3122 | # will find it with a -framework option). For this reason there is an |
| 3123 | # extra variable BLDLIBRARY against which Python and the extension |
| 3124 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 3125 | # LDLIBRARY, but empty for MacOSX framework builds. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3126 | if test "$enable_framework" |
| 3127 | then |
| 3128 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 3129 | LDLIBRARYDIR='$(PYTHONFRAMEWORKDIR)' |
| 3130 | BLDLIBRARY='' |
| 3131 | else |
| 3132 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3133 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3134 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3135 | # Other platforms follow |
| 3136 | if test $enable_shared = "yes"; then |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 3137 | |
| 3138 | cat >>confdefs.h <<\_ACEOF |
| 3139 | #define Py_ENABLE_SHARED 1 |
| 3140 | _ACEOF |
| 3141 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3142 | case $ac_sys_system in |
| 3143 | BeOS*) |
| 3144 | LDLIBRARY='libpython$(VERSION).so' |
| 3145 | ;; |
| 3146 | CYGWIN*) |
| 3147 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3148 | DLLLIBRARY='libpython$(VERSION).dll' |
| 3149 | ;; |
| 3150 | SunOS*) |
| 3151 | LDLIBRARY='libpython$(VERSION).so' |
| 3152 | BLDLIBRARY='-Wl,-rpath,$(LIBDIR) -L. -lpython$(VERSION)' |
| 3153 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3154 | ;; |
Martin v. Löwis | 1bc894b | 2002-07-30 20:19:58 +0000 | [diff] [blame] | 3155 | Linux*|GNU*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3156 | LDLIBRARY='libpython$(VERSION).so' |
| 3157 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3158 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3159 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 3160 | ;; |
| 3161 | hp*|HP*) |
| 3162 | LDLIBRARY='libpython$(VERSION).sl' |
| 3163 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| 3164 | RUNSHARED=SHLIB_PATH=`pwd`:$SHLIB_PATH |
| 3165 | ;; |
| 3166 | OSF*) |
| 3167 | LDLIBRARY='libpython$(VERSION).so' |
| 3168 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| 3169 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3170 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3171 | atheos*) |
| 3172 | LDLIBRARY='libpython$(VERSION).so' |
| 3173 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3174 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 3175 | ;; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3176 | esac |
| 3177 | # DG/UX requires some fancy ld contortions to produce a .so from an .a |
| 3178 | case $MACHDEP in |
| 3179 | dguxR4) |
| 3180 | LDLIBRARY='libpython$(VERSION).so' |
| 3181 | OPT="$OPT -pic" |
| 3182 | ;; |
| 3183 | esac |
| 3184 | fi |
| 3185 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3186 | echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 3187 | echo "${ECHO_T}$LDLIBRARY" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3188 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3189 | if test -n "$ac_tool_prefix"; then |
| 3190 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3191 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3192 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3193 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3194 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3196 | else |
| 3197 | if test -n "$RANLIB"; then |
| 3198 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3199 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3201 | for as_dir in $PATH |
| 3202 | do |
| 3203 | IFS=$as_save_IFS |
| 3204 | test -z "$as_dir" && as_dir=. |
| 3205 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3206 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3207 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3208 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3209 | break 2 |
| 3210 | fi |
| 3211 | done |
| 3212 | done |
| 3213 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3214 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3215 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3216 | RANLIB=$ac_cv_prog_RANLIB |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3217 | if test -n "$RANLIB"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3218 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3219 | echo "${ECHO_T}$RANLIB" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3220 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3221 | echo "$as_me:$LINENO: result: no" >&5 |
| 3222 | echo "${ECHO_T}no" >&6 |
| 3223 | fi |
| 3224 | |
| 3225 | fi |
| 3226 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3227 | ac_ct_RANLIB=$RANLIB |
| 3228 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3229 | set dummy ranlib; ac_word=$2 |
| 3230 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3231 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3232 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3233 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3234 | else |
| 3235 | if test -n "$ac_ct_RANLIB"; then |
| 3236 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3237 | else |
| 3238 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3239 | for as_dir in $PATH |
| 3240 | do |
| 3241 | IFS=$as_save_IFS |
| 3242 | test -z "$as_dir" && as_dir=. |
| 3243 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3244 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3245 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3246 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3247 | break 2 |
| 3248 | fi |
| 3249 | done |
| 3250 | done |
| 3251 | |
| 3252 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3253 | fi |
| 3254 | fi |
| 3255 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3256 | if test -n "$ac_ct_RANLIB"; then |
| 3257 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3258 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3259 | else |
| 3260 | echo "$as_me:$LINENO: result: no" >&5 |
| 3261 | echo "${ECHO_T}no" >&6 |
| 3262 | fi |
| 3263 | |
| 3264 | RANLIB=$ac_ct_RANLIB |
| 3265 | else |
| 3266 | RANLIB="$ac_cv_prog_RANLIB" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3267 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3268 | |
| 3269 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3270 | for ac_prog in ar aal |
| 3271 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3272 | # 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] | 3273 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3274 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3275 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3276 | if test "${ac_cv_prog_AR+set}" = set; then |
| 3277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3278 | else |
| 3279 | if test -n "$AR"; then |
| 3280 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3281 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3283 | for as_dir in $PATH |
| 3284 | do |
| 3285 | IFS=$as_save_IFS |
| 3286 | test -z "$as_dir" && as_dir=. |
| 3287 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3288 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3289 | ac_cv_prog_AR="$ac_prog" |
| 3290 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3291 | break 2 |
| 3292 | fi |
| 3293 | done |
| 3294 | done |
| 3295 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3296 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3297 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3298 | AR=$ac_cv_prog_AR |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3299 | if test -n "$AR"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3300 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 3301 | echo "${ECHO_T}$AR" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3302 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3303 | echo "$as_me:$LINENO: result: no" >&5 |
| 3304 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3305 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3306 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3307 | test -n "$AR" && break |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3308 | done |
| 3309 | test -n "$AR" || AR="ar" |
| 3310 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3311 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3312 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 3313 | bsdos*|hp*|HP*) |
| 3314 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3315 | if test -z "$INSTALL" |
| 3316 | then |
| 3317 | INSTALL="${srcdir}/install-sh -c" |
| 3318 | fi |
| 3319 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3320 | ac_aux_dir= |
| 3321 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 3322 | if test -f $ac_dir/install-sh; then |
| 3323 | ac_aux_dir=$ac_dir |
| 3324 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3325 | break |
| 3326 | elif test -f $ac_dir/install.sh; then |
| 3327 | ac_aux_dir=$ac_dir |
| 3328 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3329 | break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3330 | elif test -f $ac_dir/shtool; then |
| 3331 | ac_aux_dir=$ac_dir |
| 3332 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3333 | break |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3334 | fi |
| 3335 | done |
| 3336 | if test -z "$ac_aux_dir"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3337 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 3338 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 3339 | { (exit 1); exit 1; }; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3340 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3341 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 3342 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 3343 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3344 | |
| 3345 | # Find a good install program. We prefer a C program (faster), |
| 3346 | # so one script is as good as another. But avoid the broken or |
| 3347 | # incompatible versions: |
| 3348 | # SysV /etc/install, /usr/sbin/install |
| 3349 | # SunOS /usr/etc/install |
| 3350 | # IRIX /sbin/install |
| 3351 | # AIX /bin/install |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3352 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3353 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3354 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3355 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3356 | # ./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] | 3357 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 3358 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3359 | if test -z "$INSTALL"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3360 | if test "${ac_cv_path_install+set}" = set; then |
| 3361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3362 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3363 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3364 | for as_dir in $PATH |
| 3365 | do |
| 3366 | IFS=$as_save_IFS |
| 3367 | test -z "$as_dir" && as_dir=. |
| 3368 | # Account for people who put trailing slashes in PATH elements. |
| 3369 | case $as_dir/ in |
| 3370 | ./ | .// | /cC/* | \ |
| 3371 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3372 | /usr/ucb/* ) ;; |
| 3373 | *) |
| 3374 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3375 | # Don't use installbsd from OSF since it installs stuff as root |
| 3376 | # by default. |
| 3377 | for ac_prog in ginstall scoinst install; do |
| 3378 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3379 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3380 | if test $ac_prog = install && |
| 3381 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3382 | # AIX install. It has an incompatible calling convention. |
| 3383 | : |
| 3384 | elif test $ac_prog = install && |
| 3385 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3386 | # program-specific install script used by HP pwplus--don't use. |
| 3387 | : |
| 3388 | else |
| 3389 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3390 | break 3 |
| 3391 | fi |
| 3392 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3393 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3394 | done |
| 3395 | ;; |
| 3396 | esac |
| 3397 | done |
| 3398 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3399 | |
| 3400 | fi |
| 3401 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3402 | INSTALL=$ac_cv_path_install |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3403 | else |
| 3404 | # As a last resort, use the slow shell script. We don't cache a |
| 3405 | # path for INSTALL within a source directory, because that will |
| 3406 | # break other packages using the cache if that directory is |
| 3407 | # removed, or if the path is relative. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3408 | INSTALL=$ac_install_sh |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3409 | fi |
| 3410 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3411 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 3412 | echo "${ECHO_T}$INSTALL" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3413 | |
| 3414 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3415 | # It thinks the first close brace ends the variable substitution. |
| 3416 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3417 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3418 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3419 | |
| 3420 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3421 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3422 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3423 | # Not every filesystem supports hard links |
| 3424 | |
| 3425 | if test -z "$LN" ; then |
| 3426 | case $ac_sys_system in |
| 3427 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3428 | CYGWIN*) LN="ln -s";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3429 | atheos*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3430 | *) LN=ln;; |
| 3431 | esac |
| 3432 | fi |
| 3433 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3434 | # Check for --with-pydebug |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3435 | echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 3436 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6 |
| 3437 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3438 | # Check whether --with-pydebug or --without-pydebug was given. |
| 3439 | if test "${with_pydebug+set}" = set; then |
| 3440 | withval="$with_pydebug" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3441 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3442 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3443 | then |
| 3444 | |
| 3445 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3446 | #define Py_DEBUG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3447 | _ACEOF |
| 3448 | |
| 3449 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3450 | echo "${ECHO_T}yes" >&6; |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 3451 | Py_DEBUG='true' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3452 | else echo "$as_me:$LINENO: result: no" >&5 |
| 3453 | echo "${ECHO_T}no" >&6; Py_DEBUG='false' |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3454 | fi |
| 3455 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3456 | echo "$as_me:$LINENO: result: no" >&5 |
| 3457 | echo "${ECHO_T}no" >&6 |
| 3458 | fi; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3459 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3460 | # Optimizer/debugger flags |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3461 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3462 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3463 | then |
Neal Norwitz | d957f39 | 2002-09-25 21:26:19 +0000 | [diff] [blame] | 3464 | case $GCC in |
Guido van Rossum | edca74a | 1997-07-18 23:29:40 +0000 | [diff] [blame] | 3465 | yes) |
| 3466 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3467 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3468 | if test "$Py_DEBUG" = 'true' ; then |
| 3469 | # Optimization messes up debuggers, so turn it off for |
| 3470 | # debug builds. |
| 3471 | OPT="-g -Wall -Wstrict-prototypes" |
| 3472 | else |
| 3473 | OPT="-g -O3 -Wall -Wstrict-prototypes" |
| 3474 | fi;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3475 | *) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3476 | OPT="-O3 -Wall -Wstrict-prototypes";; |
| 3477 | esac |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3478 | case $ac_sys_system in |
| 3479 | SCO_SV*) OPT="$OPT -m486 -DSCO5";; |
| 3480 | esac |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3481 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3482 | *) |
| 3483 | case $ac_sys_system in |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 3484 | OpenUNIX*|UnixWare*) |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3485 | OPT="-O -K pentium,host,inline,loop_unroll,alloca ";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3486 | SCO_SV*) |
| 3487 | CFLAGS="$CFLAGS -belf" |
| 3488 | OPT="-belf -O -Ki486 -DSCO5";; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3489 | *) |
| 3490 | OPT="-O";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3491 | esac |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3492 | esac |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3493 | case $ac_sys_system in |
| 3494 | Darwin*) |
Jack Jansen | 524a098 | 2002-03-12 15:25:52 +0000 | [diff] [blame] | 3495 | OPT="$OPT -Wno-long-double -no-cpp-precomp";; |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3496 | esac |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3497 | fi |
| 3498 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 3499 | if test "$Py_DEBUG" = 'true'; then |
| 3500 | : |
| 3501 | else |
| 3502 | OPT="-DNDEBUG $OPT" |
| 3503 | fi |
| 3504 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3505 | # The current (beta) Monterey compiler dies with optimizations |
| 3506 | case $ac_sys_system in |
| 3507 | Monterey*) OPT="";; |
| 3508 | esac |
| 3509 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3510 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3511 | then |
| 3512 | OPT="$OPT $ac_arch_flags" |
| 3513 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3514 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3515 | echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 3516 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6 |
| 3517 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 3518 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3519 | else |
| 3520 | ac_save_cc="$CC" |
| 3521 | CC="$CC -OPT:Olimit=0" |
| 3522 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3523 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3524 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3525 | cat >conftest.$ac_ext <<_ACEOF |
| 3526 | #line $LINENO "configure" |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3527 | #include "confdefs.h" |
| 3528 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3529 | _ACEOF |
| 3530 | rm -f conftest$ac_exeext |
| 3531 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3532 | (eval $ac_link) 2>&5 |
| 3533 | ac_status=$? |
| 3534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3535 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3537 | (eval $ac_try) 2>&5 |
| 3538 | ac_status=$? |
| 3539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3540 | (exit $ac_status); }; }; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3541 | ac_cv_opt_olimit_ok=yes |
| 3542 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3543 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3544 | echo "$as_me: failed program was:" >&5 |
| 3545 | cat conftest.$ac_ext >&5 |
| 3546 | ( exit $ac_status ) |
| 3547 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3548 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3549 | 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] | 3550 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3551 | CC="$ac_save_cc" |
| 3552 | fi |
| 3553 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3554 | echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 3555 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 3556 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3557 | case $ac_sys_system in |
| 3558 | Darwin*) OPT="$OPT" ;; |
| 3559 | *) OPT="$OPT -OPT:Olimit=0";; |
| 3560 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3561 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3562 | echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 3563 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6 |
| 3564 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 3565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3566 | else |
| 3567 | ac_save_cc="$CC" |
| 3568 | CC="$CC -Olimit 1500" |
| 3569 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3570 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3571 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3572 | cat >conftest.$ac_ext <<_ACEOF |
| 3573 | #line $LINENO "configure" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3574 | #include "confdefs.h" |
| 3575 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3576 | _ACEOF |
| 3577 | rm -f conftest$ac_exeext |
| 3578 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3579 | (eval $ac_link) 2>&5 |
| 3580 | ac_status=$? |
| 3581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3582 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3584 | (eval $ac_try) 2>&5 |
| 3585 | ac_status=$? |
| 3586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3587 | (exit $ac_status); }; }; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3588 | ac_cv_olimit_ok=yes |
| 3589 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3590 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3591 | echo "$as_me: failed program was:" >&5 |
| 3592 | cat conftest.$ac_ext >&5 |
| 3593 | ( exit $ac_status ) |
| 3594 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 3595 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3596 | 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] | 3597 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3598 | CC="$ac_save_cc" |
| 3599 | fi |
| 3600 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3601 | echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 3602 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3603 | if test $ac_cv_olimit_ok = yes; then |
| 3604 | OPT="$OPT -Olimit 1500" |
| 3605 | fi |
| 3606 | fi |
| 3607 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3608 | # On some compilers, pthreads are available without further options |
| 3609 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 3610 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 3611 | # So we have to see first whether pthreads are available without |
| 3612 | # options before we can check whether -Kpthread improves anything. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3613 | echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 3614 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6 |
| 3615 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 3616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3617 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3618 | if test "$cross_compiling" = yes; then |
| 3619 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3620 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3621 | cat >conftest.$ac_ext <<_ACEOF |
| 3622 | #line $LINENO "configure" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3623 | #include "confdefs.h" |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3624 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3625 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3626 | |
| 3627 | void* routine(void* p){return NULL;} |
| 3628 | |
| 3629 | int main(){ |
| 3630 | pthread_t p; |
| 3631 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3632 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3633 | (void)pthread_detach(p); |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3634 | return 0; |
| 3635 | } |
| 3636 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3637 | _ACEOF |
| 3638 | rm -f conftest$ac_exeext |
| 3639 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3640 | (eval $ac_link) 2>&5 |
| 3641 | ac_status=$? |
| 3642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3643 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3645 | (eval $ac_try) 2>&5 |
| 3646 | ac_status=$? |
| 3647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3648 | (exit $ac_status); }; }; then |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3649 | ac_cv_pthread_is_default=yes |
| 3650 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3651 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3652 | echo "$as_me: failed program was:" >&5 |
| 3653 | cat conftest.$ac_ext >&5 |
| 3654 | ( exit $ac_status ) |
| 3655 | ac_cv_pthread_is_default=no |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3656 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3657 | 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] | 3658 | fi |
| 3659 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3660 | fi |
| 3661 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3662 | echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 3663 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3664 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3665 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3666 | if test $ac_cv_pthread_is_default = yes |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3667 | then |
| 3668 | ac_cv_kpthread=no |
| 3669 | else |
| 3670 | # -Kpthread, if available, provides the right #defines |
| 3671 | # and linker options to make pthread_create available |
| 3672 | # Some compilers won't report that they do not support -Kpthread, |
| 3673 | # so we need to run a program to see whether it really made the |
| 3674 | # function available. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3675 | echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 3676 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6 |
| 3677 | if test "${ac_cv_kpthread+set}" = set; then |
| 3678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3679 | else |
| 3680 | ac_save_cc="$CC" |
| 3681 | CC="$CC -Kpthread" |
| 3682 | if test "$cross_compiling" = yes; then |
| 3683 | ac_cv_kpthread=no |
| 3684 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3685 | cat >conftest.$ac_ext <<_ACEOF |
| 3686 | #line $LINENO "configure" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3687 | #include "confdefs.h" |
| 3688 | |
| 3689 | #include <pthread.h> |
| 3690 | |
| 3691 | void* routine(void* p){return NULL;} |
| 3692 | |
| 3693 | int main(){ |
| 3694 | pthread_t p; |
| 3695 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3696 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3697 | (void)pthread_detach(p); |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3698 | return 0; |
| 3699 | } |
| 3700 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3701 | _ACEOF |
| 3702 | rm -f conftest$ac_exeext |
| 3703 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3704 | (eval $ac_link) 2>&5 |
| 3705 | ac_status=$? |
| 3706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3707 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3709 | (eval $ac_try) 2>&5 |
| 3710 | ac_status=$? |
| 3711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3712 | (exit $ac_status); }; }; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3713 | ac_cv_kpthread=yes |
| 3714 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3715 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3716 | echo "$as_me: failed program was:" >&5 |
| 3717 | cat conftest.$ac_ext >&5 |
| 3718 | ( exit $ac_status ) |
| 3719 | ac_cv_kpthread=no |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3720 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3721 | 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] | 3722 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3723 | CC="$ac_save_cc" |
| 3724 | fi |
| 3725 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3726 | echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 3727 | echo "${ECHO_T}$ac_cv_kpthread" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3728 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3729 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3730 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3731 | # checks for header files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3732 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3733 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3734 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3735 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3736 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3737 | cat >conftest.$ac_ext <<_ACEOF |
| 3738 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3739 | #include "confdefs.h" |
| 3740 | #include <stdlib.h> |
| 3741 | #include <stdarg.h> |
| 3742 | #include <string.h> |
| 3743 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3744 | |
| 3745 | _ACEOF |
| 3746 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3747 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3748 | ac_status=$? |
| 3749 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 3750 | rm -f conftest.er1 |
| 3751 | cat conftest.err >&5 |
| 3752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3753 | (exit $ac_status); } >/dev/null; then |
| 3754 | if test -s conftest.err; then |
| 3755 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3756 | else |
| 3757 | ac_cpp_err= |
| 3758 | fi |
| 3759 | else |
| 3760 | ac_cpp_err=yes |
| 3761 | fi |
| 3762 | if test -z "$ac_cpp_err"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3763 | ac_cv_header_stdc=yes |
| 3764 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3765 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3766 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3767 | ac_cv_header_stdc=no |
| 3768 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3769 | rm -f conftest.err conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3770 | |
| 3771 | if test $ac_cv_header_stdc = yes; then |
| 3772 | # 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] | 3773 | cat >conftest.$ac_ext <<_ACEOF |
| 3774 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3775 | #include "confdefs.h" |
| 3776 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3777 | |
| 3778 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3779 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3780 | egrep "memchr" >/dev/null 2>&1; then |
| 3781 | : |
| 3782 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3783 | ac_cv_header_stdc=no |
| 3784 | fi |
| 3785 | rm -f conftest* |
| 3786 | |
| 3787 | fi |
| 3788 | |
| 3789 | if test $ac_cv_header_stdc = yes; then |
| 3790 | # 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] | 3791 | cat >conftest.$ac_ext <<_ACEOF |
| 3792 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3793 | #include "confdefs.h" |
| 3794 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3795 | |
| 3796 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3797 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3798 | egrep "free" >/dev/null 2>&1; then |
| 3799 | : |
| 3800 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3801 | ac_cv_header_stdc=no |
| 3802 | fi |
| 3803 | rm -f conftest* |
| 3804 | |
| 3805 | fi |
| 3806 | |
| 3807 | if test $ac_cv_header_stdc = yes; then |
| 3808 | # /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] | 3809 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3810 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3811 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3812 | cat >conftest.$ac_ext <<_ACEOF |
| 3813 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3814 | #include "confdefs.h" |
| 3815 | #include <ctype.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3816 | #if ((' ' & 0x0FF) == 0x020) |
| 3817 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3818 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3819 | #else |
| 3820 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 3821 | || ('j' <= (c) && (c) <= 'r') \ |
| 3822 | || ('s' <= (c) && (c) <= 'z')) |
| 3823 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3824 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3825 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3826 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3827 | int |
| 3828 | main () |
| 3829 | { |
| 3830 | int i; |
| 3831 | for (i = 0; i < 256; i++) |
| 3832 | if (XOR (islower (i), ISLOWER (i)) |
| 3833 | || toupper (i) != TOUPPER (i)) |
| 3834 | exit(2); |
| 3835 | exit (0); |
| 3836 | } |
| 3837 | _ACEOF |
| 3838 | rm -f conftest$ac_exeext |
| 3839 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3840 | (eval $ac_link) 2>&5 |
| 3841 | ac_status=$? |
| 3842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3843 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3845 | (eval $ac_try) 2>&5 |
| 3846 | ac_status=$? |
| 3847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3848 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3849 | : |
| 3850 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3851 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3852 | echo "$as_me: failed program was:" >&5 |
| 3853 | cat conftest.$ac_ext >&5 |
| 3854 | ( exit $ac_status ) |
| 3855 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3856 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3857 | 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] | 3858 | fi |
| 3859 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3860 | fi |
| 3861 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3862 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3863 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3864 | |
| 3865 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3866 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3867 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3868 | |
| 3869 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3870 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3871 | |
| 3872 | |
| 3873 | |
| 3874 | |
| 3875 | |
| 3876 | |
| 3877 | |
| 3878 | |
| 3879 | |
| 3880 | |
| 3881 | |
| 3882 | |
| 3883 | |
| 3884 | |
| 3885 | |
| 3886 | |
| 3887 | |
| 3888 | |
| 3889 | |
| 3890 | |
| 3891 | |
| 3892 | |
| 3893 | |
| 3894 | |
| 3895 | |
| 3896 | |
| 3897 | |
| 3898 | |
| 3899 | |
| 3900 | |
| 3901 | |
| 3902 | |
| 3903 | |
| 3904 | |
| 3905 | |
| 3906 | |
| 3907 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3908 | 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] | 3909 | libintl.h locale.h ncurses.h poll.h pthread.h \ |
Eric S. Raymond | d2d75d3 | 2001-01-16 15:26:34 +0000 | [diff] [blame] | 3910 | 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] | 3911 | 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] | 3912 | sys/param.h sys/poll.h sys/select.h sys/socket.h sys/time.h sys/times.h \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 3913 | 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] | 3914 | sys/resource.h netpacket/packet.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3915 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3916 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3917 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3918 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3919 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3920 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3922 | fi |
| 3923 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3924 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3925 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3926 | # Is the header compilable? |
| 3927 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 3928 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 3929 | cat >conftest.$ac_ext <<_ACEOF |
| 3930 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3931 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3932 | $ac_includes_default |
| 3933 | #include <$ac_header> |
| 3934 | _ACEOF |
| 3935 | rm -f conftest.$ac_objext |
| 3936 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3937 | (eval $ac_compile) 2>&5 |
| 3938 | ac_status=$? |
| 3939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3940 | (exit $ac_status); } && |
| 3941 | { ac_try='test -s conftest.$ac_objext' |
| 3942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3943 | (eval $ac_try) 2>&5 |
| 3944 | ac_status=$? |
| 3945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3946 | (exit $ac_status); }; }; then |
| 3947 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3948 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3949 | echo "$as_me: failed program was:" >&5 |
| 3950 | cat conftest.$ac_ext >&5 |
| 3951 | ac_header_compiler=no |
| 3952 | fi |
| 3953 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3954 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3955 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3956 | |
| 3957 | # Is the header present? |
| 3958 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 3959 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 3960 | cat >conftest.$ac_ext <<_ACEOF |
| 3961 | #line $LINENO "configure" |
| 3962 | #include "confdefs.h" |
| 3963 | #include <$ac_header> |
| 3964 | _ACEOF |
| 3965 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3966 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3967 | ac_status=$? |
| 3968 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 3969 | rm -f conftest.er1 |
| 3970 | cat conftest.err >&5 |
| 3971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3972 | (exit $ac_status); } >/dev/null; then |
| 3973 | if test -s conftest.err; then |
| 3974 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3975 | else |
| 3976 | ac_cpp_err= |
| 3977 | fi |
| 3978 | else |
| 3979 | ac_cpp_err=yes |
| 3980 | fi |
| 3981 | if test -z "$ac_cpp_err"; then |
| 3982 | ac_header_preproc=yes |
| 3983 | else |
| 3984 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3985 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3986 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3987 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3988 | rm -f conftest.err conftest.$ac_ext |
| 3989 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 3990 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 3991 | |
| 3992 | # So? What about this header? |
| 3993 | case $ac_header_compiler:$ac_header_preproc in |
| 3994 | yes:no ) |
| 3995 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 3996 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 3997 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 3998 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 3999 | no:yes ) |
| 4000 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4001 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 4002 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4003 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4004 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4005 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 4006 | esac |
| 4007 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4008 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4009 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4010 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4011 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4012 | eval "$as_ac_Header=$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4013 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4014 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4015 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4016 | |
| 4017 | fi |
| 4018 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4019 | cat >>confdefs.h <<_ACEOF |
| 4020 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4021 | _ACEOF |
| 4022 | |
| 4023 | fi |
| 4024 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4025 | done |
| 4026 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4027 | |
| 4028 | |
| 4029 | |
| 4030 | |
| 4031 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4032 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4033 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 4034 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 4035 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 4036 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 4037 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4039 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4040 | cat >conftest.$ac_ext <<_ACEOF |
| 4041 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4042 | #include "confdefs.h" |
| 4043 | #include <sys/types.h> |
| 4044 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4045 | |
| 4046 | #ifdef F77_DUMMY_MAIN |
| 4047 | # ifdef __cplusplus |
| 4048 | extern "C" |
| 4049 | # endif |
| 4050 | int F77_DUMMY_MAIN() { return 1; } |
| 4051 | #endif |
| 4052 | int |
| 4053 | main () |
| 4054 | { |
| 4055 | if ((DIR *) 0) |
| 4056 | return 0; |
| 4057 | ; |
| 4058 | return 0; |
| 4059 | } |
| 4060 | _ACEOF |
| 4061 | rm -f conftest.$ac_objext |
| 4062 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4063 | (eval $ac_compile) 2>&5 |
| 4064 | ac_status=$? |
| 4065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4066 | (exit $ac_status); } && |
| 4067 | { ac_try='test -s conftest.$ac_objext' |
| 4068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4069 | (eval $ac_try) 2>&5 |
| 4070 | ac_status=$? |
| 4071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4072 | (exit $ac_status); }; }; then |
| 4073 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4074 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4075 | echo "$as_me: failed program was:" >&5 |
| 4076 | cat conftest.$ac_ext >&5 |
| 4077 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4078 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4079 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4080 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4081 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4082 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4083 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4084 | cat >>confdefs.h <<_ACEOF |
| 4085 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 4086 | _ACEOF |
| 4087 | |
| 4088 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4089 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4090 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4091 | done |
| 4092 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 4093 | if test $ac_header_dirent = dirent.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4094 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4095 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4096 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4097 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4098 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4099 | ac_func_search_save_LIBS=$LIBS |
| 4100 | ac_cv_search_opendir=no |
| 4101 | cat >conftest.$ac_ext <<_ACEOF |
| 4102 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4103 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4104 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4105 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4106 | #ifdef __cplusplus |
| 4107 | extern "C" |
| 4108 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4109 | /* 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] | 4110 | builtin and then its argument prototype would still apply. */ |
| 4111 | char opendir (); |
| 4112 | #ifdef F77_DUMMY_MAIN |
| 4113 | # ifdef __cplusplus |
| 4114 | extern "C" |
| 4115 | # endif |
| 4116 | int F77_DUMMY_MAIN() { return 1; } |
| 4117 | #endif |
| 4118 | int |
| 4119 | main () |
| 4120 | { |
| 4121 | opendir (); |
| 4122 | ; |
| 4123 | return 0; |
| 4124 | } |
| 4125 | _ACEOF |
| 4126 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4127 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4128 | (eval $ac_link) 2>&5 |
| 4129 | ac_status=$? |
| 4130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4131 | (exit $ac_status); } && |
| 4132 | { ac_try='test -s conftest$ac_exeext' |
| 4133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4134 | (eval $ac_try) 2>&5 |
| 4135 | ac_status=$? |
| 4136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4137 | (exit $ac_status); }; }; then |
| 4138 | ac_cv_search_opendir="none required" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4139 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4140 | echo "$as_me: failed program was:" >&5 |
| 4141 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4142 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4143 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4144 | if test "$ac_cv_search_opendir" = no; then |
| 4145 | for ac_lib in dir; do |
| 4146 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4147 | cat >conftest.$ac_ext <<_ACEOF |
| 4148 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4149 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4150 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4151 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4152 | #ifdef __cplusplus |
| 4153 | extern "C" |
| 4154 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4155 | /* 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] | 4156 | builtin and then its argument prototype would still apply. */ |
| 4157 | char opendir (); |
| 4158 | #ifdef F77_DUMMY_MAIN |
| 4159 | # ifdef __cplusplus |
| 4160 | extern "C" |
| 4161 | # endif |
| 4162 | int F77_DUMMY_MAIN() { return 1; } |
| 4163 | #endif |
| 4164 | int |
| 4165 | main () |
| 4166 | { |
| 4167 | opendir (); |
| 4168 | ; |
| 4169 | return 0; |
| 4170 | } |
| 4171 | _ACEOF |
| 4172 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4173 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4174 | (eval $ac_link) 2>&5 |
| 4175 | ac_status=$? |
| 4176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4177 | (exit $ac_status); } && |
| 4178 | { ac_try='test -s conftest$ac_exeext' |
| 4179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4180 | (eval $ac_try) 2>&5 |
| 4181 | ac_status=$? |
| 4182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4183 | (exit $ac_status); }; }; then |
| 4184 | ac_cv_search_opendir="-l$ac_lib" |
| 4185 | break |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4186 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4187 | echo "$as_me: failed program was:" >&5 |
| 4188 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4189 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4190 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4191 | done |
| 4192 | fi |
| 4193 | LIBS=$ac_func_search_save_LIBS |
| 4194 | fi |
| 4195 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4196 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4197 | if test "$ac_cv_search_opendir" != no; then |
| 4198 | 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] | 4199 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4200 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4201 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4202 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4203 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4204 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4205 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4207 | else |
| 4208 | ac_func_search_save_LIBS=$LIBS |
| 4209 | ac_cv_search_opendir=no |
| 4210 | cat >conftest.$ac_ext <<_ACEOF |
| 4211 | #line $LINENO "configure" |
| 4212 | #include "confdefs.h" |
| 4213 | |
| 4214 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4215 | #ifdef __cplusplus |
| 4216 | extern "C" |
| 4217 | #endif |
| 4218 | /* We use char because int might match the return type of a gcc2 |
| 4219 | builtin and then its argument prototype would still apply. */ |
| 4220 | char opendir (); |
| 4221 | #ifdef F77_DUMMY_MAIN |
| 4222 | # ifdef __cplusplus |
| 4223 | extern "C" |
| 4224 | # endif |
| 4225 | int F77_DUMMY_MAIN() { return 1; } |
| 4226 | #endif |
| 4227 | int |
| 4228 | main () |
| 4229 | { |
| 4230 | opendir (); |
| 4231 | ; |
| 4232 | return 0; |
| 4233 | } |
| 4234 | _ACEOF |
| 4235 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4236 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4237 | (eval $ac_link) 2>&5 |
| 4238 | ac_status=$? |
| 4239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4240 | (exit $ac_status); } && |
| 4241 | { ac_try='test -s conftest$ac_exeext' |
| 4242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4243 | (eval $ac_try) 2>&5 |
| 4244 | ac_status=$? |
| 4245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4246 | (exit $ac_status); }; }; then |
| 4247 | ac_cv_search_opendir="none required" |
| 4248 | else |
| 4249 | echo "$as_me: failed program was:" >&5 |
| 4250 | cat conftest.$ac_ext >&5 |
| 4251 | fi |
| 4252 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4253 | if test "$ac_cv_search_opendir" = no; then |
| 4254 | for ac_lib in x; do |
| 4255 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4256 | cat >conftest.$ac_ext <<_ACEOF |
| 4257 | #line $LINENO "configure" |
| 4258 | #include "confdefs.h" |
| 4259 | |
| 4260 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4261 | #ifdef __cplusplus |
| 4262 | extern "C" |
| 4263 | #endif |
| 4264 | /* We use char because int might match the return type of a gcc2 |
| 4265 | builtin and then its argument prototype would still apply. */ |
| 4266 | char opendir (); |
| 4267 | #ifdef F77_DUMMY_MAIN |
| 4268 | # ifdef __cplusplus |
| 4269 | extern "C" |
| 4270 | # endif |
| 4271 | int F77_DUMMY_MAIN() { return 1; } |
| 4272 | #endif |
| 4273 | int |
| 4274 | main () |
| 4275 | { |
| 4276 | opendir (); |
| 4277 | ; |
| 4278 | return 0; |
| 4279 | } |
| 4280 | _ACEOF |
| 4281 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4282 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4283 | (eval $ac_link) 2>&5 |
| 4284 | ac_status=$? |
| 4285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4286 | (exit $ac_status); } && |
| 4287 | { ac_try='test -s conftest$ac_exeext' |
| 4288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4289 | (eval $ac_try) 2>&5 |
| 4290 | ac_status=$? |
| 4291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4292 | (exit $ac_status); }; }; then |
| 4293 | ac_cv_search_opendir="-l$ac_lib" |
| 4294 | break |
| 4295 | else |
| 4296 | echo "$as_me: failed program was:" >&5 |
| 4297 | cat conftest.$ac_ext >&5 |
| 4298 | fi |
| 4299 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4300 | done |
| 4301 | fi |
| 4302 | LIBS=$ac_func_search_save_LIBS |
| 4303 | fi |
| 4304 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4305 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4306 | if test "$ac_cv_search_opendir" != no; then |
| 4307 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 4308 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4309 | fi |
| 4310 | |
| 4311 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4312 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4313 | echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 4314 | echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6 |
| 4315 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
| 4316 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4317 | else |
| 4318 | cat >conftest.$ac_ext <<_ACEOF |
| 4319 | #line $LINENO "configure" |
| 4320 | #include "confdefs.h" |
| 4321 | #include <sys/types.h> |
| 4322 | #ifdef F77_DUMMY_MAIN |
| 4323 | # ifdef __cplusplus |
| 4324 | extern "C" |
| 4325 | # endif |
| 4326 | int F77_DUMMY_MAIN() { return 1; } |
| 4327 | #endif |
| 4328 | int |
| 4329 | main () |
| 4330 | { |
| 4331 | return makedev(0, 0); |
| 4332 | ; |
| 4333 | return 0; |
| 4334 | } |
| 4335 | _ACEOF |
| 4336 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4337 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4338 | (eval $ac_link) 2>&5 |
| 4339 | ac_status=$? |
| 4340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4341 | (exit $ac_status); } && |
| 4342 | { ac_try='test -s conftest$ac_exeext' |
| 4343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4344 | (eval $ac_try) 2>&5 |
| 4345 | ac_status=$? |
| 4346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4347 | (exit $ac_status); }; }; then |
| 4348 | ac_cv_header_sys_types_h_makedev=yes |
| 4349 | else |
| 4350 | echo "$as_me: failed program was:" >&5 |
| 4351 | cat conftest.$ac_ext >&5 |
| 4352 | ac_cv_header_sys_types_h_makedev=no |
| 4353 | fi |
| 4354 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4355 | |
| 4356 | fi |
| 4357 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 4358 | echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6 |
| 4359 | |
| 4360 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 4361 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4362 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 4363 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 4364 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4365 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4366 | fi |
| 4367 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 4368 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 4369 | else |
| 4370 | # Is the header compilable? |
| 4371 | echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 4372 | echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6 |
| 4373 | cat >conftest.$ac_ext <<_ACEOF |
| 4374 | #line $LINENO "configure" |
| 4375 | #include "confdefs.h" |
| 4376 | $ac_includes_default |
| 4377 | #include <sys/mkdev.h> |
| 4378 | _ACEOF |
| 4379 | rm -f conftest.$ac_objext |
| 4380 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4381 | (eval $ac_compile) 2>&5 |
| 4382 | ac_status=$? |
| 4383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4384 | (exit $ac_status); } && |
| 4385 | { ac_try='test -s conftest.$ac_objext' |
| 4386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4387 | (eval $ac_try) 2>&5 |
| 4388 | ac_status=$? |
| 4389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4390 | (exit $ac_status); }; }; then |
| 4391 | ac_header_compiler=yes |
| 4392 | else |
| 4393 | echo "$as_me: failed program was:" >&5 |
| 4394 | cat conftest.$ac_ext >&5 |
| 4395 | ac_header_compiler=no |
| 4396 | fi |
| 4397 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4398 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4399 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4400 | |
| 4401 | # Is the header present? |
| 4402 | echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 4403 | echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6 |
| 4404 | cat >conftest.$ac_ext <<_ACEOF |
| 4405 | #line $LINENO "configure" |
| 4406 | #include "confdefs.h" |
| 4407 | #include <sys/mkdev.h> |
| 4408 | _ACEOF |
| 4409 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4410 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4411 | ac_status=$? |
| 4412 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 4413 | rm -f conftest.er1 |
| 4414 | cat conftest.err >&5 |
| 4415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4416 | (exit $ac_status); } >/dev/null; then |
| 4417 | if test -s conftest.err; then |
| 4418 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4419 | else |
| 4420 | ac_cpp_err= |
| 4421 | fi |
| 4422 | else |
| 4423 | ac_cpp_err=yes |
| 4424 | fi |
| 4425 | if test -z "$ac_cpp_err"; then |
| 4426 | ac_header_preproc=yes |
| 4427 | else |
| 4428 | echo "$as_me: failed program was:" >&5 |
| 4429 | cat conftest.$ac_ext >&5 |
| 4430 | ac_header_preproc=no |
| 4431 | fi |
| 4432 | rm -f conftest.err conftest.$ac_ext |
| 4433 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4434 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4435 | |
| 4436 | # So? What about this header? |
| 4437 | case $ac_header_compiler:$ac_header_preproc in |
| 4438 | yes:no ) |
| 4439 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4440 | echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4441 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 4442 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};; |
| 4443 | no:yes ) |
| 4444 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 4445 | echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
| 4446 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 4447 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 4448 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 4449 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};; |
| 4450 | esac |
| 4451 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 4452 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 4453 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4454 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4455 | else |
| 4456 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 4457 | fi |
| 4458 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 4459 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 4460 | |
| 4461 | fi |
| 4462 | if test $ac_cv_header_sys_mkdev_h = yes; then |
| 4463 | |
| 4464 | cat >>confdefs.h <<\_ACEOF |
| 4465 | #define MAJOR_IN_MKDEV 1 |
| 4466 | _ACEOF |
| 4467 | |
| 4468 | fi |
| 4469 | |
| 4470 | |
| 4471 | |
| 4472 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 4473 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4474 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 4475 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 4476 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4477 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4478 | fi |
| 4479 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 4480 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 4481 | else |
| 4482 | # Is the header compilable? |
| 4483 | echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 4484 | echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6 |
| 4485 | cat >conftest.$ac_ext <<_ACEOF |
| 4486 | #line $LINENO "configure" |
| 4487 | #include "confdefs.h" |
| 4488 | $ac_includes_default |
| 4489 | #include <sys/sysmacros.h> |
| 4490 | _ACEOF |
| 4491 | rm -f conftest.$ac_objext |
| 4492 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4493 | (eval $ac_compile) 2>&5 |
| 4494 | ac_status=$? |
| 4495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4496 | (exit $ac_status); } && |
| 4497 | { ac_try='test -s conftest.$ac_objext' |
| 4498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4499 | (eval $ac_try) 2>&5 |
| 4500 | ac_status=$? |
| 4501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4502 | (exit $ac_status); }; }; then |
| 4503 | ac_header_compiler=yes |
| 4504 | else |
| 4505 | echo "$as_me: failed program was:" >&5 |
| 4506 | cat conftest.$ac_ext >&5 |
| 4507 | ac_header_compiler=no |
| 4508 | fi |
| 4509 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4510 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4511 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4512 | |
| 4513 | # Is the header present? |
| 4514 | echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 4515 | echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6 |
| 4516 | cat >conftest.$ac_ext <<_ACEOF |
| 4517 | #line $LINENO "configure" |
| 4518 | #include "confdefs.h" |
| 4519 | #include <sys/sysmacros.h> |
| 4520 | _ACEOF |
| 4521 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4522 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4523 | ac_status=$? |
| 4524 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 4525 | rm -f conftest.er1 |
| 4526 | cat conftest.err >&5 |
| 4527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4528 | (exit $ac_status); } >/dev/null; then |
| 4529 | if test -s conftest.err; then |
| 4530 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4531 | else |
| 4532 | ac_cpp_err= |
| 4533 | fi |
| 4534 | else |
| 4535 | ac_cpp_err=yes |
| 4536 | fi |
| 4537 | if test -z "$ac_cpp_err"; then |
| 4538 | ac_header_preproc=yes |
| 4539 | else |
| 4540 | echo "$as_me: failed program was:" >&5 |
| 4541 | cat conftest.$ac_ext >&5 |
| 4542 | ac_header_preproc=no |
| 4543 | fi |
| 4544 | rm -f conftest.err conftest.$ac_ext |
| 4545 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4546 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4547 | |
| 4548 | # So? What about this header? |
| 4549 | case $ac_header_compiler:$ac_header_preproc in |
| 4550 | yes:no ) |
| 4551 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4552 | echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4553 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 4554 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};; |
| 4555 | no:yes ) |
| 4556 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 4557 | echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
| 4558 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 4559 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 4560 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 4561 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};; |
| 4562 | esac |
| 4563 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 4564 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 4565 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4567 | else |
| 4568 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 4569 | fi |
| 4570 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 4571 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 4572 | |
| 4573 | fi |
| 4574 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
| 4575 | |
| 4576 | cat >>confdefs.h <<\_ACEOF |
| 4577 | #define MAJOR_IN_SYSMACROS 1 |
| 4578 | _ACEOF |
| 4579 | |
| 4580 | fi |
| 4581 | |
| 4582 | |
| 4583 | fi |
| 4584 | fi |
| 4585 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4586 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4587 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4588 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4589 | echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 4590 | echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6 |
| 4591 | cat >conftest.$ac_ext <<_ACEOF |
| 4592 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4593 | #include "confdefs.h" |
| 4594 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4595 | |
| 4596 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4597 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4598 | egrep "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4599 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4600 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4601 | |
| 4602 | |
| 4603 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4604 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4605 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4606 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 4607 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4608 | fi |
| 4609 | rm -f conftest* |
| 4610 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4611 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 4612 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4613 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 4614 | # Check whether using makedev requires defining _OSF_SOURCE |
| 4615 | echo "$as_me:$LINENO: checking for makedev" >&5 |
| 4616 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6 |
| 4617 | cat >conftest.$ac_ext <<_ACEOF |
| 4618 | #line $LINENO "configure" |
| 4619 | #include "confdefs.h" |
| 4620 | #include <sys/types.h> |
| 4621 | #ifdef F77_DUMMY_MAIN |
| 4622 | # ifdef __cplusplus |
| 4623 | extern "C" |
| 4624 | # endif |
| 4625 | int F77_DUMMY_MAIN() { return 1; } |
| 4626 | #endif |
| 4627 | int |
| 4628 | main () |
| 4629 | { |
| 4630 | makedev(0, 0) |
| 4631 | ; |
| 4632 | return 0; |
| 4633 | } |
| 4634 | _ACEOF |
| 4635 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4636 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4637 | (eval $ac_link) 2>&5 |
| 4638 | ac_status=$? |
| 4639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4640 | (exit $ac_status); } && |
| 4641 | { ac_try='test -s conftest$ac_exeext' |
| 4642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4643 | (eval $ac_try) 2>&5 |
| 4644 | ac_status=$? |
| 4645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4646 | (exit $ac_status); }; }; then |
| 4647 | ac_cv_has_makedev=yes |
| 4648 | else |
| 4649 | echo "$as_me: failed program was:" >&5 |
| 4650 | cat conftest.$ac_ext >&5 |
| 4651 | ac_cv_has_makedev=no |
| 4652 | fi |
| 4653 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4654 | if test "$ac_cv_has_makedev" = "no"; then |
| 4655 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 4656 | cat >conftest.$ac_ext <<_ACEOF |
| 4657 | #line $LINENO "configure" |
| 4658 | #include "confdefs.h" |
| 4659 | |
| 4660 | #define _OSF_SOURCE 1 |
| 4661 | #include <sys/types.h> |
| 4662 | |
| 4663 | #ifdef F77_DUMMY_MAIN |
| 4664 | # ifdef __cplusplus |
| 4665 | extern "C" |
| 4666 | # endif |
| 4667 | int F77_DUMMY_MAIN() { return 1; } |
| 4668 | #endif |
| 4669 | int |
| 4670 | main () |
| 4671 | { |
| 4672 | makedev(0, 0) |
| 4673 | ; |
| 4674 | return 0; |
| 4675 | } |
| 4676 | _ACEOF |
| 4677 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4678 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4679 | (eval $ac_link) 2>&5 |
| 4680 | ac_status=$? |
| 4681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4682 | (exit $ac_status); } && |
| 4683 | { ac_try='test -s conftest$ac_exeext' |
| 4684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4685 | (eval $ac_try) 2>&5 |
| 4686 | ac_status=$? |
| 4687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4688 | (exit $ac_status); }; }; then |
| 4689 | ac_cv_has_makedev=yes |
| 4690 | else |
| 4691 | echo "$as_me: failed program was:" >&5 |
| 4692 | cat conftest.$ac_ext >&5 |
| 4693 | ac_cv_has_makedev=no |
| 4694 | fi |
| 4695 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4696 | if test "$ac_cv_has_makedev" = "yes"; then |
| 4697 | |
| 4698 | cat >>confdefs.h <<\_ACEOF |
| 4699 | #define _OSF_SOURCE 1 |
| 4700 | _ACEOF |
| 4701 | |
| 4702 | fi |
| 4703 | fi |
| 4704 | echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 4705 | echo "${ECHO_T}$ac_cv_has_makedev" >&6 |
| 4706 | if test "$ac_cv_has_makedev" = "yes"; then |
| 4707 | |
| 4708 | cat >>confdefs.h <<\_ACEOF |
| 4709 | #define HAVE_MAKEDEV 1 |
| 4710 | _ACEOF |
| 4711 | |
| 4712 | fi |
| 4713 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 4714 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 4715 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 4716 | # defined, but the compiler does not support pragma redefine_extname, |
| 4717 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 4718 | # structures (such as rlimit64) without declaring them. As a |
| 4719 | # work-around, disable LFS on such configurations |
| 4720 | |
| 4721 | use_lfs=yes |
| 4722 | echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 4723 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6 |
| 4724 | cat >conftest.$ac_ext <<_ACEOF |
| 4725 | #line $LINENO "configure" |
| 4726 | #include "confdefs.h" |
| 4727 | |
| 4728 | #define _LARGEFILE_SOURCE 1 |
| 4729 | #define _FILE_OFFSET_BITS 64 |
| 4730 | #include <sys/resource.h> |
| 4731 | |
| 4732 | #ifdef F77_DUMMY_MAIN |
| 4733 | # ifdef __cplusplus |
| 4734 | extern "C" |
| 4735 | # endif |
| 4736 | int F77_DUMMY_MAIN() { return 1; } |
| 4737 | #endif |
| 4738 | int |
| 4739 | main () |
| 4740 | { |
| 4741 | struct rlimit foo; |
| 4742 | ; |
| 4743 | return 0; |
| 4744 | } |
| 4745 | _ACEOF |
| 4746 | rm -f conftest.$ac_objext |
| 4747 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4748 | (eval $ac_compile) 2>&5 |
| 4749 | ac_status=$? |
| 4750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4751 | (exit $ac_status); } && |
| 4752 | { ac_try='test -s conftest.$ac_objext' |
| 4753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4754 | (eval $ac_try) 2>&5 |
| 4755 | ac_status=$? |
| 4756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4757 | (exit $ac_status); }; }; then |
| 4758 | sol_lfs_bug=no |
| 4759 | else |
| 4760 | echo "$as_me: failed program was:" >&5 |
| 4761 | cat conftest.$ac_ext >&5 |
| 4762 | sol_lfs_bug=yes |
| 4763 | fi |
| 4764 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4765 | echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 4766 | echo "${ECHO_T}$sol_lfs_bug" >&6 |
| 4767 | if test "$sol_lfs_bug" = "yes"; then |
| 4768 | use_lfs=no |
| 4769 | fi |
| 4770 | |
| 4771 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4772 | # Two defines needed to enable largefile support on various platforms |
| 4773 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4774 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4775 | cat >>confdefs.h <<\_ACEOF |
| 4776 | #define _LARGEFILE_SOURCE 1 |
| 4777 | _ACEOF |
| 4778 | |
| 4779 | |
| 4780 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4781 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4782 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4783 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 4784 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4785 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 4786 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 4787 | cat >> confdefs.h <<\EOF |
| 4788 | #if defined(SCO_DS) |
| 4789 | #undef _OFF_T |
| 4790 | #endif |
| 4791 | EOF |
| 4792 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4793 | # Type availability checks |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4794 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 4795 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 4796 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 4797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4798 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4799 | cat >conftest.$ac_ext <<_ACEOF |
| 4800 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4801 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4802 | $ac_includes_default |
| 4803 | #ifdef F77_DUMMY_MAIN |
| 4804 | # ifdef __cplusplus |
| 4805 | extern "C" |
| 4806 | # endif |
| 4807 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4808 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4809 | int |
| 4810 | main () |
| 4811 | { |
| 4812 | if ((mode_t *) 0) |
| 4813 | return 0; |
| 4814 | if (sizeof (mode_t)) |
| 4815 | return 0; |
| 4816 | ; |
| 4817 | return 0; |
| 4818 | } |
| 4819 | _ACEOF |
| 4820 | rm -f conftest.$ac_objext |
| 4821 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4822 | (eval $ac_compile) 2>&5 |
| 4823 | ac_status=$? |
| 4824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4825 | (exit $ac_status); } && |
| 4826 | { ac_try='test -s conftest.$ac_objext' |
| 4827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4828 | (eval $ac_try) 2>&5 |
| 4829 | ac_status=$? |
| 4830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4831 | (exit $ac_status); }; }; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4832 | ac_cv_type_mode_t=yes |
| 4833 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4834 | echo "$as_me: failed program was:" >&5 |
| 4835 | cat conftest.$ac_ext >&5 |
| 4836 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4837 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4838 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4839 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4840 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 4841 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 4842 | if test $ac_cv_type_mode_t = yes; then |
| 4843 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4844 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4845 | |
| 4846 | cat >>confdefs.h <<_ACEOF |
| 4847 | #define mode_t int |
| 4848 | _ACEOF |
| 4849 | |
| 4850 | fi |
| 4851 | |
| 4852 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 4853 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 4854 | if test "${ac_cv_type_off_t+set}" = set; then |
| 4855 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4856 | else |
| 4857 | cat >conftest.$ac_ext <<_ACEOF |
| 4858 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4859 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4860 | $ac_includes_default |
| 4861 | #ifdef F77_DUMMY_MAIN |
| 4862 | # ifdef __cplusplus |
| 4863 | extern "C" |
| 4864 | # endif |
| 4865 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4866 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4867 | int |
| 4868 | main () |
| 4869 | { |
| 4870 | if ((off_t *) 0) |
| 4871 | return 0; |
| 4872 | if (sizeof (off_t)) |
| 4873 | return 0; |
| 4874 | ; |
| 4875 | return 0; |
| 4876 | } |
| 4877 | _ACEOF |
| 4878 | rm -f conftest.$ac_objext |
| 4879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4880 | (eval $ac_compile) 2>&5 |
| 4881 | ac_status=$? |
| 4882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4883 | (exit $ac_status); } && |
| 4884 | { ac_try='test -s conftest.$ac_objext' |
| 4885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4886 | (eval $ac_try) 2>&5 |
| 4887 | ac_status=$? |
| 4888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4889 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4890 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4891 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4892 | echo "$as_me: failed program was:" >&5 |
| 4893 | cat conftest.$ac_ext >&5 |
| 4894 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4895 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4896 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4897 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4898 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 4899 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 4900 | if test $ac_cv_type_off_t = yes; then |
| 4901 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4902 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4903 | |
| 4904 | cat >>confdefs.h <<_ACEOF |
| 4905 | #define off_t long |
| 4906 | _ACEOF |
| 4907 | |
| 4908 | fi |
| 4909 | |
| 4910 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 4911 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 4912 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 4913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4914 | else |
| 4915 | cat >conftest.$ac_ext <<_ACEOF |
| 4916 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4917 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4918 | $ac_includes_default |
| 4919 | #ifdef F77_DUMMY_MAIN |
| 4920 | # ifdef __cplusplus |
| 4921 | extern "C" |
| 4922 | # endif |
| 4923 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4924 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4925 | int |
| 4926 | main () |
| 4927 | { |
| 4928 | if ((pid_t *) 0) |
| 4929 | return 0; |
| 4930 | if (sizeof (pid_t)) |
| 4931 | return 0; |
| 4932 | ; |
| 4933 | return 0; |
| 4934 | } |
| 4935 | _ACEOF |
| 4936 | rm -f conftest.$ac_objext |
| 4937 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4938 | (eval $ac_compile) 2>&5 |
| 4939 | ac_status=$? |
| 4940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4941 | (exit $ac_status); } && |
| 4942 | { ac_try='test -s conftest.$ac_objext' |
| 4943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4944 | (eval $ac_try) 2>&5 |
| 4945 | ac_status=$? |
| 4946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4947 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4948 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4949 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4950 | echo "$as_me: failed program was:" >&5 |
| 4951 | cat conftest.$ac_ext >&5 |
| 4952 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4953 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4954 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4955 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4956 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 4957 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 4958 | if test $ac_cv_type_pid_t = yes; then |
| 4959 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4960 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4961 | |
| 4962 | cat >>confdefs.h <<_ACEOF |
| 4963 | #define pid_t int |
| 4964 | _ACEOF |
| 4965 | |
| 4966 | fi |
| 4967 | |
| 4968 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 4969 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 4970 | if test "${ac_cv_type_signal+set}" = set; then |
| 4971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4972 | else |
| 4973 | cat >conftest.$ac_ext <<_ACEOF |
| 4974 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4975 | #include "confdefs.h" |
| 4976 | #include <sys/types.h> |
| 4977 | #include <signal.h> |
| 4978 | #ifdef signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4979 | # undef signal |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4980 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4981 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4982 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 4983 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4984 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4985 | #endif |
| 4986 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4987 | #ifdef F77_DUMMY_MAIN |
| 4988 | # ifdef __cplusplus |
| 4989 | extern "C" |
| 4990 | # endif |
| 4991 | int F77_DUMMY_MAIN() { return 1; } |
| 4992 | #endif |
| 4993 | int |
| 4994 | main () |
| 4995 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4996 | int i; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4997 | ; |
| 4998 | return 0; |
| 4999 | } |
| 5000 | _ACEOF |
| 5001 | rm -f conftest.$ac_objext |
| 5002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5003 | (eval $ac_compile) 2>&5 |
| 5004 | ac_status=$? |
| 5005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5006 | (exit $ac_status); } && |
| 5007 | { ac_try='test -s conftest.$ac_objext' |
| 5008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5009 | (eval $ac_try) 2>&5 |
| 5010 | ac_status=$? |
| 5011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5012 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5013 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5014 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5015 | echo "$as_me: failed program was:" >&5 |
| 5016 | cat conftest.$ac_ext >&5 |
| 5017 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5018 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5019 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5020 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5021 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 5022 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5023 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5024 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5025 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5026 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5027 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5028 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5029 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 5030 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 5031 | if test "${ac_cv_type_size_t+set}" = set; then |
| 5032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5033 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5034 | cat >conftest.$ac_ext <<_ACEOF |
| 5035 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5036 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5037 | $ac_includes_default |
| 5038 | #ifdef F77_DUMMY_MAIN |
| 5039 | # ifdef __cplusplus |
| 5040 | extern "C" |
| 5041 | # endif |
| 5042 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5043 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5044 | int |
| 5045 | main () |
| 5046 | { |
| 5047 | if ((size_t *) 0) |
| 5048 | return 0; |
| 5049 | if (sizeof (size_t)) |
| 5050 | return 0; |
| 5051 | ; |
| 5052 | return 0; |
| 5053 | } |
| 5054 | _ACEOF |
| 5055 | rm -f conftest.$ac_objext |
| 5056 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5057 | (eval $ac_compile) 2>&5 |
| 5058 | ac_status=$? |
| 5059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5060 | (exit $ac_status); } && |
| 5061 | { ac_try='test -s conftest.$ac_objext' |
| 5062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5063 | (eval $ac_try) 2>&5 |
| 5064 | ac_status=$? |
| 5065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5066 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5067 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5068 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5069 | echo "$as_me: failed program was:" >&5 |
| 5070 | cat conftest.$ac_ext >&5 |
| 5071 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5072 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5073 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5074 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5075 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 5076 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 5077 | if test $ac_cv_type_size_t = yes; then |
| 5078 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5079 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5080 | |
| 5081 | cat >>confdefs.h <<_ACEOF |
| 5082 | #define size_t unsigned |
| 5083 | _ACEOF |
| 5084 | |
| 5085 | fi |
| 5086 | |
| 5087 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 5088 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 5089 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 5090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5091 | else |
| 5092 | cat >conftest.$ac_ext <<_ACEOF |
| 5093 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5094 | #include "confdefs.h" |
| 5095 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5096 | |
| 5097 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5098 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5099 | egrep "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5100 | ac_cv_type_uid_t=yes |
| 5101 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5102 | ac_cv_type_uid_t=no |
| 5103 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5104 | rm -f conftest* |
| 5105 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5106 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5107 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 5108 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5109 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5110 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5111 | cat >>confdefs.h <<\_ACEOF |
| 5112 | #define uid_t int |
| 5113 | _ACEOF |
| 5114 | |
| 5115 | |
| 5116 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5117 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5118 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5119 | |
| 5120 | fi |
| 5121 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5122 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5123 | # Sizes of various common basic types |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5124 | echo "$as_me:$LINENO: checking for int" >&5 |
| 5125 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
| 5126 | if test "${ac_cv_type_int+set}" = set; then |
| 5127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5128 | else |
| 5129 | cat >conftest.$ac_ext <<_ACEOF |
| 5130 | #line $LINENO "configure" |
| 5131 | #include "confdefs.h" |
| 5132 | $ac_includes_default |
| 5133 | #ifdef F77_DUMMY_MAIN |
| 5134 | # ifdef __cplusplus |
| 5135 | extern "C" |
| 5136 | # endif |
| 5137 | int F77_DUMMY_MAIN() { return 1; } |
| 5138 | #endif |
| 5139 | int |
| 5140 | main () |
| 5141 | { |
| 5142 | if ((int *) 0) |
| 5143 | return 0; |
| 5144 | if (sizeof (int)) |
| 5145 | return 0; |
| 5146 | ; |
| 5147 | return 0; |
| 5148 | } |
| 5149 | _ACEOF |
| 5150 | rm -f conftest.$ac_objext |
| 5151 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5152 | (eval $ac_compile) 2>&5 |
| 5153 | ac_status=$? |
| 5154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5155 | (exit $ac_status); } && |
| 5156 | { ac_try='test -s conftest.$ac_objext' |
| 5157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5158 | (eval $ac_try) 2>&5 |
| 5159 | ac_status=$? |
| 5160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5161 | (exit $ac_status); }; }; then |
| 5162 | ac_cv_type_int=yes |
| 5163 | else |
| 5164 | echo "$as_me: failed program was:" >&5 |
| 5165 | cat conftest.$ac_ext >&5 |
| 5166 | ac_cv_type_int=no |
| 5167 | fi |
| 5168 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5169 | fi |
| 5170 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 5171 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
| 5172 | |
| 5173 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 5174 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 5175 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 5176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5177 | else |
| 5178 | if test "$ac_cv_type_int" = yes; then |
| 5179 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5180 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5181 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5182 | # This bug is HP SR number 8606223364. |
| 5183 | if test "$cross_compiling" = yes; then |
| 5184 | # Depending upon the size, compute the lo and hi bounds. |
| 5185 | cat >conftest.$ac_ext <<_ACEOF |
| 5186 | #line $LINENO "configure" |
| 5187 | #include "confdefs.h" |
| 5188 | $ac_includes_default |
| 5189 | #ifdef F77_DUMMY_MAIN |
| 5190 | # ifdef __cplusplus |
| 5191 | extern "C" |
| 5192 | # endif |
| 5193 | int F77_DUMMY_MAIN() { return 1; } |
| 5194 | #endif |
| 5195 | int |
| 5196 | main () |
| 5197 | { |
| 5198 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
| 5199 | test_array [0] = 0 |
| 5200 | |
| 5201 | ; |
| 5202 | return 0; |
| 5203 | } |
| 5204 | _ACEOF |
| 5205 | rm -f conftest.$ac_objext |
| 5206 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5207 | (eval $ac_compile) 2>&5 |
| 5208 | ac_status=$? |
| 5209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5210 | (exit $ac_status); } && |
| 5211 | { ac_try='test -s conftest.$ac_objext' |
| 5212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5213 | (eval $ac_try) 2>&5 |
| 5214 | ac_status=$? |
| 5215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5216 | (exit $ac_status); }; }; then |
| 5217 | ac_lo=0 ac_mid=0 |
| 5218 | while :; do |
| 5219 | cat >conftest.$ac_ext <<_ACEOF |
| 5220 | #line $LINENO "configure" |
| 5221 | #include "confdefs.h" |
| 5222 | $ac_includes_default |
| 5223 | #ifdef F77_DUMMY_MAIN |
| 5224 | # ifdef __cplusplus |
| 5225 | extern "C" |
| 5226 | # endif |
| 5227 | int F77_DUMMY_MAIN() { return 1; } |
| 5228 | #endif |
| 5229 | int |
| 5230 | main () |
| 5231 | { |
| 5232 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 5233 | test_array [0] = 0 |
| 5234 | |
| 5235 | ; |
| 5236 | return 0; |
| 5237 | } |
| 5238 | _ACEOF |
| 5239 | rm -f conftest.$ac_objext |
| 5240 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5241 | (eval $ac_compile) 2>&5 |
| 5242 | ac_status=$? |
| 5243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5244 | (exit $ac_status); } && |
| 5245 | { ac_try='test -s conftest.$ac_objext' |
| 5246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5247 | (eval $ac_try) 2>&5 |
| 5248 | ac_status=$? |
| 5249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5250 | (exit $ac_status); }; }; then |
| 5251 | ac_hi=$ac_mid; break |
| 5252 | else |
| 5253 | echo "$as_me: failed program was:" >&5 |
| 5254 | cat conftest.$ac_ext >&5 |
| 5255 | ac_lo=`expr $ac_mid + 1` |
| 5256 | if test $ac_lo -le $ac_mid; then |
| 5257 | ac_lo= ac_hi= |
| 5258 | break |
| 5259 | fi |
| 5260 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5261 | fi |
| 5262 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5263 | done |
| 5264 | else |
| 5265 | echo "$as_me: failed program was:" >&5 |
| 5266 | cat conftest.$ac_ext >&5 |
| 5267 | cat >conftest.$ac_ext <<_ACEOF |
| 5268 | #line $LINENO "configure" |
| 5269 | #include "confdefs.h" |
| 5270 | $ac_includes_default |
| 5271 | #ifdef F77_DUMMY_MAIN |
| 5272 | # ifdef __cplusplus |
| 5273 | extern "C" |
| 5274 | # endif |
| 5275 | int F77_DUMMY_MAIN() { return 1; } |
| 5276 | #endif |
| 5277 | int |
| 5278 | main () |
| 5279 | { |
| 5280 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
| 5281 | test_array [0] = 0 |
| 5282 | |
| 5283 | ; |
| 5284 | return 0; |
| 5285 | } |
| 5286 | _ACEOF |
| 5287 | rm -f conftest.$ac_objext |
| 5288 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5289 | (eval $ac_compile) 2>&5 |
| 5290 | ac_status=$? |
| 5291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5292 | (exit $ac_status); } && |
| 5293 | { ac_try='test -s conftest.$ac_objext' |
| 5294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5295 | (eval $ac_try) 2>&5 |
| 5296 | ac_status=$? |
| 5297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5298 | (exit $ac_status); }; }; then |
| 5299 | ac_hi=-1 ac_mid=-1 |
| 5300 | while :; do |
| 5301 | cat >conftest.$ac_ext <<_ACEOF |
| 5302 | #line $LINENO "configure" |
| 5303 | #include "confdefs.h" |
| 5304 | $ac_includes_default |
| 5305 | #ifdef F77_DUMMY_MAIN |
| 5306 | # ifdef __cplusplus |
| 5307 | extern "C" |
| 5308 | # endif |
| 5309 | int F77_DUMMY_MAIN() { return 1; } |
| 5310 | #endif |
| 5311 | int |
| 5312 | main () |
| 5313 | { |
| 5314 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
| 5315 | test_array [0] = 0 |
| 5316 | |
| 5317 | ; |
| 5318 | return 0; |
| 5319 | } |
| 5320 | _ACEOF |
| 5321 | rm -f conftest.$ac_objext |
| 5322 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5323 | (eval $ac_compile) 2>&5 |
| 5324 | ac_status=$? |
| 5325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5326 | (exit $ac_status); } && |
| 5327 | { ac_try='test -s conftest.$ac_objext' |
| 5328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5329 | (eval $ac_try) 2>&5 |
| 5330 | ac_status=$? |
| 5331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5332 | (exit $ac_status); }; }; then |
| 5333 | ac_lo=$ac_mid; break |
| 5334 | else |
| 5335 | echo "$as_me: failed program was:" >&5 |
| 5336 | cat conftest.$ac_ext >&5 |
| 5337 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5338 | if test $ac_mid -le $ac_hi; then |
| 5339 | ac_lo= ac_hi= |
| 5340 | break |
| 5341 | fi |
| 5342 | ac_mid=`expr 2 '*' $ac_mid` |
| 5343 | fi |
| 5344 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5345 | done |
| 5346 | else |
| 5347 | echo "$as_me: failed program was:" >&5 |
| 5348 | cat conftest.$ac_ext >&5 |
| 5349 | ac_lo= ac_hi= |
| 5350 | fi |
| 5351 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5352 | fi |
| 5353 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5354 | # Binary search between lo and hi bounds. |
| 5355 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5356 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5357 | cat >conftest.$ac_ext <<_ACEOF |
| 5358 | #line $LINENO "configure" |
| 5359 | #include "confdefs.h" |
| 5360 | $ac_includes_default |
| 5361 | #ifdef F77_DUMMY_MAIN |
| 5362 | # ifdef __cplusplus |
| 5363 | extern "C" |
| 5364 | # endif |
| 5365 | int F77_DUMMY_MAIN() { return 1; } |
| 5366 | #endif |
| 5367 | int |
| 5368 | main () |
| 5369 | { |
| 5370 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 5371 | test_array [0] = 0 |
| 5372 | |
| 5373 | ; |
| 5374 | return 0; |
| 5375 | } |
| 5376 | _ACEOF |
| 5377 | rm -f conftest.$ac_objext |
| 5378 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5379 | (eval $ac_compile) 2>&5 |
| 5380 | ac_status=$? |
| 5381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5382 | (exit $ac_status); } && |
| 5383 | { ac_try='test -s conftest.$ac_objext' |
| 5384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5385 | (eval $ac_try) 2>&5 |
| 5386 | ac_status=$? |
| 5387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5388 | (exit $ac_status); }; }; then |
| 5389 | ac_hi=$ac_mid |
| 5390 | else |
| 5391 | echo "$as_me: failed program was:" >&5 |
| 5392 | cat conftest.$ac_ext >&5 |
| 5393 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5394 | fi |
| 5395 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5396 | done |
| 5397 | case $ac_lo in |
| 5398 | ?*) ac_cv_sizeof_int=$ac_lo;; |
| 5399 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 |
| 5400 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} |
| 5401 | { (exit 1); exit 1; }; } ;; |
| 5402 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5403 | else |
| 5404 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5405 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 5406 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 5407 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5408 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5409 | cat >conftest.$ac_ext <<_ACEOF |
| 5410 | #line $LINENO "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5411 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5412 | $ac_includes_default |
| 5413 | long longval () { return (long) (sizeof (int)); } |
| 5414 | unsigned long ulongval () { return (long) (sizeof (int)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5415 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5416 | #include <stdlib.h> |
| 5417 | #ifdef F77_DUMMY_MAIN |
| 5418 | # ifdef __cplusplus |
| 5419 | extern "C" |
| 5420 | # endif |
| 5421 | int F77_DUMMY_MAIN() { return 1; } |
| 5422 | #endif |
| 5423 | int |
| 5424 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5425 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5426 | |
| 5427 | FILE *f = fopen ("conftest.val", "w"); |
| 5428 | if (! f) |
| 5429 | exit (1); |
| 5430 | if (((long) (sizeof (int))) < 0) |
| 5431 | { |
| 5432 | long i = longval (); |
| 5433 | if (i != ((long) (sizeof (int)))) |
| 5434 | exit (1); |
| 5435 | fprintf (f, "%ld\n", i); |
| 5436 | } |
| 5437 | else |
| 5438 | { |
| 5439 | unsigned long i = ulongval (); |
| 5440 | if (i != ((long) (sizeof (int)))) |
| 5441 | exit (1); |
| 5442 | fprintf (f, "%lu\n", i); |
| 5443 | } |
| 5444 | exit (ferror (f) || fclose (f) != 0); |
| 5445 | |
| 5446 | ; |
| 5447 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5448 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5449 | _ACEOF |
| 5450 | rm -f conftest$ac_exeext |
| 5451 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5452 | (eval $ac_link) 2>&5 |
| 5453 | ac_status=$? |
| 5454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5455 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5457 | (eval $ac_try) 2>&5 |
| 5458 | ac_status=$? |
| 5459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5460 | (exit $ac_status); }; }; then |
| 5461 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5462 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5463 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5464 | echo "$as_me: failed program was:" >&5 |
| 5465 | cat conftest.$ac_ext >&5 |
| 5466 | ( exit $ac_status ) |
| 5467 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 |
| 5468 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} |
| 5469 | { (exit 1); exit 1; }; } |
| 5470 | fi |
| 5471 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5472 | fi |
| 5473 | fi |
| 5474 | rm -f conftest.val |
| 5475 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5476 | ac_cv_sizeof_int=0 |
| 5477 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5478 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5479 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 5480 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 5481 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5482 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5483 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5484 | |
| 5485 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5486 | echo "$as_me:$LINENO: checking for long" >&5 |
| 5487 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 5488 | if test "${ac_cv_type_long+set}" = set; then |
| 5489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5490 | else |
| 5491 | cat >conftest.$ac_ext <<_ACEOF |
| 5492 | #line $LINENO "configure" |
| 5493 | #include "confdefs.h" |
| 5494 | $ac_includes_default |
| 5495 | #ifdef F77_DUMMY_MAIN |
| 5496 | # ifdef __cplusplus |
| 5497 | extern "C" |
| 5498 | # endif |
| 5499 | int F77_DUMMY_MAIN() { return 1; } |
| 5500 | #endif |
| 5501 | int |
| 5502 | main () |
| 5503 | { |
| 5504 | if ((long *) 0) |
| 5505 | return 0; |
| 5506 | if (sizeof (long)) |
| 5507 | return 0; |
| 5508 | ; |
| 5509 | return 0; |
| 5510 | } |
| 5511 | _ACEOF |
| 5512 | rm -f conftest.$ac_objext |
| 5513 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5514 | (eval $ac_compile) 2>&5 |
| 5515 | ac_status=$? |
| 5516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5517 | (exit $ac_status); } && |
| 5518 | { ac_try='test -s conftest.$ac_objext' |
| 5519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5520 | (eval $ac_try) 2>&5 |
| 5521 | ac_status=$? |
| 5522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5523 | (exit $ac_status); }; }; then |
| 5524 | ac_cv_type_long=yes |
| 5525 | else |
| 5526 | echo "$as_me: failed program was:" >&5 |
| 5527 | cat conftest.$ac_ext >&5 |
| 5528 | ac_cv_type_long=no |
| 5529 | fi |
| 5530 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5531 | fi |
| 5532 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 5533 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 5534 | |
| 5535 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 5536 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 5537 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 5538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5539 | else |
| 5540 | if test "$ac_cv_type_long" = yes; then |
| 5541 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5542 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5543 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5544 | # This bug is HP SR number 8606223364. |
| 5545 | if test "$cross_compiling" = yes; then |
| 5546 | # Depending upon the size, compute the lo and hi bounds. |
| 5547 | cat >conftest.$ac_ext <<_ACEOF |
| 5548 | #line $LINENO "configure" |
| 5549 | #include "confdefs.h" |
| 5550 | $ac_includes_default |
| 5551 | #ifdef F77_DUMMY_MAIN |
| 5552 | # ifdef __cplusplus |
| 5553 | extern "C" |
| 5554 | # endif |
| 5555 | int F77_DUMMY_MAIN() { return 1; } |
| 5556 | #endif |
| 5557 | int |
| 5558 | main () |
| 5559 | { |
| 5560 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 5561 | test_array [0] = 0 |
| 5562 | |
| 5563 | ; |
| 5564 | return 0; |
| 5565 | } |
| 5566 | _ACEOF |
| 5567 | rm -f conftest.$ac_objext |
| 5568 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5569 | (eval $ac_compile) 2>&5 |
| 5570 | ac_status=$? |
| 5571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5572 | (exit $ac_status); } && |
| 5573 | { ac_try='test -s conftest.$ac_objext' |
| 5574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5575 | (eval $ac_try) 2>&5 |
| 5576 | ac_status=$? |
| 5577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5578 | (exit $ac_status); }; }; then |
| 5579 | ac_lo=0 ac_mid=0 |
| 5580 | while :; do |
| 5581 | cat >conftest.$ac_ext <<_ACEOF |
| 5582 | #line $LINENO "configure" |
| 5583 | #include "confdefs.h" |
| 5584 | $ac_includes_default |
| 5585 | #ifdef F77_DUMMY_MAIN |
| 5586 | # ifdef __cplusplus |
| 5587 | extern "C" |
| 5588 | # endif |
| 5589 | int F77_DUMMY_MAIN() { return 1; } |
| 5590 | #endif |
| 5591 | int |
| 5592 | main () |
| 5593 | { |
| 5594 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 5595 | test_array [0] = 0 |
| 5596 | |
| 5597 | ; |
| 5598 | return 0; |
| 5599 | } |
| 5600 | _ACEOF |
| 5601 | rm -f conftest.$ac_objext |
| 5602 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5603 | (eval $ac_compile) 2>&5 |
| 5604 | ac_status=$? |
| 5605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5606 | (exit $ac_status); } && |
| 5607 | { ac_try='test -s conftest.$ac_objext' |
| 5608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5609 | (eval $ac_try) 2>&5 |
| 5610 | ac_status=$? |
| 5611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5612 | (exit $ac_status); }; }; then |
| 5613 | ac_hi=$ac_mid; break |
| 5614 | else |
| 5615 | echo "$as_me: failed program was:" >&5 |
| 5616 | cat conftest.$ac_ext >&5 |
| 5617 | ac_lo=`expr $ac_mid + 1` |
| 5618 | if test $ac_lo -le $ac_mid; then |
| 5619 | ac_lo= ac_hi= |
| 5620 | break |
| 5621 | fi |
| 5622 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5623 | fi |
| 5624 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5625 | done |
| 5626 | else |
| 5627 | echo "$as_me: failed program was:" >&5 |
| 5628 | cat conftest.$ac_ext >&5 |
| 5629 | cat >conftest.$ac_ext <<_ACEOF |
| 5630 | #line $LINENO "configure" |
| 5631 | #include "confdefs.h" |
| 5632 | $ac_includes_default |
| 5633 | #ifdef F77_DUMMY_MAIN |
| 5634 | # ifdef __cplusplus |
| 5635 | extern "C" |
| 5636 | # endif |
| 5637 | int F77_DUMMY_MAIN() { return 1; } |
| 5638 | #endif |
| 5639 | int |
| 5640 | main () |
| 5641 | { |
| 5642 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 5643 | test_array [0] = 0 |
| 5644 | |
| 5645 | ; |
| 5646 | return 0; |
| 5647 | } |
| 5648 | _ACEOF |
| 5649 | rm -f conftest.$ac_objext |
| 5650 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5651 | (eval $ac_compile) 2>&5 |
| 5652 | ac_status=$? |
| 5653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5654 | (exit $ac_status); } && |
| 5655 | { ac_try='test -s conftest.$ac_objext' |
| 5656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5657 | (eval $ac_try) 2>&5 |
| 5658 | ac_status=$? |
| 5659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5660 | (exit $ac_status); }; }; then |
| 5661 | ac_hi=-1 ac_mid=-1 |
| 5662 | while :; do |
| 5663 | cat >conftest.$ac_ext <<_ACEOF |
| 5664 | #line $LINENO "configure" |
| 5665 | #include "confdefs.h" |
| 5666 | $ac_includes_default |
| 5667 | #ifdef F77_DUMMY_MAIN |
| 5668 | # ifdef __cplusplus |
| 5669 | extern "C" |
| 5670 | # endif |
| 5671 | int F77_DUMMY_MAIN() { return 1; } |
| 5672 | #endif |
| 5673 | int |
| 5674 | main () |
| 5675 | { |
| 5676 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 5677 | test_array [0] = 0 |
| 5678 | |
| 5679 | ; |
| 5680 | return 0; |
| 5681 | } |
| 5682 | _ACEOF |
| 5683 | rm -f conftest.$ac_objext |
| 5684 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5685 | (eval $ac_compile) 2>&5 |
| 5686 | ac_status=$? |
| 5687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5688 | (exit $ac_status); } && |
| 5689 | { ac_try='test -s conftest.$ac_objext' |
| 5690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5691 | (eval $ac_try) 2>&5 |
| 5692 | ac_status=$? |
| 5693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5694 | (exit $ac_status); }; }; then |
| 5695 | ac_lo=$ac_mid; break |
| 5696 | else |
| 5697 | echo "$as_me: failed program was:" >&5 |
| 5698 | cat conftest.$ac_ext >&5 |
| 5699 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5700 | if test $ac_mid -le $ac_hi; then |
| 5701 | ac_lo= ac_hi= |
| 5702 | break |
| 5703 | fi |
| 5704 | ac_mid=`expr 2 '*' $ac_mid` |
| 5705 | fi |
| 5706 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5707 | done |
| 5708 | else |
| 5709 | echo "$as_me: failed program was:" >&5 |
| 5710 | cat conftest.$ac_ext >&5 |
| 5711 | ac_lo= ac_hi= |
| 5712 | fi |
| 5713 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5714 | fi |
| 5715 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5716 | # Binary search between lo and hi bounds. |
| 5717 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5718 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5719 | cat >conftest.$ac_ext <<_ACEOF |
| 5720 | #line $LINENO "configure" |
| 5721 | #include "confdefs.h" |
| 5722 | $ac_includes_default |
| 5723 | #ifdef F77_DUMMY_MAIN |
| 5724 | # ifdef __cplusplus |
| 5725 | extern "C" |
| 5726 | # endif |
| 5727 | int F77_DUMMY_MAIN() { return 1; } |
| 5728 | #endif |
| 5729 | int |
| 5730 | main () |
| 5731 | { |
| 5732 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 5733 | test_array [0] = 0 |
| 5734 | |
| 5735 | ; |
| 5736 | return 0; |
| 5737 | } |
| 5738 | _ACEOF |
| 5739 | rm -f conftest.$ac_objext |
| 5740 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5741 | (eval $ac_compile) 2>&5 |
| 5742 | ac_status=$? |
| 5743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5744 | (exit $ac_status); } && |
| 5745 | { ac_try='test -s conftest.$ac_objext' |
| 5746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5747 | (eval $ac_try) 2>&5 |
| 5748 | ac_status=$? |
| 5749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5750 | (exit $ac_status); }; }; then |
| 5751 | ac_hi=$ac_mid |
| 5752 | else |
| 5753 | echo "$as_me: failed program was:" >&5 |
| 5754 | cat conftest.$ac_ext >&5 |
| 5755 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5756 | fi |
| 5757 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5758 | done |
| 5759 | case $ac_lo in |
| 5760 | ?*) ac_cv_sizeof_long=$ac_lo;; |
| 5761 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 |
| 5762 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} |
| 5763 | { (exit 1); exit 1; }; } ;; |
| 5764 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5765 | else |
| 5766 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5767 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 5768 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 5769 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5770 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5771 | cat >conftest.$ac_ext <<_ACEOF |
| 5772 | #line $LINENO "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5773 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5774 | $ac_includes_default |
| 5775 | long longval () { return (long) (sizeof (long)); } |
| 5776 | unsigned long ulongval () { return (long) (sizeof (long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5777 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5778 | #include <stdlib.h> |
| 5779 | #ifdef F77_DUMMY_MAIN |
| 5780 | # ifdef __cplusplus |
| 5781 | extern "C" |
| 5782 | # endif |
| 5783 | int F77_DUMMY_MAIN() { return 1; } |
| 5784 | #endif |
| 5785 | int |
| 5786 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5787 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5788 | |
| 5789 | FILE *f = fopen ("conftest.val", "w"); |
| 5790 | if (! f) |
| 5791 | exit (1); |
| 5792 | if (((long) (sizeof (long))) < 0) |
| 5793 | { |
| 5794 | long i = longval (); |
| 5795 | if (i != ((long) (sizeof (long)))) |
| 5796 | exit (1); |
| 5797 | fprintf (f, "%ld\n", i); |
| 5798 | } |
| 5799 | else |
| 5800 | { |
| 5801 | unsigned long i = ulongval (); |
| 5802 | if (i != ((long) (sizeof (long)))) |
| 5803 | exit (1); |
| 5804 | fprintf (f, "%lu\n", i); |
| 5805 | } |
| 5806 | exit (ferror (f) || fclose (f) != 0); |
| 5807 | |
| 5808 | ; |
| 5809 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5810 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5811 | _ACEOF |
| 5812 | rm -f conftest$ac_exeext |
| 5813 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5814 | (eval $ac_link) 2>&5 |
| 5815 | ac_status=$? |
| 5816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5817 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5819 | (eval $ac_try) 2>&5 |
| 5820 | ac_status=$? |
| 5821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5822 | (exit $ac_status); }; }; then |
| 5823 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5824 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5825 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5826 | echo "$as_me: failed program was:" >&5 |
| 5827 | cat conftest.$ac_ext >&5 |
| 5828 | ( exit $ac_status ) |
| 5829 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 |
| 5830 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} |
| 5831 | { (exit 1); exit 1; }; } |
| 5832 | fi |
| 5833 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5834 | fi |
| 5835 | fi |
| 5836 | rm -f conftest.val |
| 5837 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5838 | ac_cv_sizeof_long=0 |
| 5839 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5840 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5841 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 5842 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 5843 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5844 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5845 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5846 | |
| 5847 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5848 | echo "$as_me:$LINENO: checking for void *" >&5 |
| 5849 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
| 5850 | if test "${ac_cv_type_void_p+set}" = set; then |
| 5851 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5852 | else |
| 5853 | cat >conftest.$ac_ext <<_ACEOF |
| 5854 | #line $LINENO "configure" |
| 5855 | #include "confdefs.h" |
| 5856 | $ac_includes_default |
| 5857 | #ifdef F77_DUMMY_MAIN |
| 5858 | # ifdef __cplusplus |
| 5859 | extern "C" |
| 5860 | # endif |
| 5861 | int F77_DUMMY_MAIN() { return 1; } |
| 5862 | #endif |
| 5863 | int |
| 5864 | main () |
| 5865 | { |
| 5866 | if ((void * *) 0) |
| 5867 | return 0; |
| 5868 | if (sizeof (void *)) |
| 5869 | return 0; |
| 5870 | ; |
| 5871 | return 0; |
| 5872 | } |
| 5873 | _ACEOF |
| 5874 | rm -f conftest.$ac_objext |
| 5875 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5876 | (eval $ac_compile) 2>&5 |
| 5877 | ac_status=$? |
| 5878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5879 | (exit $ac_status); } && |
| 5880 | { ac_try='test -s conftest.$ac_objext' |
| 5881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5882 | (eval $ac_try) 2>&5 |
| 5883 | ac_status=$? |
| 5884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5885 | (exit $ac_status); }; }; then |
| 5886 | ac_cv_type_void_p=yes |
| 5887 | else |
| 5888 | echo "$as_me: failed program was:" >&5 |
| 5889 | cat conftest.$ac_ext >&5 |
| 5890 | ac_cv_type_void_p=no |
| 5891 | fi |
| 5892 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5893 | fi |
| 5894 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 5895 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
| 5896 | |
| 5897 | echo "$as_me:$LINENO: checking size of void *" >&5 |
| 5898 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
| 5899 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 5900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5901 | else |
| 5902 | if test "$ac_cv_type_void_p" = yes; then |
| 5903 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5904 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5905 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5906 | # This bug is HP SR number 8606223364. |
| 5907 | if test "$cross_compiling" = yes; then |
| 5908 | # Depending upon the size, compute the lo and hi bounds. |
| 5909 | cat >conftest.$ac_ext <<_ACEOF |
| 5910 | #line $LINENO "configure" |
| 5911 | #include "confdefs.h" |
| 5912 | $ac_includes_default |
| 5913 | #ifdef F77_DUMMY_MAIN |
| 5914 | # ifdef __cplusplus |
| 5915 | extern "C" |
| 5916 | # endif |
| 5917 | int F77_DUMMY_MAIN() { return 1; } |
| 5918 | #endif |
| 5919 | int |
| 5920 | main () |
| 5921 | { |
| 5922 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
| 5923 | test_array [0] = 0 |
| 5924 | |
| 5925 | ; |
| 5926 | return 0; |
| 5927 | } |
| 5928 | _ACEOF |
| 5929 | rm -f conftest.$ac_objext |
| 5930 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5931 | (eval $ac_compile) 2>&5 |
| 5932 | ac_status=$? |
| 5933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5934 | (exit $ac_status); } && |
| 5935 | { ac_try='test -s conftest.$ac_objext' |
| 5936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5937 | (eval $ac_try) 2>&5 |
| 5938 | ac_status=$? |
| 5939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5940 | (exit $ac_status); }; }; then |
| 5941 | ac_lo=0 ac_mid=0 |
| 5942 | while :; do |
| 5943 | cat >conftest.$ac_ext <<_ACEOF |
| 5944 | #line $LINENO "configure" |
| 5945 | #include "confdefs.h" |
| 5946 | $ac_includes_default |
| 5947 | #ifdef F77_DUMMY_MAIN |
| 5948 | # ifdef __cplusplus |
| 5949 | extern "C" |
| 5950 | # endif |
| 5951 | int F77_DUMMY_MAIN() { return 1; } |
| 5952 | #endif |
| 5953 | int |
| 5954 | main () |
| 5955 | { |
| 5956 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 5957 | test_array [0] = 0 |
| 5958 | |
| 5959 | ; |
| 5960 | return 0; |
| 5961 | } |
| 5962 | _ACEOF |
| 5963 | rm -f conftest.$ac_objext |
| 5964 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5965 | (eval $ac_compile) 2>&5 |
| 5966 | ac_status=$? |
| 5967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5968 | (exit $ac_status); } && |
| 5969 | { ac_try='test -s conftest.$ac_objext' |
| 5970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5971 | (eval $ac_try) 2>&5 |
| 5972 | ac_status=$? |
| 5973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5974 | (exit $ac_status); }; }; then |
| 5975 | ac_hi=$ac_mid; break |
| 5976 | else |
| 5977 | echo "$as_me: failed program was:" >&5 |
| 5978 | cat conftest.$ac_ext >&5 |
| 5979 | ac_lo=`expr $ac_mid + 1` |
| 5980 | if test $ac_lo -le $ac_mid; then |
| 5981 | ac_lo= ac_hi= |
| 5982 | break |
| 5983 | fi |
| 5984 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5985 | fi |
| 5986 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5987 | done |
| 5988 | else |
| 5989 | echo "$as_me: failed program was:" >&5 |
| 5990 | cat conftest.$ac_ext >&5 |
| 5991 | cat >conftest.$ac_ext <<_ACEOF |
| 5992 | #line $LINENO "configure" |
| 5993 | #include "confdefs.h" |
| 5994 | $ac_includes_default |
| 5995 | #ifdef F77_DUMMY_MAIN |
| 5996 | # ifdef __cplusplus |
| 5997 | extern "C" |
| 5998 | # endif |
| 5999 | int F77_DUMMY_MAIN() { return 1; } |
| 6000 | #endif |
| 6001 | int |
| 6002 | main () |
| 6003 | { |
| 6004 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
| 6005 | test_array [0] = 0 |
| 6006 | |
| 6007 | ; |
| 6008 | return 0; |
| 6009 | } |
| 6010 | _ACEOF |
| 6011 | rm -f conftest.$ac_objext |
| 6012 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6013 | (eval $ac_compile) 2>&5 |
| 6014 | ac_status=$? |
| 6015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6016 | (exit $ac_status); } && |
| 6017 | { ac_try='test -s conftest.$ac_objext' |
| 6018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6019 | (eval $ac_try) 2>&5 |
| 6020 | ac_status=$? |
| 6021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6022 | (exit $ac_status); }; }; then |
| 6023 | ac_hi=-1 ac_mid=-1 |
| 6024 | while :; do |
| 6025 | cat >conftest.$ac_ext <<_ACEOF |
| 6026 | #line $LINENO "configure" |
| 6027 | #include "confdefs.h" |
| 6028 | $ac_includes_default |
| 6029 | #ifdef F77_DUMMY_MAIN |
| 6030 | # ifdef __cplusplus |
| 6031 | extern "C" |
| 6032 | # endif |
| 6033 | int F77_DUMMY_MAIN() { return 1; } |
| 6034 | #endif |
| 6035 | int |
| 6036 | main () |
| 6037 | { |
| 6038 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
| 6039 | test_array [0] = 0 |
| 6040 | |
| 6041 | ; |
| 6042 | return 0; |
| 6043 | } |
| 6044 | _ACEOF |
| 6045 | rm -f conftest.$ac_objext |
| 6046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6047 | (eval $ac_compile) 2>&5 |
| 6048 | ac_status=$? |
| 6049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6050 | (exit $ac_status); } && |
| 6051 | { ac_try='test -s conftest.$ac_objext' |
| 6052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6053 | (eval $ac_try) 2>&5 |
| 6054 | ac_status=$? |
| 6055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6056 | (exit $ac_status); }; }; then |
| 6057 | ac_lo=$ac_mid; break |
| 6058 | else |
| 6059 | echo "$as_me: failed program was:" >&5 |
| 6060 | cat conftest.$ac_ext >&5 |
| 6061 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6062 | if test $ac_mid -le $ac_hi; then |
| 6063 | ac_lo= ac_hi= |
| 6064 | break |
| 6065 | fi |
| 6066 | ac_mid=`expr 2 '*' $ac_mid` |
| 6067 | fi |
| 6068 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6069 | done |
| 6070 | else |
| 6071 | echo "$as_me: failed program was:" >&5 |
| 6072 | cat conftest.$ac_ext >&5 |
| 6073 | ac_lo= ac_hi= |
| 6074 | fi |
| 6075 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6076 | fi |
| 6077 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6078 | # Binary search between lo and hi bounds. |
| 6079 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6080 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6081 | cat >conftest.$ac_ext <<_ACEOF |
| 6082 | #line $LINENO "configure" |
| 6083 | #include "confdefs.h" |
| 6084 | $ac_includes_default |
| 6085 | #ifdef F77_DUMMY_MAIN |
| 6086 | # ifdef __cplusplus |
| 6087 | extern "C" |
| 6088 | # endif |
| 6089 | int F77_DUMMY_MAIN() { return 1; } |
| 6090 | #endif |
| 6091 | int |
| 6092 | main () |
| 6093 | { |
| 6094 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 6095 | test_array [0] = 0 |
| 6096 | |
| 6097 | ; |
| 6098 | return 0; |
| 6099 | } |
| 6100 | _ACEOF |
| 6101 | rm -f conftest.$ac_objext |
| 6102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6103 | (eval $ac_compile) 2>&5 |
| 6104 | ac_status=$? |
| 6105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6106 | (exit $ac_status); } && |
| 6107 | { ac_try='test -s conftest.$ac_objext' |
| 6108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6109 | (eval $ac_try) 2>&5 |
| 6110 | ac_status=$? |
| 6111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6112 | (exit $ac_status); }; }; then |
| 6113 | ac_hi=$ac_mid |
| 6114 | else |
| 6115 | echo "$as_me: failed program was:" >&5 |
| 6116 | cat conftest.$ac_ext >&5 |
| 6117 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6118 | fi |
| 6119 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6120 | done |
| 6121 | case $ac_lo in |
| 6122 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
| 6123 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 |
| 6124 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} |
| 6125 | { (exit 1); exit 1; }; } ;; |
| 6126 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6127 | else |
| 6128 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6129 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6130 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6131 | { (exit 1); exit 1; }; } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6132 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6133 | cat >conftest.$ac_ext <<_ACEOF |
| 6134 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6135 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6136 | $ac_includes_default |
| 6137 | long longval () { return (long) (sizeof (void *)); } |
| 6138 | unsigned long ulongval () { return (long) (sizeof (void *)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6139 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6140 | #include <stdlib.h> |
| 6141 | #ifdef F77_DUMMY_MAIN |
| 6142 | # ifdef __cplusplus |
| 6143 | extern "C" |
| 6144 | # endif |
| 6145 | int F77_DUMMY_MAIN() { return 1; } |
| 6146 | #endif |
| 6147 | int |
| 6148 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6149 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6150 | |
| 6151 | FILE *f = fopen ("conftest.val", "w"); |
| 6152 | if (! f) |
| 6153 | exit (1); |
| 6154 | if (((long) (sizeof (void *))) < 0) |
| 6155 | { |
| 6156 | long i = longval (); |
| 6157 | if (i != ((long) (sizeof (void *)))) |
| 6158 | exit (1); |
| 6159 | fprintf (f, "%ld\n", i); |
| 6160 | } |
| 6161 | else |
| 6162 | { |
| 6163 | unsigned long i = ulongval (); |
| 6164 | if (i != ((long) (sizeof (void *)))) |
| 6165 | exit (1); |
| 6166 | fprintf (f, "%lu\n", i); |
| 6167 | } |
| 6168 | exit (ferror (f) || fclose (f) != 0); |
| 6169 | |
| 6170 | ; |
| 6171 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6172 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6173 | _ACEOF |
| 6174 | rm -f conftest$ac_exeext |
| 6175 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6176 | (eval $ac_link) 2>&5 |
| 6177 | ac_status=$? |
| 6178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6179 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6181 | (eval $ac_try) 2>&5 |
| 6182 | ac_status=$? |
| 6183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6184 | (exit $ac_status); }; }; then |
| 6185 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6186 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6187 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6188 | echo "$as_me: failed program was:" >&5 |
| 6189 | cat conftest.$ac_ext >&5 |
| 6190 | ( exit $ac_status ) |
| 6191 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 |
| 6192 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} |
| 6193 | { (exit 1); exit 1; }; } |
| 6194 | fi |
| 6195 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6196 | fi |
| 6197 | fi |
| 6198 | rm -f conftest.val |
| 6199 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6200 | ac_cv_sizeof_void_p=0 |
| 6201 | fi |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6202 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6203 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 6204 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
| 6205 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6206 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6207 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6208 | |
| 6209 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6210 | echo "$as_me:$LINENO: checking for char" >&5 |
| 6211 | echo $ECHO_N "checking for char... $ECHO_C" >&6 |
| 6212 | if test "${ac_cv_type_char+set}" = set; then |
| 6213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6214 | else |
| 6215 | cat >conftest.$ac_ext <<_ACEOF |
| 6216 | #line $LINENO "configure" |
| 6217 | #include "confdefs.h" |
| 6218 | $ac_includes_default |
| 6219 | #ifdef F77_DUMMY_MAIN |
| 6220 | # ifdef __cplusplus |
| 6221 | extern "C" |
| 6222 | # endif |
| 6223 | int F77_DUMMY_MAIN() { return 1; } |
| 6224 | #endif |
| 6225 | int |
| 6226 | main () |
| 6227 | { |
| 6228 | if ((char *) 0) |
| 6229 | return 0; |
| 6230 | if (sizeof (char)) |
| 6231 | return 0; |
| 6232 | ; |
| 6233 | return 0; |
| 6234 | } |
| 6235 | _ACEOF |
| 6236 | rm -f conftest.$ac_objext |
| 6237 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6238 | (eval $ac_compile) 2>&5 |
| 6239 | ac_status=$? |
| 6240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6241 | (exit $ac_status); } && |
| 6242 | { ac_try='test -s conftest.$ac_objext' |
| 6243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6244 | (eval $ac_try) 2>&5 |
| 6245 | ac_status=$? |
| 6246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6247 | (exit $ac_status); }; }; then |
| 6248 | ac_cv_type_char=yes |
| 6249 | else |
| 6250 | echo "$as_me: failed program was:" >&5 |
| 6251 | cat conftest.$ac_ext >&5 |
| 6252 | ac_cv_type_char=no |
| 6253 | fi |
| 6254 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6255 | fi |
| 6256 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
| 6257 | echo "${ECHO_T}$ac_cv_type_char" >&6 |
| 6258 | |
| 6259 | echo "$as_me:$LINENO: checking size of char" >&5 |
| 6260 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 |
| 6261 | if test "${ac_cv_sizeof_char+set}" = set; then |
| 6262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6263 | else |
| 6264 | if test "$ac_cv_type_char" = yes; then |
| 6265 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6266 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6267 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6268 | # This bug is HP SR number 8606223364. |
| 6269 | if test "$cross_compiling" = yes; then |
| 6270 | # Depending upon the size, compute the lo and hi bounds. |
| 6271 | cat >conftest.$ac_ext <<_ACEOF |
| 6272 | #line $LINENO "configure" |
| 6273 | #include "confdefs.h" |
| 6274 | $ac_includes_default |
| 6275 | #ifdef F77_DUMMY_MAIN |
| 6276 | # ifdef __cplusplus |
| 6277 | extern "C" |
| 6278 | # endif |
| 6279 | int F77_DUMMY_MAIN() { return 1; } |
| 6280 | #endif |
| 6281 | int |
| 6282 | main () |
| 6283 | { |
| 6284 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
| 6285 | test_array [0] = 0 |
| 6286 | |
| 6287 | ; |
| 6288 | return 0; |
| 6289 | } |
| 6290 | _ACEOF |
| 6291 | rm -f conftest.$ac_objext |
| 6292 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6293 | (eval $ac_compile) 2>&5 |
| 6294 | ac_status=$? |
| 6295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6296 | (exit $ac_status); } && |
| 6297 | { ac_try='test -s conftest.$ac_objext' |
| 6298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6299 | (eval $ac_try) 2>&5 |
| 6300 | ac_status=$? |
| 6301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6302 | (exit $ac_status); }; }; then |
| 6303 | ac_lo=0 ac_mid=0 |
| 6304 | while :; do |
| 6305 | cat >conftest.$ac_ext <<_ACEOF |
| 6306 | #line $LINENO "configure" |
| 6307 | #include "confdefs.h" |
| 6308 | $ac_includes_default |
| 6309 | #ifdef F77_DUMMY_MAIN |
| 6310 | # ifdef __cplusplus |
| 6311 | extern "C" |
| 6312 | # endif |
| 6313 | int F77_DUMMY_MAIN() { return 1; } |
| 6314 | #endif |
| 6315 | int |
| 6316 | main () |
| 6317 | { |
| 6318 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 6319 | test_array [0] = 0 |
| 6320 | |
| 6321 | ; |
| 6322 | return 0; |
| 6323 | } |
| 6324 | _ACEOF |
| 6325 | rm -f conftest.$ac_objext |
| 6326 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6327 | (eval $ac_compile) 2>&5 |
| 6328 | ac_status=$? |
| 6329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6330 | (exit $ac_status); } && |
| 6331 | { ac_try='test -s conftest.$ac_objext' |
| 6332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6333 | (eval $ac_try) 2>&5 |
| 6334 | ac_status=$? |
| 6335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6336 | (exit $ac_status); }; }; then |
| 6337 | ac_hi=$ac_mid; break |
| 6338 | else |
| 6339 | echo "$as_me: failed program was:" >&5 |
| 6340 | cat conftest.$ac_ext >&5 |
| 6341 | ac_lo=`expr $ac_mid + 1` |
| 6342 | if test $ac_lo -le $ac_mid; then |
| 6343 | ac_lo= ac_hi= |
| 6344 | break |
| 6345 | fi |
| 6346 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6347 | fi |
| 6348 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6349 | done |
| 6350 | else |
| 6351 | echo "$as_me: failed program was:" >&5 |
| 6352 | cat conftest.$ac_ext >&5 |
| 6353 | cat >conftest.$ac_ext <<_ACEOF |
| 6354 | #line $LINENO "configure" |
| 6355 | #include "confdefs.h" |
| 6356 | $ac_includes_default |
| 6357 | #ifdef F77_DUMMY_MAIN |
| 6358 | # ifdef __cplusplus |
| 6359 | extern "C" |
| 6360 | # endif |
| 6361 | int F77_DUMMY_MAIN() { return 1; } |
| 6362 | #endif |
| 6363 | int |
| 6364 | main () |
| 6365 | { |
| 6366 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
| 6367 | test_array [0] = 0 |
| 6368 | |
| 6369 | ; |
| 6370 | return 0; |
| 6371 | } |
| 6372 | _ACEOF |
| 6373 | rm -f conftest.$ac_objext |
| 6374 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6375 | (eval $ac_compile) 2>&5 |
| 6376 | ac_status=$? |
| 6377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6378 | (exit $ac_status); } && |
| 6379 | { ac_try='test -s conftest.$ac_objext' |
| 6380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6381 | (eval $ac_try) 2>&5 |
| 6382 | ac_status=$? |
| 6383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6384 | (exit $ac_status); }; }; then |
| 6385 | ac_hi=-1 ac_mid=-1 |
| 6386 | while :; do |
| 6387 | cat >conftest.$ac_ext <<_ACEOF |
| 6388 | #line $LINENO "configure" |
| 6389 | #include "confdefs.h" |
| 6390 | $ac_includes_default |
| 6391 | #ifdef F77_DUMMY_MAIN |
| 6392 | # ifdef __cplusplus |
| 6393 | extern "C" |
| 6394 | # endif |
| 6395 | int F77_DUMMY_MAIN() { return 1; } |
| 6396 | #endif |
| 6397 | int |
| 6398 | main () |
| 6399 | { |
| 6400 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
| 6401 | test_array [0] = 0 |
| 6402 | |
| 6403 | ; |
| 6404 | return 0; |
| 6405 | } |
| 6406 | _ACEOF |
| 6407 | rm -f conftest.$ac_objext |
| 6408 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6409 | (eval $ac_compile) 2>&5 |
| 6410 | ac_status=$? |
| 6411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6412 | (exit $ac_status); } && |
| 6413 | { ac_try='test -s conftest.$ac_objext' |
| 6414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6415 | (eval $ac_try) 2>&5 |
| 6416 | ac_status=$? |
| 6417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6418 | (exit $ac_status); }; }; then |
| 6419 | ac_lo=$ac_mid; break |
| 6420 | else |
| 6421 | echo "$as_me: failed program was:" >&5 |
| 6422 | cat conftest.$ac_ext >&5 |
| 6423 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6424 | if test $ac_mid -le $ac_hi; then |
| 6425 | ac_lo= ac_hi= |
| 6426 | break |
| 6427 | fi |
| 6428 | ac_mid=`expr 2 '*' $ac_mid` |
| 6429 | fi |
| 6430 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6431 | done |
| 6432 | else |
| 6433 | echo "$as_me: failed program was:" >&5 |
| 6434 | cat conftest.$ac_ext >&5 |
| 6435 | ac_lo= ac_hi= |
| 6436 | fi |
| 6437 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6438 | fi |
| 6439 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6440 | # Binary search between lo and hi bounds. |
| 6441 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6442 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6443 | cat >conftest.$ac_ext <<_ACEOF |
| 6444 | #line $LINENO "configure" |
| 6445 | #include "confdefs.h" |
| 6446 | $ac_includes_default |
| 6447 | #ifdef F77_DUMMY_MAIN |
| 6448 | # ifdef __cplusplus |
| 6449 | extern "C" |
| 6450 | # endif |
| 6451 | int F77_DUMMY_MAIN() { return 1; } |
| 6452 | #endif |
| 6453 | int |
| 6454 | main () |
| 6455 | { |
| 6456 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 6457 | test_array [0] = 0 |
| 6458 | |
| 6459 | ; |
| 6460 | return 0; |
| 6461 | } |
| 6462 | _ACEOF |
| 6463 | rm -f conftest.$ac_objext |
| 6464 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6465 | (eval $ac_compile) 2>&5 |
| 6466 | ac_status=$? |
| 6467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6468 | (exit $ac_status); } && |
| 6469 | { ac_try='test -s conftest.$ac_objext' |
| 6470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6471 | (eval $ac_try) 2>&5 |
| 6472 | ac_status=$? |
| 6473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6474 | (exit $ac_status); }; }; then |
| 6475 | ac_hi=$ac_mid |
| 6476 | else |
| 6477 | echo "$as_me: failed program was:" >&5 |
| 6478 | cat conftest.$ac_ext >&5 |
| 6479 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6480 | fi |
| 6481 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6482 | done |
| 6483 | case $ac_lo in |
| 6484 | ?*) ac_cv_sizeof_char=$ac_lo;; |
| 6485 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 |
| 6486 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} |
| 6487 | { (exit 1); exit 1; }; } ;; |
| 6488 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6489 | else |
| 6490 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6491 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6492 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6493 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6494 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6495 | cat >conftest.$ac_ext <<_ACEOF |
| 6496 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6497 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6498 | $ac_includes_default |
| 6499 | long longval () { return (long) (sizeof (char)); } |
| 6500 | unsigned long ulongval () { return (long) (sizeof (char)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6501 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6502 | #include <stdlib.h> |
| 6503 | #ifdef F77_DUMMY_MAIN |
| 6504 | # ifdef __cplusplus |
| 6505 | extern "C" |
| 6506 | # endif |
| 6507 | int F77_DUMMY_MAIN() { return 1; } |
| 6508 | #endif |
| 6509 | int |
| 6510 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6511 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6512 | |
| 6513 | FILE *f = fopen ("conftest.val", "w"); |
| 6514 | if (! f) |
| 6515 | exit (1); |
| 6516 | if (((long) (sizeof (char))) < 0) |
| 6517 | { |
| 6518 | long i = longval (); |
| 6519 | if (i != ((long) (sizeof (char)))) |
| 6520 | exit (1); |
| 6521 | fprintf (f, "%ld\n", i); |
| 6522 | } |
| 6523 | else |
| 6524 | { |
| 6525 | unsigned long i = ulongval (); |
| 6526 | if (i != ((long) (sizeof (char)))) |
| 6527 | exit (1); |
| 6528 | fprintf (f, "%lu\n", i); |
| 6529 | } |
| 6530 | exit (ferror (f) || fclose (f) != 0); |
| 6531 | |
| 6532 | ; |
| 6533 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6534 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6535 | _ACEOF |
| 6536 | rm -f conftest$ac_exeext |
| 6537 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6538 | (eval $ac_link) 2>&5 |
| 6539 | ac_status=$? |
| 6540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6541 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6543 | (eval $ac_try) 2>&5 |
| 6544 | ac_status=$? |
| 6545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6546 | (exit $ac_status); }; }; then |
| 6547 | ac_cv_sizeof_char=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6548 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6549 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6550 | echo "$as_me: failed program was:" >&5 |
| 6551 | cat conftest.$ac_ext >&5 |
| 6552 | ( exit $ac_status ) |
| 6553 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 |
| 6554 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} |
| 6555 | { (exit 1); exit 1; }; } |
| 6556 | fi |
| 6557 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6558 | fi |
| 6559 | fi |
| 6560 | rm -f conftest.val |
| 6561 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6562 | ac_cv_sizeof_char=0 |
| 6563 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6564 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6565 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
| 6566 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 |
| 6567 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6568 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6569 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6570 | |
| 6571 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6572 | echo "$as_me:$LINENO: checking for short" >&5 |
| 6573 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
| 6574 | if test "${ac_cv_type_short+set}" = set; then |
| 6575 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6576 | else |
| 6577 | cat >conftest.$ac_ext <<_ACEOF |
| 6578 | #line $LINENO "configure" |
| 6579 | #include "confdefs.h" |
| 6580 | $ac_includes_default |
| 6581 | #ifdef F77_DUMMY_MAIN |
| 6582 | # ifdef __cplusplus |
| 6583 | extern "C" |
| 6584 | # endif |
| 6585 | int F77_DUMMY_MAIN() { return 1; } |
| 6586 | #endif |
| 6587 | int |
| 6588 | main () |
| 6589 | { |
| 6590 | if ((short *) 0) |
| 6591 | return 0; |
| 6592 | if (sizeof (short)) |
| 6593 | return 0; |
| 6594 | ; |
| 6595 | return 0; |
| 6596 | } |
| 6597 | _ACEOF |
| 6598 | rm -f conftest.$ac_objext |
| 6599 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6600 | (eval $ac_compile) 2>&5 |
| 6601 | ac_status=$? |
| 6602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6603 | (exit $ac_status); } && |
| 6604 | { ac_try='test -s conftest.$ac_objext' |
| 6605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6606 | (eval $ac_try) 2>&5 |
| 6607 | ac_status=$? |
| 6608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6609 | (exit $ac_status); }; }; then |
| 6610 | ac_cv_type_short=yes |
| 6611 | else |
| 6612 | echo "$as_me: failed program was:" >&5 |
| 6613 | cat conftest.$ac_ext >&5 |
| 6614 | ac_cv_type_short=no |
| 6615 | fi |
| 6616 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6617 | fi |
| 6618 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 6619 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
| 6620 | |
| 6621 | echo "$as_me:$LINENO: checking size of short" >&5 |
| 6622 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
| 6623 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 6624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6625 | else |
| 6626 | if test "$ac_cv_type_short" = yes; then |
| 6627 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6628 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6629 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6630 | # This bug is HP SR number 8606223364. |
| 6631 | if test "$cross_compiling" = yes; then |
| 6632 | # Depending upon the size, compute the lo and hi bounds. |
| 6633 | cat >conftest.$ac_ext <<_ACEOF |
| 6634 | #line $LINENO "configure" |
| 6635 | #include "confdefs.h" |
| 6636 | $ac_includes_default |
| 6637 | #ifdef F77_DUMMY_MAIN |
| 6638 | # ifdef __cplusplus |
| 6639 | extern "C" |
| 6640 | # endif |
| 6641 | int F77_DUMMY_MAIN() { return 1; } |
| 6642 | #endif |
| 6643 | int |
| 6644 | main () |
| 6645 | { |
| 6646 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
| 6647 | test_array [0] = 0 |
| 6648 | |
| 6649 | ; |
| 6650 | return 0; |
| 6651 | } |
| 6652 | _ACEOF |
| 6653 | rm -f conftest.$ac_objext |
| 6654 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6655 | (eval $ac_compile) 2>&5 |
| 6656 | ac_status=$? |
| 6657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6658 | (exit $ac_status); } && |
| 6659 | { ac_try='test -s conftest.$ac_objext' |
| 6660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6661 | (eval $ac_try) 2>&5 |
| 6662 | ac_status=$? |
| 6663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6664 | (exit $ac_status); }; }; then |
| 6665 | ac_lo=0 ac_mid=0 |
| 6666 | while :; do |
| 6667 | cat >conftest.$ac_ext <<_ACEOF |
| 6668 | #line $LINENO "configure" |
| 6669 | #include "confdefs.h" |
| 6670 | $ac_includes_default |
| 6671 | #ifdef F77_DUMMY_MAIN |
| 6672 | # ifdef __cplusplus |
| 6673 | extern "C" |
| 6674 | # endif |
| 6675 | int F77_DUMMY_MAIN() { return 1; } |
| 6676 | #endif |
| 6677 | int |
| 6678 | main () |
| 6679 | { |
| 6680 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 6681 | test_array [0] = 0 |
| 6682 | |
| 6683 | ; |
| 6684 | return 0; |
| 6685 | } |
| 6686 | _ACEOF |
| 6687 | rm -f conftest.$ac_objext |
| 6688 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6689 | (eval $ac_compile) 2>&5 |
| 6690 | ac_status=$? |
| 6691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6692 | (exit $ac_status); } && |
| 6693 | { ac_try='test -s conftest.$ac_objext' |
| 6694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6695 | (eval $ac_try) 2>&5 |
| 6696 | ac_status=$? |
| 6697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6698 | (exit $ac_status); }; }; then |
| 6699 | ac_hi=$ac_mid; break |
| 6700 | else |
| 6701 | echo "$as_me: failed program was:" >&5 |
| 6702 | cat conftest.$ac_ext >&5 |
| 6703 | ac_lo=`expr $ac_mid + 1` |
| 6704 | if test $ac_lo -le $ac_mid; then |
| 6705 | ac_lo= ac_hi= |
| 6706 | break |
| 6707 | fi |
| 6708 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6709 | fi |
| 6710 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6711 | done |
| 6712 | else |
| 6713 | echo "$as_me: failed program was:" >&5 |
| 6714 | cat conftest.$ac_ext >&5 |
| 6715 | cat >conftest.$ac_ext <<_ACEOF |
| 6716 | #line $LINENO "configure" |
| 6717 | #include "confdefs.h" |
| 6718 | $ac_includes_default |
| 6719 | #ifdef F77_DUMMY_MAIN |
| 6720 | # ifdef __cplusplus |
| 6721 | extern "C" |
| 6722 | # endif |
| 6723 | int F77_DUMMY_MAIN() { return 1; } |
| 6724 | #endif |
| 6725 | int |
| 6726 | main () |
| 6727 | { |
| 6728 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
| 6729 | test_array [0] = 0 |
| 6730 | |
| 6731 | ; |
| 6732 | return 0; |
| 6733 | } |
| 6734 | _ACEOF |
| 6735 | rm -f conftest.$ac_objext |
| 6736 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6737 | (eval $ac_compile) 2>&5 |
| 6738 | ac_status=$? |
| 6739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6740 | (exit $ac_status); } && |
| 6741 | { ac_try='test -s conftest.$ac_objext' |
| 6742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6743 | (eval $ac_try) 2>&5 |
| 6744 | ac_status=$? |
| 6745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6746 | (exit $ac_status); }; }; then |
| 6747 | ac_hi=-1 ac_mid=-1 |
| 6748 | while :; do |
| 6749 | cat >conftest.$ac_ext <<_ACEOF |
| 6750 | #line $LINENO "configure" |
| 6751 | #include "confdefs.h" |
| 6752 | $ac_includes_default |
| 6753 | #ifdef F77_DUMMY_MAIN |
| 6754 | # ifdef __cplusplus |
| 6755 | extern "C" |
| 6756 | # endif |
| 6757 | int F77_DUMMY_MAIN() { return 1; } |
| 6758 | #endif |
| 6759 | int |
| 6760 | main () |
| 6761 | { |
| 6762 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
| 6763 | test_array [0] = 0 |
| 6764 | |
| 6765 | ; |
| 6766 | return 0; |
| 6767 | } |
| 6768 | _ACEOF |
| 6769 | rm -f conftest.$ac_objext |
| 6770 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6771 | (eval $ac_compile) 2>&5 |
| 6772 | ac_status=$? |
| 6773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6774 | (exit $ac_status); } && |
| 6775 | { ac_try='test -s conftest.$ac_objext' |
| 6776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6777 | (eval $ac_try) 2>&5 |
| 6778 | ac_status=$? |
| 6779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6780 | (exit $ac_status); }; }; then |
| 6781 | ac_lo=$ac_mid; break |
| 6782 | else |
| 6783 | echo "$as_me: failed program was:" >&5 |
| 6784 | cat conftest.$ac_ext >&5 |
| 6785 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6786 | if test $ac_mid -le $ac_hi; then |
| 6787 | ac_lo= ac_hi= |
| 6788 | break |
| 6789 | fi |
| 6790 | ac_mid=`expr 2 '*' $ac_mid` |
| 6791 | fi |
| 6792 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6793 | done |
| 6794 | else |
| 6795 | echo "$as_me: failed program was:" >&5 |
| 6796 | cat conftest.$ac_ext >&5 |
| 6797 | ac_lo= ac_hi= |
| 6798 | fi |
| 6799 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6800 | fi |
| 6801 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6802 | # Binary search between lo and hi bounds. |
| 6803 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6804 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6805 | cat >conftest.$ac_ext <<_ACEOF |
| 6806 | #line $LINENO "configure" |
| 6807 | #include "confdefs.h" |
| 6808 | $ac_includes_default |
| 6809 | #ifdef F77_DUMMY_MAIN |
| 6810 | # ifdef __cplusplus |
| 6811 | extern "C" |
| 6812 | # endif |
| 6813 | int F77_DUMMY_MAIN() { return 1; } |
| 6814 | #endif |
| 6815 | int |
| 6816 | main () |
| 6817 | { |
| 6818 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 6819 | test_array [0] = 0 |
| 6820 | |
| 6821 | ; |
| 6822 | return 0; |
| 6823 | } |
| 6824 | _ACEOF |
| 6825 | rm -f conftest.$ac_objext |
| 6826 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6827 | (eval $ac_compile) 2>&5 |
| 6828 | ac_status=$? |
| 6829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6830 | (exit $ac_status); } && |
| 6831 | { ac_try='test -s conftest.$ac_objext' |
| 6832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6833 | (eval $ac_try) 2>&5 |
| 6834 | ac_status=$? |
| 6835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6836 | (exit $ac_status); }; }; then |
| 6837 | ac_hi=$ac_mid |
| 6838 | else |
| 6839 | echo "$as_me: failed program was:" >&5 |
| 6840 | cat conftest.$ac_ext >&5 |
| 6841 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6842 | fi |
| 6843 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6844 | done |
| 6845 | case $ac_lo in |
| 6846 | ?*) ac_cv_sizeof_short=$ac_lo;; |
| 6847 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 |
| 6848 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} |
| 6849 | { (exit 1); exit 1; }; } ;; |
| 6850 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6851 | else |
| 6852 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6853 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6854 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6855 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6856 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6857 | cat >conftest.$ac_ext <<_ACEOF |
| 6858 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6859 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6860 | $ac_includes_default |
| 6861 | long longval () { return (long) (sizeof (short)); } |
| 6862 | unsigned long ulongval () { return (long) (sizeof (short)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6863 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6864 | #include <stdlib.h> |
| 6865 | #ifdef F77_DUMMY_MAIN |
| 6866 | # ifdef __cplusplus |
| 6867 | extern "C" |
| 6868 | # endif |
| 6869 | int F77_DUMMY_MAIN() { return 1; } |
| 6870 | #endif |
| 6871 | int |
| 6872 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6873 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6874 | |
| 6875 | FILE *f = fopen ("conftest.val", "w"); |
| 6876 | if (! f) |
| 6877 | exit (1); |
| 6878 | if (((long) (sizeof (short))) < 0) |
| 6879 | { |
| 6880 | long i = longval (); |
| 6881 | if (i != ((long) (sizeof (short)))) |
| 6882 | exit (1); |
| 6883 | fprintf (f, "%ld\n", i); |
| 6884 | } |
| 6885 | else |
| 6886 | { |
| 6887 | unsigned long i = ulongval (); |
| 6888 | if (i != ((long) (sizeof (short)))) |
| 6889 | exit (1); |
| 6890 | fprintf (f, "%lu\n", i); |
| 6891 | } |
| 6892 | exit (ferror (f) || fclose (f) != 0); |
| 6893 | |
| 6894 | ; |
| 6895 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6896 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6897 | _ACEOF |
| 6898 | rm -f conftest$ac_exeext |
| 6899 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6900 | (eval $ac_link) 2>&5 |
| 6901 | ac_status=$? |
| 6902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6903 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6905 | (eval $ac_try) 2>&5 |
| 6906 | ac_status=$? |
| 6907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6908 | (exit $ac_status); }; }; then |
| 6909 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6910 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6911 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6912 | echo "$as_me: failed program was:" >&5 |
| 6913 | cat conftest.$ac_ext >&5 |
| 6914 | ( exit $ac_status ) |
| 6915 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 |
| 6916 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} |
| 6917 | { (exit 1); exit 1; }; } |
| 6918 | fi |
| 6919 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6920 | fi |
| 6921 | fi |
| 6922 | rm -f conftest.val |
| 6923 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6924 | ac_cv_sizeof_short=0 |
| 6925 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6926 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6927 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 6928 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
| 6929 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6930 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6931 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6932 | |
| 6933 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6934 | echo "$as_me:$LINENO: checking for float" >&5 |
| 6935 | echo $ECHO_N "checking for float... $ECHO_C" >&6 |
| 6936 | if test "${ac_cv_type_float+set}" = set; then |
| 6937 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6938 | else |
| 6939 | cat >conftest.$ac_ext <<_ACEOF |
| 6940 | #line $LINENO "configure" |
| 6941 | #include "confdefs.h" |
| 6942 | $ac_includes_default |
| 6943 | #ifdef F77_DUMMY_MAIN |
| 6944 | # ifdef __cplusplus |
| 6945 | extern "C" |
| 6946 | # endif |
| 6947 | int F77_DUMMY_MAIN() { return 1; } |
| 6948 | #endif |
| 6949 | int |
| 6950 | main () |
| 6951 | { |
| 6952 | if ((float *) 0) |
| 6953 | return 0; |
| 6954 | if (sizeof (float)) |
| 6955 | return 0; |
| 6956 | ; |
| 6957 | return 0; |
| 6958 | } |
| 6959 | _ACEOF |
| 6960 | rm -f conftest.$ac_objext |
| 6961 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6962 | (eval $ac_compile) 2>&5 |
| 6963 | ac_status=$? |
| 6964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6965 | (exit $ac_status); } && |
| 6966 | { ac_try='test -s conftest.$ac_objext' |
| 6967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6968 | (eval $ac_try) 2>&5 |
| 6969 | ac_status=$? |
| 6970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6971 | (exit $ac_status); }; }; then |
| 6972 | ac_cv_type_float=yes |
| 6973 | else |
| 6974 | echo "$as_me: failed program was:" >&5 |
| 6975 | cat conftest.$ac_ext >&5 |
| 6976 | ac_cv_type_float=no |
| 6977 | fi |
| 6978 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6979 | fi |
| 6980 | echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 6981 | echo "${ECHO_T}$ac_cv_type_float" >&6 |
| 6982 | |
| 6983 | echo "$as_me:$LINENO: checking size of float" >&5 |
| 6984 | echo $ECHO_N "checking size of float... $ECHO_C" >&6 |
| 6985 | if test "${ac_cv_sizeof_float+set}" = set; then |
| 6986 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6987 | else |
| 6988 | if test "$ac_cv_type_float" = yes; then |
| 6989 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6990 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6991 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6992 | # This bug is HP SR number 8606223364. |
| 6993 | if test "$cross_compiling" = yes; then |
| 6994 | # Depending upon the size, compute the lo and hi bounds. |
| 6995 | cat >conftest.$ac_ext <<_ACEOF |
| 6996 | #line $LINENO "configure" |
| 6997 | #include "confdefs.h" |
| 6998 | $ac_includes_default |
| 6999 | #ifdef F77_DUMMY_MAIN |
| 7000 | # ifdef __cplusplus |
| 7001 | extern "C" |
| 7002 | # endif |
| 7003 | int F77_DUMMY_MAIN() { return 1; } |
| 7004 | #endif |
| 7005 | int |
| 7006 | main () |
| 7007 | { |
| 7008 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)]; |
| 7009 | test_array [0] = 0 |
| 7010 | |
| 7011 | ; |
| 7012 | return 0; |
| 7013 | } |
| 7014 | _ACEOF |
| 7015 | rm -f conftest.$ac_objext |
| 7016 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7017 | (eval $ac_compile) 2>&5 |
| 7018 | ac_status=$? |
| 7019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7020 | (exit $ac_status); } && |
| 7021 | { ac_try='test -s conftest.$ac_objext' |
| 7022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7023 | (eval $ac_try) 2>&5 |
| 7024 | ac_status=$? |
| 7025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7026 | (exit $ac_status); }; }; then |
| 7027 | ac_lo=0 ac_mid=0 |
| 7028 | while :; do |
| 7029 | cat >conftest.$ac_ext <<_ACEOF |
| 7030 | #line $LINENO "configure" |
| 7031 | #include "confdefs.h" |
| 7032 | $ac_includes_default |
| 7033 | #ifdef F77_DUMMY_MAIN |
| 7034 | # ifdef __cplusplus |
| 7035 | extern "C" |
| 7036 | # endif |
| 7037 | int F77_DUMMY_MAIN() { return 1; } |
| 7038 | #endif |
| 7039 | int |
| 7040 | main () |
| 7041 | { |
| 7042 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 7043 | test_array [0] = 0 |
| 7044 | |
| 7045 | ; |
| 7046 | return 0; |
| 7047 | } |
| 7048 | _ACEOF |
| 7049 | rm -f conftest.$ac_objext |
| 7050 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7051 | (eval $ac_compile) 2>&5 |
| 7052 | ac_status=$? |
| 7053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7054 | (exit $ac_status); } && |
| 7055 | { ac_try='test -s conftest.$ac_objext' |
| 7056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7057 | (eval $ac_try) 2>&5 |
| 7058 | ac_status=$? |
| 7059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7060 | (exit $ac_status); }; }; then |
| 7061 | ac_hi=$ac_mid; break |
| 7062 | else |
| 7063 | echo "$as_me: failed program was:" >&5 |
| 7064 | cat conftest.$ac_ext >&5 |
| 7065 | ac_lo=`expr $ac_mid + 1` |
| 7066 | if test $ac_lo -le $ac_mid; then |
| 7067 | ac_lo= ac_hi= |
| 7068 | break |
| 7069 | fi |
| 7070 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7071 | fi |
| 7072 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7073 | done |
| 7074 | else |
| 7075 | echo "$as_me: failed program was:" >&5 |
| 7076 | cat conftest.$ac_ext >&5 |
| 7077 | cat >conftest.$ac_ext <<_ACEOF |
| 7078 | #line $LINENO "configure" |
| 7079 | #include "confdefs.h" |
| 7080 | $ac_includes_default |
| 7081 | #ifdef F77_DUMMY_MAIN |
| 7082 | # ifdef __cplusplus |
| 7083 | extern "C" |
| 7084 | # endif |
| 7085 | int F77_DUMMY_MAIN() { return 1; } |
| 7086 | #endif |
| 7087 | int |
| 7088 | main () |
| 7089 | { |
| 7090 | static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)]; |
| 7091 | test_array [0] = 0 |
| 7092 | |
| 7093 | ; |
| 7094 | return 0; |
| 7095 | } |
| 7096 | _ACEOF |
| 7097 | rm -f conftest.$ac_objext |
| 7098 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7099 | (eval $ac_compile) 2>&5 |
| 7100 | ac_status=$? |
| 7101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7102 | (exit $ac_status); } && |
| 7103 | { ac_try='test -s conftest.$ac_objext' |
| 7104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7105 | (eval $ac_try) 2>&5 |
| 7106 | ac_status=$? |
| 7107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7108 | (exit $ac_status); }; }; then |
| 7109 | ac_hi=-1 ac_mid=-1 |
| 7110 | while :; do |
| 7111 | cat >conftest.$ac_ext <<_ACEOF |
| 7112 | #line $LINENO "configure" |
| 7113 | #include "confdefs.h" |
| 7114 | $ac_includes_default |
| 7115 | #ifdef F77_DUMMY_MAIN |
| 7116 | # ifdef __cplusplus |
| 7117 | extern "C" |
| 7118 | # endif |
| 7119 | int F77_DUMMY_MAIN() { return 1; } |
| 7120 | #endif |
| 7121 | int |
| 7122 | main () |
| 7123 | { |
| 7124 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)]; |
| 7125 | test_array [0] = 0 |
| 7126 | |
| 7127 | ; |
| 7128 | return 0; |
| 7129 | } |
| 7130 | _ACEOF |
| 7131 | rm -f conftest.$ac_objext |
| 7132 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7133 | (eval $ac_compile) 2>&5 |
| 7134 | ac_status=$? |
| 7135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7136 | (exit $ac_status); } && |
| 7137 | { ac_try='test -s conftest.$ac_objext' |
| 7138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7139 | (eval $ac_try) 2>&5 |
| 7140 | ac_status=$? |
| 7141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7142 | (exit $ac_status); }; }; then |
| 7143 | ac_lo=$ac_mid; break |
| 7144 | else |
| 7145 | echo "$as_me: failed program was:" >&5 |
| 7146 | cat conftest.$ac_ext >&5 |
| 7147 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7148 | if test $ac_mid -le $ac_hi; then |
| 7149 | ac_lo= ac_hi= |
| 7150 | break |
| 7151 | fi |
| 7152 | ac_mid=`expr 2 '*' $ac_mid` |
| 7153 | fi |
| 7154 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7155 | done |
| 7156 | else |
| 7157 | echo "$as_me: failed program was:" >&5 |
| 7158 | cat conftest.$ac_ext >&5 |
| 7159 | ac_lo= ac_hi= |
| 7160 | fi |
| 7161 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7162 | fi |
| 7163 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7164 | # Binary search between lo and hi bounds. |
| 7165 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7166 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7167 | cat >conftest.$ac_ext <<_ACEOF |
| 7168 | #line $LINENO "configure" |
| 7169 | #include "confdefs.h" |
| 7170 | $ac_includes_default |
| 7171 | #ifdef F77_DUMMY_MAIN |
| 7172 | # ifdef __cplusplus |
| 7173 | extern "C" |
| 7174 | # endif |
| 7175 | int F77_DUMMY_MAIN() { return 1; } |
| 7176 | #endif |
| 7177 | int |
| 7178 | main () |
| 7179 | { |
| 7180 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 7181 | test_array [0] = 0 |
| 7182 | |
| 7183 | ; |
| 7184 | return 0; |
| 7185 | } |
| 7186 | _ACEOF |
| 7187 | rm -f conftest.$ac_objext |
| 7188 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7189 | (eval $ac_compile) 2>&5 |
| 7190 | ac_status=$? |
| 7191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7192 | (exit $ac_status); } && |
| 7193 | { ac_try='test -s conftest.$ac_objext' |
| 7194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7195 | (eval $ac_try) 2>&5 |
| 7196 | ac_status=$? |
| 7197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7198 | (exit $ac_status); }; }; then |
| 7199 | ac_hi=$ac_mid |
| 7200 | else |
| 7201 | echo "$as_me: failed program was:" >&5 |
| 7202 | cat conftest.$ac_ext >&5 |
| 7203 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7204 | fi |
| 7205 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7206 | done |
| 7207 | case $ac_lo in |
| 7208 | ?*) ac_cv_sizeof_float=$ac_lo;; |
| 7209 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5 |
| 7210 | echo "$as_me: error: cannot compute sizeof (float), 77" >&2;} |
| 7211 | { (exit 1); exit 1; }; } ;; |
| 7212 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7213 | else |
| 7214 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7215 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7216 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7217 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7218 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7219 | cat >conftest.$ac_ext <<_ACEOF |
| 7220 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7221 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7222 | $ac_includes_default |
| 7223 | long longval () { return (long) (sizeof (float)); } |
| 7224 | unsigned long ulongval () { return (long) (sizeof (float)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7225 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7226 | #include <stdlib.h> |
| 7227 | #ifdef F77_DUMMY_MAIN |
| 7228 | # ifdef __cplusplus |
| 7229 | extern "C" |
| 7230 | # endif |
| 7231 | int F77_DUMMY_MAIN() { return 1; } |
| 7232 | #endif |
| 7233 | int |
| 7234 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7235 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7236 | |
| 7237 | FILE *f = fopen ("conftest.val", "w"); |
| 7238 | if (! f) |
| 7239 | exit (1); |
| 7240 | if (((long) (sizeof (float))) < 0) |
| 7241 | { |
| 7242 | long i = longval (); |
| 7243 | if (i != ((long) (sizeof (float)))) |
| 7244 | exit (1); |
| 7245 | fprintf (f, "%ld\n", i); |
| 7246 | } |
| 7247 | else |
| 7248 | { |
| 7249 | unsigned long i = ulongval (); |
| 7250 | if (i != ((long) (sizeof (float)))) |
| 7251 | exit (1); |
| 7252 | fprintf (f, "%lu\n", i); |
| 7253 | } |
| 7254 | exit (ferror (f) || fclose (f) != 0); |
| 7255 | |
| 7256 | ; |
| 7257 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7258 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7259 | _ACEOF |
| 7260 | rm -f conftest$ac_exeext |
| 7261 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7262 | (eval $ac_link) 2>&5 |
| 7263 | ac_status=$? |
| 7264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7265 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7267 | (eval $ac_try) 2>&5 |
| 7268 | ac_status=$? |
| 7269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7270 | (exit $ac_status); }; }; then |
| 7271 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7272 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7273 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7274 | echo "$as_me: failed program was:" >&5 |
| 7275 | cat conftest.$ac_ext >&5 |
| 7276 | ( exit $ac_status ) |
| 7277 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5 |
| 7278 | echo "$as_me: error: cannot compute sizeof (float), 77" >&2;} |
| 7279 | { (exit 1); exit 1; }; } |
| 7280 | fi |
| 7281 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7282 | fi |
| 7283 | fi |
| 7284 | rm -f conftest.val |
| 7285 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7286 | ac_cv_sizeof_float=0 |
| 7287 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7288 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7289 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 7290 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6 |
| 7291 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7292 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7293 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7294 | |
| 7295 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7296 | echo "$as_me:$LINENO: checking for double" >&5 |
| 7297 | echo $ECHO_N "checking for double... $ECHO_C" >&6 |
| 7298 | if test "${ac_cv_type_double+set}" = set; then |
| 7299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7300 | else |
| 7301 | cat >conftest.$ac_ext <<_ACEOF |
| 7302 | #line $LINENO "configure" |
| 7303 | #include "confdefs.h" |
| 7304 | $ac_includes_default |
| 7305 | #ifdef F77_DUMMY_MAIN |
| 7306 | # ifdef __cplusplus |
| 7307 | extern "C" |
| 7308 | # endif |
| 7309 | int F77_DUMMY_MAIN() { return 1; } |
| 7310 | #endif |
| 7311 | int |
| 7312 | main () |
| 7313 | { |
| 7314 | if ((double *) 0) |
| 7315 | return 0; |
| 7316 | if (sizeof (double)) |
| 7317 | return 0; |
| 7318 | ; |
| 7319 | return 0; |
| 7320 | } |
| 7321 | _ACEOF |
| 7322 | rm -f conftest.$ac_objext |
| 7323 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7324 | (eval $ac_compile) 2>&5 |
| 7325 | ac_status=$? |
| 7326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7327 | (exit $ac_status); } && |
| 7328 | { ac_try='test -s conftest.$ac_objext' |
| 7329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7330 | (eval $ac_try) 2>&5 |
| 7331 | ac_status=$? |
| 7332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7333 | (exit $ac_status); }; }; then |
| 7334 | ac_cv_type_double=yes |
| 7335 | else |
| 7336 | echo "$as_me: failed program was:" >&5 |
| 7337 | cat conftest.$ac_ext >&5 |
| 7338 | ac_cv_type_double=no |
| 7339 | fi |
| 7340 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7341 | fi |
| 7342 | echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 7343 | echo "${ECHO_T}$ac_cv_type_double" >&6 |
| 7344 | |
| 7345 | echo "$as_me:$LINENO: checking size of double" >&5 |
| 7346 | echo $ECHO_N "checking size of double... $ECHO_C" >&6 |
| 7347 | if test "${ac_cv_sizeof_double+set}" = set; then |
| 7348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7349 | else |
| 7350 | if test "$ac_cv_type_double" = yes; then |
| 7351 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7352 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7353 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7354 | # This bug is HP SR number 8606223364. |
| 7355 | if test "$cross_compiling" = yes; then |
| 7356 | # Depending upon the size, compute the lo and hi bounds. |
| 7357 | cat >conftest.$ac_ext <<_ACEOF |
| 7358 | #line $LINENO "configure" |
| 7359 | #include "confdefs.h" |
| 7360 | $ac_includes_default |
| 7361 | #ifdef F77_DUMMY_MAIN |
| 7362 | # ifdef __cplusplus |
| 7363 | extern "C" |
| 7364 | # endif |
| 7365 | int F77_DUMMY_MAIN() { return 1; } |
| 7366 | #endif |
| 7367 | int |
| 7368 | main () |
| 7369 | { |
| 7370 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)]; |
| 7371 | test_array [0] = 0 |
| 7372 | |
| 7373 | ; |
| 7374 | return 0; |
| 7375 | } |
| 7376 | _ACEOF |
| 7377 | rm -f conftest.$ac_objext |
| 7378 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7379 | (eval $ac_compile) 2>&5 |
| 7380 | ac_status=$? |
| 7381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7382 | (exit $ac_status); } && |
| 7383 | { ac_try='test -s conftest.$ac_objext' |
| 7384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7385 | (eval $ac_try) 2>&5 |
| 7386 | ac_status=$? |
| 7387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7388 | (exit $ac_status); }; }; then |
| 7389 | ac_lo=0 ac_mid=0 |
| 7390 | while :; do |
| 7391 | cat >conftest.$ac_ext <<_ACEOF |
| 7392 | #line $LINENO "configure" |
| 7393 | #include "confdefs.h" |
| 7394 | $ac_includes_default |
| 7395 | #ifdef F77_DUMMY_MAIN |
| 7396 | # ifdef __cplusplus |
| 7397 | extern "C" |
| 7398 | # endif |
| 7399 | int F77_DUMMY_MAIN() { return 1; } |
| 7400 | #endif |
| 7401 | int |
| 7402 | main () |
| 7403 | { |
| 7404 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 7405 | test_array [0] = 0 |
| 7406 | |
| 7407 | ; |
| 7408 | return 0; |
| 7409 | } |
| 7410 | _ACEOF |
| 7411 | rm -f conftest.$ac_objext |
| 7412 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7413 | (eval $ac_compile) 2>&5 |
| 7414 | ac_status=$? |
| 7415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7416 | (exit $ac_status); } && |
| 7417 | { ac_try='test -s conftest.$ac_objext' |
| 7418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7419 | (eval $ac_try) 2>&5 |
| 7420 | ac_status=$? |
| 7421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7422 | (exit $ac_status); }; }; then |
| 7423 | ac_hi=$ac_mid; break |
| 7424 | else |
| 7425 | echo "$as_me: failed program was:" >&5 |
| 7426 | cat conftest.$ac_ext >&5 |
| 7427 | ac_lo=`expr $ac_mid + 1` |
| 7428 | if test $ac_lo -le $ac_mid; then |
| 7429 | ac_lo= ac_hi= |
| 7430 | break |
| 7431 | fi |
| 7432 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7433 | fi |
| 7434 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7435 | done |
| 7436 | else |
| 7437 | echo "$as_me: failed program was:" >&5 |
| 7438 | cat conftest.$ac_ext >&5 |
| 7439 | cat >conftest.$ac_ext <<_ACEOF |
| 7440 | #line $LINENO "configure" |
| 7441 | #include "confdefs.h" |
| 7442 | $ac_includes_default |
| 7443 | #ifdef F77_DUMMY_MAIN |
| 7444 | # ifdef __cplusplus |
| 7445 | extern "C" |
| 7446 | # endif |
| 7447 | int F77_DUMMY_MAIN() { return 1; } |
| 7448 | #endif |
| 7449 | int |
| 7450 | main () |
| 7451 | { |
| 7452 | static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)]; |
| 7453 | test_array [0] = 0 |
| 7454 | |
| 7455 | ; |
| 7456 | return 0; |
| 7457 | } |
| 7458 | _ACEOF |
| 7459 | rm -f conftest.$ac_objext |
| 7460 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7461 | (eval $ac_compile) 2>&5 |
| 7462 | ac_status=$? |
| 7463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7464 | (exit $ac_status); } && |
| 7465 | { ac_try='test -s conftest.$ac_objext' |
| 7466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7467 | (eval $ac_try) 2>&5 |
| 7468 | ac_status=$? |
| 7469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7470 | (exit $ac_status); }; }; then |
| 7471 | ac_hi=-1 ac_mid=-1 |
| 7472 | while :; do |
| 7473 | cat >conftest.$ac_ext <<_ACEOF |
| 7474 | #line $LINENO "configure" |
| 7475 | #include "confdefs.h" |
| 7476 | $ac_includes_default |
| 7477 | #ifdef F77_DUMMY_MAIN |
| 7478 | # ifdef __cplusplus |
| 7479 | extern "C" |
| 7480 | # endif |
| 7481 | int F77_DUMMY_MAIN() { return 1; } |
| 7482 | #endif |
| 7483 | int |
| 7484 | main () |
| 7485 | { |
| 7486 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)]; |
| 7487 | test_array [0] = 0 |
| 7488 | |
| 7489 | ; |
| 7490 | return 0; |
| 7491 | } |
| 7492 | _ACEOF |
| 7493 | rm -f conftest.$ac_objext |
| 7494 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7495 | (eval $ac_compile) 2>&5 |
| 7496 | ac_status=$? |
| 7497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7498 | (exit $ac_status); } && |
| 7499 | { ac_try='test -s conftest.$ac_objext' |
| 7500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7501 | (eval $ac_try) 2>&5 |
| 7502 | ac_status=$? |
| 7503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7504 | (exit $ac_status); }; }; then |
| 7505 | ac_lo=$ac_mid; break |
| 7506 | else |
| 7507 | echo "$as_me: failed program was:" >&5 |
| 7508 | cat conftest.$ac_ext >&5 |
| 7509 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7510 | if test $ac_mid -le $ac_hi; then |
| 7511 | ac_lo= ac_hi= |
| 7512 | break |
| 7513 | fi |
| 7514 | ac_mid=`expr 2 '*' $ac_mid` |
| 7515 | fi |
| 7516 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7517 | done |
| 7518 | else |
| 7519 | echo "$as_me: failed program was:" >&5 |
| 7520 | cat conftest.$ac_ext >&5 |
| 7521 | ac_lo= ac_hi= |
| 7522 | fi |
| 7523 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7524 | fi |
| 7525 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7526 | # Binary search between lo and hi bounds. |
| 7527 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7528 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7529 | cat >conftest.$ac_ext <<_ACEOF |
| 7530 | #line $LINENO "configure" |
| 7531 | #include "confdefs.h" |
| 7532 | $ac_includes_default |
| 7533 | #ifdef F77_DUMMY_MAIN |
| 7534 | # ifdef __cplusplus |
| 7535 | extern "C" |
| 7536 | # endif |
| 7537 | int F77_DUMMY_MAIN() { return 1; } |
| 7538 | #endif |
| 7539 | int |
| 7540 | main () |
| 7541 | { |
| 7542 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 7543 | test_array [0] = 0 |
| 7544 | |
| 7545 | ; |
| 7546 | return 0; |
| 7547 | } |
| 7548 | _ACEOF |
| 7549 | rm -f conftest.$ac_objext |
| 7550 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7551 | (eval $ac_compile) 2>&5 |
| 7552 | ac_status=$? |
| 7553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7554 | (exit $ac_status); } && |
| 7555 | { ac_try='test -s conftest.$ac_objext' |
| 7556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7557 | (eval $ac_try) 2>&5 |
| 7558 | ac_status=$? |
| 7559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7560 | (exit $ac_status); }; }; then |
| 7561 | ac_hi=$ac_mid |
| 7562 | else |
| 7563 | echo "$as_me: failed program was:" >&5 |
| 7564 | cat conftest.$ac_ext >&5 |
| 7565 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7566 | fi |
| 7567 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7568 | done |
| 7569 | case $ac_lo in |
| 7570 | ?*) ac_cv_sizeof_double=$ac_lo;; |
| 7571 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5 |
| 7572 | echo "$as_me: error: cannot compute sizeof (double), 77" >&2;} |
| 7573 | { (exit 1); exit 1; }; } ;; |
| 7574 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7575 | else |
| 7576 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7577 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7578 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7579 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7580 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7581 | cat >conftest.$ac_ext <<_ACEOF |
| 7582 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7583 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7584 | $ac_includes_default |
| 7585 | long longval () { return (long) (sizeof (double)); } |
| 7586 | unsigned long ulongval () { return (long) (sizeof (double)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7587 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7588 | #include <stdlib.h> |
| 7589 | #ifdef F77_DUMMY_MAIN |
| 7590 | # ifdef __cplusplus |
| 7591 | extern "C" |
| 7592 | # endif |
| 7593 | int F77_DUMMY_MAIN() { return 1; } |
| 7594 | #endif |
| 7595 | int |
| 7596 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7597 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7598 | |
| 7599 | FILE *f = fopen ("conftest.val", "w"); |
| 7600 | if (! f) |
| 7601 | exit (1); |
| 7602 | if (((long) (sizeof (double))) < 0) |
| 7603 | { |
| 7604 | long i = longval (); |
| 7605 | if (i != ((long) (sizeof (double)))) |
| 7606 | exit (1); |
| 7607 | fprintf (f, "%ld\n", i); |
| 7608 | } |
| 7609 | else |
| 7610 | { |
| 7611 | unsigned long i = ulongval (); |
| 7612 | if (i != ((long) (sizeof (double)))) |
| 7613 | exit (1); |
| 7614 | fprintf (f, "%lu\n", i); |
| 7615 | } |
| 7616 | exit (ferror (f) || fclose (f) != 0); |
| 7617 | |
| 7618 | ; |
| 7619 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7620 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7621 | _ACEOF |
| 7622 | rm -f conftest$ac_exeext |
| 7623 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7624 | (eval $ac_link) 2>&5 |
| 7625 | ac_status=$? |
| 7626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7627 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7629 | (eval $ac_try) 2>&5 |
| 7630 | ac_status=$? |
| 7631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7632 | (exit $ac_status); }; }; then |
| 7633 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7634 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7635 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7636 | echo "$as_me: failed program was:" >&5 |
| 7637 | cat conftest.$ac_ext >&5 |
| 7638 | ( exit $ac_status ) |
| 7639 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5 |
| 7640 | echo "$as_me: error: cannot compute sizeof (double), 77" >&2;} |
| 7641 | { (exit 1); exit 1; }; } |
| 7642 | fi |
| 7643 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7644 | fi |
| 7645 | fi |
| 7646 | rm -f conftest.val |
| 7647 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7648 | ac_cv_sizeof_double=0 |
| 7649 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7650 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7651 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 7652 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6 |
| 7653 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7654 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7655 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7656 | |
| 7657 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7658 | echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 7659 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6 |
| 7660 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 7661 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7662 | else |
| 7663 | cat >conftest.$ac_ext <<_ACEOF |
| 7664 | #line $LINENO "configure" |
| 7665 | #include "confdefs.h" |
| 7666 | $ac_includes_default |
| 7667 | #ifdef F77_DUMMY_MAIN |
| 7668 | # ifdef __cplusplus |
| 7669 | extern "C" |
| 7670 | # endif |
| 7671 | int F77_DUMMY_MAIN() { return 1; } |
| 7672 | #endif |
| 7673 | int |
| 7674 | main () |
| 7675 | { |
| 7676 | if ((fpos_t *) 0) |
| 7677 | return 0; |
| 7678 | if (sizeof (fpos_t)) |
| 7679 | return 0; |
| 7680 | ; |
| 7681 | return 0; |
| 7682 | } |
| 7683 | _ACEOF |
| 7684 | rm -f conftest.$ac_objext |
| 7685 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7686 | (eval $ac_compile) 2>&5 |
| 7687 | ac_status=$? |
| 7688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7689 | (exit $ac_status); } && |
| 7690 | { ac_try='test -s conftest.$ac_objext' |
| 7691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7692 | (eval $ac_try) 2>&5 |
| 7693 | ac_status=$? |
| 7694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7695 | (exit $ac_status); }; }; then |
| 7696 | ac_cv_type_fpos_t=yes |
| 7697 | else |
| 7698 | echo "$as_me: failed program was:" >&5 |
| 7699 | cat conftest.$ac_ext >&5 |
| 7700 | ac_cv_type_fpos_t=no |
| 7701 | fi |
| 7702 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7703 | fi |
| 7704 | echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 7705 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6 |
| 7706 | |
| 7707 | echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 7708 | echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6 |
| 7709 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| 7710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7711 | else |
| 7712 | if test "$ac_cv_type_fpos_t" = yes; then |
| 7713 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7714 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7715 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7716 | # This bug is HP SR number 8606223364. |
| 7717 | if test "$cross_compiling" = yes; then |
| 7718 | # Depending upon the size, compute the lo and hi bounds. |
| 7719 | cat >conftest.$ac_ext <<_ACEOF |
| 7720 | #line $LINENO "configure" |
| 7721 | #include "confdefs.h" |
| 7722 | $ac_includes_default |
| 7723 | #ifdef F77_DUMMY_MAIN |
| 7724 | # ifdef __cplusplus |
| 7725 | extern "C" |
| 7726 | # endif |
| 7727 | int F77_DUMMY_MAIN() { return 1; } |
| 7728 | #endif |
| 7729 | int |
| 7730 | main () |
| 7731 | { |
| 7732 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)]; |
| 7733 | test_array [0] = 0 |
| 7734 | |
| 7735 | ; |
| 7736 | return 0; |
| 7737 | } |
| 7738 | _ACEOF |
| 7739 | rm -f conftest.$ac_objext |
| 7740 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7741 | (eval $ac_compile) 2>&5 |
| 7742 | ac_status=$? |
| 7743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7744 | (exit $ac_status); } && |
| 7745 | { ac_try='test -s conftest.$ac_objext' |
| 7746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7747 | (eval $ac_try) 2>&5 |
| 7748 | ac_status=$? |
| 7749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7750 | (exit $ac_status); }; }; then |
| 7751 | ac_lo=0 ac_mid=0 |
| 7752 | while :; do |
| 7753 | cat >conftest.$ac_ext <<_ACEOF |
| 7754 | #line $LINENO "configure" |
| 7755 | #include "confdefs.h" |
| 7756 | $ac_includes_default |
| 7757 | #ifdef F77_DUMMY_MAIN |
| 7758 | # ifdef __cplusplus |
| 7759 | extern "C" |
| 7760 | # endif |
| 7761 | int F77_DUMMY_MAIN() { return 1; } |
| 7762 | #endif |
| 7763 | int |
| 7764 | main () |
| 7765 | { |
| 7766 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 7767 | test_array [0] = 0 |
| 7768 | |
| 7769 | ; |
| 7770 | return 0; |
| 7771 | } |
| 7772 | _ACEOF |
| 7773 | rm -f conftest.$ac_objext |
| 7774 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7775 | (eval $ac_compile) 2>&5 |
| 7776 | ac_status=$? |
| 7777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7778 | (exit $ac_status); } && |
| 7779 | { ac_try='test -s conftest.$ac_objext' |
| 7780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7781 | (eval $ac_try) 2>&5 |
| 7782 | ac_status=$? |
| 7783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7784 | (exit $ac_status); }; }; then |
| 7785 | ac_hi=$ac_mid; break |
| 7786 | else |
| 7787 | echo "$as_me: failed program was:" >&5 |
| 7788 | cat conftest.$ac_ext >&5 |
| 7789 | ac_lo=`expr $ac_mid + 1` |
| 7790 | if test $ac_lo -le $ac_mid; then |
| 7791 | ac_lo= ac_hi= |
| 7792 | break |
| 7793 | fi |
| 7794 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7795 | fi |
| 7796 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7797 | done |
| 7798 | else |
| 7799 | echo "$as_me: failed program was:" >&5 |
| 7800 | cat conftest.$ac_ext >&5 |
| 7801 | cat >conftest.$ac_ext <<_ACEOF |
| 7802 | #line $LINENO "configure" |
| 7803 | #include "confdefs.h" |
| 7804 | $ac_includes_default |
| 7805 | #ifdef F77_DUMMY_MAIN |
| 7806 | # ifdef __cplusplus |
| 7807 | extern "C" |
| 7808 | # endif |
| 7809 | int F77_DUMMY_MAIN() { return 1; } |
| 7810 | #endif |
| 7811 | int |
| 7812 | main () |
| 7813 | { |
| 7814 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)]; |
| 7815 | test_array [0] = 0 |
| 7816 | |
| 7817 | ; |
| 7818 | return 0; |
| 7819 | } |
| 7820 | _ACEOF |
| 7821 | rm -f conftest.$ac_objext |
| 7822 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7823 | (eval $ac_compile) 2>&5 |
| 7824 | ac_status=$? |
| 7825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7826 | (exit $ac_status); } && |
| 7827 | { ac_try='test -s conftest.$ac_objext' |
| 7828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7829 | (eval $ac_try) 2>&5 |
| 7830 | ac_status=$? |
| 7831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7832 | (exit $ac_status); }; }; then |
| 7833 | ac_hi=-1 ac_mid=-1 |
| 7834 | while :; do |
| 7835 | cat >conftest.$ac_ext <<_ACEOF |
| 7836 | #line $LINENO "configure" |
| 7837 | #include "confdefs.h" |
| 7838 | $ac_includes_default |
| 7839 | #ifdef F77_DUMMY_MAIN |
| 7840 | # ifdef __cplusplus |
| 7841 | extern "C" |
| 7842 | # endif |
| 7843 | int F77_DUMMY_MAIN() { return 1; } |
| 7844 | #endif |
| 7845 | int |
| 7846 | main () |
| 7847 | { |
| 7848 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)]; |
| 7849 | test_array [0] = 0 |
| 7850 | |
| 7851 | ; |
| 7852 | return 0; |
| 7853 | } |
| 7854 | _ACEOF |
| 7855 | rm -f conftest.$ac_objext |
| 7856 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7857 | (eval $ac_compile) 2>&5 |
| 7858 | ac_status=$? |
| 7859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7860 | (exit $ac_status); } && |
| 7861 | { ac_try='test -s conftest.$ac_objext' |
| 7862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7863 | (eval $ac_try) 2>&5 |
| 7864 | ac_status=$? |
| 7865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7866 | (exit $ac_status); }; }; then |
| 7867 | ac_lo=$ac_mid; break |
| 7868 | else |
| 7869 | echo "$as_me: failed program was:" >&5 |
| 7870 | cat conftest.$ac_ext >&5 |
| 7871 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7872 | if test $ac_mid -le $ac_hi; then |
| 7873 | ac_lo= ac_hi= |
| 7874 | break |
| 7875 | fi |
| 7876 | ac_mid=`expr 2 '*' $ac_mid` |
| 7877 | fi |
| 7878 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7879 | done |
| 7880 | else |
| 7881 | echo "$as_me: failed program was:" >&5 |
| 7882 | cat conftest.$ac_ext >&5 |
| 7883 | ac_lo= ac_hi= |
| 7884 | fi |
| 7885 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7886 | fi |
| 7887 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7888 | # Binary search between lo and hi bounds. |
| 7889 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7890 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7891 | cat >conftest.$ac_ext <<_ACEOF |
| 7892 | #line $LINENO "configure" |
| 7893 | #include "confdefs.h" |
| 7894 | $ac_includes_default |
| 7895 | #ifdef F77_DUMMY_MAIN |
| 7896 | # ifdef __cplusplus |
| 7897 | extern "C" |
| 7898 | # endif |
| 7899 | int F77_DUMMY_MAIN() { return 1; } |
| 7900 | #endif |
| 7901 | int |
| 7902 | main () |
| 7903 | { |
| 7904 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 7905 | test_array [0] = 0 |
| 7906 | |
| 7907 | ; |
| 7908 | return 0; |
| 7909 | } |
| 7910 | _ACEOF |
| 7911 | rm -f conftest.$ac_objext |
| 7912 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7913 | (eval $ac_compile) 2>&5 |
| 7914 | ac_status=$? |
| 7915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7916 | (exit $ac_status); } && |
| 7917 | { ac_try='test -s conftest.$ac_objext' |
| 7918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7919 | (eval $ac_try) 2>&5 |
| 7920 | ac_status=$? |
| 7921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7922 | (exit $ac_status); }; }; then |
| 7923 | ac_hi=$ac_mid |
| 7924 | else |
| 7925 | echo "$as_me: failed program was:" >&5 |
| 7926 | cat conftest.$ac_ext >&5 |
| 7927 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7928 | fi |
| 7929 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7930 | done |
| 7931 | case $ac_lo in |
| 7932 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
| 7933 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5 |
| 7934 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;} |
| 7935 | { (exit 1); exit 1; }; } ;; |
| 7936 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7937 | else |
| 7938 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7939 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7940 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7941 | { (exit 1); exit 1; }; } |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7942 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7943 | cat >conftest.$ac_ext <<_ACEOF |
| 7944 | #line $LINENO "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7945 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7946 | $ac_includes_default |
| 7947 | long longval () { return (long) (sizeof (fpos_t)); } |
| 7948 | unsigned long ulongval () { return (long) (sizeof (fpos_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7949 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7950 | #include <stdlib.h> |
| 7951 | #ifdef F77_DUMMY_MAIN |
| 7952 | # ifdef __cplusplus |
| 7953 | extern "C" |
| 7954 | # endif |
| 7955 | int F77_DUMMY_MAIN() { return 1; } |
| 7956 | #endif |
| 7957 | int |
| 7958 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7959 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7960 | |
| 7961 | FILE *f = fopen ("conftest.val", "w"); |
| 7962 | if (! f) |
| 7963 | exit (1); |
| 7964 | if (((long) (sizeof (fpos_t))) < 0) |
| 7965 | { |
| 7966 | long i = longval (); |
| 7967 | if (i != ((long) (sizeof (fpos_t)))) |
| 7968 | exit (1); |
| 7969 | fprintf (f, "%ld\n", i); |
| 7970 | } |
| 7971 | else |
| 7972 | { |
| 7973 | unsigned long i = ulongval (); |
| 7974 | if (i != ((long) (sizeof (fpos_t)))) |
| 7975 | exit (1); |
| 7976 | fprintf (f, "%lu\n", i); |
| 7977 | } |
| 7978 | exit (ferror (f) || fclose (f) != 0); |
| 7979 | |
| 7980 | ; |
| 7981 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7982 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7983 | _ACEOF |
| 7984 | rm -f conftest$ac_exeext |
| 7985 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7986 | (eval $ac_link) 2>&5 |
| 7987 | ac_status=$? |
| 7988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7989 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7991 | (eval $ac_try) 2>&5 |
| 7992 | ac_status=$? |
| 7993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7994 | (exit $ac_status); }; }; then |
| 7995 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7996 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7997 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7998 | echo "$as_me: failed program was:" >&5 |
| 7999 | cat conftest.$ac_ext >&5 |
| 8000 | ( exit $ac_status ) |
| 8001 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5 |
| 8002 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;} |
| 8003 | { (exit 1); exit 1; }; } |
| 8004 | fi |
| 8005 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8006 | fi |
| 8007 | fi |
| 8008 | rm -f conftest.val |
| 8009 | else |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8010 | ac_cv_sizeof_fpos_t=0 |
| 8011 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8012 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8013 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 8014 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6 |
| 8015 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8016 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8017 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8018 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8019 | |
| 8020 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8021 | echo "$as_me:$LINENO: checking for long long support" >&5 |
| 8022 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8023 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8024 | cat >conftest.$ac_ext <<_ACEOF |
| 8025 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8026 | #include "confdefs.h" |
| 8027 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8028 | #ifdef F77_DUMMY_MAIN |
| 8029 | # ifdef __cplusplus |
| 8030 | extern "C" |
| 8031 | # endif |
| 8032 | int F77_DUMMY_MAIN() { return 1; } |
| 8033 | #endif |
| 8034 | int |
| 8035 | main () |
| 8036 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8037 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8038 | ; |
| 8039 | return 0; |
| 8040 | } |
| 8041 | _ACEOF |
| 8042 | rm -f conftest.$ac_objext |
| 8043 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8044 | (eval $ac_compile) 2>&5 |
| 8045 | ac_status=$? |
| 8046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8047 | (exit $ac_status); } && |
| 8048 | { ac_try='test -s conftest.$ac_objext' |
| 8049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8050 | (eval $ac_try) 2>&5 |
| 8051 | ac_status=$? |
| 8052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8053 | (exit $ac_status); }; }; then |
| 8054 | |
| 8055 | |
| 8056 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8057 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8058 | _ACEOF |
| 8059 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8060 | have_long_long=yes |
| 8061 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8062 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8063 | echo "$as_me: failed program was:" >&5 |
| 8064 | cat conftest.$ac_ext >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8065 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8066 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8067 | echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 8068 | echo "${ECHO_T}$have_long_long" >&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 8069 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8070 | echo "$as_me:$LINENO: checking for long long" >&5 |
| 8071 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 8072 | if test "${ac_cv_type_long_long+set}" = set; then |
| 8073 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8074 | else |
| 8075 | cat >conftest.$ac_ext <<_ACEOF |
| 8076 | #line $LINENO "configure" |
| 8077 | #include "confdefs.h" |
| 8078 | $ac_includes_default |
| 8079 | #ifdef F77_DUMMY_MAIN |
| 8080 | # ifdef __cplusplus |
| 8081 | extern "C" |
| 8082 | # endif |
| 8083 | int F77_DUMMY_MAIN() { return 1; } |
| 8084 | #endif |
| 8085 | int |
| 8086 | main () |
| 8087 | { |
| 8088 | if ((long long *) 0) |
| 8089 | return 0; |
| 8090 | if (sizeof (long long)) |
| 8091 | return 0; |
| 8092 | ; |
| 8093 | return 0; |
| 8094 | } |
| 8095 | _ACEOF |
| 8096 | rm -f conftest.$ac_objext |
| 8097 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8098 | (eval $ac_compile) 2>&5 |
| 8099 | ac_status=$? |
| 8100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8101 | (exit $ac_status); } && |
| 8102 | { ac_try='test -s conftest.$ac_objext' |
| 8103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8104 | (eval $ac_try) 2>&5 |
| 8105 | ac_status=$? |
| 8106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8107 | (exit $ac_status); }; }; then |
| 8108 | ac_cv_type_long_long=yes |
| 8109 | else |
| 8110 | echo "$as_me: failed program was:" >&5 |
| 8111 | cat conftest.$ac_ext >&5 |
| 8112 | ac_cv_type_long_long=no |
| 8113 | fi |
| 8114 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8115 | fi |
| 8116 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 8117 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 8118 | |
| 8119 | echo "$as_me:$LINENO: checking size of long long" >&5 |
| 8120 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 8121 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 8122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8123 | else |
| 8124 | if test "$ac_cv_type_long_long" = yes; then |
| 8125 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8126 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8127 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8128 | # This bug is HP SR number 8606223364. |
| 8129 | if test "$cross_compiling" = yes; then |
| 8130 | # Depending upon the size, compute the lo and hi bounds. |
| 8131 | cat >conftest.$ac_ext <<_ACEOF |
| 8132 | #line $LINENO "configure" |
| 8133 | #include "confdefs.h" |
| 8134 | $ac_includes_default |
| 8135 | #ifdef F77_DUMMY_MAIN |
| 8136 | # ifdef __cplusplus |
| 8137 | extern "C" |
| 8138 | # endif |
| 8139 | int F77_DUMMY_MAIN() { return 1; } |
| 8140 | #endif |
| 8141 | int |
| 8142 | main () |
| 8143 | { |
| 8144 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
| 8145 | test_array [0] = 0 |
| 8146 | |
| 8147 | ; |
| 8148 | return 0; |
| 8149 | } |
| 8150 | _ACEOF |
| 8151 | rm -f conftest.$ac_objext |
| 8152 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8153 | (eval $ac_compile) 2>&5 |
| 8154 | ac_status=$? |
| 8155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8156 | (exit $ac_status); } && |
| 8157 | { ac_try='test -s conftest.$ac_objext' |
| 8158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8159 | (eval $ac_try) 2>&5 |
| 8160 | ac_status=$? |
| 8161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8162 | (exit $ac_status); }; }; then |
| 8163 | ac_lo=0 ac_mid=0 |
| 8164 | while :; do |
| 8165 | cat >conftest.$ac_ext <<_ACEOF |
| 8166 | #line $LINENO "configure" |
| 8167 | #include "confdefs.h" |
| 8168 | $ac_includes_default |
| 8169 | #ifdef F77_DUMMY_MAIN |
| 8170 | # ifdef __cplusplus |
| 8171 | extern "C" |
| 8172 | # endif |
| 8173 | int F77_DUMMY_MAIN() { return 1; } |
| 8174 | #endif |
| 8175 | int |
| 8176 | main () |
| 8177 | { |
| 8178 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 8179 | test_array [0] = 0 |
| 8180 | |
| 8181 | ; |
| 8182 | return 0; |
| 8183 | } |
| 8184 | _ACEOF |
| 8185 | rm -f conftest.$ac_objext |
| 8186 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8187 | (eval $ac_compile) 2>&5 |
| 8188 | ac_status=$? |
| 8189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8190 | (exit $ac_status); } && |
| 8191 | { ac_try='test -s conftest.$ac_objext' |
| 8192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8193 | (eval $ac_try) 2>&5 |
| 8194 | ac_status=$? |
| 8195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8196 | (exit $ac_status); }; }; then |
| 8197 | ac_hi=$ac_mid; break |
| 8198 | else |
| 8199 | echo "$as_me: failed program was:" >&5 |
| 8200 | cat conftest.$ac_ext >&5 |
| 8201 | ac_lo=`expr $ac_mid + 1` |
| 8202 | if test $ac_lo -le $ac_mid; then |
| 8203 | ac_lo= ac_hi= |
| 8204 | break |
| 8205 | fi |
| 8206 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8207 | fi |
| 8208 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8209 | done |
| 8210 | else |
| 8211 | echo "$as_me: failed program was:" >&5 |
| 8212 | cat conftest.$ac_ext >&5 |
| 8213 | cat >conftest.$ac_ext <<_ACEOF |
| 8214 | #line $LINENO "configure" |
| 8215 | #include "confdefs.h" |
| 8216 | $ac_includes_default |
| 8217 | #ifdef F77_DUMMY_MAIN |
| 8218 | # ifdef __cplusplus |
| 8219 | extern "C" |
| 8220 | # endif |
| 8221 | int F77_DUMMY_MAIN() { return 1; } |
| 8222 | #endif |
| 8223 | int |
| 8224 | main () |
| 8225 | { |
| 8226 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| 8227 | test_array [0] = 0 |
| 8228 | |
| 8229 | ; |
| 8230 | return 0; |
| 8231 | } |
| 8232 | _ACEOF |
| 8233 | rm -f conftest.$ac_objext |
| 8234 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8235 | (eval $ac_compile) 2>&5 |
| 8236 | ac_status=$? |
| 8237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8238 | (exit $ac_status); } && |
| 8239 | { ac_try='test -s conftest.$ac_objext' |
| 8240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8241 | (eval $ac_try) 2>&5 |
| 8242 | ac_status=$? |
| 8243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8244 | (exit $ac_status); }; }; then |
| 8245 | ac_hi=-1 ac_mid=-1 |
| 8246 | while :; do |
| 8247 | cat >conftest.$ac_ext <<_ACEOF |
| 8248 | #line $LINENO "configure" |
| 8249 | #include "confdefs.h" |
| 8250 | $ac_includes_default |
| 8251 | #ifdef F77_DUMMY_MAIN |
| 8252 | # ifdef __cplusplus |
| 8253 | extern "C" |
| 8254 | # endif |
| 8255 | int F77_DUMMY_MAIN() { return 1; } |
| 8256 | #endif |
| 8257 | int |
| 8258 | main () |
| 8259 | { |
| 8260 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| 8261 | test_array [0] = 0 |
| 8262 | |
| 8263 | ; |
| 8264 | return 0; |
| 8265 | } |
| 8266 | _ACEOF |
| 8267 | rm -f conftest.$ac_objext |
| 8268 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8269 | (eval $ac_compile) 2>&5 |
| 8270 | ac_status=$? |
| 8271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8272 | (exit $ac_status); } && |
| 8273 | { ac_try='test -s conftest.$ac_objext' |
| 8274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8275 | (eval $ac_try) 2>&5 |
| 8276 | ac_status=$? |
| 8277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8278 | (exit $ac_status); }; }; then |
| 8279 | ac_lo=$ac_mid; break |
| 8280 | else |
| 8281 | echo "$as_me: failed program was:" >&5 |
| 8282 | cat conftest.$ac_ext >&5 |
| 8283 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8284 | if test $ac_mid -le $ac_hi; then |
| 8285 | ac_lo= ac_hi= |
| 8286 | break |
| 8287 | fi |
| 8288 | ac_mid=`expr 2 '*' $ac_mid` |
| 8289 | fi |
| 8290 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8291 | done |
| 8292 | else |
| 8293 | echo "$as_me: failed program was:" >&5 |
| 8294 | cat conftest.$ac_ext >&5 |
| 8295 | ac_lo= ac_hi= |
| 8296 | fi |
| 8297 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8298 | fi |
| 8299 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8300 | # Binary search between lo and hi bounds. |
| 8301 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8302 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8303 | cat >conftest.$ac_ext <<_ACEOF |
| 8304 | #line $LINENO "configure" |
| 8305 | #include "confdefs.h" |
| 8306 | $ac_includes_default |
| 8307 | #ifdef F77_DUMMY_MAIN |
| 8308 | # ifdef __cplusplus |
| 8309 | extern "C" |
| 8310 | # endif |
| 8311 | int F77_DUMMY_MAIN() { return 1; } |
| 8312 | #endif |
| 8313 | int |
| 8314 | main () |
| 8315 | { |
| 8316 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 8317 | test_array [0] = 0 |
| 8318 | |
| 8319 | ; |
| 8320 | return 0; |
| 8321 | } |
| 8322 | _ACEOF |
| 8323 | rm -f conftest.$ac_objext |
| 8324 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8325 | (eval $ac_compile) 2>&5 |
| 8326 | ac_status=$? |
| 8327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8328 | (exit $ac_status); } && |
| 8329 | { ac_try='test -s conftest.$ac_objext' |
| 8330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8331 | (eval $ac_try) 2>&5 |
| 8332 | ac_status=$? |
| 8333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8334 | (exit $ac_status); }; }; then |
| 8335 | ac_hi=$ac_mid |
| 8336 | else |
| 8337 | echo "$as_me: failed program was:" >&5 |
| 8338 | cat conftest.$ac_ext >&5 |
| 8339 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8340 | fi |
| 8341 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8342 | done |
| 8343 | case $ac_lo in |
| 8344 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
| 8345 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 8346 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 8347 | { (exit 1); exit 1; }; } ;; |
| 8348 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8349 | else |
| 8350 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8351 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 8352 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 8353 | { (exit 1); exit 1; }; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8354 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8355 | cat >conftest.$ac_ext <<_ACEOF |
| 8356 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8357 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8358 | $ac_includes_default |
| 8359 | long longval () { return (long) (sizeof (long long)); } |
| 8360 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8361 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8362 | #include <stdlib.h> |
| 8363 | #ifdef F77_DUMMY_MAIN |
| 8364 | # ifdef __cplusplus |
| 8365 | extern "C" |
| 8366 | # endif |
| 8367 | int F77_DUMMY_MAIN() { return 1; } |
| 8368 | #endif |
| 8369 | int |
| 8370 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8371 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8372 | |
| 8373 | FILE *f = fopen ("conftest.val", "w"); |
| 8374 | if (! f) |
| 8375 | exit (1); |
| 8376 | if (((long) (sizeof (long long))) < 0) |
| 8377 | { |
| 8378 | long i = longval (); |
| 8379 | if (i != ((long) (sizeof (long long)))) |
| 8380 | exit (1); |
| 8381 | fprintf (f, "%ld\n", i); |
| 8382 | } |
| 8383 | else |
| 8384 | { |
| 8385 | unsigned long i = ulongval (); |
| 8386 | if (i != ((long) (sizeof (long long)))) |
| 8387 | exit (1); |
| 8388 | fprintf (f, "%lu\n", i); |
| 8389 | } |
| 8390 | exit (ferror (f) || fclose (f) != 0); |
| 8391 | |
| 8392 | ; |
| 8393 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8394 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8395 | _ACEOF |
| 8396 | rm -f conftest$ac_exeext |
| 8397 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8398 | (eval $ac_link) 2>&5 |
| 8399 | ac_status=$? |
| 8400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8401 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8403 | (eval $ac_try) 2>&5 |
| 8404 | ac_status=$? |
| 8405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8406 | (exit $ac_status); }; }; then |
| 8407 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8408 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8409 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8410 | echo "$as_me: failed program was:" >&5 |
| 8411 | cat conftest.$ac_ext >&5 |
| 8412 | ( exit $ac_status ) |
| 8413 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 8414 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 8415 | { (exit 1); exit 1; }; } |
| 8416 | fi |
| 8417 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8418 | fi |
| 8419 | fi |
| 8420 | rm -f conftest.val |
| 8421 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8422 | ac_cv_sizeof_long_long=0 |
| 8423 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8424 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8425 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 8426 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
| 8427 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8428 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8429 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8430 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8431 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8432 | fi |
| 8433 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8434 | echo "$as_me:$LINENO: checking for uintptr_t support" >&5 |
| 8435 | echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8436 | have_uintptr_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8437 | cat >conftest.$ac_ext <<_ACEOF |
| 8438 | #line $LINENO "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8439 | #include "confdefs.h" |
| 8440 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8441 | #ifdef F77_DUMMY_MAIN |
| 8442 | # ifdef __cplusplus |
| 8443 | extern "C" |
| 8444 | # endif |
| 8445 | int F77_DUMMY_MAIN() { return 1; } |
| 8446 | #endif |
| 8447 | int |
| 8448 | main () |
| 8449 | { |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8450 | uintptr_t x; x = (uintptr_t)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8451 | ; |
| 8452 | return 0; |
| 8453 | } |
| 8454 | _ACEOF |
| 8455 | rm -f conftest.$ac_objext |
| 8456 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8457 | (eval $ac_compile) 2>&5 |
| 8458 | ac_status=$? |
| 8459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8460 | (exit $ac_status); } && |
| 8461 | { ac_try='test -s conftest.$ac_objext' |
| 8462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8463 | (eval $ac_try) 2>&5 |
| 8464 | ac_status=$? |
| 8465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8466 | (exit $ac_status); }; }; then |
| 8467 | |
| 8468 | |
| 8469 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8470 | #define HAVE_UINTPTR_T 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8471 | _ACEOF |
| 8472 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8473 | have_uintptr_t=yes |
| 8474 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8475 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8476 | echo "$as_me: failed program was:" >&5 |
| 8477 | cat conftest.$ac_ext >&5 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8478 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8479 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8480 | echo "$as_me:$LINENO: result: $have_uintptr_t" >&5 |
| 8481 | echo "${ECHO_T}$have_uintptr_t" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8482 | if test "$have_uintptr_t" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8483 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 8484 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 8485 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 8486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8487 | else |
| 8488 | cat >conftest.$ac_ext <<_ACEOF |
| 8489 | #line $LINENO "configure" |
| 8490 | #include "confdefs.h" |
| 8491 | $ac_includes_default |
| 8492 | #ifdef F77_DUMMY_MAIN |
| 8493 | # ifdef __cplusplus |
| 8494 | extern "C" |
| 8495 | # endif |
| 8496 | int F77_DUMMY_MAIN() { return 1; } |
| 8497 | #endif |
| 8498 | int |
| 8499 | main () |
| 8500 | { |
| 8501 | if ((uintptr_t *) 0) |
| 8502 | return 0; |
| 8503 | if (sizeof (uintptr_t)) |
| 8504 | return 0; |
| 8505 | ; |
| 8506 | return 0; |
| 8507 | } |
| 8508 | _ACEOF |
| 8509 | rm -f conftest.$ac_objext |
| 8510 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8511 | (eval $ac_compile) 2>&5 |
| 8512 | ac_status=$? |
| 8513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8514 | (exit $ac_status); } && |
| 8515 | { ac_try='test -s conftest.$ac_objext' |
| 8516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8517 | (eval $ac_try) 2>&5 |
| 8518 | ac_status=$? |
| 8519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8520 | (exit $ac_status); }; }; then |
| 8521 | ac_cv_type_uintptr_t=yes |
| 8522 | else |
| 8523 | echo "$as_me: failed program was:" >&5 |
| 8524 | cat conftest.$ac_ext >&5 |
| 8525 | ac_cv_type_uintptr_t=no |
| 8526 | fi |
| 8527 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8528 | fi |
| 8529 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 8530 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 8531 | |
| 8532 | echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 8533 | echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6 |
| 8534 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| 8535 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8536 | else |
| 8537 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 8538 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8539 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8540 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8541 | # This bug is HP SR number 8606223364. |
| 8542 | if test "$cross_compiling" = yes; then |
| 8543 | # Depending upon the size, compute the lo and hi bounds. |
| 8544 | cat >conftest.$ac_ext <<_ACEOF |
| 8545 | #line $LINENO "configure" |
| 8546 | #include "confdefs.h" |
| 8547 | $ac_includes_default |
| 8548 | #ifdef F77_DUMMY_MAIN |
| 8549 | # ifdef __cplusplus |
| 8550 | extern "C" |
| 8551 | # endif |
| 8552 | int F77_DUMMY_MAIN() { return 1; } |
| 8553 | #endif |
| 8554 | int |
| 8555 | main () |
| 8556 | { |
| 8557 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)]; |
| 8558 | test_array [0] = 0 |
| 8559 | |
| 8560 | ; |
| 8561 | return 0; |
| 8562 | } |
| 8563 | _ACEOF |
| 8564 | rm -f conftest.$ac_objext |
| 8565 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8566 | (eval $ac_compile) 2>&5 |
| 8567 | ac_status=$? |
| 8568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8569 | (exit $ac_status); } && |
| 8570 | { ac_try='test -s conftest.$ac_objext' |
| 8571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8572 | (eval $ac_try) 2>&5 |
| 8573 | ac_status=$? |
| 8574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8575 | (exit $ac_status); }; }; then |
| 8576 | ac_lo=0 ac_mid=0 |
| 8577 | while :; do |
| 8578 | cat >conftest.$ac_ext <<_ACEOF |
| 8579 | #line $LINENO "configure" |
| 8580 | #include "confdefs.h" |
| 8581 | $ac_includes_default |
| 8582 | #ifdef F77_DUMMY_MAIN |
| 8583 | # ifdef __cplusplus |
| 8584 | extern "C" |
| 8585 | # endif |
| 8586 | int F77_DUMMY_MAIN() { return 1; } |
| 8587 | #endif |
| 8588 | int |
| 8589 | main () |
| 8590 | { |
| 8591 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 8592 | test_array [0] = 0 |
| 8593 | |
| 8594 | ; |
| 8595 | return 0; |
| 8596 | } |
| 8597 | _ACEOF |
| 8598 | rm -f conftest.$ac_objext |
| 8599 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8600 | (eval $ac_compile) 2>&5 |
| 8601 | ac_status=$? |
| 8602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8603 | (exit $ac_status); } && |
| 8604 | { ac_try='test -s conftest.$ac_objext' |
| 8605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8606 | (eval $ac_try) 2>&5 |
| 8607 | ac_status=$? |
| 8608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8609 | (exit $ac_status); }; }; then |
| 8610 | ac_hi=$ac_mid; break |
| 8611 | else |
| 8612 | echo "$as_me: failed program was:" >&5 |
| 8613 | cat conftest.$ac_ext >&5 |
| 8614 | ac_lo=`expr $ac_mid + 1` |
| 8615 | if test $ac_lo -le $ac_mid; then |
| 8616 | ac_lo= ac_hi= |
| 8617 | break |
| 8618 | fi |
| 8619 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8620 | fi |
| 8621 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8622 | done |
| 8623 | else |
| 8624 | echo "$as_me: failed program was:" >&5 |
| 8625 | cat conftest.$ac_ext >&5 |
| 8626 | cat >conftest.$ac_ext <<_ACEOF |
| 8627 | #line $LINENO "configure" |
| 8628 | #include "confdefs.h" |
| 8629 | $ac_includes_default |
| 8630 | #ifdef F77_DUMMY_MAIN |
| 8631 | # ifdef __cplusplus |
| 8632 | extern "C" |
| 8633 | # endif |
| 8634 | int F77_DUMMY_MAIN() { return 1; } |
| 8635 | #endif |
| 8636 | int |
| 8637 | main () |
| 8638 | { |
| 8639 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)]; |
| 8640 | test_array [0] = 0 |
| 8641 | |
| 8642 | ; |
| 8643 | return 0; |
| 8644 | } |
| 8645 | _ACEOF |
| 8646 | rm -f conftest.$ac_objext |
| 8647 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8648 | (eval $ac_compile) 2>&5 |
| 8649 | ac_status=$? |
| 8650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8651 | (exit $ac_status); } && |
| 8652 | { ac_try='test -s conftest.$ac_objext' |
| 8653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8654 | (eval $ac_try) 2>&5 |
| 8655 | ac_status=$? |
| 8656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8657 | (exit $ac_status); }; }; then |
| 8658 | ac_hi=-1 ac_mid=-1 |
| 8659 | while :; do |
| 8660 | cat >conftest.$ac_ext <<_ACEOF |
| 8661 | #line $LINENO "configure" |
| 8662 | #include "confdefs.h" |
| 8663 | $ac_includes_default |
| 8664 | #ifdef F77_DUMMY_MAIN |
| 8665 | # ifdef __cplusplus |
| 8666 | extern "C" |
| 8667 | # endif |
| 8668 | int F77_DUMMY_MAIN() { return 1; } |
| 8669 | #endif |
| 8670 | int |
| 8671 | main () |
| 8672 | { |
| 8673 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)]; |
| 8674 | test_array [0] = 0 |
| 8675 | |
| 8676 | ; |
| 8677 | return 0; |
| 8678 | } |
| 8679 | _ACEOF |
| 8680 | rm -f conftest.$ac_objext |
| 8681 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8682 | (eval $ac_compile) 2>&5 |
| 8683 | ac_status=$? |
| 8684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8685 | (exit $ac_status); } && |
| 8686 | { ac_try='test -s conftest.$ac_objext' |
| 8687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8688 | (eval $ac_try) 2>&5 |
| 8689 | ac_status=$? |
| 8690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8691 | (exit $ac_status); }; }; then |
| 8692 | ac_lo=$ac_mid; break |
| 8693 | else |
| 8694 | echo "$as_me: failed program was:" >&5 |
| 8695 | cat conftest.$ac_ext >&5 |
| 8696 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8697 | if test $ac_mid -le $ac_hi; then |
| 8698 | ac_lo= ac_hi= |
| 8699 | break |
| 8700 | fi |
| 8701 | ac_mid=`expr 2 '*' $ac_mid` |
| 8702 | fi |
| 8703 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8704 | done |
| 8705 | else |
| 8706 | echo "$as_me: failed program was:" >&5 |
| 8707 | cat conftest.$ac_ext >&5 |
| 8708 | ac_lo= ac_hi= |
| 8709 | fi |
| 8710 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8711 | fi |
| 8712 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8713 | # Binary search between lo and hi bounds. |
| 8714 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8715 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8716 | cat >conftest.$ac_ext <<_ACEOF |
| 8717 | #line $LINENO "configure" |
| 8718 | #include "confdefs.h" |
| 8719 | $ac_includes_default |
| 8720 | #ifdef F77_DUMMY_MAIN |
| 8721 | # ifdef __cplusplus |
| 8722 | extern "C" |
| 8723 | # endif |
| 8724 | int F77_DUMMY_MAIN() { return 1; } |
| 8725 | #endif |
| 8726 | int |
| 8727 | main () |
| 8728 | { |
| 8729 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 8730 | test_array [0] = 0 |
| 8731 | |
| 8732 | ; |
| 8733 | return 0; |
| 8734 | } |
| 8735 | _ACEOF |
| 8736 | rm -f conftest.$ac_objext |
| 8737 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8738 | (eval $ac_compile) 2>&5 |
| 8739 | ac_status=$? |
| 8740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8741 | (exit $ac_status); } && |
| 8742 | { ac_try='test -s conftest.$ac_objext' |
| 8743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8744 | (eval $ac_try) 2>&5 |
| 8745 | ac_status=$? |
| 8746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8747 | (exit $ac_status); }; }; then |
| 8748 | ac_hi=$ac_mid |
| 8749 | else |
| 8750 | echo "$as_me: failed program was:" >&5 |
| 8751 | cat conftest.$ac_ext >&5 |
| 8752 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8753 | fi |
| 8754 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8755 | done |
| 8756 | case $ac_lo in |
| 8757 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
| 8758 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5 |
| 8759 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;} |
| 8760 | { (exit 1); exit 1; }; } ;; |
| 8761 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8762 | else |
| 8763 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8764 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 8765 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 8766 | { (exit 1); exit 1; }; } |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8767 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8768 | cat >conftest.$ac_ext <<_ACEOF |
| 8769 | #line $LINENO "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8770 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8771 | $ac_includes_default |
| 8772 | long longval () { return (long) (sizeof (uintptr_t)); } |
| 8773 | unsigned long ulongval () { return (long) (sizeof (uintptr_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8774 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8775 | #include <stdlib.h> |
| 8776 | #ifdef F77_DUMMY_MAIN |
| 8777 | # ifdef __cplusplus |
| 8778 | extern "C" |
| 8779 | # endif |
| 8780 | int F77_DUMMY_MAIN() { return 1; } |
| 8781 | #endif |
| 8782 | int |
| 8783 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8784 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8785 | |
| 8786 | FILE *f = fopen ("conftest.val", "w"); |
| 8787 | if (! f) |
| 8788 | exit (1); |
| 8789 | if (((long) (sizeof (uintptr_t))) < 0) |
| 8790 | { |
| 8791 | long i = longval (); |
| 8792 | if (i != ((long) (sizeof (uintptr_t)))) |
| 8793 | exit (1); |
| 8794 | fprintf (f, "%ld\n", i); |
| 8795 | } |
| 8796 | else |
| 8797 | { |
| 8798 | unsigned long i = ulongval (); |
| 8799 | if (i != ((long) (sizeof (uintptr_t)))) |
| 8800 | exit (1); |
| 8801 | fprintf (f, "%lu\n", i); |
| 8802 | } |
| 8803 | exit (ferror (f) || fclose (f) != 0); |
| 8804 | |
| 8805 | ; |
| 8806 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8807 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8808 | _ACEOF |
| 8809 | rm -f conftest$ac_exeext |
| 8810 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8811 | (eval $ac_link) 2>&5 |
| 8812 | ac_status=$? |
| 8813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8814 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8816 | (eval $ac_try) 2>&5 |
| 8817 | ac_status=$? |
| 8818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8819 | (exit $ac_status); }; }; then |
| 8820 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8821 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8822 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8823 | echo "$as_me: failed program was:" >&5 |
| 8824 | cat conftest.$ac_ext >&5 |
| 8825 | ( exit $ac_status ) |
| 8826 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5 |
| 8827 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;} |
| 8828 | { (exit 1); exit 1; }; } |
| 8829 | fi |
| 8830 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8831 | fi |
| 8832 | fi |
| 8833 | rm -f conftest.val |
| 8834 | else |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8835 | ac_cv_sizeof_uintptr_t=0 |
| 8836 | fi |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8837 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8838 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 8839 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6 |
| 8840 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8841 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8842 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8843 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8844 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8845 | fi |
| 8846 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8847 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8848 | echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 8849 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 |
| 8850 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 8851 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8852 | else |
| 8853 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 8854 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8855 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8856 | cat >conftest.$ac_ext <<_ACEOF |
| 8857 | #line $LINENO "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8858 | #include "confdefs.h" |
| 8859 | #include <stdio.h> |
| 8860 | #include <sys/types.h> |
| 8861 | main() |
| 8862 | { |
| 8863 | FILE *f=fopen("conftestval", "w"); |
| 8864 | if (!f) exit(1); |
| 8865 | fprintf(f, "%d\n", sizeof(off_t)); |
| 8866 | exit(0); |
| 8867 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8868 | _ACEOF |
| 8869 | rm -f conftest$ac_exeext |
| 8870 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8871 | (eval $ac_link) 2>&5 |
| 8872 | ac_status=$? |
| 8873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8874 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8876 | (eval $ac_try) 2>&5 |
| 8877 | ac_status=$? |
| 8878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8879 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8880 | ac_cv_sizeof_off_t=`cat conftestval` |
| 8881 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8882 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8883 | echo "$as_me: failed program was:" >&5 |
| 8884 | cat conftest.$ac_ext >&5 |
| 8885 | ( exit $ac_status ) |
| 8886 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8887 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8888 | 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] | 8889 | fi |
| 8890 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8891 | fi |
| 8892 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8893 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 8894 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 |
| 8895 | |
| 8896 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8897 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8898 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8899 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8900 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8901 | echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 8902 | 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] | 8903 | if test "$have_long_long" = yes -a \ |
| 8904 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 8905 | "$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] | 8906 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8907 | cat >>confdefs.h <<\_ACEOF |
| 8908 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 8909 | _ACEOF |
| 8910 | |
| 8911 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8912 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8913 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8914 | echo "$as_me:$LINENO: result: no" >&5 |
| 8915 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8916 | fi |
| 8917 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8918 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8919 | echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 8920 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6 |
| 8921 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 8922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8923 | else |
| 8924 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 8925 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8926 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8927 | cat >conftest.$ac_ext <<_ACEOF |
| 8928 | #line $LINENO "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8929 | #include "confdefs.h" |
| 8930 | #include <stdio.h> |
| 8931 | #include <time.h> |
| 8932 | main() |
| 8933 | { |
| 8934 | FILE *f=fopen("conftestval", "w"); |
| 8935 | if (!f) exit(1); |
| 8936 | fprintf(f, "%d\n", sizeof(time_t)); |
| 8937 | exit(0); |
| 8938 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8939 | _ACEOF |
| 8940 | rm -f conftest$ac_exeext |
| 8941 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8942 | (eval $ac_link) 2>&5 |
| 8943 | ac_status=$? |
| 8944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8945 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8947 | (eval $ac_try) 2>&5 |
| 8948 | ac_status=$? |
| 8949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8950 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8951 | ac_cv_sizeof_time_t=`cat conftestval` |
| 8952 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8953 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8954 | echo "$as_me: failed program was:" >&5 |
| 8955 | cat conftest.$ac_ext >&5 |
| 8956 | ( exit $ac_status ) |
| 8957 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8958 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8959 | 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] | 8960 | fi |
| 8961 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8962 | fi |
| 8963 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8964 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 8965 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6 |
| 8966 | |
| 8967 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8968 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8969 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8970 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8971 | |
| 8972 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8973 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8974 | ac_save_cc="$CC" |
| 8975 | if test "$ac_cv_kpthread" = "yes" |
| 8976 | then CC="$CC -Kpthread" |
| 8977 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8978 | echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 8979 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8980 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8981 | cat >conftest.$ac_ext <<_ACEOF |
| 8982 | #line $LINENO "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8983 | #include "confdefs.h" |
| 8984 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8985 | #ifdef F77_DUMMY_MAIN |
| 8986 | # ifdef __cplusplus |
| 8987 | extern "C" |
| 8988 | # endif |
| 8989 | int F77_DUMMY_MAIN() { return 1; } |
| 8990 | #endif |
| 8991 | int |
| 8992 | main () |
| 8993 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 8994 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8995 | ; |
| 8996 | return 0; |
| 8997 | } |
| 8998 | _ACEOF |
| 8999 | rm -f conftest.$ac_objext |
| 9000 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9001 | (eval $ac_compile) 2>&5 |
| 9002 | ac_status=$? |
| 9003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9004 | (exit $ac_status); } && |
| 9005 | { ac_try='test -s conftest.$ac_objext' |
| 9006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9007 | (eval $ac_try) 2>&5 |
| 9008 | ac_status=$? |
| 9009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9010 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9011 | have_pthread_t=yes |
| 9012 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9013 | echo "$as_me: failed program was:" >&5 |
| 9014 | cat conftest.$ac_ext >&5 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9015 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9016 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9017 | echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 9018 | echo "${ECHO_T}$have_pthread_t" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9019 | if test "$have_pthread_t" = yes ; then |
| 9020 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9021 | echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 9022 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6 |
| 9023 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 9024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9025 | else |
| 9026 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9027 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9028 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9029 | cat >conftest.$ac_ext <<_ACEOF |
| 9030 | #line $LINENO "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9031 | #include "confdefs.h" |
| 9032 | #include <stdio.h> |
| 9033 | #include <pthread.h> |
| 9034 | main() |
| 9035 | { |
| 9036 | FILE *f=fopen("conftestval", "w"); |
| 9037 | if (!f) exit(1); |
| 9038 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 9039 | exit(0); |
| 9040 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9041 | _ACEOF |
| 9042 | rm -f conftest$ac_exeext |
| 9043 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9044 | (eval $ac_link) 2>&5 |
| 9045 | ac_status=$? |
| 9046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9047 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9049 | (eval $ac_try) 2>&5 |
| 9050 | ac_status=$? |
| 9051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9052 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9053 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 9054 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9055 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9056 | echo "$as_me: failed program was:" >&5 |
| 9057 | cat conftest.$ac_ext >&5 |
| 9058 | ( exit $ac_status ) |
| 9059 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9060 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9061 | 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] | 9062 | fi |
| 9063 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9064 | fi |
| 9065 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9066 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 9067 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6 |
| 9068 | |
| 9069 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9070 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9071 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9072 | |
| 9073 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9074 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9075 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9076 | echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 9077 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9078 | # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given. |
| 9079 | if test "${enable_toolbox_glue+set}" = set; then |
| 9080 | enableval="$enable_toolbox_glue" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9081 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9082 | fi; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9083 | |
| 9084 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9085 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9086 | case $ac_sys_system/$ac_sys_release in |
| 9087 | Darwin/*) |
| 9088 | enable_toolbox_glue="yes";; |
| 9089 | *) |
| 9090 | enable_toolbox_glue="no";; |
| 9091 | esac |
| 9092 | fi |
| 9093 | case "$enable_toolbox_glue" in |
| 9094 | yes) |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 9095 | extra_frameworks="-framework CoreServices -framework Foundation" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9096 | extra_machdep_objs="Python/mactoolboxglue.o" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9097 | extra_undefs="-u __dummy -u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9098 | |
| 9099 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9100 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9101 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9102 | |
| 9103 | ;; |
| 9104 | *) |
| 9105 | extra_frameworks="" |
| 9106 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9107 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9108 | ;; |
| 9109 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9110 | echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 9111 | echo "${ECHO_T}$enable_toolbox_glue" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9112 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9113 | |
| 9114 | case $ac_sys_system/$ac_sys_release in |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9115 | Darwin/1.3*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9116 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9117 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9118 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' |
| 9119 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 9120 | Darwin/*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9121 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9122 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9123 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' |
| 9124 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9125 | esac |
| 9126 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9127 | echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 9128 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9129 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9130 | then |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 9131 | OPT="$OPT -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9132 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9133 | # in the build location. |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9134 | LDFLAGS="$LDFLAGS -Wl,-F." |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9135 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9136 | cat >>confdefs.h <<\_ACEOF |
| 9137 | #define WITH_NEXT_FRAMEWORK 1 |
| 9138 | _ACEOF |
| 9139 | |
| 9140 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9141 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9142 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9143 | echo "$as_me:$LINENO: result: no" >&5 |
| 9144 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9145 | fi |
| 9146 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9147 | echo "$as_me:$LINENO: checking for dyld" >&5 |
| 9148 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9149 | case $ac_sys_system/$ac_sys_release in |
| 9150 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9151 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9152 | cat >>confdefs.h <<\_ACEOF |
| 9153 | #define WITH_DYLD 1 |
| 9154 | _ACEOF |
| 9155 | |
| 9156 | echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 9157 | echo "${ECHO_T}always on for Darwin" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9158 | ;; |
| 9159 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9160 | echo "$as_me:$LINENO: result: no" >&5 |
| 9161 | echo "${ECHO_T}no" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9162 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9163 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9164 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9165 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9166 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9167 | |
| 9168 | |
| 9169 | |
| 9170 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9171 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 9172 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9173 | echo "$as_me:$LINENO: checking SO" >&5 |
| 9174 | echo $ECHO_N "checking SO... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9175 | if test -z "$SO" |
| 9176 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9177 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 9178 | hp*|HP*) SO=.sl;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 9179 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 9180 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9181 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9182 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9183 | echo "$as_me:$LINENO: result: $SO" >&5 |
| 9184 | echo "${ECHO_T}$SO" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9185 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 5b718fc | 2001-09-10 15:34:42 +0000 | [diff] [blame] | 9186 | # -- "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] | 9187 | # (Shared libraries in this instance are shared modules to be loaded into |
| 9188 | # 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] | 9189 | echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 9190 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9191 | if test -z "$LDSHARED" |
| 9192 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9193 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9194 | AIX*) |
| 9195 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 9196 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9197 | ;; |
| 9198 | BeOS*) |
| 9199 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 9200 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9201 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9202 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 9203 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9204 | SunOS/4*) LDSHARED="ld";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9205 | SunOS/5*) |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 9206 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 9207 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 9208 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 9209 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9210 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 9211 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 9212 | DYNIX/ptx*) LDSHARED="ld -G";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9213 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9214 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 9215 | if test "$enable_framework" ; then |
| 9216 | # Link against the framework. All externals should be defined. |
| 9217 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 9218 | else |
| 9219 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9220 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9221 | fi ;; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9222 | Darwin/*) |
| 9223 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 9224 | if test "$enable_framework" ; then |
| 9225 | # Link against the framework. All externals should be defined. |
| 9226 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 9227 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 9228 | # No framework, use the Python app as bundle-loader |
| 9229 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 9230 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/$(PYTHON)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9231 | fi ;; |
Martin v. Löwis | 3cba5c0 | 2002-09-16 17:50:59 +0000 | [diff] [blame] | 9232 | Linux*|GNU*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 9233 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 9234 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 9235 | OpenBSD*|FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 9236 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9237 | then |
| 9238 | LDSHARED="cc -shared ${LDFLAGS}" |
| 9239 | else |
| 9240 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 9241 | fi;; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 9242 | NetBSD*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9243 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9244 | if test "$GCC" = "yes" |
| 9245 | then LDSHARED="$(CC) -shared" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9246 | else LDSHARED="$(CC) -G" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9247 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9248 | SCO_SV*) LDSHARED="$(CC) -Wl,-G,-Bexport";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9249 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 9250 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9251 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9252 | *) LDSHARED="ld";; |
| 9253 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9254 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9255 | echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 9256 | echo "${ECHO_T}$LDSHARED" >&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9257 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9258 | # 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] | 9259 | # library (module) -- this is only needed for a few systems |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9260 | echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 9261 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9262 | if test -z "$CCSHARED" |
| 9263 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9264 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 9265 | SunOS*) if test "$GCC" = yes; |
| 9266 | then CCSHARED="-fPIC"; |
| 9267 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9268 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 9269 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9270 | else CCSHARED="+z"; |
| 9271 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9272 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9273 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 9274 | FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9275 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9276 | if test "$GCC" = "yes" |
| 9277 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9278 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9279 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9280 | SCO_SV*) |
| 9281 | if test "$GCC" = "yes" |
| 9282 | then CCSHARED="-fPIC" |
| 9283 | else CCSHARED="-Kpic -belf" |
| 9284 | fi;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9285 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9286 | IRIX*/6*) case $CC in |
| 9287 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 9288 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9289 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9290 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9291 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9292 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9293 | echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 9294 | echo "${ECHO_T}$CCSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9295 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9296 | # 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] | 9297 | echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 9298 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9299 | if test -z "$LINKFORSHARED" |
| 9300 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9301 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9302 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 9303 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 9304 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 9305 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9306 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9307 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9308 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9309 | Darwin/*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9310 | # -u __dummy makes the linker aware of the objc runtime |
| 9311 | # in System.framework; otherwise, __objcInit (referenced in |
| 9312 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 9313 | # loading of any modules which reference it in System.framework. |
| 9314 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, which is |
| 9315 | # not used by the core itself but which needs to be in the core so |
| 9316 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9317 | LINKFORSHARED="$extra_undefs -framework System" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9318 | if test "$enable_framework" |
| 9319 | then |
| 9320 | LINKFORSHARED="$LINKFORSHARED -framework Python" |
| 9321 | fi |
| 9322 | LINKFORSHARED="$LINKFORSHARED $extra_frameworks";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9323 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9324 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 9325 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9326 | FreeBSD*|NetBSD*|OpenBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 9327 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 9328 | then |
| 9329 | LINKFORSHARED="-Wl,--export-dynamic" |
| 9330 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9331 | SunOS/5*) case $CC in |
| 9332 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 9333 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 9334 | then |
| 9335 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9336 | fi;; |
| 9337 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9338 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9339 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9340 | echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 9341 | echo "${ECHO_T}$LINKFORSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9342 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9343 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9344 | echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 9345 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9346 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 9347 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 9348 | case $ac_sys_system in |
| 9349 | CYGWIN*) |
| 9350 | # Cygwin needs CCSHARED when building extension DLLs |
| 9351 | # but not when building the interpreter DLL. |
| 9352 | CFLAGSFORSHARED='';; |
| 9353 | *) |
| 9354 | CFLAGSFORSHARED='$(CCSHARED)' |
| 9355 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9356 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9357 | echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 9358 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9359 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9360 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 9361 | # library (with --enable-shared). |
| 9362 | # For platforms on which shared libraries are not allowed to have unresolved |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 9363 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 9364 | # if it is not required, since it creates a dependency of the shared library |
| 9365 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 9366 | # don't need to link LIBS explicitly. The default should be only changed |
| 9367 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9368 | |
| 9369 | echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 9370 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6 |
| 9371 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9372 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 9373 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9374 | esac |
| 9375 | echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 9376 | echo "${ECHO_T}$SHLIBS" >&6 |
| 9377 | |
| 9378 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9379 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9380 | |
| 9381 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9382 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 9383 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9384 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9385 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9386 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9387 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9388 | cat >conftest.$ac_ext <<_ACEOF |
| 9389 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9390 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9391 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9392 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9393 | #ifdef __cplusplus |
| 9394 | extern "C" |
| 9395 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9396 | /* 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] | 9397 | builtin and then its argument prototype would still apply. */ |
| 9398 | char dlopen (); |
| 9399 | #ifdef F77_DUMMY_MAIN |
| 9400 | # ifdef __cplusplus |
| 9401 | extern "C" |
| 9402 | # endif |
| 9403 | int F77_DUMMY_MAIN() { return 1; } |
| 9404 | #endif |
| 9405 | int |
| 9406 | main () |
| 9407 | { |
| 9408 | dlopen (); |
| 9409 | ; |
| 9410 | return 0; |
| 9411 | } |
| 9412 | _ACEOF |
| 9413 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9414 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9415 | (eval $ac_link) 2>&5 |
| 9416 | ac_status=$? |
| 9417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9418 | (exit $ac_status); } && |
| 9419 | { ac_try='test -s conftest$ac_exeext' |
| 9420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9421 | (eval $ac_try) 2>&5 |
| 9422 | ac_status=$? |
| 9423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9424 | (exit $ac_status); }; }; then |
| 9425 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9426 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9427 | echo "$as_me: failed program was:" >&5 |
| 9428 | cat conftest.$ac_ext >&5 |
| 9429 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9430 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9431 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9432 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9433 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9434 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9435 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 9436 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 9437 | cat >>confdefs.h <<_ACEOF |
| 9438 | #define HAVE_LIBDL 1 |
| 9439 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9440 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9441 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9442 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9443 | fi |
| 9444 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9445 | |
| 9446 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9447 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 9448 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9450 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9451 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9452 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9453 | cat >conftest.$ac_ext <<_ACEOF |
| 9454 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9455 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9456 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9457 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9458 | #ifdef __cplusplus |
| 9459 | extern "C" |
| 9460 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9461 | /* 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] | 9462 | builtin and then its argument prototype would still apply. */ |
| 9463 | char shl_load (); |
| 9464 | #ifdef F77_DUMMY_MAIN |
| 9465 | # ifdef __cplusplus |
| 9466 | extern "C" |
| 9467 | # endif |
| 9468 | int F77_DUMMY_MAIN() { return 1; } |
| 9469 | #endif |
| 9470 | int |
| 9471 | main () |
| 9472 | { |
| 9473 | shl_load (); |
| 9474 | ; |
| 9475 | return 0; |
| 9476 | } |
| 9477 | _ACEOF |
| 9478 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9479 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9480 | (eval $ac_link) 2>&5 |
| 9481 | ac_status=$? |
| 9482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9483 | (exit $ac_status); } && |
| 9484 | { ac_try='test -s conftest$ac_exeext' |
| 9485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9486 | (eval $ac_try) 2>&5 |
| 9487 | ac_status=$? |
| 9488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9489 | (exit $ac_status); }; }; then |
| 9490 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9491 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9492 | echo "$as_me: failed program was:" >&5 |
| 9493 | cat conftest.$ac_ext >&5 |
| 9494 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9495 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9496 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9497 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9498 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9499 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9500 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 9501 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 9502 | cat >>confdefs.h <<_ACEOF |
| 9503 | #define HAVE_LIBDLD 1 |
| 9504 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9505 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9506 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9507 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9508 | fi |
| 9509 | # Dynamic linking for HP-UX |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9510 | echo "$as_me:$LINENO: checking for library containing sem_init" >&5 |
| 9511 | echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6 |
| 9512 | if test "${ac_cv_search_sem_init+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9514 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9515 | ac_func_search_save_LIBS=$LIBS |
| 9516 | ac_cv_search_sem_init=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9517 | cat >conftest.$ac_ext <<_ACEOF |
| 9518 | #line $LINENO "configure" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9519 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9520 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9521 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9522 | #ifdef __cplusplus |
| 9523 | extern "C" |
| 9524 | #endif |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9525 | /* 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] | 9526 | builtin and then its argument prototype would still apply. */ |
| 9527 | char sem_init (); |
| 9528 | #ifdef F77_DUMMY_MAIN |
| 9529 | # ifdef __cplusplus |
| 9530 | extern "C" |
| 9531 | # endif |
| 9532 | int F77_DUMMY_MAIN() { return 1; } |
| 9533 | #endif |
| 9534 | int |
| 9535 | main () |
| 9536 | { |
| 9537 | sem_init (); |
| 9538 | ; |
| 9539 | return 0; |
| 9540 | } |
| 9541 | _ACEOF |
| 9542 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9543 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9544 | (eval $ac_link) 2>&5 |
| 9545 | ac_status=$? |
| 9546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9547 | (exit $ac_status); } && |
| 9548 | { ac_try='test -s conftest$ac_exeext' |
| 9549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9550 | (eval $ac_try) 2>&5 |
| 9551 | ac_status=$? |
| 9552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9553 | (exit $ac_status); }; }; then |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9554 | ac_cv_search_sem_init="none required" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9555 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9556 | echo "$as_me: failed program was:" >&5 |
| 9557 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9558 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9559 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9560 | if test "$ac_cv_search_sem_init" = no; then |
| 9561 | for ac_lib in rt posix4; do |
| 9562 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9563 | cat >conftest.$ac_ext <<_ACEOF |
| 9564 | #line $LINENO "configure" |
| 9565 | #include "confdefs.h" |
| 9566 | |
| 9567 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9568 | #ifdef __cplusplus |
| 9569 | extern "C" |
| 9570 | #endif |
| 9571 | /* We use char because int might match the return type of a gcc2 |
| 9572 | builtin and then its argument prototype would still apply. */ |
| 9573 | char sem_init (); |
| 9574 | #ifdef F77_DUMMY_MAIN |
| 9575 | # ifdef __cplusplus |
| 9576 | extern "C" |
| 9577 | # endif |
| 9578 | int F77_DUMMY_MAIN() { return 1; } |
| 9579 | #endif |
| 9580 | int |
| 9581 | main () |
| 9582 | { |
| 9583 | sem_init (); |
| 9584 | ; |
| 9585 | return 0; |
| 9586 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9587 | _ACEOF |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9588 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9589 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9590 | (eval $ac_link) 2>&5 |
| 9591 | ac_status=$? |
| 9592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9593 | (exit $ac_status); } && |
| 9594 | { ac_try='test -s conftest$ac_exeext' |
| 9595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9596 | (eval $ac_try) 2>&5 |
| 9597 | ac_status=$? |
| 9598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9599 | (exit $ac_status); }; }; then |
| 9600 | ac_cv_search_sem_init="-l$ac_lib" |
| 9601 | break |
| 9602 | else |
| 9603 | echo "$as_me: failed program was:" >&5 |
| 9604 | cat conftest.$ac_ext >&5 |
| 9605 | fi |
| 9606 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9607 | done |
| 9608 | fi |
| 9609 | LIBS=$ac_func_search_save_LIBS |
| 9610 | fi |
| 9611 | echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 9612 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6 |
| 9613 | if test "$ac_cv_search_sem_init" != no; then |
| 9614 | test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9615 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9616 | fi |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9617 | # 'Real Time' functions on Solaris, |
| 9618 | # posix4 on Solaris 2.6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9619 | |
| 9620 | # checks for system dependent C++ extensions support |
| 9621 | case "$ac_sys_system" in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9622 | AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 9623 | echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6 |
| 9624 | cat >conftest.$ac_ext <<_ACEOF |
| 9625 | #line $LINENO "configure" |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9626 | #include "confdefs.h" |
| 9627 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9628 | #ifdef F77_DUMMY_MAIN |
| 9629 | # ifdef __cplusplus |
| 9630 | extern "C" |
| 9631 | # endif |
| 9632 | int F77_DUMMY_MAIN() { return 1; } |
| 9633 | #endif |
| 9634 | int |
| 9635 | main () |
| 9636 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9637 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9638 | ; |
| 9639 | return 0; |
| 9640 | } |
| 9641 | _ACEOF |
| 9642 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9643 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9644 | (eval $ac_link) 2>&5 |
| 9645 | ac_status=$? |
| 9646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9647 | (exit $ac_status); } && |
| 9648 | { ac_try='test -s conftest$ac_exeext' |
| 9649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9650 | (eval $ac_try) 2>&5 |
| 9651 | ac_status=$? |
| 9652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9653 | (exit $ac_status); }; }; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9654 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9655 | cat >>confdefs.h <<\_ACEOF |
| 9656 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 9657 | _ACEOF |
| 9658 | |
| 9659 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9660 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9661 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9662 | echo "$as_me: failed program was:" >&5 |
| 9663 | cat conftest.$ac_ext >&5 |
| 9664 | echo "$as_me:$LINENO: result: no" >&5 |
| 9665 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9666 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9667 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9668 | *) ;; |
| 9669 | esac |
| 9670 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9671 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
| 9672 | # However on SGI IRIX, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9673 | # BeOS' sockets are stashed in libnet. |
| 9674 | case "$ac_sys_system" in |
| 9675 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9676 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9677 | echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 9678 | echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6 |
| 9679 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 9680 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9681 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9682 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9683 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9684 | cat >conftest.$ac_ext <<_ACEOF |
| 9685 | #line $LINENO "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9686 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9687 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9688 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9689 | #ifdef __cplusplus |
| 9690 | extern "C" |
| 9691 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9692 | /* 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] | 9693 | builtin and then its argument prototype would still apply. */ |
| 9694 | char t_open (); |
| 9695 | #ifdef F77_DUMMY_MAIN |
| 9696 | # ifdef __cplusplus |
| 9697 | extern "C" |
| 9698 | # endif |
| 9699 | int F77_DUMMY_MAIN() { return 1; } |
| 9700 | #endif |
| 9701 | int |
| 9702 | main () |
| 9703 | { |
| 9704 | t_open (); |
| 9705 | ; |
| 9706 | return 0; |
| 9707 | } |
| 9708 | _ACEOF |
| 9709 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9710 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9711 | (eval $ac_link) 2>&5 |
| 9712 | ac_status=$? |
| 9713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9714 | (exit $ac_status); } && |
| 9715 | { ac_try='test -s conftest$ac_exeext' |
| 9716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9717 | (eval $ac_try) 2>&5 |
| 9718 | ac_status=$? |
| 9719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9720 | (exit $ac_status); }; }; then |
| 9721 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9722 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9723 | echo "$as_me: failed program was:" >&5 |
| 9724 | cat conftest.$ac_ext >&5 |
| 9725 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9726 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9727 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9728 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9729 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9730 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 9731 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6 |
| 9732 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9733 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9734 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 9735 | # SVR4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9736 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 9737 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 9738 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 9739 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9740 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9741 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9742 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9743 | cat >conftest.$ac_ext <<_ACEOF |
| 9744 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9745 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9746 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9747 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9748 | #ifdef __cplusplus |
| 9749 | extern "C" |
| 9750 | #endif |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9751 | /* 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] | 9752 | builtin and then its argument prototype would still apply. */ |
| 9753 | char socket (); |
| 9754 | #ifdef F77_DUMMY_MAIN |
| 9755 | # ifdef __cplusplus |
| 9756 | extern "C" |
| 9757 | # endif |
| 9758 | int F77_DUMMY_MAIN() { return 1; } |
| 9759 | #endif |
| 9760 | int |
| 9761 | main () |
| 9762 | { |
| 9763 | socket (); |
| 9764 | ; |
| 9765 | return 0; |
| 9766 | } |
| 9767 | _ACEOF |
| 9768 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9769 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9770 | (eval $ac_link) 2>&5 |
| 9771 | ac_status=$? |
| 9772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9773 | (exit $ac_status); } && |
| 9774 | { ac_try='test -s conftest$ac_exeext' |
| 9775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9776 | (eval $ac_try) 2>&5 |
| 9777 | ac_status=$? |
| 9778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9779 | (exit $ac_status); }; }; then |
| 9780 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9781 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9782 | echo "$as_me: failed program was:" >&5 |
| 9783 | cat conftest.$ac_ext >&5 |
| 9784 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9785 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9786 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9787 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9788 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9789 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 9790 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 9791 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9792 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9793 | fi |
| 9794 | # SVR4 sockets |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 9795 | ;; |
| 9796 | esac |
| 9797 | case "$ac_sys_system" in |
| 9798 | BeOS*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9799 | echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 9800 | echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6 |
| 9801 | if test "${ac_cv_lib_net_socket+set}" = set; then |
| 9802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9803 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9804 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9805 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9806 | cat >conftest.$ac_ext <<_ACEOF |
| 9807 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9808 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9809 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9810 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9811 | #ifdef __cplusplus |
| 9812 | extern "C" |
| 9813 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9814 | /* We use char because int might match the return type of a gcc2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9815 | builtin and then its argument prototype would still apply. */ |
| 9816 | char socket (); |
| 9817 | #ifdef F77_DUMMY_MAIN |
| 9818 | # ifdef __cplusplus |
| 9819 | extern "C" |
| 9820 | # endif |
| 9821 | int F77_DUMMY_MAIN() { return 1; } |
| 9822 | #endif |
| 9823 | int |
| 9824 | main () |
| 9825 | { |
| 9826 | socket (); |
| 9827 | ; |
| 9828 | return 0; |
| 9829 | } |
| 9830 | _ACEOF |
| 9831 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9832 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9833 | (eval $ac_link) 2>&5 |
| 9834 | ac_status=$? |
| 9835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9836 | (exit $ac_status); } && |
| 9837 | { ac_try='test -s conftest$ac_exeext' |
| 9838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9839 | (eval $ac_try) 2>&5 |
| 9840 | ac_status=$? |
| 9841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9842 | (exit $ac_status); }; }; then |
| 9843 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9844 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9845 | echo "$as_me: failed program was:" >&5 |
| 9846 | cat conftest.$ac_ext >&5 |
| 9847 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9848 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9849 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9850 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9851 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9852 | echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 9853 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6 |
| 9854 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9855 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9856 | fi |
| 9857 | # BeOS |
| 9858 | ;; |
| 9859 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9860 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9861 | echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 9862 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6 |
| 9863 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9864 | # Check whether --with-libs or --without-libs was given. |
| 9865 | if test "${with_libs+set}" = set; then |
| 9866 | withval="$with_libs" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9867 | |
| 9868 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 9869 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9870 | LIBS="$withval $LIBS" |
| 9871 | |
| 9872 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9873 | echo "$as_me:$LINENO: result: no" >&5 |
| 9874 | echo "${ECHO_T}no" >&6 |
| 9875 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9876 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9877 | # Determine if signalmodule should be used. |
| 9878 | |
| 9879 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9880 | echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 9881 | echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6 |
| 9882 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9883 | # Check whether --with-signal-module or --without-signal-module was given. |
| 9884 | if test "${with_signal_module+set}" = set; then |
| 9885 | withval="$with_signal_module" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9886 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9887 | fi; |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9888 | |
| 9889 | if test -z "$with_signal_module" |
| 9890 | then with_signal_module="yes" |
| 9891 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9892 | echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 9893 | echo "${ECHO_T}$with_signal_module" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9894 | |
| 9895 | if test "${with_signal_module}" = "yes"; then |
| 9896 | USE_SIGNAL_MODULE="" |
| 9897 | SIGNAL_OBJS="" |
| 9898 | else |
| 9899 | USE_SIGNAL_MODULE="#" |
| 9900 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 9901 | fi |
| 9902 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 9903 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9904 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9905 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9906 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9907 | echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 9908 | echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6 |
| 9909 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9910 | |
| 9911 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 9912 | if test "${with_dec_threads+set}" = set; then |
| 9913 | withval="$with_dec_threads" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9914 | |
| 9915 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 9916 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9917 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9918 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9919 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9920 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9921 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9922 | echo "$as_me:$LINENO: result: no" >&5 |
| 9923 | echo "${ECHO_T}no" >&6 |
| 9924 | fi; |
| 9925 | |
| 9926 | # Templates for things AC_DEFINEd more than once. |
| 9927 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9928 | |
| 9929 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9930 | |
| 9931 | |
| 9932 | |
| 9933 | |
| 9934 | |
| 9935 | echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 9936 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6 |
| 9937 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9938 | # Check whether --with-threads or --without-threads was given. |
| 9939 | if test "${with_threads+set}" = set; then |
| 9940 | withval="$with_threads" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9941 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9942 | fi; |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9943 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9944 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9945 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9946 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9947 | if test "${with_thread+set}" = set; then |
| 9948 | withval="$with_thread" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9949 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9950 | with_threads=$with_thread |
| 9951 | fi; |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9952 | |
| 9953 | if test -z "$with_threads" |
| 9954 | then with_threads="yes" |
| 9955 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9956 | echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 9957 | echo "${ECHO_T}$with_threads" >&6 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9958 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9959 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9960 | if test "$with_threads" = "no" |
| 9961 | then |
| 9962 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9963 | elif test "$ac_cv_pthread_is_default" = yes |
| 9964 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9965 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9966 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9967 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9968 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9969 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9970 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9971 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9972 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9973 | |
| 9974 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9975 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9976 | elif test "$ac_cv_kpthread" = "yes" |
| 9977 | then |
| 9978 | CC="$CC -Kpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9979 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 9980 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9981 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 9982 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9983 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9984 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9985 | else |
| 9986 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 9987 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 9988 | fi |
| 9989 | if test ! -z "$withval" -a -d "$withval" |
| 9990 | then LDFLAGS="$LDFLAGS -L$withval" |
| 9991 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9992 | |
| 9993 | # According to the POSIX spec, a pthreads implementation must |
| 9994 | # 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] | 9995 | echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 9996 | echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6 |
| 9997 | cat >conftest.$ac_ext <<_ACEOF |
| 9998 | #line $LINENO "configure" |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 9999 | #include "confdefs.h" |
| 10000 | #include <unistd.h> |
| 10001 | #ifdef _POSIX_THREADS |
| 10002 | yes |
| 10003 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10004 | |
| 10005 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10006 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10007 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10008 | unistd_defines_pthreads=yes |
| 10009 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10010 | unistd_defines_pthreads=no |
| 10011 | fi |
| 10012 | rm -f conftest* |
| 10013 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10014 | echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 10015 | echo "${ECHO_T}$unistd_defines_pthreads" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10016 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10017 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10018 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10019 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10020 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10021 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10022 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 10023 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 10024 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10026 | fi |
| 10027 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 10028 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10029 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10030 | # Is the header compilable? |
| 10031 | echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 10032 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6 |
| 10033 | cat >conftest.$ac_ext <<_ACEOF |
| 10034 | #line $LINENO "configure" |
| 10035 | #include "confdefs.h" |
| 10036 | $ac_includes_default |
| 10037 | #include <cthreads.h> |
| 10038 | _ACEOF |
| 10039 | rm -f conftest.$ac_objext |
| 10040 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10041 | (eval $ac_compile) 2>&5 |
| 10042 | ac_status=$? |
| 10043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10044 | (exit $ac_status); } && |
| 10045 | { ac_try='test -s conftest.$ac_objext' |
| 10046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10047 | (eval $ac_try) 2>&5 |
| 10048 | ac_status=$? |
| 10049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10050 | (exit $ac_status); }; }; then |
| 10051 | ac_header_compiler=yes |
| 10052 | else |
| 10053 | echo "$as_me: failed program was:" >&5 |
| 10054 | cat conftest.$ac_ext >&5 |
| 10055 | ac_header_compiler=no |
| 10056 | fi |
| 10057 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10058 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10059 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10060 | |
| 10061 | # Is the header present? |
| 10062 | echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 10063 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6 |
| 10064 | cat >conftest.$ac_ext <<_ACEOF |
| 10065 | #line $LINENO "configure" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10066 | #include "confdefs.h" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10067 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10068 | _ACEOF |
| 10069 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10070 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10071 | ac_status=$? |
| 10072 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 10073 | rm -f conftest.er1 |
| 10074 | cat conftest.err >&5 |
| 10075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10076 | (exit $ac_status); } >/dev/null; then |
| 10077 | if test -s conftest.err; then |
| 10078 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10079 | else |
| 10080 | ac_cpp_err= |
| 10081 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10082 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10083 | ac_cpp_err=yes |
| 10084 | fi |
| 10085 | if test -z "$ac_cpp_err"; then |
| 10086 | ac_header_preproc=yes |
| 10087 | else |
| 10088 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 10089 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10090 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10091 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10092 | rm -f conftest.err conftest.$ac_ext |
| 10093 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10094 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10095 | |
| 10096 | # So? What about this header? |
| 10097 | case $ac_header_compiler:$ac_header_preproc in |
| 10098 | yes:no ) |
| 10099 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10100 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10101 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10102 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10103 | no:yes ) |
| 10104 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 10105 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 10106 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 10107 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 10108 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10109 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10110 | esac |
| 10111 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 10112 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 10113 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10115 | else |
| 10116 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10117 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10118 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 10119 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
| 10120 | |
| 10121 | fi |
| 10122 | if test $ac_cv_header_cthreads_h = yes; then |
| 10123 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10124 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10125 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10126 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10127 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10128 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10129 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10130 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10131 | |
| 10132 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10133 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10134 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10135 | |
| 10136 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10137 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10138 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10139 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10140 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10141 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 10142 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 10143 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10145 | fi |
| 10146 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 10147 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10148 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10149 | # Is the header compilable? |
| 10150 | echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 10151 | echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6 |
| 10152 | cat >conftest.$ac_ext <<_ACEOF |
| 10153 | #line $LINENO "configure" |
| 10154 | #include "confdefs.h" |
| 10155 | $ac_includes_default |
| 10156 | #include <mach/cthreads.h> |
| 10157 | _ACEOF |
| 10158 | rm -f conftest.$ac_objext |
| 10159 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10160 | (eval $ac_compile) 2>&5 |
| 10161 | ac_status=$? |
| 10162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10163 | (exit $ac_status); } && |
| 10164 | { ac_try='test -s conftest.$ac_objext' |
| 10165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10166 | (eval $ac_try) 2>&5 |
| 10167 | ac_status=$? |
| 10168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10169 | (exit $ac_status); }; }; then |
| 10170 | ac_header_compiler=yes |
| 10171 | else |
| 10172 | echo "$as_me: failed program was:" >&5 |
| 10173 | cat conftest.$ac_ext >&5 |
| 10174 | ac_header_compiler=no |
| 10175 | fi |
| 10176 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10177 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10178 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10179 | |
| 10180 | # Is the header present? |
| 10181 | echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 10182 | echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6 |
| 10183 | cat >conftest.$ac_ext <<_ACEOF |
| 10184 | #line $LINENO "configure" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10185 | #include "confdefs.h" |
| 10186 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10187 | _ACEOF |
| 10188 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10189 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10190 | ac_status=$? |
| 10191 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 10192 | rm -f conftest.er1 |
| 10193 | cat conftest.err >&5 |
| 10194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10195 | (exit $ac_status); } >/dev/null; then |
| 10196 | if test -s conftest.err; then |
| 10197 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10198 | else |
| 10199 | ac_cpp_err= |
| 10200 | fi |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10201 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10202 | ac_cpp_err=yes |
| 10203 | fi |
| 10204 | if test -z "$ac_cpp_err"; then |
| 10205 | ac_header_preproc=yes |
| 10206 | else |
| 10207 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10208 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10209 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10210 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10211 | rm -f conftest.err conftest.$ac_ext |
| 10212 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10213 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10214 | |
| 10215 | # So? What about this header? |
| 10216 | case $ac_header_compiler:$ac_header_preproc in |
| 10217 | yes:no ) |
| 10218 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10219 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10220 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10221 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10222 | no:yes ) |
| 10223 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 10224 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 10225 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 10226 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 10227 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10228 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10229 | esac |
| 10230 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 10231 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 10232 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10233 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10234 | else |
| 10235 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10236 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10237 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 10238 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
| 10239 | |
| 10240 | fi |
| 10241 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 10242 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10243 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10244 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10245 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10246 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10247 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10248 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10249 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10250 | |
| 10251 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10252 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10253 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10254 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10255 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10256 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10257 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10258 | echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 10259 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6 |
| 10260 | |
| 10261 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10262 | if test "${with_pth+set}" = set; then |
| 10263 | withval="$with_pth" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10264 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10265 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 10266 | echo "${ECHO_T}$withval" >&6 |
| 10267 | cat >>confdefs.h <<\_ACEOF |
| 10268 | #define WITH_THREAD 1 |
| 10269 | _ACEOF |
| 10270 | |
| 10271 | |
| 10272 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10273 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10274 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10275 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10276 | LIBS="-lpth $LIBS" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10277 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10278 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10279 | |
| 10280 | echo "$as_me:$LINENO: result: no" >&5 |
| 10281 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10282 | |
| 10283 | # Just looking for pthread_create in libpthread is not enough: |
| 10284 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 10285 | # So we really have to include pthread.h, and then link. |
| 10286 | _libs=$LIBS |
| 10287 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10288 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 10289 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 10290 | cat >conftest.$ac_ext <<_ACEOF |
| 10291 | #line $LINENO "configure" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10292 | #include "confdefs.h" |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10293 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10294 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10295 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10296 | #ifdef F77_DUMMY_MAIN |
| 10297 | # ifdef __cplusplus |
| 10298 | extern "C" |
| 10299 | # endif |
| 10300 | int F77_DUMMY_MAIN() { return 1; } |
| 10301 | #endif |
| 10302 | int |
| 10303 | main () |
| 10304 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10305 | |
| 10306 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10307 | ; |
| 10308 | return 0; |
| 10309 | } |
| 10310 | _ACEOF |
| 10311 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10312 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10313 | (eval $ac_link) 2>&5 |
| 10314 | ac_status=$? |
| 10315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10316 | (exit $ac_status); } && |
| 10317 | { ac_try='test -s conftest$ac_exeext' |
| 10318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10319 | (eval $ac_try) 2>&5 |
| 10320 | ac_status=$? |
| 10321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10322 | (exit $ac_status); }; }; then |
| 10323 | |
| 10324 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10325 | echo "${ECHO_T}yes" >&6 |
| 10326 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10327 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10328 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10329 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10330 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10331 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10332 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10333 | echo "$as_me: failed program was:" >&5 |
| 10334 | cat conftest.$ac_ext >&5 |
| 10335 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10336 | LIBS=$_libs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10337 | echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 10338 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6 |
| 10339 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 10340 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10341 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10342 | cat >conftest.$ac_ext <<_ACEOF |
| 10343 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10344 | #include "confdefs.h" |
| 10345 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10346 | which can conflict with char pthread_detach (); below. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10347 | #include <assert.h> |
| 10348 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10349 | #ifdef __cplusplus |
| 10350 | extern "C" |
| 10351 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10352 | /* 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] | 10353 | builtin and then its argument prototype would still apply. */ |
| 10354 | char pthread_detach (); |
| 10355 | char (*f) (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10356 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10357 | #ifdef F77_DUMMY_MAIN |
| 10358 | # ifdef __cplusplus |
| 10359 | extern "C" |
| 10360 | # endif |
| 10361 | int F77_DUMMY_MAIN() { return 1; } |
| 10362 | #endif |
| 10363 | int |
| 10364 | main () |
| 10365 | { |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10366 | /* The GNU C library defines this for functions which it implements |
| 10367 | to always fail with ENOSYS. Some functions are actually named |
| 10368 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 10369 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10370 | choke me |
| 10371 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10372 | f = pthread_detach; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10373 | #endif |
| 10374 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10375 | ; |
| 10376 | return 0; |
| 10377 | } |
| 10378 | _ACEOF |
| 10379 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10380 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10381 | (eval $ac_link) 2>&5 |
| 10382 | ac_status=$? |
| 10383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10384 | (exit $ac_status); } && |
| 10385 | { ac_try='test -s conftest$ac_exeext' |
| 10386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10387 | (eval $ac_try) 2>&5 |
| 10388 | ac_status=$? |
| 10389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10390 | (exit $ac_status); }; }; then |
| 10391 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10392 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10393 | echo "$as_me: failed program was:" >&5 |
| 10394 | cat conftest.$ac_ext >&5 |
| 10395 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10396 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10397 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10398 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10399 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 10400 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6 |
| 10401 | if test $ac_cv_func_pthread_detach = yes; then |
| 10402 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10403 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10404 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10405 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10406 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10407 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10408 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10409 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10410 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10411 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 10412 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 10413 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10414 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10415 | fi |
| 10416 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 10417 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 10418 | else |
| 10419 | # Is the header compilable? |
| 10420 | echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 10421 | echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6 |
| 10422 | cat >conftest.$ac_ext <<_ACEOF |
| 10423 | #line $LINENO "configure" |
| 10424 | #include "confdefs.h" |
| 10425 | $ac_includes_default |
| 10426 | #include <atheos/threads.h> |
| 10427 | _ACEOF |
| 10428 | rm -f conftest.$ac_objext |
| 10429 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10430 | (eval $ac_compile) 2>&5 |
| 10431 | ac_status=$? |
| 10432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10433 | (exit $ac_status); } && |
| 10434 | { ac_try='test -s conftest.$ac_objext' |
| 10435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10436 | (eval $ac_try) 2>&5 |
| 10437 | ac_status=$? |
| 10438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10439 | (exit $ac_status); }; }; then |
| 10440 | ac_header_compiler=yes |
| 10441 | else |
| 10442 | echo "$as_me: failed program was:" >&5 |
| 10443 | cat conftest.$ac_ext >&5 |
| 10444 | ac_header_compiler=no |
| 10445 | fi |
| 10446 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10447 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10448 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10449 | |
| 10450 | # Is the header present? |
| 10451 | echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 10452 | echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6 |
| 10453 | cat >conftest.$ac_ext <<_ACEOF |
| 10454 | #line $LINENO "configure" |
| 10455 | #include "confdefs.h" |
| 10456 | #include <atheos/threads.h> |
| 10457 | _ACEOF |
| 10458 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10459 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10460 | ac_status=$? |
| 10461 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 10462 | rm -f conftest.er1 |
| 10463 | cat conftest.err >&5 |
| 10464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10465 | (exit $ac_status); } >/dev/null; then |
| 10466 | if test -s conftest.err; then |
| 10467 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10468 | else |
| 10469 | ac_cpp_err= |
| 10470 | fi |
| 10471 | else |
| 10472 | ac_cpp_err=yes |
| 10473 | fi |
| 10474 | if test -z "$ac_cpp_err"; then |
| 10475 | ac_header_preproc=yes |
| 10476 | else |
| 10477 | echo "$as_me: failed program was:" >&5 |
| 10478 | cat conftest.$ac_ext >&5 |
| 10479 | ac_header_preproc=no |
| 10480 | fi |
| 10481 | rm -f conftest.err conftest.$ac_ext |
| 10482 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10483 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10484 | |
| 10485 | # So? What about this header? |
| 10486 | case $ac_header_compiler:$ac_header_preproc in |
| 10487 | yes:no ) |
| 10488 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10489 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10490 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 10491 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};; |
| 10492 | no:yes ) |
| 10493 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 10494 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
| 10495 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 10496 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 10497 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 10498 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};; |
| 10499 | esac |
| 10500 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 10501 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 10502 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10504 | else |
| 10505 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 10506 | fi |
| 10507 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 10508 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 10509 | |
| 10510 | fi |
| 10511 | if test $ac_cv_header_atheos_threads_h = yes; then |
| 10512 | cat >>confdefs.h <<\_ACEOF |
| 10513 | #define WITH_THREAD 1 |
| 10514 | _ACEOF |
| 10515 | |
| 10516 | |
| 10517 | cat >>confdefs.h <<\_ACEOF |
| 10518 | #define ATHEOS_THREADS 1 |
| 10519 | _ACEOF |
| 10520 | |
| 10521 | THREADOBJ="Python/thread.o" |
| 10522 | else |
| 10523 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10524 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10525 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 10526 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 10527 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10528 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10529 | fi |
| 10530 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 10531 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10532 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10533 | # Is the header compilable? |
| 10534 | echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 10535 | echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6 |
| 10536 | cat >conftest.$ac_ext <<_ACEOF |
| 10537 | #line $LINENO "configure" |
| 10538 | #include "confdefs.h" |
| 10539 | $ac_includes_default |
| 10540 | #include <kernel/OS.h> |
| 10541 | _ACEOF |
| 10542 | rm -f conftest.$ac_objext |
| 10543 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10544 | (eval $ac_compile) 2>&5 |
| 10545 | ac_status=$? |
| 10546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10547 | (exit $ac_status); } && |
| 10548 | { ac_try='test -s conftest.$ac_objext' |
| 10549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10550 | (eval $ac_try) 2>&5 |
| 10551 | ac_status=$? |
| 10552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10553 | (exit $ac_status); }; }; then |
| 10554 | ac_header_compiler=yes |
| 10555 | else |
| 10556 | echo "$as_me: failed program was:" >&5 |
| 10557 | cat conftest.$ac_ext >&5 |
| 10558 | ac_header_compiler=no |
| 10559 | fi |
| 10560 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10561 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10562 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10563 | |
| 10564 | # Is the header present? |
| 10565 | echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 10566 | echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6 |
| 10567 | cat >conftest.$ac_ext <<_ACEOF |
| 10568 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10569 | #include "confdefs.h" |
| 10570 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10571 | _ACEOF |
| 10572 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10573 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10574 | ac_status=$? |
| 10575 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 10576 | rm -f conftest.er1 |
| 10577 | cat conftest.err >&5 |
| 10578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10579 | (exit $ac_status); } >/dev/null; then |
| 10580 | if test -s conftest.err; then |
| 10581 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10582 | else |
| 10583 | ac_cpp_err= |
| 10584 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10585 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10586 | ac_cpp_err=yes |
| 10587 | fi |
| 10588 | if test -z "$ac_cpp_err"; then |
| 10589 | ac_header_preproc=yes |
| 10590 | else |
| 10591 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10592 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10593 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10594 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10595 | rm -f conftest.err conftest.$ac_ext |
| 10596 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10597 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10598 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10599 | # So? What about this header? |
| 10600 | case $ac_header_compiler:$ac_header_preproc in |
| 10601 | yes:no ) |
| 10602 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10603 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10604 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 10605 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};; |
| 10606 | no:yes ) |
| 10607 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 10608 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
| 10609 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 10610 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 10611 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 10612 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};; |
| 10613 | esac |
| 10614 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 10615 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 10616 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10618 | else |
| 10619 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 10620 | fi |
| 10621 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 10622 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
| 10623 | |
| 10624 | fi |
| 10625 | if test $ac_cv_header_kernel_OS_h = yes; then |
| 10626 | cat >>confdefs.h <<\_ACEOF |
| 10627 | #define WITH_THREAD 1 |
| 10628 | _ACEOF |
| 10629 | |
| 10630 | |
| 10631 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10632 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10633 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10634 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10635 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10636 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10637 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10638 | echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 10639 | echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6 |
| 10640 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 10641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10642 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10643 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10644 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10645 | cat >conftest.$ac_ext <<_ACEOF |
| 10646 | #line $LINENO "configure" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10647 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10648 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10649 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10650 | #ifdef __cplusplus |
| 10651 | extern "C" |
| 10652 | #endif |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10653 | /* 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] | 10654 | builtin and then its argument prototype would still apply. */ |
| 10655 | char pthread_create (); |
| 10656 | #ifdef F77_DUMMY_MAIN |
| 10657 | # ifdef __cplusplus |
| 10658 | extern "C" |
| 10659 | # endif |
| 10660 | int F77_DUMMY_MAIN() { return 1; } |
| 10661 | #endif |
| 10662 | int |
| 10663 | main () |
| 10664 | { |
| 10665 | pthread_create (); |
| 10666 | ; |
| 10667 | return 0; |
| 10668 | } |
| 10669 | _ACEOF |
| 10670 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10671 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10672 | (eval $ac_link) 2>&5 |
| 10673 | ac_status=$? |
| 10674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10675 | (exit $ac_status); } && |
| 10676 | { ac_try='test -s conftest$ac_exeext' |
| 10677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10678 | (eval $ac_try) 2>&5 |
| 10679 | ac_status=$? |
| 10680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10681 | (exit $ac_status); }; }; then |
| 10682 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10683 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10684 | echo "$as_me: failed program was:" >&5 |
| 10685 | cat conftest.$ac_ext >&5 |
| 10686 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10687 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10688 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10689 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10690 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10691 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 10692 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6 |
| 10693 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 10694 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10695 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10696 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10697 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10698 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10699 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10700 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10701 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10702 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10703 | echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 10704 | echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 |
| 10705 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 10706 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10707 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10708 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10709 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10710 | cat >conftest.$ac_ext <<_ACEOF |
| 10711 | #line $LINENO "configure" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10712 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10713 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10714 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10715 | #ifdef __cplusplus |
| 10716 | extern "C" |
| 10717 | #endif |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10718 | /* 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] | 10719 | builtin and then its argument prototype would still apply. */ |
| 10720 | char pthread_create (); |
| 10721 | #ifdef F77_DUMMY_MAIN |
| 10722 | # ifdef __cplusplus |
| 10723 | extern "C" |
| 10724 | # endif |
| 10725 | int F77_DUMMY_MAIN() { return 1; } |
| 10726 | #endif |
| 10727 | int |
| 10728 | main () |
| 10729 | { |
| 10730 | pthread_create (); |
| 10731 | ; |
| 10732 | return 0; |
| 10733 | } |
| 10734 | _ACEOF |
| 10735 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10736 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10737 | (eval $ac_link) 2>&5 |
| 10738 | ac_status=$? |
| 10739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10740 | (exit $ac_status); } && |
| 10741 | { ac_try='test -s conftest$ac_exeext' |
| 10742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10743 | (eval $ac_try) 2>&5 |
| 10744 | ac_status=$? |
| 10745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10746 | (exit $ac_status); }; }; then |
| 10747 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10748 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10749 | echo "$as_me: failed program was:" >&5 |
| 10750 | cat conftest.$ac_ext >&5 |
| 10751 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10752 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10753 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10754 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10755 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10756 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 10757 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 |
| 10758 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 10759 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10760 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10761 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10762 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10763 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10764 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10765 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10766 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10767 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10768 | echo "$as_me:$LINENO: checking for __d6_pthread_create in -lthread" >&5 |
| 10769 | echo $ECHO_N "checking for __d6_pthread_create in -lthread... $ECHO_C" >&6 |
| 10770 | if test "${ac_cv_lib_thread___d6_pthread_create+set}" = set; then |
| 10771 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10772 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10773 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10774 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10775 | cat >conftest.$ac_ext <<_ACEOF |
| 10776 | #line $LINENO "configure" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10777 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10778 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10779 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10780 | #ifdef __cplusplus |
| 10781 | extern "C" |
| 10782 | #endif |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10783 | /* 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] | 10784 | builtin and then its argument prototype would still apply. */ |
| 10785 | char __d6_pthread_create (); |
| 10786 | #ifdef F77_DUMMY_MAIN |
| 10787 | # ifdef __cplusplus |
| 10788 | extern "C" |
| 10789 | # endif |
| 10790 | int F77_DUMMY_MAIN() { return 1; } |
| 10791 | #endif |
| 10792 | int |
| 10793 | main () |
| 10794 | { |
| 10795 | __d6_pthread_create (); |
| 10796 | ; |
| 10797 | return 0; |
| 10798 | } |
| 10799 | _ACEOF |
| 10800 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10801 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10802 | (eval $ac_link) 2>&5 |
| 10803 | ac_status=$? |
| 10804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10805 | (exit $ac_status); } && |
| 10806 | { ac_try='test -s conftest$ac_exeext' |
| 10807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10808 | (eval $ac_try) 2>&5 |
| 10809 | ac_status=$? |
| 10810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10811 | (exit $ac_status); }; }; then |
| 10812 | ac_cv_lib_thread___d6_pthread_create=yes |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10813 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10814 | echo "$as_me: failed program was:" >&5 |
| 10815 | cat conftest.$ac_ext >&5 |
| 10816 | ac_cv_lib_thread___d6_pthread_create=no |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10817 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10818 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10819 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10820 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10821 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread___d6_pthread_create" >&5 |
| 10822 | echo "${ECHO_T}$ac_cv_lib_thread___d6_pthread_create" >&6 |
| 10823 | if test $ac_cv_lib_thread___d6_pthread_create = yes; then |
| 10824 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10825 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10826 | _ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10827 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10828 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10829 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10830 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10831 | else |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10832 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10833 | echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 10834 | echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6 |
| 10835 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 10836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10837 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10838 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10839 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10840 | cat >conftest.$ac_ext <<_ACEOF |
| 10841 | #line $LINENO "configure" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10842 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10843 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10844 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10845 | #ifdef __cplusplus |
| 10846 | extern "C" |
| 10847 | #endif |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10848 | /* 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] | 10849 | builtin and then its argument prototype would still apply. */ |
| 10850 | char __pthread_create_system (); |
| 10851 | #ifdef F77_DUMMY_MAIN |
| 10852 | # ifdef __cplusplus |
| 10853 | extern "C" |
| 10854 | # endif |
| 10855 | int F77_DUMMY_MAIN() { return 1; } |
| 10856 | #endif |
| 10857 | int |
| 10858 | main () |
| 10859 | { |
| 10860 | __pthread_create_system (); |
| 10861 | ; |
| 10862 | return 0; |
| 10863 | } |
| 10864 | _ACEOF |
| 10865 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10866 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10867 | (eval $ac_link) 2>&5 |
| 10868 | ac_status=$? |
| 10869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10870 | (exit $ac_status); } && |
| 10871 | { ac_try='test -s conftest$ac_exeext' |
| 10872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10873 | (eval $ac_try) 2>&5 |
| 10874 | ac_status=$? |
| 10875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10876 | (exit $ac_status); }; }; then |
| 10877 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10878 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10879 | echo "$as_me: failed program was:" >&5 |
| 10880 | cat conftest.$ac_ext >&5 |
| 10881 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10882 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10883 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10884 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10885 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10886 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 10887 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6 |
| 10888 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 10889 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10890 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10891 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10892 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10893 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10894 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10895 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10896 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10897 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10898 | echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 10899 | echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6 |
| 10900 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 10901 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10902 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10903 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10904 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10905 | cat >conftest.$ac_ext <<_ACEOF |
| 10906 | #line $LINENO "configure" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10907 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10908 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10909 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10910 | #ifdef __cplusplus |
| 10911 | extern "C" |
| 10912 | #endif |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10913 | /* 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] | 10914 | builtin and then its argument prototype would still apply. */ |
| 10915 | char pthread_create (); |
| 10916 | #ifdef F77_DUMMY_MAIN |
| 10917 | # ifdef __cplusplus |
| 10918 | extern "C" |
| 10919 | # endif |
| 10920 | int F77_DUMMY_MAIN() { return 1; } |
| 10921 | #endif |
| 10922 | int |
| 10923 | main () |
| 10924 | { |
| 10925 | pthread_create (); |
| 10926 | ; |
| 10927 | return 0; |
| 10928 | } |
| 10929 | _ACEOF |
| 10930 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10931 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10932 | (eval $ac_link) 2>&5 |
| 10933 | ac_status=$? |
| 10934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10935 | (exit $ac_status); } && |
| 10936 | { ac_try='test -s conftest$ac_exeext' |
| 10937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10938 | (eval $ac_try) 2>&5 |
| 10939 | ac_status=$? |
| 10940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10941 | (exit $ac_status); }; }; then |
| 10942 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10943 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10944 | echo "$as_me: failed program was:" >&5 |
| 10945 | cat conftest.$ac_ext >&5 |
| 10946 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10947 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10948 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10949 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10950 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10951 | echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 10952 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6 |
| 10953 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 10954 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10955 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10956 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10957 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10958 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10959 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10960 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10961 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 10962 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10963 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 10964 | fi |
| 10965 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10966 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10967 | fi |
| 10968 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 10969 | fi |
| 10970 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10971 | fi |
| 10972 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10973 | fi |
| 10974 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10975 | fi |
| 10976 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10977 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10978 | fi |
| 10979 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10980 | |
| 10981 | fi |
| 10982 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10983 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10984 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10985 | fi; |
| 10986 | fi |
| 10987 | |
| 10988 | |
| 10989 | fi |
| 10990 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10991 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10992 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10993 | if test "$posix_threads" = "yes"; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10994 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10995 | |
| 10996 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10997 | #define _POSIX_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10998 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10999 | |
| 11000 | fi |
| 11001 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11002 | echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 11003 | echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6 |
| 11004 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 11005 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11006 | else |
| 11007 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 11008 | ac_cv_pthread_system_supported=no |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11009 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11010 | cat >conftest.$ac_ext <<_ACEOF |
| 11011 | #line $LINENO "configure" |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11012 | #include "confdefs.h" |
| 11013 | #include <pthread.h> |
| 11014 | void *foo(void *parm) { |
| 11015 | return NULL; |
| 11016 | } |
| 11017 | main() { |
| 11018 | pthread_attr_t attr; |
Martin v. Löwis | a82d347 | 2002-02-24 16:05:05 +0000 | [diff] [blame] | 11019 | pthread_t id; |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11020 | if (pthread_attr_init(&attr)) exit(-1); |
| 11021 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
Martin v. Löwis | a82d347 | 2002-02-24 16:05:05 +0000 | [diff] [blame] | 11022 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11023 | exit(0); |
| 11024 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11025 | _ACEOF |
| 11026 | rm -f conftest$ac_exeext |
| 11027 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11028 | (eval $ac_link) 2>&5 |
| 11029 | ac_status=$? |
| 11030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11031 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11033 | (eval $ac_try) 2>&5 |
| 11034 | ac_status=$? |
| 11035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11036 | (exit $ac_status); }; }; then |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11037 | ac_cv_pthread_system_supported=yes |
| 11038 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11039 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11040 | echo "$as_me: failed program was:" >&5 |
| 11041 | cat conftest.$ac_ext >&5 |
| 11042 | ( exit $ac_status ) |
| 11043 | ac_cv_pthread_system_supported=no |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11044 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11045 | 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] | 11046 | fi |
| 11047 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11048 | fi |
| 11049 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11050 | echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 11051 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11052 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11053 | |
| 11054 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11055 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11056 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11057 | |
| 11058 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11059 | |
| 11060 | for ac_func in pthread_sigmask |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11061 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11062 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11063 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11064 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11065 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11067 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11068 | cat >conftest.$ac_ext <<_ACEOF |
| 11069 | #line $LINENO "configure" |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11070 | #include "confdefs.h" |
| 11071 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11072 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11073 | #include <assert.h> |
| 11074 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11075 | #ifdef __cplusplus |
| 11076 | extern "C" |
| 11077 | #endif |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11078 | /* 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] | 11079 | builtin and then its argument prototype would still apply. */ |
| 11080 | char $ac_func (); |
| 11081 | char (*f) (); |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11082 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11083 | #ifdef F77_DUMMY_MAIN |
| 11084 | # ifdef __cplusplus |
| 11085 | extern "C" |
| 11086 | # endif |
| 11087 | int F77_DUMMY_MAIN() { return 1; } |
| 11088 | #endif |
| 11089 | int |
| 11090 | main () |
| 11091 | { |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11092 | /* The GNU C library defines this for functions which it implements |
| 11093 | to always fail with ENOSYS. Some functions are actually named |
| 11094 | something starting with __ and the normal name is an alias. */ |
| 11095 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11096 | choke me |
| 11097 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11098 | f = $ac_func; |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11099 | #endif |
| 11100 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11101 | ; |
| 11102 | return 0; |
| 11103 | } |
| 11104 | _ACEOF |
| 11105 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11106 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11107 | (eval $ac_link) 2>&5 |
| 11108 | ac_status=$? |
| 11109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11110 | (exit $ac_status); } && |
| 11111 | { ac_try='test -s conftest$ac_exeext' |
| 11112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11113 | (eval $ac_try) 2>&5 |
| 11114 | ac_status=$? |
| 11115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11116 | (exit $ac_status); }; }; then |
| 11117 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11118 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11119 | echo "$as_me: failed program was:" >&5 |
| 11120 | cat conftest.$ac_ext >&5 |
| 11121 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11122 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11123 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11124 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11125 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11126 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11127 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11128 | cat >>confdefs.h <<_ACEOF |
| 11129 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11130 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11131 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11132 | fi |
| 11133 | done |
| 11134 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11135 | fi |
| 11136 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11137 | echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 11138 | echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6 |
| 11139 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 11140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11141 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11142 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11143 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11144 | cat >conftest.$ac_ext <<_ACEOF |
| 11145 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11146 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11147 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11148 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11149 | #ifdef __cplusplus |
| 11150 | extern "C" |
| 11151 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11152 | /* 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] | 11153 | builtin and then its argument prototype would still apply. */ |
| 11154 | char usconfig (); |
| 11155 | #ifdef F77_DUMMY_MAIN |
| 11156 | # ifdef __cplusplus |
| 11157 | extern "C" |
| 11158 | # endif |
| 11159 | int F77_DUMMY_MAIN() { return 1; } |
| 11160 | #endif |
| 11161 | int |
| 11162 | main () |
| 11163 | { |
| 11164 | usconfig (); |
| 11165 | ; |
| 11166 | return 0; |
| 11167 | } |
| 11168 | _ACEOF |
| 11169 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11170 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11171 | (eval $ac_link) 2>&5 |
| 11172 | ac_status=$? |
| 11173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11174 | (exit $ac_status); } && |
| 11175 | { ac_try='test -s conftest$ac_exeext' |
| 11176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11177 | (eval $ac_try) 2>&5 |
| 11178 | ac_status=$? |
| 11179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11180 | (exit $ac_status); }; }; then |
| 11181 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11182 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11183 | echo "$as_me: failed program was:" >&5 |
| 11184 | cat conftest.$ac_ext >&5 |
| 11185 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11186 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11187 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11188 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11189 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11190 | echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 11191 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6 |
| 11192 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 11193 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11194 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11195 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11196 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11197 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11198 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11199 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11200 | fi |
| 11201 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11202 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11203 | if test $posix_threads != "yes"; then |
| 11204 | echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 11205 | echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6 |
| 11206 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 11207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11208 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11209 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11210 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11211 | cat >conftest.$ac_ext <<_ACEOF |
| 11212 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11213 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11214 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11215 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11216 | #ifdef __cplusplus |
| 11217 | extern "C" |
| 11218 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11219 | /* 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] | 11220 | builtin and then its argument prototype would still apply. */ |
| 11221 | char thr_create (); |
| 11222 | #ifdef F77_DUMMY_MAIN |
| 11223 | # ifdef __cplusplus |
| 11224 | extern "C" |
| 11225 | # endif |
| 11226 | int F77_DUMMY_MAIN() { return 1; } |
| 11227 | #endif |
| 11228 | int |
| 11229 | main () |
| 11230 | { |
| 11231 | thr_create (); |
| 11232 | ; |
| 11233 | return 0; |
| 11234 | } |
| 11235 | _ACEOF |
| 11236 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11237 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11238 | (eval $ac_link) 2>&5 |
| 11239 | ac_status=$? |
| 11240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11241 | (exit $ac_status); } && |
| 11242 | { ac_try='test -s conftest$ac_exeext' |
| 11243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11244 | (eval $ac_try) 2>&5 |
| 11245 | ac_status=$? |
| 11246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11247 | (exit $ac_status); }; }; then |
| 11248 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11249 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11250 | echo "$as_me: failed program was:" >&5 |
| 11251 | cat conftest.$ac_ext >&5 |
| 11252 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11253 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11254 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11255 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11256 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11257 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 11258 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6 |
| 11259 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 11260 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11261 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11262 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11263 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11264 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11265 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11266 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11267 | fi |
| 11268 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11269 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11270 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11271 | if test "$USE_THREAD_MODULE" != "#" |
| 11272 | then |
| 11273 | # If the above checks didn't disable threads, (at least) OSF1 |
| 11274 | # needs this '-threads' argument during linking. |
| 11275 | case $ac_sys_system in |
| 11276 | OSF1) LDLAST=-threads;; |
| 11277 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 11278 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 11279 | |
| 11280 | if test "$posix_threads" = yes -a \ |
| 11281 | "$ac_sys_system" = "SunOS" -a \ |
| 11282 | "$ac_sys_release" = "5.6"; then |
| 11283 | |
| 11284 | cat >>confdefs.h <<\_ACEOF |
| 11285 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 11286 | _ACEOF |
| 11287 | |
| 11288 | fi |
| 11289 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11290 | fi |
| 11291 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11292 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11293 | |
| 11294 | |
| 11295 | echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 11296 | 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] | 11297 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 11298 | if test "${enable_ipv6+set}" = set; then |
| 11299 | enableval="$enable_ipv6" |
| 11300 | case "$enableval" in |
| 11301 | no) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11302 | echo "$as_me:$LINENO: result: no" >&5 |
| 11303 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11304 | ipv6=no |
| 11305 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11306 | *) echo "$as_me:$LINENO: result: yes" >&5 |
| 11307 | echo "${ECHO_T}yes" >&6 |
| 11308 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11309 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11310 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11311 | |
| 11312 | ipv6=yes |
| 11313 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11314 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11315 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11316 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11317 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11318 | echo "$as_me:$LINENO: result: no" >&5 |
| 11319 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11320 | ipv6=no |
| 11321 | |
| 11322 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11323 | cat >conftest.$ac_ext <<_ACEOF |
| 11324 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11325 | #include "confdefs.h" |
| 11326 | /* AF_INET6 available check */ |
| 11327 | #include <sys/types.h> |
| 11328 | #include <sys/socket.h> |
| 11329 | main() |
| 11330 | { |
| 11331 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 11332 | exit(1); |
| 11333 | else |
| 11334 | exit(0); |
| 11335 | } |
| 11336 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11337 | _ACEOF |
| 11338 | rm -f conftest$ac_exeext |
| 11339 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11340 | (eval $ac_link) 2>&5 |
| 11341 | ac_status=$? |
| 11342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11343 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11345 | (eval $ac_try) 2>&5 |
| 11346 | ac_status=$? |
| 11347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11348 | (exit $ac_status); }; }; then |
| 11349 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11350 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11351 | ipv6=yes |
| 11352 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11353 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11354 | echo "$as_me: failed program was:" >&5 |
| 11355 | cat conftest.$ac_ext >&5 |
| 11356 | ( exit $ac_status ) |
| 11357 | echo "$as_me:$LINENO: result: no" >&5 |
| 11358 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11359 | ipv6=no |
| 11360 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11361 | 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] | 11362 | fi |
| 11363 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11364 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11365 | echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 11366 | echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6 |
| 11367 | cat >conftest.$ac_ext <<_ACEOF |
| 11368 | #line $LINENO "configure" |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11369 | #include "confdefs.h" |
| 11370 | #include <sys/types.h> |
| 11371 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11372 | #ifdef F77_DUMMY_MAIN |
| 11373 | # ifdef __cplusplus |
| 11374 | extern "C" |
| 11375 | # endif |
| 11376 | int F77_DUMMY_MAIN() { return 1; } |
| 11377 | #endif |
| 11378 | int |
| 11379 | main () |
| 11380 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11381 | struct sockaddr_in6 x; |
| 11382 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11383 | ; |
| 11384 | return 0; |
| 11385 | } |
| 11386 | _ACEOF |
| 11387 | rm -f conftest.$ac_objext |
| 11388 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11389 | (eval $ac_compile) 2>&5 |
| 11390 | ac_status=$? |
| 11391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11392 | (exit $ac_status); } && |
| 11393 | { ac_try='test -s conftest.$ac_objext' |
| 11394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11395 | (eval $ac_try) 2>&5 |
| 11396 | ac_status=$? |
| 11397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11398 | (exit $ac_status); }; }; then |
| 11399 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11400 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11401 | ipv6=yes |
| 11402 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11403 | echo "$as_me: failed program was:" >&5 |
| 11404 | cat conftest.$ac_ext >&5 |
| 11405 | echo "$as_me:$LINENO: result: no" >&5 |
| 11406 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11407 | ipv6=no |
| 11408 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11409 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11410 | fi |
| 11411 | |
| 11412 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11413 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11414 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11415 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11416 | |
| 11417 | fi |
| 11418 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11419 | fi; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11420 | |
| 11421 | ipv6type=unknown |
| 11422 | ipv6lib=none |
| 11423 | ipv6trylibc=no |
| 11424 | |
| 11425 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11426 | echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 11427 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 11428 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 11429 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11430 | case $i in |
| 11431 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11432 | cat >conftest.$ac_ext <<_ACEOF |
| 11433 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11434 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11435 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11436 | #include <netinet/in.h> |
| 11437 | #ifdef IPV6_INRIA_VERSION |
| 11438 | yes |
| 11439 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11440 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11441 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11442 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11443 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11444 | fi |
| 11445 | rm -f conftest* |
| 11446 | |
| 11447 | ;; |
| 11448 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11449 | cat >conftest.$ac_ext <<_ACEOF |
| 11450 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11451 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11452 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11453 | #include <netinet/in.h> |
| 11454 | #ifdef __KAME__ |
| 11455 | yes |
| 11456 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11457 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11458 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11459 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11460 | ipv6type=$i; |
| 11461 | ipv6lib=inet6 |
| 11462 | ipv6libdir=/usr/local/v6/lib |
| 11463 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11464 | fi |
| 11465 | rm -f conftest* |
| 11466 | |
| 11467 | ;; |
| 11468 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11469 | cat >conftest.$ac_ext <<_ACEOF |
| 11470 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11471 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11472 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11473 | #include <features.h> |
| 11474 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 11475 | yes |
| 11476 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11477 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11478 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11479 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11480 | ipv6type=$i; |
| 11481 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11482 | fi |
| 11483 | rm -f conftest* |
| 11484 | |
| 11485 | ;; |
| 11486 | linux-inet6) |
| 11487 | if test -d /usr/inet6; then |
| 11488 | ipv6type=$i |
| 11489 | ipv6lib=inet6 |
| 11490 | ipv6libdir=/usr/inet6/lib |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11491 | OPT="-I/usr/inet6/include $OPT" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11492 | fi |
| 11493 | ;; |
| 11494 | solaris) |
| 11495 | if test -f /etc/netconfig; then |
| 11496 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 11497 | ipv6type=$i |
| 11498 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11499 | fi |
| 11500 | fi |
| 11501 | ;; |
| 11502 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11503 | cat >conftest.$ac_ext <<_ACEOF |
| 11504 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11505 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11506 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11507 | #include <sys/param.h> |
| 11508 | #ifdef _TOSHIBA_INET6 |
| 11509 | yes |
| 11510 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11511 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11512 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11513 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11514 | ipv6type=$i; |
| 11515 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11516 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11517 | fi |
| 11518 | rm -f conftest* |
| 11519 | |
| 11520 | ;; |
| 11521 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11522 | cat >conftest.$ac_ext <<_ACEOF |
| 11523 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11524 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11525 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11526 | #include </usr/local/v6/include/sys/v6config.h> |
| 11527 | #ifdef __V6D__ |
| 11528 | yes |
| 11529 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11530 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11531 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11532 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11533 | ipv6type=$i; |
| 11534 | ipv6lib=v6; |
| 11535 | ipv6libdir=/usr/local/v6/lib; |
| 11536 | OPT="-I/usr/local/v6/include $OPT" |
| 11537 | fi |
| 11538 | rm -f conftest* |
| 11539 | |
| 11540 | ;; |
| 11541 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11542 | cat >conftest.$ac_ext <<_ACEOF |
| 11543 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11544 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11545 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11546 | #include <sys/param.h> |
| 11547 | #ifdef _ZETA_MINAMI_INET6 |
| 11548 | yes |
| 11549 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11550 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11551 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11552 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11553 | ipv6type=$i; |
| 11554 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11555 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11556 | fi |
| 11557 | rm -f conftest* |
| 11558 | |
| 11559 | ;; |
| 11560 | esac |
| 11561 | if test "$ipv6type" != "unknown"; then |
| 11562 | break |
| 11563 | fi |
| 11564 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11565 | echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 11566 | echo "${ECHO_T}$ipv6type" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11567 | fi |
| 11568 | |
| 11569 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 11570 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 11571 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 11572 | echo "using lib$ipv6lib" |
| 11573 | else |
| 11574 | if test $ipv6trylibc = "yes"; then |
| 11575 | echo "using libc" |
| 11576 | else |
| 11577 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 11578 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 11579 | echo 'ipv6 kit and compile beforehand.' |
| 11580 | exit 1 |
| 11581 | fi |
| 11582 | fi |
| 11583 | fi |
| 11584 | |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11585 | # Check for universal newline support |
Guido van Rossum | 402905e | 2002-08-15 13:56:35 +0000 | [diff] [blame] | 11586 | echo "$as_me:$LINENO: checking for --with-universal-newlines" >&5 |
| 11587 | echo $ECHO_N "checking for --with-universal-newlines... $ECHO_C" >&6 |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11588 | |
| 11589 | # Check whether --with-universal-newlines or --without-universal-newlines was given. |
| 11590 | if test "${with_universal_newlines+set}" = set; then |
| 11591 | withval="$with_universal_newlines" |
| 11592 | |
| 11593 | fi; |
| 11594 | |
| 11595 | if test -z "$with_universal_newlines" |
| 11596 | then with_universal_newlines="yes" |
| 11597 | fi |
| 11598 | if test "$with_universal_newlines" != "no" |
| 11599 | then |
Martin v. Löwis | e8aea58 | 2002-04-16 05:51:02 +0000 | [diff] [blame] | 11600 | |
| 11601 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11602 | #define WITH_UNIVERSAL_NEWLINES 1 |
| 11603 | _ACEOF |
| 11604 | |
| 11605 | fi |
| 11606 | echo "$as_me:$LINENO: result: $with_universal_newlines" >&5 |
| 11607 | echo "${ECHO_T}$with_universal_newlines" >&6 |
| 11608 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11609 | # Check for --with-doc-strings |
| 11610 | echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 11611 | echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6 |
| 11612 | |
| 11613 | # Check whether --with-doc-strings or --without-doc-strings was given. |
| 11614 | if test "${with_doc_strings+set}" = set; then |
| 11615 | withval="$with_doc_strings" |
| 11616 | |
| 11617 | fi; |
| 11618 | |
| 11619 | if test -z "$with_doc_strings" |
| 11620 | then with_doc_strings="yes" |
| 11621 | fi |
| 11622 | if test "$with_doc_strings" != "no" |
| 11623 | then |
| 11624 | |
| 11625 | cat >>confdefs.h <<\_ACEOF |
| 11626 | #define WITH_DOC_STRINGS 1 |
| 11627 | _ACEOF |
| 11628 | |
| 11629 | fi |
| 11630 | echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 11631 | echo "${ECHO_T}$with_doc_strings" >&6 |
| 11632 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11633 | # Check for Python-specific malloc support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11634 | echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 11635 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6 |
| 11636 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11637 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 11638 | if test "${with_pymalloc+set}" = set; then |
| 11639 | withval="$with_pymalloc" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11640 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11641 | fi; |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11642 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11643 | if test -z "$with_pymalloc" |
| 11644 | then with_pymalloc="yes" |
| 11645 | fi |
| 11646 | if test "$with_pymalloc" != "no" |
| 11647 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11648 | |
| 11649 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11650 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11651 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11652 | |
| 11653 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11654 | echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 11655 | echo "${ECHO_T}$with_pymalloc" >&6 |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11656 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11657 | # Check for --with-wctype-functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11658 | echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 11659 | echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6 |
| 11660 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11661 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 11662 | if test "${with_wctype_functions+set}" = set; then |
| 11663 | withval="$with_wctype_functions" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11664 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11665 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11666 | then |
| 11667 | |
| 11668 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11669 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11670 | _ACEOF |
| 11671 | |
| 11672 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11673 | echo "${ECHO_T}yes" >&6 |
| 11674 | else echo "$as_me:$LINENO: result: no" >&5 |
| 11675 | echo "${ECHO_T}no" >&6 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11676 | fi |
| 11677 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11678 | echo "$as_me:$LINENO: result: no" >&5 |
| 11679 | echo "${ECHO_T}no" >&6 |
| 11680 | fi; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11681 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11682 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11683 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 11684 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11685 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11686 | echo "$as_me:$LINENO: checking for --with-sgi-dl" >&5 |
| 11687 | echo $ECHO_N "checking for --with-sgi-dl... $ECHO_C" >&6 |
| 11688 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11689 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11690 | if test "${with_sgi_dl+set}" = set; then |
| 11691 | withval="$with_sgi_dl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11692 | |
| 11693 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11694 | echo "${ECHO_T}$withval" >&6 |
| 11695 | |
| 11696 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11697 | #define WITH_SGI_DL 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11698 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11699 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11700 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11701 | dldir=$withval |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 11702 | if test ! -z "$dldir" -a -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 11703 | then LDFLAGS="$LDFLAGS -L$dldir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11704 | else { { echo "$as_me:$LINENO: error: proper usage is --with-sgi-dl=DIRECTORY" >&5 |
| 11705 | echo "$as_me: error: proper usage is --with-sgi-dl=DIRECTORY" >&2;} |
| 11706 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11707 | fi |
| 11708 | DLINCLDIR=${dldir} |
| 11709 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11710 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11711 | echo "$as_me:$LINENO: result: no" >&5 |
| 11712 | echo "${ECHO_T}no" >&6 |
| 11713 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11714 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11715 | echo "$as_me:$LINENO: checking for --with-dl-dld" >&5 |
| 11716 | echo $ECHO_N "checking for --with-dl-dld... $ECHO_C" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11717 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11718 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11719 | if test "${with_dl_dld+set}" = set; then |
| 11720 | withval="$with_dl_dld" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11721 | |
| 11722 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11723 | echo "${ECHO_T}$withval" >&6 |
| 11724 | |
| 11725 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11726 | #define WITH_DL_DLD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11727 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11728 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11729 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11730 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 11731 | dlddir=`echo "$withval" | sed 's/.*,//'` |
Barry Warsaw | 7d1219d | 2000-10-05 18:45:53 +0000 | [diff] [blame] | 11732 | 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] | 11733 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11734 | else { { echo "$as_me:$LINENO: error: proper usage is --with-dl-dld=DL_DIRECTORY" >&5 |
| 11735 | echo "$as_me: error: proper usage is --with-dl-dld=DL_DIRECTORY" >&2;} |
| 11736 | { (exit DLD_DIRECTORY); exit DLD_DIRECTORY; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11737 | fi |
| 11738 | DLINCLDIR=${dldir} |
| 11739 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11740 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11741 | echo "$as_me:$LINENO: result: no" >&5 |
| 11742 | echo "${ECHO_T}no" >&6 |
| 11743 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11744 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11745 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 11746 | # 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] | 11747 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11748 | for ac_func in dlopen |
| 11749 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11750 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11751 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11752 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11753 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11755 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11756 | cat >conftest.$ac_ext <<_ACEOF |
| 11757 | #line $LINENO "configure" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11758 | #include "confdefs.h" |
| 11759 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11760 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11761 | #include <assert.h> |
| 11762 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11763 | #ifdef __cplusplus |
| 11764 | extern "C" |
| 11765 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11766 | /* 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] | 11767 | builtin and then its argument prototype would still apply. */ |
| 11768 | char $ac_func (); |
| 11769 | char (*f) (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11770 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11771 | #ifdef F77_DUMMY_MAIN |
| 11772 | # ifdef __cplusplus |
| 11773 | extern "C" |
| 11774 | # endif |
| 11775 | int F77_DUMMY_MAIN() { return 1; } |
| 11776 | #endif |
| 11777 | int |
| 11778 | main () |
| 11779 | { |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11780 | /* The GNU C library defines this for functions which it implements |
| 11781 | to always fail with ENOSYS. Some functions are actually named |
| 11782 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11783 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11784 | choke me |
| 11785 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11786 | f = $ac_func; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11787 | #endif |
| 11788 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11789 | ; |
| 11790 | return 0; |
| 11791 | } |
| 11792 | _ACEOF |
| 11793 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11794 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11795 | (eval $ac_link) 2>&5 |
| 11796 | ac_status=$? |
| 11797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11798 | (exit $ac_status); } && |
| 11799 | { ac_try='test -s conftest$ac_exeext' |
| 11800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11801 | (eval $ac_try) 2>&5 |
| 11802 | ac_status=$? |
| 11803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11804 | (exit $ac_status); }; }; then |
| 11805 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11806 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11807 | echo "$as_me: failed program was:" >&5 |
| 11808 | cat conftest.$ac_ext >&5 |
| 11809 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11810 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11811 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11812 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11813 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11814 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11815 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11816 | cat >>confdefs.h <<_ACEOF |
| 11817 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11818 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11819 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11820 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11821 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11822 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11823 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11824 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 11825 | # loading of modules. |
| 11826 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11827 | echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 11828 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11829 | if test -z "$DYNLOADFILE" |
| 11830 | then |
| 11831 | case $ac_sys_system/$ac_sys_release in |
| 11832 | AIX*) DYNLOADFILE="dynload_aix.o";; |
| 11833 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 11834 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11835 | Darwin/*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11836 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11837 | *) |
| 11838 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 11839 | # out any dynamic loading |
| 11840 | if test "$ac_cv_func_dlopen" = yes |
| 11841 | then DYNLOADFILE="dynload_shlib.o" |
| 11842 | else DYNLOADFILE="dynload_stub.o" |
| 11843 | fi |
| 11844 | ;; |
| 11845 | esac |
| 11846 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11847 | echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 11848 | echo "${ECHO_T}$DYNLOADFILE" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11849 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 11850 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11851 | |
| 11852 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11853 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11854 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11855 | |
| 11856 | fi |
| 11857 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11858 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 11859 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11860 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11861 | echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 11862 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11863 | if test -z "$MACHDEP_OBJS" |
| 11864 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11865 | MACHDEP_OBJS=$extra_machdep_objs |
| 11866 | else |
| 11867 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11868 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11869 | echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 11870 | echo "${ECHO_T}MACHDEP_OBJS" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11871 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11872 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11873 | |
| 11874 | |
| 11875 | |
| 11876 | |
| 11877 | |
| 11878 | |
| 11879 | |
| 11880 | |
| 11881 | |
| 11882 | |
| 11883 | |
| 11884 | |
| 11885 | |
| 11886 | |
| 11887 | |
| 11888 | |
| 11889 | |
| 11890 | |
| 11891 | |
| 11892 | |
| 11893 | |
| 11894 | |
| 11895 | |
| 11896 | |
| 11897 | |
| 11898 | |
| 11899 | |
| 11900 | |
| 11901 | |
| 11902 | |
| 11903 | |
| 11904 | |
| 11905 | |
| 11906 | |
| 11907 | |
| 11908 | |
| 11909 | |
| 11910 | |
| 11911 | |
| 11912 | |
| 11913 | |
| 11914 | |
| 11915 | |
| 11916 | |
| 11917 | |
| 11918 | |
| 11919 | |
| 11920 | |
| 11921 | |
| 11922 | |
| 11923 | |
| 11924 | |
| 11925 | |
| 11926 | |
| 11927 | |
| 11928 | |
| 11929 | |
| 11930 | |
| 11931 | |
| 11932 | |
| 11933 | |
| 11934 | |
| 11935 | |
| 11936 | |
| 11937 | |
| 11938 | |
| 11939 | |
| 11940 | |
| 11941 | |
| 11942 | |
| 11943 | |
| 11944 | |
| 11945 | |
Martin v. Löwis | 06a83e9 | 2002-04-14 10:19:44 +0000 | [diff] [blame] | 11946 | |
Fred Drake | 6b3cc52 | 2002-04-15 19:20:27 +0000 | [diff] [blame] | 11947 | |
Jack Jansen | 0b06be7 | 2002-06-21 14:48:38 +0000 | [diff] [blame] | 11948 | |
Martin v. Löwis | 0cec0ff | 2002-07-28 16:33:45 +0000 | [diff] [blame] | 11949 | |
Martin v. Löwis | 6aa9fdb | 2002-09-10 09:16:13 +0000 | [diff] [blame] | 11950 | |
Martin v. Löwis | 244edc8 | 2001-10-04 22:44:26 +0000 | [diff] [blame] | 11951 | 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] | 11952 | fchdir flock fork fsync fdatasync fpathconf ftime ftruncate \ |
Martin v. Löwis | 606edc1 | 2002-06-13 21:09:11 +0000 | [diff] [blame] | 11953 | gai_strerror getgroups getlogin getpeername getpgid getpid getpwent getwd \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 11954 | hstrerror inet_pton kill killpg lchown link lstat mkfifo mknod mktime \ |
| 11955 | mremap nice pathconf pause plock poll pthread_init \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 11956 | putenv readlink \ |
Martin v. Löwis | 61c5edf | 2001-10-18 04:06:00 +0000 | [diff] [blame] | 11957 | select setegid seteuid setgid setgroups \ |
Martin v. Löwis | 791bfda | 2001-07-24 06:33:08 +0000 | [diff] [blame] | 11958 | setlocale setregid setreuid setsid setpgid setuid setvbuf snprintf \ |
Michael W. Hudson | 065c1a2 | 2002-06-06 13:03:44 +0000 | [diff] [blame] | 11959 | sigaction siginterrupt sigrelse strftime strptime symlink \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 11960 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Martin v. Löwis | 6aa9fdb | 2002-09-10 09:16:13 +0000 | [diff] [blame] | 11961 | truncate uname unsetenv utimes waitpid _getpty getpriority |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11962 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11963 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11964 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11965 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11966 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11968 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11969 | cat >conftest.$ac_ext <<_ACEOF |
| 11970 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11971 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11972 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11973 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11974 | #include <assert.h> |
| 11975 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11976 | #ifdef __cplusplus |
| 11977 | extern "C" |
| 11978 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11979 | /* 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] | 11980 | builtin and then its argument prototype would still apply. */ |
| 11981 | char $ac_func (); |
| 11982 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11983 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11984 | #ifdef F77_DUMMY_MAIN |
| 11985 | # ifdef __cplusplus |
| 11986 | extern "C" |
| 11987 | # endif |
| 11988 | int F77_DUMMY_MAIN() { return 1; } |
| 11989 | #endif |
| 11990 | int |
| 11991 | main () |
| 11992 | { |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11993 | /* The GNU C library defines this for functions which it implements |
| 11994 | to always fail with ENOSYS. Some functions are actually named |
| 11995 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11996 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11997 | choke me |
| 11998 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11999 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12000 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12001 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12002 | ; |
| 12003 | return 0; |
| 12004 | } |
| 12005 | _ACEOF |
| 12006 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12007 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12008 | (eval $ac_link) 2>&5 |
| 12009 | ac_status=$? |
| 12010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12011 | (exit $ac_status); } && |
| 12012 | { ac_try='test -s conftest$ac_exeext' |
| 12013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12014 | (eval $ac_try) 2>&5 |
| 12015 | ac_status=$? |
| 12016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12017 | (exit $ac_status); }; }; then |
| 12018 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12019 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12020 | echo "$as_me: failed program was:" >&5 |
| 12021 | cat conftest.$ac_ext >&5 |
| 12022 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12023 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12024 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12025 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12026 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12027 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12028 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12029 | cat >>confdefs.h <<_ACEOF |
| 12030 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12031 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12032 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12033 | fi |
| 12034 | done |
| 12035 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12036 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12037 | # check for openpty and forkpty |
| 12038 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12039 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12040 | for ac_func in openpty |
| 12041 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12042 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12043 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12044 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12045 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12046 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12047 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12048 | cat >conftest.$ac_ext <<_ACEOF |
| 12049 | #line $LINENO "configure" |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12050 | #include "confdefs.h" |
| 12051 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12052 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12053 | #include <assert.h> |
| 12054 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12055 | #ifdef __cplusplus |
| 12056 | extern "C" |
| 12057 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12058 | /* 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] | 12059 | builtin and then its argument prototype would still apply. */ |
| 12060 | char $ac_func (); |
| 12061 | char (*f) (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12062 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12063 | #ifdef F77_DUMMY_MAIN |
| 12064 | # ifdef __cplusplus |
| 12065 | extern "C" |
| 12066 | # endif |
| 12067 | int F77_DUMMY_MAIN() { return 1; } |
| 12068 | #endif |
| 12069 | int |
| 12070 | main () |
| 12071 | { |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12072 | /* The GNU C library defines this for functions which it implements |
| 12073 | to always fail with ENOSYS. Some functions are actually named |
| 12074 | something starting with __ and the normal name is an alias. */ |
| 12075 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12076 | choke me |
| 12077 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12078 | f = $ac_func; |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12079 | #endif |
| 12080 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12081 | ; |
| 12082 | return 0; |
| 12083 | } |
| 12084 | _ACEOF |
| 12085 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12086 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12087 | (eval $ac_link) 2>&5 |
| 12088 | ac_status=$? |
| 12089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12090 | (exit $ac_status); } && |
| 12091 | { ac_try='test -s conftest$ac_exeext' |
| 12092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12093 | (eval $ac_try) 2>&5 |
| 12094 | ac_status=$? |
| 12095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12096 | (exit $ac_status); }; }; then |
| 12097 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12098 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12099 | echo "$as_me: failed program was:" >&5 |
| 12100 | cat conftest.$ac_ext >&5 |
| 12101 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12102 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12103 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12104 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12105 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12106 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12107 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12108 | cat >>confdefs.h <<_ACEOF |
| 12109 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12110 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12111 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12112 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12113 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 12114 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
| 12115 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 12116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12117 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12118 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12119 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12120 | cat >conftest.$ac_ext <<_ACEOF |
| 12121 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12122 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12123 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12124 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12125 | #ifdef __cplusplus |
| 12126 | extern "C" |
| 12127 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12128 | /* 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] | 12129 | builtin and then its argument prototype would still apply. */ |
| 12130 | char openpty (); |
| 12131 | #ifdef F77_DUMMY_MAIN |
| 12132 | # ifdef __cplusplus |
| 12133 | extern "C" |
| 12134 | # endif |
| 12135 | int F77_DUMMY_MAIN() { return 1; } |
| 12136 | #endif |
| 12137 | int |
| 12138 | main () |
| 12139 | { |
| 12140 | openpty (); |
| 12141 | ; |
| 12142 | return 0; |
| 12143 | } |
| 12144 | _ACEOF |
| 12145 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12146 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12147 | (eval $ac_link) 2>&5 |
| 12148 | ac_status=$? |
| 12149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12150 | (exit $ac_status); } && |
| 12151 | { ac_try='test -s conftest$ac_exeext' |
| 12152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12153 | (eval $ac_try) 2>&5 |
| 12154 | ac_status=$? |
| 12155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12156 | (exit $ac_status); }; }; then |
| 12157 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12158 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12159 | echo "$as_me: failed program was:" >&5 |
| 12160 | cat conftest.$ac_ext >&5 |
| 12161 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12162 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12163 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12164 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12165 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12166 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 12167 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
| 12168 | if test $ac_cv_lib_util_openpty = yes; then |
| 12169 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12170 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12171 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12172 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12173 | fi |
| 12174 | |
| 12175 | fi |
| 12176 | done |
| 12177 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12178 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12179 | for ac_func in forkpty |
| 12180 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12181 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12182 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12183 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12184 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12186 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12187 | cat >conftest.$ac_ext <<_ACEOF |
| 12188 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12189 | #include "confdefs.h" |
| 12190 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12191 | which can conflict with char $ac_func (); below. */ |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12192 | #include <assert.h> |
| 12193 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12194 | #ifdef __cplusplus |
| 12195 | extern "C" |
| 12196 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12197 | /* 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] | 12198 | builtin and then its argument prototype would still apply. */ |
| 12199 | char $ac_func (); |
| 12200 | char (*f) (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12201 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12202 | #ifdef F77_DUMMY_MAIN |
| 12203 | # ifdef __cplusplus |
| 12204 | extern "C" |
| 12205 | # endif |
| 12206 | int F77_DUMMY_MAIN() { return 1; } |
| 12207 | #endif |
| 12208 | int |
| 12209 | main () |
| 12210 | { |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12211 | /* The GNU C library defines this for functions which it implements |
| 12212 | to always fail with ENOSYS. Some functions are actually named |
| 12213 | something starting with __ and the normal name is an alias. */ |
| 12214 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12215 | choke me |
| 12216 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12217 | f = $ac_func; |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12218 | #endif |
| 12219 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12220 | ; |
| 12221 | return 0; |
| 12222 | } |
| 12223 | _ACEOF |
| 12224 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12225 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12226 | (eval $ac_link) 2>&5 |
| 12227 | ac_status=$? |
| 12228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12229 | (exit $ac_status); } && |
| 12230 | { ac_try='test -s conftest$ac_exeext' |
| 12231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12232 | (eval $ac_try) 2>&5 |
| 12233 | ac_status=$? |
| 12234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12235 | (exit $ac_status); }; }; then |
| 12236 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12237 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12238 | echo "$as_me: failed program was:" >&5 |
| 12239 | cat conftest.$ac_ext >&5 |
| 12240 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12241 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12242 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12243 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12244 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12245 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12246 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12247 | cat >>confdefs.h <<_ACEOF |
| 12248 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12249 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12250 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12251 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12252 | echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 12253 | echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6 |
| 12254 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 12255 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12256 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12257 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12258 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12259 | cat >conftest.$ac_ext <<_ACEOF |
| 12260 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12261 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12262 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12263 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12264 | #ifdef __cplusplus |
| 12265 | extern "C" |
| 12266 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12267 | /* 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] | 12268 | builtin and then its argument prototype would still apply. */ |
| 12269 | char forkpty (); |
| 12270 | #ifdef F77_DUMMY_MAIN |
| 12271 | # ifdef __cplusplus |
| 12272 | extern "C" |
| 12273 | # endif |
| 12274 | int F77_DUMMY_MAIN() { return 1; } |
| 12275 | #endif |
| 12276 | int |
| 12277 | main () |
| 12278 | { |
| 12279 | forkpty (); |
| 12280 | ; |
| 12281 | return 0; |
| 12282 | } |
| 12283 | _ACEOF |
| 12284 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12285 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12286 | (eval $ac_link) 2>&5 |
| 12287 | ac_status=$? |
| 12288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12289 | (exit $ac_status); } && |
| 12290 | { ac_try='test -s conftest$ac_exeext' |
| 12291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12292 | (eval $ac_try) 2>&5 |
| 12293 | ac_status=$? |
| 12294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12295 | (exit $ac_status); }; }; then |
| 12296 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12297 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12298 | echo "$as_me: failed program was:" >&5 |
| 12299 | cat conftest.$ac_ext >&5 |
| 12300 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12301 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12302 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12303 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12304 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12305 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 12306 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6 |
| 12307 | if test $ac_cv_lib_util_forkpty = yes; then |
| 12308 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12309 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12310 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12311 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12312 | fi |
| 12313 | |
| 12314 | fi |
| 12315 | done |
| 12316 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12317 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12318 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12319 | |
| 12320 | |
| 12321 | |
| 12322 | |
| 12323 | |
| 12324 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12325 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 12326 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12327 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12328 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12329 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12330 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12331 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12332 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12333 | cat >conftest.$ac_ext <<_ACEOF |
| 12334 | #line $LINENO "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12335 | #include "confdefs.h" |
| 12336 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12337 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12338 | #include <assert.h> |
| 12339 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12340 | #ifdef __cplusplus |
| 12341 | extern "C" |
| 12342 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12343 | /* 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] | 12344 | builtin and then its argument prototype would still apply. */ |
| 12345 | char $ac_func (); |
| 12346 | char (*f) (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12347 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12348 | #ifdef F77_DUMMY_MAIN |
| 12349 | # ifdef __cplusplus |
| 12350 | extern "C" |
| 12351 | # endif |
| 12352 | int F77_DUMMY_MAIN() { return 1; } |
| 12353 | #endif |
| 12354 | int |
| 12355 | main () |
| 12356 | { |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12357 | /* The GNU C library defines this for functions which it implements |
| 12358 | to always fail with ENOSYS. Some functions are actually named |
| 12359 | something starting with __ and the normal name is an alias. */ |
| 12360 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12361 | choke me |
| 12362 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12363 | f = $ac_func; |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12364 | #endif |
| 12365 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12366 | ; |
| 12367 | return 0; |
| 12368 | } |
| 12369 | _ACEOF |
| 12370 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12371 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12372 | (eval $ac_link) 2>&5 |
| 12373 | ac_status=$? |
| 12374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12375 | (exit $ac_status); } && |
| 12376 | { ac_try='test -s conftest$ac_exeext' |
| 12377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12378 | (eval $ac_try) 2>&5 |
| 12379 | ac_status=$? |
| 12380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12381 | (exit $ac_status); }; }; then |
| 12382 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12383 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12384 | echo "$as_me: failed program was:" >&5 |
| 12385 | cat conftest.$ac_ext >&5 |
| 12386 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12387 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12388 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12389 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12390 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12391 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12392 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12393 | cat >>confdefs.h <<_ACEOF |
| 12394 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12395 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12396 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12397 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12398 | done |
| 12399 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12400 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12401 | |
| 12402 | |
| 12403 | |
| 12404 | |
| 12405 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12406 | for ac_func in dup2 getcwd strdup strerror memmove |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12407 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12408 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12409 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12410 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12411 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12413 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12414 | cat >conftest.$ac_ext <<_ACEOF |
| 12415 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12416 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12417 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12418 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12419 | #include <assert.h> |
| 12420 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12421 | #ifdef __cplusplus |
| 12422 | extern "C" |
| 12423 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12424 | /* 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] | 12425 | builtin and then its argument prototype would still apply. */ |
| 12426 | char $ac_func (); |
| 12427 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12428 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12429 | #ifdef F77_DUMMY_MAIN |
| 12430 | # ifdef __cplusplus |
| 12431 | extern "C" |
| 12432 | # endif |
| 12433 | int F77_DUMMY_MAIN() { return 1; } |
| 12434 | #endif |
| 12435 | int |
| 12436 | main () |
| 12437 | { |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12438 | /* The GNU C library defines this for functions which it implements |
| 12439 | to always fail with ENOSYS. Some functions are actually named |
| 12440 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12441 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12442 | choke me |
| 12443 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12444 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12445 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12446 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12447 | ; |
| 12448 | return 0; |
| 12449 | } |
| 12450 | _ACEOF |
| 12451 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12452 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12453 | (eval $ac_link) 2>&5 |
| 12454 | ac_status=$? |
| 12455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12456 | (exit $ac_status); } && |
| 12457 | { ac_try='test -s conftest$ac_exeext' |
| 12458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12459 | (eval $ac_try) 2>&5 |
| 12460 | ac_status=$? |
| 12461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12462 | (exit $ac_status); }; }; then |
| 12463 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12464 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12465 | echo "$as_me: failed program was:" >&5 |
| 12466 | cat conftest.$ac_ext >&5 |
| 12467 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12468 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12469 | 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] | 12470 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12471 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12472 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12473 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12474 | cat >>confdefs.h <<_ACEOF |
| 12475 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12476 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12477 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12478 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12479 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12480 | fi |
| 12481 | done |
| 12482 | |
| 12483 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12484 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12485 | for ac_func in getpgrp |
| 12486 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12487 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12488 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12489 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12490 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12492 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12493 | cat >conftest.$ac_ext <<_ACEOF |
| 12494 | #line $LINENO "configure" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12495 | #include "confdefs.h" |
| 12496 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12497 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12498 | #include <assert.h> |
| 12499 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12500 | #ifdef __cplusplus |
| 12501 | extern "C" |
| 12502 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12503 | /* 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] | 12504 | builtin and then its argument prototype would still apply. */ |
| 12505 | char $ac_func (); |
| 12506 | char (*f) (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12507 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12508 | #ifdef F77_DUMMY_MAIN |
| 12509 | # ifdef __cplusplus |
| 12510 | extern "C" |
| 12511 | # endif |
| 12512 | int F77_DUMMY_MAIN() { return 1; } |
| 12513 | #endif |
| 12514 | int |
| 12515 | main () |
| 12516 | { |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12517 | /* The GNU C library defines this for functions which it implements |
| 12518 | to always fail with ENOSYS. Some functions are actually named |
| 12519 | something starting with __ and the normal name is an alias. */ |
| 12520 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12521 | choke me |
| 12522 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12523 | f = $ac_func; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12524 | #endif |
| 12525 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12526 | ; |
| 12527 | return 0; |
| 12528 | } |
| 12529 | _ACEOF |
| 12530 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12531 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12532 | (eval $ac_link) 2>&5 |
| 12533 | ac_status=$? |
| 12534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12535 | (exit $ac_status); } && |
| 12536 | { ac_try='test -s conftest$ac_exeext' |
| 12537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12538 | (eval $ac_try) 2>&5 |
| 12539 | ac_status=$? |
| 12540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12541 | (exit $ac_status); }; }; then |
| 12542 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12543 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12544 | echo "$as_me: failed program was:" >&5 |
| 12545 | cat conftest.$ac_ext >&5 |
| 12546 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12547 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12548 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12549 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12550 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12551 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12552 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12553 | cat >>confdefs.h <<_ACEOF |
| 12554 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12555 | _ACEOF |
| 12556 | cat >conftest.$ac_ext <<_ACEOF |
| 12557 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12558 | #include "confdefs.h" |
| 12559 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12560 | #ifdef F77_DUMMY_MAIN |
| 12561 | # ifdef __cplusplus |
| 12562 | extern "C" |
| 12563 | # endif |
| 12564 | int F77_DUMMY_MAIN() { return 1; } |
| 12565 | #endif |
| 12566 | int |
| 12567 | main () |
| 12568 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12569 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12570 | ; |
| 12571 | return 0; |
| 12572 | } |
| 12573 | _ACEOF |
| 12574 | rm -f conftest.$ac_objext |
| 12575 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12576 | (eval $ac_compile) 2>&5 |
| 12577 | ac_status=$? |
| 12578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12579 | (exit $ac_status); } && |
| 12580 | { ac_try='test -s conftest.$ac_objext' |
| 12581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12582 | (eval $ac_try) 2>&5 |
| 12583 | ac_status=$? |
| 12584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12585 | (exit $ac_status); }; }; then |
| 12586 | |
| 12587 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12588 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12589 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12590 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12591 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 12592 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12593 | echo "$as_me: failed program was:" >&5 |
| 12594 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12595 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12596 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12597 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12598 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12599 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12600 | |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12601 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
| 12602 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 |
| 12603 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12605 | else |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12606 | if test "$cross_compiling" = yes; then |
| 12607 | { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 |
| 12608 | echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} |
| 12609 | { (exit 1); exit 1; }; } |
| 12610 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12611 | cat >conftest.$ac_ext <<_ACEOF |
| 12612 | #line $LINENO "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12613 | #include "confdefs.h" |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12614 | #if HAVE_UNISTD_H |
| 12615 | # include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12616 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12617 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12618 | #ifdef F77_DUMMY_MAIN |
| 12619 | # ifdef __cplusplus |
| 12620 | extern "C" |
| 12621 | # endif |
| 12622 | int F77_DUMMY_MAIN() { return 1; } |
| 12623 | #endif |
| 12624 | int |
| 12625 | main () |
| 12626 | { |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12627 | /* If this system has a BSD-style setpgrp which takes arguments, |
| 12628 | setpgrp(1, 1) will fail with ESRCH and return -1, in that case |
| 12629 | exit successfully. */ |
| 12630 | exit (setpgrp (1,1) == -1 ? 0 : 1); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12631 | ; |
| 12632 | return 0; |
| 12633 | } |
| 12634 | _ACEOF |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12635 | rm -f conftest$ac_exeext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12636 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12637 | (eval $ac_link) 2>&5 |
| 12638 | ac_status=$? |
| 12639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12640 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12642 | (eval $ac_try) 2>&5 |
| 12643 | ac_status=$? |
| 12644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12645 | (exit $ac_status); }; }; then |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12646 | ac_cv_func_setpgrp_void=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12647 | else |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12648 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12649 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12650 | cat conftest.$ac_ext >&5 |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12651 | ( exit $ac_status ) |
| 12652 | ac_cv_func_setpgrp_void=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12653 | fi |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12654 | 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] | 12655 | fi |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12656 | fi |
| 12657 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
| 12658 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 |
| 12659 | if test $ac_cv_func_setpgrp_void = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12660 | |
| 12661 | cat >>confdefs.h <<\_ACEOF |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12662 | #define SETPGRP_VOID 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12663 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12664 | |
| 12665 | fi |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12666 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12667 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12668 | for ac_func in gettimeofday |
| 12669 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12670 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12671 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12672 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12673 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12674 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12675 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12676 | cat >conftest.$ac_ext <<_ACEOF |
| 12677 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12678 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12679 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12680 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12681 | #include <assert.h> |
| 12682 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12683 | #ifdef __cplusplus |
| 12684 | extern "C" |
| 12685 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12686 | /* 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] | 12687 | builtin and then its argument prototype would still apply. */ |
| 12688 | char $ac_func (); |
| 12689 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12690 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12691 | #ifdef F77_DUMMY_MAIN |
| 12692 | # ifdef __cplusplus |
| 12693 | extern "C" |
| 12694 | # endif |
| 12695 | int F77_DUMMY_MAIN() { return 1; } |
| 12696 | #endif |
| 12697 | int |
| 12698 | main () |
| 12699 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12700 | /* The GNU C library defines this for functions which it implements |
| 12701 | to always fail with ENOSYS. Some functions are actually named |
| 12702 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12703 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12704 | choke me |
| 12705 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12706 | f = $ac_func; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12707 | #endif |
| 12708 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12709 | ; |
| 12710 | return 0; |
| 12711 | } |
| 12712 | _ACEOF |
| 12713 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12714 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12715 | (eval $ac_link) 2>&5 |
| 12716 | ac_status=$? |
| 12717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12718 | (exit $ac_status); } && |
| 12719 | { ac_try='test -s conftest$ac_exeext' |
| 12720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12721 | (eval $ac_try) 2>&5 |
| 12722 | ac_status=$? |
| 12723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12724 | (exit $ac_status); }; }; then |
| 12725 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12726 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12727 | echo "$as_me: failed program was:" >&5 |
| 12728 | cat conftest.$ac_ext >&5 |
| 12729 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12730 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12731 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12732 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12733 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12734 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12735 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12736 | cat >>confdefs.h <<_ACEOF |
| 12737 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12738 | _ACEOF |
| 12739 | cat >conftest.$ac_ext <<_ACEOF |
| 12740 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12741 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12742 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12743 | #ifdef F77_DUMMY_MAIN |
| 12744 | # ifdef __cplusplus |
| 12745 | extern "C" |
| 12746 | # endif |
| 12747 | int F77_DUMMY_MAIN() { return 1; } |
| 12748 | #endif |
| 12749 | int |
| 12750 | main () |
| 12751 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12752 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12753 | ; |
| 12754 | return 0; |
| 12755 | } |
| 12756 | _ACEOF |
| 12757 | rm -f conftest.$ac_objext |
| 12758 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12759 | (eval $ac_compile) 2>&5 |
| 12760 | ac_status=$? |
| 12761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12762 | (exit $ac_status); } && |
| 12763 | { ac_try='test -s conftest.$ac_objext' |
| 12764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12765 | (eval $ac_try) 2>&5 |
| 12766 | ac_status=$? |
| 12767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12768 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12769 | : |
| 12770 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12771 | echo "$as_me: failed program was:" >&5 |
| 12772 | cat conftest.$ac_ext >&5 |
| 12773 | |
| 12774 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12775 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12776 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12777 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12778 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12779 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12780 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12781 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12782 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12783 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12784 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12785 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12786 | echo "$as_me:$LINENO: checking for major" >&5 |
| 12787 | echo $ECHO_N "checking for major... $ECHO_C" >&6 |
| 12788 | cat >conftest.$ac_ext <<_ACEOF |
| 12789 | #line $LINENO "configure" |
| 12790 | #include "confdefs.h" |
| 12791 | |
| 12792 | #if defined(MAJOR_IN_MKDEV) |
| 12793 | #include <sys/mkdev.h> |
| 12794 | #elif defined(MAJOR_IN_SYSMACROS) |
| 12795 | #include <sys/sysmacros.h> |
| 12796 | #else |
| 12797 | #include <sys/types.h> |
| 12798 | #endif |
| 12799 | |
| 12800 | #ifdef F77_DUMMY_MAIN |
| 12801 | # ifdef __cplusplus |
| 12802 | extern "C" |
| 12803 | # endif |
| 12804 | int F77_DUMMY_MAIN() { return 1; } |
| 12805 | #endif |
| 12806 | int |
| 12807 | main () |
| 12808 | { |
| 12809 | |
| 12810 | makedev(major(0),minor(0)); |
| 12811 | |
| 12812 | ; |
| 12813 | return 0; |
| 12814 | } |
| 12815 | _ACEOF |
| 12816 | rm -f conftest.$ac_objext |
| 12817 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12818 | (eval $ac_compile) 2>&5 |
| 12819 | ac_status=$? |
| 12820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12821 | (exit $ac_status); } && |
| 12822 | { ac_try='test -s conftest.$ac_objext' |
| 12823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12824 | (eval $ac_try) 2>&5 |
| 12825 | ac_status=$? |
| 12826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12827 | (exit $ac_status); }; }; then |
| 12828 | |
| 12829 | |
| 12830 | cat >>confdefs.h <<\_ACEOF |
| 12831 | #define HAVE_DEVICE_MACROS 1 |
| 12832 | _ACEOF |
| 12833 | |
| 12834 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12835 | echo "${ECHO_T}yes" >&6 |
| 12836 | |
| 12837 | else |
| 12838 | echo "$as_me: failed program was:" >&5 |
| 12839 | cat conftest.$ac_ext >&5 |
| 12840 | |
| 12841 | echo "$as_me:$LINENO: result: no" >&5 |
| 12842 | echo "${ECHO_T}no" >&6 |
| 12843 | |
| 12844 | fi |
| 12845 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12846 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12847 | # 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] | 12848 | # for [no]getaddrinfo in netdb.h. |
| 12849 | echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 12850 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 |
| 12851 | cat >conftest.$ac_ext <<_ACEOF |
| 12852 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12853 | #include "confdefs.h" |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12854 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12855 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12856 | #include <sys/socket.h> |
| 12857 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12858 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12859 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12860 | #ifdef F77_DUMMY_MAIN |
| 12861 | # ifdef __cplusplus |
| 12862 | extern "C" |
| 12863 | # endif |
| 12864 | int F77_DUMMY_MAIN() { return 1; } |
| 12865 | #endif |
| 12866 | int |
| 12867 | main () |
| 12868 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12869 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12870 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12871 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12872 | ; |
| 12873 | return 0; |
| 12874 | } |
| 12875 | _ACEOF |
| 12876 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12877 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12878 | (eval $ac_link) 2>&5 |
| 12879 | ac_status=$? |
| 12880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12881 | (exit $ac_status); } && |
| 12882 | { ac_try='test -s conftest$ac_exeext' |
| 12883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12884 | (eval $ac_try) 2>&5 |
| 12885 | ac_status=$? |
| 12886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12887 | (exit $ac_status); }; }; then |
| 12888 | |
| 12889 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12890 | echo "${ECHO_T}yes" >&6 |
| 12891 | echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 12892 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12893 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12894 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 12895 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12896 | buggygetaddrinfo=yes |
| 12897 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12898 | cat >conftest.$ac_ext <<_ACEOF |
| 12899 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12900 | #include "confdefs.h" |
| 12901 | |
| 12902 | #include <sys/types.h> |
| 12903 | #include <netdb.h> |
| 12904 | #include <string.h> |
| 12905 | #include <sys/socket.h> |
| 12906 | #include <netinet/in.h> |
| 12907 | |
| 12908 | main() |
| 12909 | { |
| 12910 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 12911 | struct addrinfo hints, *ai, *aitop; |
| 12912 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 12913 | |
| 12914 | for (passive = 0; passive <= 1; passive++) { |
| 12915 | memset(&hints, 0, sizeof(hints)); |
| 12916 | hints.ai_family = AF_UNSPEC; |
| 12917 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 12918 | hints.ai_socktype = SOCK_STREAM; |
| 12919 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 12920 | (void)gai_strerror(gaierr); |
| 12921 | goto bad; |
| 12922 | } |
| 12923 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 12924 | if (ai->ai_addr == NULL || |
| 12925 | ai->ai_addrlen == 0 || |
| 12926 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 12927 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 12928 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 12929 | goto bad; |
| 12930 | } |
| 12931 | switch (ai->ai_family) { |
| 12932 | case AF_INET: |
| 12933 | if (strcmp(strport, "54321") != 0) { |
| 12934 | goto bad; |
| 12935 | } |
| 12936 | if (passive) { |
| 12937 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 12938 | goto bad; |
| 12939 | } |
| 12940 | } else { |
| 12941 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 12942 | goto bad; |
| 12943 | } |
| 12944 | } |
| 12945 | inet4++; |
| 12946 | break; |
| 12947 | case AF_INET6: |
| 12948 | if (strcmp(strport, "54321") != 0) { |
| 12949 | goto bad; |
| 12950 | } |
| 12951 | if (passive) { |
| 12952 | if (strcmp(straddr, "::") != 0) { |
| 12953 | goto bad; |
| 12954 | } |
| 12955 | } else { |
| 12956 | if (strcmp(straddr, "::1") != 0) { |
| 12957 | goto bad; |
| 12958 | } |
| 12959 | } |
| 12960 | inet6++; |
| 12961 | break; |
| 12962 | case AF_UNSPEC: |
| 12963 | goto bad; |
| 12964 | break; |
| 12965 | default: |
| 12966 | /* another family support? */ |
| 12967 | break; |
| 12968 | } |
| 12969 | } |
| 12970 | } |
| 12971 | |
| 12972 | if (!(inet4 == 0 || inet4 == 2)) |
| 12973 | goto bad; |
| 12974 | if (!(inet6 == 0 || inet6 == 2)) |
| 12975 | goto bad; |
| 12976 | |
| 12977 | if (aitop) |
| 12978 | freeaddrinfo(aitop); |
| 12979 | exit(0); |
| 12980 | |
| 12981 | bad: |
| 12982 | if (aitop) |
| 12983 | freeaddrinfo(aitop); |
| 12984 | exit(1); |
| 12985 | } |
| 12986 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12987 | _ACEOF |
| 12988 | rm -f conftest$ac_exeext |
| 12989 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12990 | (eval $ac_link) 2>&5 |
| 12991 | ac_status=$? |
| 12992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12993 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 12994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12995 | (eval $ac_try) 2>&5 |
| 12996 | ac_status=$? |
| 12997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12998 | (exit $ac_status); }; }; then |
| 12999 | echo "$as_me:$LINENO: result: good" >&5 |
| 13000 | echo "${ECHO_T}good" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13001 | buggygetaddrinfo=no |
| 13002 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13003 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13004 | echo "$as_me: failed program was:" >&5 |
| 13005 | cat conftest.$ac_ext >&5 |
| 13006 | ( exit $ac_status ) |
| 13007 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 13008 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13009 | buggygetaddrinfo=yes |
| 13010 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13011 | 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] | 13012 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13013 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13014 | echo "$as_me: failed program was:" >&5 |
| 13015 | cat conftest.$ac_ext >&5 |
| 13016 | |
| 13017 | echo "$as_me:$LINENO: result: no" >&5 |
| 13018 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13019 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13020 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13021 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13022 | 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] | 13023 | |
| 13024 | if test "$buggygetaddrinfo" = "yes"; then |
| 13025 | if test "$ipv6" = "yes"; then |
| 13026 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 13027 | echo ' or you can specify "--disable-ipv6"'. |
| 13028 | exit 1 |
| 13029 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13030 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13031 | |
| 13032 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13033 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13034 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13035 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13036 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13037 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 13038 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13039 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13040 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13041 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13042 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13043 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13045 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13046 | cat >conftest.$ac_ext <<_ACEOF |
| 13047 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13048 | #include "confdefs.h" |
| 13049 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13050 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13051 | #include <assert.h> |
| 13052 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13053 | #ifdef __cplusplus |
| 13054 | extern "C" |
| 13055 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13056 | /* 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] | 13057 | builtin and then its argument prototype would still apply. */ |
| 13058 | char $ac_func (); |
| 13059 | char (*f) (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13060 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13061 | #ifdef F77_DUMMY_MAIN |
| 13062 | # ifdef __cplusplus |
| 13063 | extern "C" |
| 13064 | # endif |
| 13065 | int F77_DUMMY_MAIN() { return 1; } |
| 13066 | #endif |
| 13067 | int |
| 13068 | main () |
| 13069 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13070 | /* The GNU C library defines this for functions which it implements |
| 13071 | to always fail with ENOSYS. Some functions are actually named |
| 13072 | something starting with __ and the normal name is an alias. */ |
| 13073 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13074 | choke me |
| 13075 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13076 | f = $ac_func; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13077 | #endif |
| 13078 | |
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 conftest$ac_exeext |
| 13084 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13085 | (eval $ac_link) 2>&5 |
| 13086 | ac_status=$? |
| 13087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13088 | (exit $ac_status); } && |
| 13089 | { ac_try='test -s conftest$ac_exeext' |
| 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 |
| 13095 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 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 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +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_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13102 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13103 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13104 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13105 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13106 | cat >>confdefs.h <<_ACEOF |
| 13107 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13108 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13109 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13110 | fi |
| 13111 | done |
| 13112 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13113 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13114 | # checks for structures |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13115 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 13116 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 13117 | if test "${ac_cv_header_time+set}" = set; then |
| 13118 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13119 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13120 | cat >conftest.$ac_ext <<_ACEOF |
| 13121 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13122 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13123 | #include <sys/types.h> |
| 13124 | #include <sys/time.h> |
| 13125 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13126 | |
| 13127 | #ifdef F77_DUMMY_MAIN |
| 13128 | # ifdef __cplusplus |
| 13129 | extern "C" |
| 13130 | # endif |
| 13131 | int F77_DUMMY_MAIN() { return 1; } |
| 13132 | #endif |
| 13133 | int |
| 13134 | main () |
| 13135 | { |
| 13136 | if ((struct tm *) 0) |
| 13137 | return 0; |
| 13138 | ; |
| 13139 | return 0; |
| 13140 | } |
| 13141 | _ACEOF |
| 13142 | rm -f conftest.$ac_objext |
| 13143 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13144 | (eval $ac_compile) 2>&5 |
| 13145 | ac_status=$? |
| 13146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13147 | (exit $ac_status); } && |
| 13148 | { ac_try='test -s conftest.$ac_objext' |
| 13149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13150 | (eval $ac_try) 2>&5 |
| 13151 | ac_status=$? |
| 13152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13153 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13154 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13155 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13156 | echo "$as_me: failed program was:" >&5 |
| 13157 | cat conftest.$ac_ext >&5 |
| 13158 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13159 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13160 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13161 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13162 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 13163 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13164 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13165 | |
| 13166 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13167 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13168 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13169 | |
| 13170 | fi |
| 13171 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13172 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 13173 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 13174 | if test "${ac_cv_struct_tm+set}" = set; then |
| 13175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13176 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13177 | cat >conftest.$ac_ext <<_ACEOF |
| 13178 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13179 | #include "confdefs.h" |
| 13180 | #include <sys/types.h> |
| 13181 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13182 | |
| 13183 | #ifdef F77_DUMMY_MAIN |
| 13184 | # ifdef __cplusplus |
| 13185 | extern "C" |
| 13186 | # endif |
| 13187 | int F77_DUMMY_MAIN() { return 1; } |
| 13188 | #endif |
| 13189 | int |
| 13190 | main () |
| 13191 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13192 | struct tm *tp; tp->tm_sec; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13193 | ; |
| 13194 | return 0; |
| 13195 | } |
| 13196 | _ACEOF |
| 13197 | rm -f conftest.$ac_objext |
| 13198 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13199 | (eval $ac_compile) 2>&5 |
| 13200 | ac_status=$? |
| 13201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13202 | (exit $ac_status); } && |
| 13203 | { ac_try='test -s conftest.$ac_objext' |
| 13204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13205 | (eval $ac_try) 2>&5 |
| 13206 | ac_status=$? |
| 13207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13208 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13209 | ac_cv_struct_tm=time.h |
| 13210 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13211 | echo "$as_me: failed program was:" >&5 |
| 13212 | cat conftest.$ac_ext >&5 |
| 13213 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13214 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13215 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13216 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13217 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 13218 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13219 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13220 | |
| 13221 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13222 | #define TM_IN_SYS_TIME 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 |
| 13226 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13227 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 13228 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 13229 | if test "${ac_cv_member_struct_tm_tm_zone+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 | cat >conftest.$ac_ext <<_ACEOF |
| 13233 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13234 | #include "confdefs.h" |
| 13235 | #include <sys/types.h> |
| 13236 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13237 | |
| 13238 | |
| 13239 | #ifdef F77_DUMMY_MAIN |
| 13240 | # ifdef __cplusplus |
| 13241 | extern "C" |
| 13242 | # endif |
| 13243 | int F77_DUMMY_MAIN() { return 1; } |
| 13244 | #endif |
| 13245 | int |
| 13246 | main () |
| 13247 | { |
| 13248 | static struct tm ac_aggr; |
| 13249 | if (ac_aggr.tm_zone) |
| 13250 | return 0; |
| 13251 | ; |
| 13252 | return 0; |
| 13253 | } |
| 13254 | _ACEOF |
| 13255 | rm -f conftest.$ac_objext |
| 13256 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13257 | (eval $ac_compile) 2>&5 |
| 13258 | ac_status=$? |
| 13259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13260 | (exit $ac_status); } && |
| 13261 | { ac_try='test -s conftest.$ac_objext' |
| 13262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13263 | (eval $ac_try) 2>&5 |
| 13264 | ac_status=$? |
| 13265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13266 | (exit $ac_status); }; }; then |
| 13267 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13268 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13269 | echo "$as_me: failed program was:" >&5 |
| 13270 | cat conftest.$ac_ext >&5 |
| 13271 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13272 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13273 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13274 | fi |
| 13275 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 13276 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 13277 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 13278 | |
| 13279 | cat >>confdefs.h <<_ACEOF |
| 13280 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 13281 | _ACEOF |
| 13282 | |
| 13283 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13284 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13285 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13286 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 13287 | |
| 13288 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13289 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13290 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13291 | |
| 13292 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13293 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 13294 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 13295 | if test "${ac_cv_var_tzname+set}" = set; then |
| 13296 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13297 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13298 | cat >conftest.$ac_ext <<_ACEOF |
| 13299 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13300 | #include "confdefs.h" |
| 13301 | #include <time.h> |
| 13302 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13303 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13304 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13305 | |
| 13306 | #ifdef F77_DUMMY_MAIN |
| 13307 | # ifdef __cplusplus |
| 13308 | extern "C" |
| 13309 | # endif |
| 13310 | int F77_DUMMY_MAIN() { return 1; } |
| 13311 | #endif |
| 13312 | int |
| 13313 | main () |
| 13314 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13315 | atoi(*tzname); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13316 | ; |
| 13317 | return 0; |
| 13318 | } |
| 13319 | _ACEOF |
| 13320 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13321 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13322 | (eval $ac_link) 2>&5 |
| 13323 | ac_status=$? |
| 13324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13325 | (exit $ac_status); } && |
| 13326 | { ac_try='test -s conftest$ac_exeext' |
| 13327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13328 | (eval $ac_try) 2>&5 |
| 13329 | ac_status=$? |
| 13330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13331 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13332 | ac_cv_var_tzname=yes |
| 13333 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13334 | echo "$as_me: failed program was:" >&5 |
| 13335 | cat conftest.$ac_ext >&5 |
| 13336 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13337 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13338 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13339 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13340 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 13341 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13342 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13343 | |
| 13344 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13345 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13346 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13347 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13348 | fi |
| 13349 | fi |
| 13350 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13351 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 13352 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 |
| 13353 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 13354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13355 | else |
| 13356 | cat >conftest.$ac_ext <<_ACEOF |
| 13357 | #line $LINENO "configure" |
| 13358 | #include "confdefs.h" |
| 13359 | $ac_includes_default |
| 13360 | #ifdef F77_DUMMY_MAIN |
| 13361 | # ifdef __cplusplus |
| 13362 | extern "C" |
| 13363 | # endif |
| 13364 | int F77_DUMMY_MAIN() { return 1; } |
| 13365 | #endif |
| 13366 | int |
| 13367 | main () |
| 13368 | { |
| 13369 | static struct stat ac_aggr; |
| 13370 | if (ac_aggr.st_rdev) |
| 13371 | return 0; |
| 13372 | ; |
| 13373 | return 0; |
| 13374 | } |
| 13375 | _ACEOF |
| 13376 | rm -f conftest.$ac_objext |
| 13377 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13378 | (eval $ac_compile) 2>&5 |
| 13379 | ac_status=$? |
| 13380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13381 | (exit $ac_status); } && |
| 13382 | { ac_try='test -s conftest.$ac_objext' |
| 13383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13384 | (eval $ac_try) 2>&5 |
| 13385 | ac_status=$? |
| 13386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13387 | (exit $ac_status); }; }; then |
| 13388 | ac_cv_member_struct_stat_st_rdev=yes |
| 13389 | else |
| 13390 | echo "$as_me: failed program was:" >&5 |
| 13391 | cat conftest.$ac_ext >&5 |
| 13392 | ac_cv_member_struct_stat_st_rdev=no |
| 13393 | fi |
| 13394 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13395 | fi |
| 13396 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 13397 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 |
| 13398 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 13399 | |
| 13400 | cat >>confdefs.h <<_ACEOF |
| 13401 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 13402 | _ACEOF |
| 13403 | |
| 13404 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13405 | fi |
| 13406 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13407 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 13408 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| 13409 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 13410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13411 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13412 | cat >conftest.$ac_ext <<_ACEOF |
| 13413 | #line $LINENO "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13414 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13415 | $ac_includes_default |
| 13416 | #ifdef F77_DUMMY_MAIN |
| 13417 | # ifdef __cplusplus |
| 13418 | extern "C" |
| 13419 | # endif |
| 13420 | int F77_DUMMY_MAIN() { return 1; } |
| 13421 | #endif |
| 13422 | int |
| 13423 | main () |
| 13424 | { |
| 13425 | static struct stat ac_aggr; |
| 13426 | if (ac_aggr.st_blksize) |
| 13427 | return 0; |
| 13428 | ; |
| 13429 | return 0; |
| 13430 | } |
| 13431 | _ACEOF |
| 13432 | rm -f conftest.$ac_objext |
| 13433 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13434 | (eval $ac_compile) 2>&5 |
| 13435 | ac_status=$? |
| 13436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13437 | (exit $ac_status); } && |
| 13438 | { ac_try='test -s conftest.$ac_objext' |
| 13439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13440 | (eval $ac_try) 2>&5 |
| 13441 | ac_status=$? |
| 13442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13443 | (exit $ac_status); }; }; then |
| 13444 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13445 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13446 | echo "$as_me: failed program was:" >&5 |
| 13447 | cat conftest.$ac_ext >&5 |
| 13448 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13449 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13450 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13451 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13452 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 13453 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| 13454 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13455 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13456 | cat >>confdefs.h <<_ACEOF |
| 13457 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 13458 | _ACEOF |
| 13459 | |
| 13460 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13461 | fi |
| 13462 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13463 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 13464 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 13465 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 13466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13467 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13468 | cat >conftest.$ac_ext <<_ACEOF |
| 13469 | #line $LINENO "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13470 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13471 | $ac_includes_default |
| 13472 | #ifdef F77_DUMMY_MAIN |
| 13473 | # ifdef __cplusplus |
| 13474 | extern "C" |
| 13475 | # endif |
| 13476 | int F77_DUMMY_MAIN() { return 1; } |
| 13477 | #endif |
| 13478 | int |
| 13479 | main () |
| 13480 | { |
| 13481 | static struct stat ac_aggr; |
| 13482 | if (ac_aggr.st_blocks) |
| 13483 | return 0; |
| 13484 | ; |
| 13485 | return 0; |
| 13486 | } |
| 13487 | _ACEOF |
| 13488 | rm -f conftest.$ac_objext |
| 13489 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13490 | (eval $ac_compile) 2>&5 |
| 13491 | ac_status=$? |
| 13492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13493 | (exit $ac_status); } && |
| 13494 | { ac_try='test -s conftest.$ac_objext' |
| 13495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13496 | (eval $ac_try) 2>&5 |
| 13497 | ac_status=$? |
| 13498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13499 | (exit $ac_status); }; }; then |
| 13500 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13501 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13502 | echo "$as_me: failed program was:" >&5 |
| 13503 | cat conftest.$ac_ext >&5 |
| 13504 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13505 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13506 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13507 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13508 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 13509 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 13510 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13511 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13512 | cat >>confdefs.h <<_ACEOF |
| 13513 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 13514 | _ACEOF |
| 13515 | |
| 13516 | |
| 13517 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13518 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13519 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13520 | |
| 13521 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13522 | LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13523 | fi |
| 13524 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13525 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13526 | |
| 13527 | echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 13528 | echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6 |
| 13529 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 13530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13531 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13532 | cat >conftest.$ac_ext <<_ACEOF |
| 13533 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13534 | #include "confdefs.h" |
| 13535 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13536 | #ifdef F77_DUMMY_MAIN |
| 13537 | # ifdef __cplusplus |
| 13538 | extern "C" |
| 13539 | # endif |
| 13540 | int F77_DUMMY_MAIN() { return 1; } |
| 13541 | #endif |
| 13542 | int |
| 13543 | main () |
| 13544 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13545 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13546 | ; |
| 13547 | return 0; |
| 13548 | } |
| 13549 | _ACEOF |
| 13550 | rm -f conftest.$ac_objext |
| 13551 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13552 | (eval $ac_compile) 2>&5 |
| 13553 | ac_status=$? |
| 13554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13555 | (exit $ac_status); } && |
| 13556 | { ac_try='test -s conftest.$ac_objext' |
| 13557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13558 | (eval $ac_try) 2>&5 |
| 13559 | ac_status=$? |
| 13560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13561 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13562 | ac_cv_header_time_altzone=yes |
| 13563 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13564 | echo "$as_me: failed program was:" >&5 |
| 13565 | cat conftest.$ac_ext >&5 |
| 13566 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13567 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13568 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13569 | fi |
| 13570 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13571 | echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 13572 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13573 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13574 | |
| 13575 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13576 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13577 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13578 | |
| 13579 | fi |
| 13580 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13581 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13582 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 13583 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 13584 | cat >conftest.$ac_ext <<_ACEOF |
| 13585 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13586 | #include "confdefs.h" |
| 13587 | |
| 13588 | #include <sys/types.h> |
| 13589 | #include <sys/select.h> |
| 13590 | #include <sys/time.h> |
| 13591 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13592 | #ifdef F77_DUMMY_MAIN |
| 13593 | # ifdef __cplusplus |
| 13594 | extern "C" |
| 13595 | # endif |
| 13596 | int F77_DUMMY_MAIN() { return 1; } |
| 13597 | #endif |
| 13598 | int |
| 13599 | main () |
| 13600 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13601 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13602 | ; |
| 13603 | return 0; |
| 13604 | } |
| 13605 | _ACEOF |
| 13606 | rm -f conftest.$ac_objext |
| 13607 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13608 | (eval $ac_compile) 2>&5 |
| 13609 | ac_status=$? |
| 13610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13611 | (exit $ac_status); } && |
| 13612 | { ac_try='test -s conftest.$ac_objext' |
| 13613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13614 | (eval $ac_try) 2>&5 |
| 13615 | ac_status=$? |
| 13616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13617 | (exit $ac_status); }; }; then |
| 13618 | |
| 13619 | |
| 13620 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13621 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13622 | _ACEOF |
| 13623 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13624 | was_it_defined=yes |
| 13625 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13626 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13627 | echo "$as_me: failed program was:" >&5 |
| 13628 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13629 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13630 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13631 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 13632 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13633 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13634 | echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 13635 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6 |
| 13636 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 13637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13638 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13639 | cat >conftest.$ac_ext <<_ACEOF |
| 13640 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13641 | #include "confdefs.h" |
| 13642 | |
| 13643 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13644 | #ifdef F77_DUMMY_MAIN |
| 13645 | # ifdef __cplusplus |
| 13646 | extern "C" |
| 13647 | # endif |
| 13648 | int F77_DUMMY_MAIN() { return 1; } |
| 13649 | #endif |
| 13650 | int |
| 13651 | main () |
| 13652 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13653 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13654 | ; |
| 13655 | return 0; |
| 13656 | } |
| 13657 | _ACEOF |
| 13658 | rm -f conftest.$ac_objext |
| 13659 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13660 | (eval $ac_compile) 2>&5 |
| 13661 | ac_status=$? |
| 13662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13663 | (exit $ac_status); } && |
| 13664 | { ac_try='test -s conftest.$ac_objext' |
| 13665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13666 | (eval $ac_try) 2>&5 |
| 13667 | ac_status=$? |
| 13668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13669 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13670 | ac_cv_struct_addrinfo=yes |
| 13671 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13672 | echo "$as_me: failed program was:" >&5 |
| 13673 | cat conftest.$ac_ext >&5 |
| 13674 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13675 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13676 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13677 | fi |
| 13678 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13679 | echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 13680 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13681 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13682 | |
| 13683 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13684 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13685 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13686 | |
| 13687 | fi |
| 13688 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13689 | echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 13690 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 |
| 13691 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 13692 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13693 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13694 | cat >conftest.$ac_ext <<_ACEOF |
| 13695 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13696 | #include "confdefs.h" |
| 13697 | |
| 13698 | # include <sys/types.h> |
| 13699 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13700 | #ifdef F77_DUMMY_MAIN |
| 13701 | # ifdef __cplusplus |
| 13702 | extern "C" |
| 13703 | # endif |
| 13704 | int F77_DUMMY_MAIN() { return 1; } |
| 13705 | #endif |
| 13706 | int |
| 13707 | main () |
| 13708 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13709 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13710 | ; |
| 13711 | return 0; |
| 13712 | } |
| 13713 | _ACEOF |
| 13714 | rm -f conftest.$ac_objext |
| 13715 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13716 | (eval $ac_compile) 2>&5 |
| 13717 | ac_status=$? |
| 13718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13719 | (exit $ac_status); } && |
| 13720 | { ac_try='test -s conftest.$ac_objext' |
| 13721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13722 | (eval $ac_try) 2>&5 |
| 13723 | ac_status=$? |
| 13724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13725 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13726 | ac_cv_struct_sockaddr_storage=yes |
| 13727 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13728 | echo "$as_me: failed program was:" >&5 |
| 13729 | cat conftest.$ac_ext >&5 |
| 13730 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13731 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13732 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13733 | fi |
| 13734 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13735 | echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 13736 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13737 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13738 | |
| 13739 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13740 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13741 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13742 | |
| 13743 | fi |
| 13744 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13745 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13746 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13747 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13748 | echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 13749 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
| 13750 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 13751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13752 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13753 | cat >conftest.$ac_ext <<_ACEOF |
| 13754 | #line $LINENO "configure" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13755 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13756 | $ac_includes_default |
| 13757 | #ifdef F77_DUMMY_MAIN |
| 13758 | # ifdef __cplusplus |
| 13759 | extern "C" |
| 13760 | # endif |
| 13761 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13762 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13763 | int |
| 13764 | main () |
| 13765 | { |
| 13766 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 13767 | test_array [0] = 0 |
| 13768 | |
| 13769 | ; |
| 13770 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13771 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13772 | _ACEOF |
| 13773 | rm -f conftest.$ac_objext |
| 13774 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13775 | (eval $ac_compile) 2>&5 |
| 13776 | ac_status=$? |
| 13777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13778 | (exit $ac_status); } && |
| 13779 | { ac_try='test -s conftest.$ac_objext' |
| 13780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13781 | (eval $ac_try) 2>&5 |
| 13782 | ac_status=$? |
| 13783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13784 | (exit $ac_status); }; }; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13785 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13786 | else |
| 13787 | echo "$as_me: failed program was:" >&5 |
| 13788 | cat conftest.$ac_ext >&5 |
| 13789 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13790 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13791 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13792 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13793 | echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 13794 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13795 | 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] | 13796 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13797 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13798 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13799 | |
| 13800 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13801 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13802 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 13803 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 13804 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 13805 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13806 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13807 | ac_cv_prog_cc_stdc=no |
| 13808 | ac_save_CC=$CC |
| 13809 | cat >conftest.$ac_ext <<_ACEOF |
| 13810 | #line $LINENO "configure" |
| 13811 | #include "confdefs.h" |
| 13812 | #include <stdarg.h> |
| 13813 | #include <stdio.h> |
| 13814 | #include <sys/types.h> |
| 13815 | #include <sys/stat.h> |
| 13816 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 13817 | struct buf { int x; }; |
| 13818 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 13819 | static char *e (p, i) |
| 13820 | char **p; |
| 13821 | int i; |
| 13822 | { |
| 13823 | return p[i]; |
| 13824 | } |
| 13825 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 13826 | { |
| 13827 | char *s; |
| 13828 | va_list v; |
| 13829 | va_start (v,p); |
| 13830 | s = g (p, va_arg (v,int)); |
| 13831 | va_end (v); |
| 13832 | return s; |
| 13833 | } |
| 13834 | int test (int i, double x); |
| 13835 | struct s1 {int (*f) (int a);}; |
| 13836 | struct s2 {int (*f) (double a);}; |
| 13837 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 13838 | int argc; |
| 13839 | char **argv; |
| 13840 | #ifdef F77_DUMMY_MAIN |
| 13841 | # ifdef __cplusplus |
| 13842 | extern "C" |
| 13843 | # endif |
| 13844 | int F77_DUMMY_MAIN() { return 1; } |
| 13845 | #endif |
| 13846 | int |
| 13847 | main () |
| 13848 | { |
| 13849 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 13850 | ; |
| 13851 | return 0; |
| 13852 | } |
| 13853 | _ACEOF |
| 13854 | # Don't try gcc -ansi; that turns off useful extensions and |
| 13855 | # breaks some systems' header files. |
| 13856 | # AIX -qlanglvl=ansi |
| 13857 | # Ultrix and OSF/1 -std1 |
| 13858 | # HP-UX 10.20 and later -Ae |
| 13859 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 13860 | # SVR4 -Xc -D__EXTENSIONS__ |
| 13861 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 13862 | do |
| 13863 | CC="$ac_save_CC $ac_arg" |
| 13864 | rm -f conftest.$ac_objext |
| 13865 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13866 | (eval $ac_compile) 2>&5 |
| 13867 | ac_status=$? |
| 13868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13869 | (exit $ac_status); } && |
| 13870 | { ac_try='test -s conftest.$ac_objext' |
| 13871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13872 | (eval $ac_try) 2>&5 |
| 13873 | ac_status=$? |
| 13874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13875 | (exit $ac_status); }; }; then |
| 13876 | ac_cv_prog_cc_stdc=$ac_arg |
| 13877 | break |
| 13878 | else |
| 13879 | echo "$as_me: failed program was:" >&5 |
| 13880 | cat conftest.$ac_ext >&5 |
| 13881 | fi |
| 13882 | rm -f conftest.$ac_objext |
| 13883 | done |
| 13884 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 13885 | CC=$ac_save_CC |
| 13886 | |
| 13887 | fi |
| 13888 | |
| 13889 | case "x$ac_cv_prog_cc_stdc" in |
| 13890 | x|xno) |
| 13891 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 13892 | echo "${ECHO_T}none needed" >&6 ;; |
| 13893 | *) |
| 13894 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 13895 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 13896 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 13897 | esac |
| 13898 | |
| 13899 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 13900 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 13901 | if test "${ac_cv_c_const+set}" = set; then |
| 13902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13903 | else |
| 13904 | cat >conftest.$ac_ext <<_ACEOF |
| 13905 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13906 | #include "confdefs.h" |
| 13907 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13908 | #ifdef F77_DUMMY_MAIN |
| 13909 | # ifdef __cplusplus |
| 13910 | extern "C" |
| 13911 | # endif |
| 13912 | int F77_DUMMY_MAIN() { return 1; } |
| 13913 | #endif |
| 13914 | int |
| 13915 | main () |
| 13916 | { |
| 13917 | /* FIXME: Include the comments suggested by Paul. */ |
| 13918 | #ifndef __cplusplus |
| 13919 | /* Ultrix mips cc rejects this. */ |
| 13920 | typedef int charset[2]; |
| 13921 | const charset x; |
| 13922 | /* SunOS 4.1.1 cc rejects this. */ |
| 13923 | char const *const *ccp; |
| 13924 | char **p; |
| 13925 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 13926 | struct point {int x, y;}; |
| 13927 | static struct point const zero = {0,0}; |
| 13928 | /* AIX XL C 1.02.0.0 rejects this. |
| 13929 | It does not let you subtract one const X* pointer from another in |
| 13930 | an arm of an if-expression whose if-part is not a constant |
| 13931 | expression */ |
| 13932 | const char *g = "string"; |
| 13933 | ccp = &g + (g ? g-g : 0); |
| 13934 | /* HPUX 7.0 cc rejects these. */ |
| 13935 | ++ccp; |
| 13936 | p = (char**) ccp; |
| 13937 | ccp = (char const *const *) p; |
| 13938 | { /* SCO 3.2v4 cc rejects this. */ |
| 13939 | char *t; |
| 13940 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13941 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13942 | *t++ = 0; |
| 13943 | } |
| 13944 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 13945 | int x[] = {25, 17}; |
| 13946 | const int *foo = &x[0]; |
| 13947 | ++foo; |
| 13948 | } |
| 13949 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 13950 | typedef const int *iptr; |
| 13951 | iptr p = 0; |
| 13952 | ++p; |
| 13953 | } |
| 13954 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 13955 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 13956 | struct s { int j; const int *ap[3]; }; |
| 13957 | struct s *b; b->j = 5; |
| 13958 | } |
| 13959 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 13960 | const int foo = 10; |
| 13961 | } |
| 13962 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13963 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13964 | ; |
| 13965 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13966 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13967 | _ACEOF |
| 13968 | rm -f conftest.$ac_objext |
| 13969 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13970 | (eval $ac_compile) 2>&5 |
| 13971 | ac_status=$? |
| 13972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13973 | (exit $ac_status); } && |
| 13974 | { ac_try='test -s conftest.$ac_objext' |
| 13975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13976 | (eval $ac_try) 2>&5 |
| 13977 | ac_status=$? |
| 13978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13979 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13980 | ac_cv_c_const=yes |
| 13981 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13982 | echo "$as_me: failed program was:" >&5 |
| 13983 | cat conftest.$ac_ext >&5 |
| 13984 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13985 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13986 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13987 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13988 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 13989 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13990 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13991 | |
| 13992 | cat >>confdefs.h <<\_ACEOF |
| 13993 | #define const |
| 13994 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13995 | |
| 13996 | fi |
| 13997 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13998 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13999 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14000 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 14001 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| 14002 | cat >conftest.$ac_ext <<_ACEOF |
| 14003 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14004 | #include "confdefs.h" |
| 14005 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14006 | #ifdef F77_DUMMY_MAIN |
| 14007 | # ifdef __cplusplus |
| 14008 | extern "C" |
| 14009 | # endif |
| 14010 | int F77_DUMMY_MAIN() { return 1; } |
| 14011 | #endif |
| 14012 | int |
| 14013 | main () |
| 14014 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14015 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14016 | ; |
| 14017 | return 0; |
| 14018 | } |
| 14019 | _ACEOF |
| 14020 | rm -f conftest.$ac_objext |
| 14021 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14022 | (eval $ac_compile) 2>&5 |
| 14023 | ac_status=$? |
| 14024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14025 | (exit $ac_status); } && |
| 14026 | { ac_try='test -s conftest.$ac_objext' |
| 14027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14028 | (eval $ac_try) 2>&5 |
| 14029 | ac_status=$? |
| 14030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14031 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14032 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14033 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14034 | echo "$as_me: failed program was:" >&5 |
| 14035 | cat conftest.$ac_ext >&5 |
| 14036 | |
| 14037 | cat >>confdefs.h <<\_ACEOF |
| 14038 | #define volatile |
| 14039 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14040 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14041 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14042 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14043 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14044 | echo "$as_me:$LINENO: result: $works" >&5 |
| 14045 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14046 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14047 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14048 | echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 14049 | echo $ECHO_N "checking for working signed char... $ECHO_C" >&6 |
| 14050 | cat >conftest.$ac_ext <<_ACEOF |
| 14051 | #line $LINENO "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 14052 | #include "confdefs.h" |
| 14053 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14054 | #ifdef F77_DUMMY_MAIN |
| 14055 | # ifdef __cplusplus |
| 14056 | extern "C" |
| 14057 | # endif |
| 14058 | int F77_DUMMY_MAIN() { return 1; } |
| 14059 | #endif |
| 14060 | int |
| 14061 | main () |
| 14062 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14063 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14064 | ; |
| 14065 | return 0; |
| 14066 | } |
| 14067 | _ACEOF |
| 14068 | rm -f conftest.$ac_objext |
| 14069 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14070 | (eval $ac_compile) 2>&5 |
| 14071 | ac_status=$? |
| 14072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14073 | (exit $ac_status); } && |
| 14074 | { ac_try='test -s conftest.$ac_objext' |
| 14075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14076 | (eval $ac_try) 2>&5 |
| 14077 | ac_status=$? |
| 14078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14079 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14080 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 14081 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14082 | echo "$as_me: failed program was:" >&5 |
| 14083 | cat conftest.$ac_ext >&5 |
| 14084 | |
| 14085 | cat >>confdefs.h <<\_ACEOF |
| 14086 | #define signed |
| 14087 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14088 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14089 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14090 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14091 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14092 | echo "$as_me:$LINENO: result: $works" >&5 |
| 14093 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14094 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14095 | have_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14096 | echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 14097 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6 |
| 14098 | cat >conftest.$ac_ext <<_ACEOF |
| 14099 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14100 | #include "confdefs.h" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14101 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14102 | #ifdef F77_DUMMY_MAIN |
| 14103 | # ifdef __cplusplus |
| 14104 | extern "C" |
| 14105 | # endif |
| 14106 | int F77_DUMMY_MAIN() { return 1; } |
| 14107 | #endif |
| 14108 | int |
| 14109 | main () |
| 14110 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14111 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14112 | ; |
| 14113 | return 0; |
| 14114 | } |
| 14115 | _ACEOF |
| 14116 | rm -f conftest.$ac_objext |
| 14117 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14118 | (eval $ac_compile) 2>&5 |
| 14119 | ac_status=$? |
| 14120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14121 | (exit $ac_status); } && |
| 14122 | { ac_try='test -s conftest.$ac_objext' |
| 14123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14124 | (eval $ac_try) 2>&5 |
| 14125 | ac_status=$? |
| 14126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14127 | (exit $ac_status); }; }; then |
| 14128 | |
| 14129 | |
| 14130 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14131 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14132 | _ACEOF |
| 14133 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14134 | have_prototypes=yes |
| 14135 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14136 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14137 | echo "$as_me: failed program was:" >&5 |
| 14138 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14139 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14140 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14141 | echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 14142 | echo "${ECHO_T}$have_prototypes" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14143 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14144 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14145 | echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 14146 | echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6 |
| 14147 | cat >conftest.$ac_ext <<_ACEOF |
| 14148 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14149 | #include "confdefs.h" |
| 14150 | |
| 14151 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 14152 | int foo(int x, ...) { |
| 14153 | va_list va; |
| 14154 | va_start(va, x); |
| 14155 | va_arg(va, int); |
| 14156 | va_arg(va, char *); |
| 14157 | va_arg(va, double); |
| 14158 | return 0; |
| 14159 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14160 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14161 | #ifdef F77_DUMMY_MAIN |
| 14162 | # ifdef __cplusplus |
| 14163 | extern "C" |
| 14164 | # endif |
| 14165 | int F77_DUMMY_MAIN() { return 1; } |
| 14166 | #endif |
| 14167 | int |
| 14168 | main () |
| 14169 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 14170 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14171 | ; |
| 14172 | return 0; |
| 14173 | } |
| 14174 | _ACEOF |
| 14175 | rm -f conftest.$ac_objext |
| 14176 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14177 | (eval $ac_compile) 2>&5 |
| 14178 | ac_status=$? |
| 14179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14180 | (exit $ac_status); } && |
| 14181 | { ac_try='test -s conftest.$ac_objext' |
| 14182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14183 | (eval $ac_try) 2>&5 |
| 14184 | ac_status=$? |
| 14185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14186 | (exit $ac_status); }; }; then |
| 14187 | |
| 14188 | |
| 14189 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14190 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14191 | _ACEOF |
| 14192 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14193 | works=yes |
| 14194 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14195 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14196 | echo "$as_me: failed program was:" >&5 |
| 14197 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14198 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14199 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14200 | echo "$as_me:$LINENO: result: $works" >&5 |
| 14201 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14202 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14203 | if test "$have_prototypes" = yes; then |
| 14204 | bad_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14205 | echo "$as_me:$LINENO: checking for bad exec* prototypes" >&5 |
| 14206 | echo $ECHO_N "checking for bad exec* prototypes... $ECHO_C" >&6 |
| 14207 | cat >conftest.$ac_ext <<_ACEOF |
| 14208 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14209 | #include "confdefs.h" |
| 14210 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14211 | #ifdef F77_DUMMY_MAIN |
| 14212 | # ifdef __cplusplus |
| 14213 | extern "C" |
| 14214 | # endif |
| 14215 | int F77_DUMMY_MAIN() { return 1; } |
| 14216 | #endif |
| 14217 | int |
| 14218 | main () |
| 14219 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14220 | char **t;execve("@",t,t); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14221 | ; |
| 14222 | return 0; |
| 14223 | } |
| 14224 | _ACEOF |
| 14225 | rm -f conftest.$ac_objext |
| 14226 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14227 | (eval $ac_compile) 2>&5 |
| 14228 | ac_status=$? |
| 14229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14230 | (exit $ac_status); } && |
| 14231 | { ac_try='test -s conftest.$ac_objext' |
| 14232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14233 | (eval $ac_try) 2>&5 |
| 14234 | ac_status=$? |
| 14235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14236 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14237 | : |
| 14238 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14239 | echo "$as_me: failed program was:" >&5 |
| 14240 | cat conftest.$ac_ext >&5 |
| 14241 | |
| 14242 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14243 | #define BAD_EXEC_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14244 | _ACEOF |
| 14245 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14246 | bad_prototypes=yes |
| 14247 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14248 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14249 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14250 | echo "$as_me:$LINENO: result: $bad_prototypes" >&5 |
| 14251 | echo "${ECHO_T}$bad_prototypes" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14252 | fi |
| 14253 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14254 | # check if sockaddr has sa_len member |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14255 | echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 14256 | echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6 |
| 14257 | cat >conftest.$ac_ext <<_ACEOF |
| 14258 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14259 | #include "confdefs.h" |
| 14260 | #include <sys/types.h> |
| 14261 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14262 | #ifdef F77_DUMMY_MAIN |
| 14263 | # ifdef __cplusplus |
| 14264 | extern "C" |
| 14265 | # endif |
| 14266 | int F77_DUMMY_MAIN() { return 1; } |
| 14267 | #endif |
| 14268 | int |
| 14269 | main () |
| 14270 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14271 | struct sockaddr x; |
| 14272 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14273 | ; |
| 14274 | return 0; |
| 14275 | } |
| 14276 | _ACEOF |
| 14277 | rm -f conftest.$ac_objext |
| 14278 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14279 | (eval $ac_compile) 2>&5 |
| 14280 | ac_status=$? |
| 14281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14282 | (exit $ac_status); } && |
| 14283 | { ac_try='test -s conftest.$ac_objext' |
| 14284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14285 | (eval $ac_try) 2>&5 |
| 14286 | ac_status=$? |
| 14287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14288 | (exit $ac_status); }; }; then |
| 14289 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14290 | echo "${ECHO_T}yes" >&6 |
| 14291 | |
| 14292 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14293 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14294 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14295 | |
| 14296 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14297 | echo "$as_me: failed program was:" >&5 |
| 14298 | cat conftest.$ac_ext >&5 |
| 14299 | echo "$as_me:$LINENO: result: no" >&5 |
| 14300 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14301 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14302 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14303 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14304 | va_list_is_array=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14305 | echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 14306 | echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6 |
| 14307 | cat >conftest.$ac_ext <<_ACEOF |
| 14308 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14309 | #include "confdefs.h" |
| 14310 | |
| 14311 | #ifdef HAVE_STDARG_PROTOTYPES |
| 14312 | #include <stdarg.h> |
| 14313 | #else |
| 14314 | #include <varargs.h> |
| 14315 | #endif |
| 14316 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14317 | #ifdef F77_DUMMY_MAIN |
| 14318 | # ifdef __cplusplus |
| 14319 | extern "C" |
| 14320 | # endif |
| 14321 | int F77_DUMMY_MAIN() { return 1; } |
| 14322 | #endif |
| 14323 | int |
| 14324 | main () |
| 14325 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14326 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14327 | ; |
| 14328 | return 0; |
| 14329 | } |
| 14330 | _ACEOF |
| 14331 | rm -f conftest.$ac_objext |
| 14332 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14333 | (eval $ac_compile) 2>&5 |
| 14334 | ac_status=$? |
| 14335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14336 | (exit $ac_status); } && |
| 14337 | { ac_try='test -s conftest.$ac_objext' |
| 14338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14339 | (eval $ac_try) 2>&5 |
| 14340 | ac_status=$? |
| 14341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14342 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14343 | : |
| 14344 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14345 | echo "$as_me: failed program was:" >&5 |
| 14346 | cat conftest.$ac_ext >&5 |
| 14347 | |
| 14348 | |
| 14349 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14350 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14351 | _ACEOF |
| 14352 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14353 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14354 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14355 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14356 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14357 | echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 14358 | echo "${ECHO_T}$va_list_is_array" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14359 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14360 | # 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] | 14361 | |
| 14362 | |
| 14363 | |
| 14364 | echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 14365 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6 |
| 14366 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 14367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14368 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14369 | cat >conftest.$ac_ext <<_ACEOF |
| 14370 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14371 | #include "confdefs.h" |
| 14372 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14373 | which can conflict with char gethostbyname_r (); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14374 | #include <assert.h> |
| 14375 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14376 | #ifdef __cplusplus |
| 14377 | extern "C" |
| 14378 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14379 | /* 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] | 14380 | builtin and then its argument prototype would still apply. */ |
| 14381 | char gethostbyname_r (); |
| 14382 | char (*f) (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14383 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14384 | #ifdef F77_DUMMY_MAIN |
| 14385 | # ifdef __cplusplus |
| 14386 | extern "C" |
| 14387 | # endif |
| 14388 | int F77_DUMMY_MAIN() { return 1; } |
| 14389 | #endif |
| 14390 | int |
| 14391 | main () |
| 14392 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14393 | /* The GNU C library defines this for functions which it implements |
| 14394 | to always fail with ENOSYS. Some functions are actually named |
| 14395 | something starting with __ and the normal name is an alias. */ |
| 14396 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 14397 | choke me |
| 14398 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14399 | f = gethostbyname_r; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14400 | #endif |
| 14401 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14402 | ; |
| 14403 | return 0; |
| 14404 | } |
| 14405 | _ACEOF |
| 14406 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14407 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14408 | (eval $ac_link) 2>&5 |
| 14409 | ac_status=$? |
| 14410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14411 | (exit $ac_status); } && |
| 14412 | { ac_try='test -s conftest$ac_exeext' |
| 14413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14414 | (eval $ac_try) 2>&5 |
| 14415 | ac_status=$? |
| 14416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14417 | (exit $ac_status); }; }; then |
| 14418 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14419 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14420 | echo "$as_me: failed program was:" >&5 |
| 14421 | cat conftest.$ac_ext >&5 |
| 14422 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14423 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14424 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14425 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14426 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 14427 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6 |
| 14428 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14429 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14430 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14431 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14432 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14433 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14434 | echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 14435 | 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] | 14436 | OLD_CFLAGS=$CFLAGS |
| 14437 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14438 | cat >conftest.$ac_ext <<_ACEOF |
| 14439 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14440 | #include "confdefs.h" |
| 14441 | |
| 14442 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14443 | |
| 14444 | #ifdef F77_DUMMY_MAIN |
| 14445 | # ifdef __cplusplus |
| 14446 | extern "C" |
| 14447 | # endif |
| 14448 | int F77_DUMMY_MAIN() { return 1; } |
| 14449 | #endif |
| 14450 | int |
| 14451 | main () |
| 14452 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14453 | |
| 14454 | char *name; |
| 14455 | struct hostent *he, *res; |
| 14456 | char buffer[2048]; |
| 14457 | int buflen = 2048; |
| 14458 | int h_errnop; |
| 14459 | |
| 14460 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14461 | |
| 14462 | ; |
| 14463 | return 0; |
| 14464 | } |
| 14465 | _ACEOF |
| 14466 | rm -f conftest.$ac_objext |
| 14467 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14468 | (eval $ac_compile) 2>&5 |
| 14469 | ac_status=$? |
| 14470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14471 | (exit $ac_status); } && |
| 14472 | { ac_try='test -s conftest.$ac_objext' |
| 14473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14474 | (eval $ac_try) 2>&5 |
| 14475 | ac_status=$? |
| 14476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14477 | (exit $ac_status); }; }; then |
| 14478 | |
| 14479 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14480 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14481 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14482 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14483 | |
| 14484 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14485 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14486 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14487 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14488 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14489 | echo "${ECHO_T}yes" >&6 |
| 14490 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14491 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14492 | echo "$as_me: failed program was:" >&5 |
| 14493 | cat conftest.$ac_ext >&5 |
| 14494 | |
| 14495 | echo "$as_me:$LINENO: result: no" >&5 |
| 14496 | echo "${ECHO_T}no" >&6 |
| 14497 | echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 14498 | echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6 |
| 14499 | cat >conftest.$ac_ext <<_ACEOF |
| 14500 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14501 | #include "confdefs.h" |
| 14502 | |
| 14503 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14504 | |
| 14505 | #ifdef F77_DUMMY_MAIN |
| 14506 | # ifdef __cplusplus |
| 14507 | extern "C" |
| 14508 | # endif |
| 14509 | int F77_DUMMY_MAIN() { return 1; } |
| 14510 | #endif |
| 14511 | int |
| 14512 | main () |
| 14513 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14514 | |
| 14515 | char *name; |
| 14516 | struct hostent *he; |
| 14517 | char buffer[2048]; |
| 14518 | int buflen = 2048; |
| 14519 | int h_errnop; |
| 14520 | |
| 14521 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14522 | |
| 14523 | ; |
| 14524 | return 0; |
| 14525 | } |
| 14526 | _ACEOF |
| 14527 | rm -f conftest.$ac_objext |
| 14528 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14529 | (eval $ac_compile) 2>&5 |
| 14530 | ac_status=$? |
| 14531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14532 | (exit $ac_status); } && |
| 14533 | { ac_try='test -s conftest.$ac_objext' |
| 14534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14535 | (eval $ac_try) 2>&5 |
| 14536 | ac_status=$? |
| 14537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14538 | (exit $ac_status); }; }; then |
| 14539 | |
| 14540 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14541 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14542 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14543 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14544 | |
| 14545 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14546 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14547 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14548 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14549 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14550 | echo "${ECHO_T}yes" >&6 |
| 14551 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14552 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14553 | echo "$as_me: failed program was:" >&5 |
| 14554 | cat conftest.$ac_ext >&5 |
| 14555 | |
| 14556 | echo "$as_me:$LINENO: result: no" >&5 |
| 14557 | echo "${ECHO_T}no" >&6 |
| 14558 | echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 14559 | echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6 |
| 14560 | cat >conftest.$ac_ext <<_ACEOF |
| 14561 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14562 | #include "confdefs.h" |
| 14563 | |
| 14564 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14565 | |
| 14566 | #ifdef F77_DUMMY_MAIN |
| 14567 | # ifdef __cplusplus |
| 14568 | extern "C" |
| 14569 | # endif |
| 14570 | int F77_DUMMY_MAIN() { return 1; } |
| 14571 | #endif |
| 14572 | int |
| 14573 | main () |
| 14574 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14575 | |
| 14576 | char *name; |
| 14577 | struct hostent *he; |
| 14578 | struct hostent_data data; |
| 14579 | |
| 14580 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14581 | |
| 14582 | ; |
| 14583 | return 0; |
| 14584 | } |
| 14585 | _ACEOF |
| 14586 | rm -f conftest.$ac_objext |
| 14587 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14588 | (eval $ac_compile) 2>&5 |
| 14589 | ac_status=$? |
| 14590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14591 | (exit $ac_status); } && |
| 14592 | { ac_try='test -s conftest.$ac_objext' |
| 14593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14594 | (eval $ac_try) 2>&5 |
| 14595 | ac_status=$? |
| 14596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14597 | (exit $ac_status); }; }; then |
| 14598 | |
| 14599 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14600 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14601 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14602 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14603 | |
| 14604 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14605 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14606 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14607 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14608 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14609 | echo "${ECHO_T}yes" >&6 |
| 14610 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14611 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14612 | echo "$as_me: failed program was:" >&5 |
| 14613 | cat conftest.$ac_ext >&5 |
| 14614 | |
| 14615 | echo "$as_me:$LINENO: result: no" >&5 |
| 14616 | echo "${ECHO_T}no" >&6 |
| 14617 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14618 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14619 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14620 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14621 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14622 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14623 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14624 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14625 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14626 | CFLAGS=$OLD_CFLAGS |
| 14627 | |
| 14628 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14629 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14630 | |
| 14631 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14632 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14633 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14634 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14635 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14636 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14638 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14639 | cat >conftest.$ac_ext <<_ACEOF |
| 14640 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14641 | #include "confdefs.h" |
| 14642 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14643 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14644 | #include <assert.h> |
| 14645 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14646 | #ifdef __cplusplus |
| 14647 | extern "C" |
| 14648 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14649 | /* 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] | 14650 | builtin and then its argument prototype would still apply. */ |
| 14651 | char $ac_func (); |
| 14652 | char (*f) (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14653 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14654 | #ifdef F77_DUMMY_MAIN |
| 14655 | # ifdef __cplusplus |
| 14656 | extern "C" |
| 14657 | # endif |
| 14658 | int F77_DUMMY_MAIN() { return 1; } |
| 14659 | #endif |
| 14660 | int |
| 14661 | main () |
| 14662 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14663 | /* The GNU C library defines this for functions which it implements |
| 14664 | to always fail with ENOSYS. Some functions are actually named |
| 14665 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14666 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14667 | choke me |
| 14668 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14669 | f = $ac_func; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14670 | #endif |
| 14671 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14672 | ; |
| 14673 | return 0; |
| 14674 | } |
| 14675 | _ACEOF |
| 14676 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14677 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14678 | (eval $ac_link) 2>&5 |
| 14679 | ac_status=$? |
| 14680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14681 | (exit $ac_status); } && |
| 14682 | { ac_try='test -s conftest$ac_exeext' |
| 14683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14684 | (eval $ac_try) 2>&5 |
| 14685 | ac_status=$? |
| 14686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14687 | (exit $ac_status); }; }; then |
| 14688 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14689 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14690 | echo "$as_me: failed program was:" >&5 |
| 14691 | cat conftest.$ac_ext >&5 |
| 14692 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14693 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14694 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14695 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14696 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14697 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14698 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14699 | cat >>confdefs.h <<_ACEOF |
| 14700 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14701 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14702 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14703 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14704 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14705 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14706 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14707 | fi |
| 14708 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14709 | |
| 14710 | |
| 14711 | |
| 14712 | |
| 14713 | |
| 14714 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14715 | # checks for system services |
| 14716 | # (none yet) |
| 14717 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14718 | # Linux requires this for correct f.p. operations |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14719 | echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 14720 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6 |
| 14721 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 14722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14723 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14724 | cat >conftest.$ac_ext <<_ACEOF |
| 14725 | #line $LINENO "configure" |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14726 | #include "confdefs.h" |
| 14727 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14728 | which can conflict with char __fpu_control (); below. */ |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14729 | #include <assert.h> |
| 14730 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14731 | #ifdef __cplusplus |
| 14732 | extern "C" |
| 14733 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14734 | /* 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] | 14735 | builtin and then its argument prototype would still apply. */ |
| 14736 | char __fpu_control (); |
| 14737 | char (*f) (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14738 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14739 | #ifdef F77_DUMMY_MAIN |
| 14740 | # ifdef __cplusplus |
| 14741 | extern "C" |
| 14742 | # endif |
| 14743 | int F77_DUMMY_MAIN() { return 1; } |
| 14744 | #endif |
| 14745 | int |
| 14746 | main () |
| 14747 | { |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14748 | /* The GNU C library defines this for functions which it implements |
| 14749 | to always fail with ENOSYS. Some functions are actually named |
| 14750 | something starting with __ and the normal name is an alias. */ |
| 14751 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 14752 | choke me |
| 14753 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14754 | f = __fpu_control; |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14755 | #endif |
| 14756 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14757 | ; |
| 14758 | return 0; |
| 14759 | } |
| 14760 | _ACEOF |
| 14761 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14762 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14763 | (eval $ac_link) 2>&5 |
| 14764 | ac_status=$? |
| 14765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14766 | (exit $ac_status); } && |
| 14767 | { ac_try='test -s conftest$ac_exeext' |
| 14768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14769 | (eval $ac_try) 2>&5 |
| 14770 | ac_status=$? |
| 14771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14772 | (exit $ac_status); }; }; then |
| 14773 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14774 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14775 | echo "$as_me: failed program was:" >&5 |
| 14776 | cat conftest.$ac_ext >&5 |
| 14777 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14778 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14779 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14780 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14781 | echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 14782 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6 |
| 14783 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14784 | : |
| 14785 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14786 | |
| 14787 | echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 14788 | echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6 |
| 14789 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 14790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14791 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14792 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14793 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14794 | cat >conftest.$ac_ext <<_ACEOF |
| 14795 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14796 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14797 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14798 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14799 | #ifdef __cplusplus |
| 14800 | extern "C" |
| 14801 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14802 | /* 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] | 14803 | builtin and then its argument prototype would still apply. */ |
| 14804 | char __fpu_control (); |
| 14805 | #ifdef F77_DUMMY_MAIN |
| 14806 | # ifdef __cplusplus |
| 14807 | extern "C" |
| 14808 | # endif |
| 14809 | int F77_DUMMY_MAIN() { return 1; } |
| 14810 | #endif |
| 14811 | int |
| 14812 | main () |
| 14813 | { |
| 14814 | __fpu_control (); |
| 14815 | ; |
| 14816 | return 0; |
| 14817 | } |
| 14818 | _ACEOF |
| 14819 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14820 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14821 | (eval $ac_link) 2>&5 |
| 14822 | ac_status=$? |
| 14823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14824 | (exit $ac_status); } && |
| 14825 | { ac_try='test -s conftest$ac_exeext' |
| 14826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14827 | (eval $ac_try) 2>&5 |
| 14828 | ac_status=$? |
| 14829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14830 | (exit $ac_status); }; }; then |
| 14831 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14832 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14833 | echo "$as_me: failed program was:" >&5 |
| 14834 | cat conftest.$ac_ext >&5 |
| 14835 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14836 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14837 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 14838 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14839 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14840 | echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 14841 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6 |
| 14842 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 14843 | cat >>confdefs.h <<_ACEOF |
| 14844 | #define HAVE_LIBIEEE 1 |
| 14845 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14846 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14847 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14848 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14849 | fi |
| 14850 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14851 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14852 | fi |
| 14853 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14854 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14855 | # Check for --with-fpectl |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14856 | echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 14857 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6 |
| 14858 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14859 | # Check whether --with-fpectl or --without-fpectl was given. |
| 14860 | if test "${with_fpectl+set}" = set; then |
| 14861 | withval="$with_fpectl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14862 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14863 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14864 | then |
| 14865 | |
| 14866 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14867 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14868 | _ACEOF |
| 14869 | |
| 14870 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14871 | echo "${ECHO_T}yes" >&6 |
| 14872 | else echo "$as_me:$LINENO: result: no" >&5 |
| 14873 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14874 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14875 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14876 | echo "$as_me:$LINENO: result: no" >&5 |
| 14877 | echo "${ECHO_T}no" >&6 |
| 14878 | fi; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14879 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14880 | # check for --with-libm=... |
| 14881 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 14882 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 14883 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 14884 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 14885 | *) LIBM=-lm |
| 14886 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14887 | echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 14888 | echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6 |
| 14889 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14890 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14891 | if test "${with_libm+set}" = set; then |
| 14892 | withval="$with_libm" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14893 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14894 | if test "$withval" = no |
| 14895 | then LIBM= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14896 | echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 14897 | echo "${ECHO_T}force LIBM empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14898 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14899 | then LIBM=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14900 | echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 14901 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6 |
| 14902 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 14903 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 14904 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14905 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14906 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14907 | echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 14908 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6 |
| 14909 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14910 | |
| 14911 | # check for --with-libc=... |
| 14912 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14913 | echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 14914 | echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6 |
| 14915 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14916 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14917 | if test "${with_libc+set}" = set; then |
| 14918 | withval="$with_libc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14919 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14920 | if test "$withval" = no |
| 14921 | then LIBC= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14922 | echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 14923 | echo "${ECHO_T}force LIBC empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14924 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14925 | then LIBC=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14926 | echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 14927 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6 |
| 14928 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 14929 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 14930 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14931 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14932 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14933 | echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 14934 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6 |
| 14935 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14936 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14937 | # check for hypot() in math library |
| 14938 | LIBS_SAVE=$LIBS |
| 14939 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14940 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14941 | for ac_func in hypot |
| 14942 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14943 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14944 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14945 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14946 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14948 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14949 | cat >conftest.$ac_ext <<_ACEOF |
| 14950 | #line $LINENO "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14951 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14952 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14953 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14954 | #include <assert.h> |
| 14955 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14956 | #ifdef __cplusplus |
| 14957 | extern "C" |
| 14958 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14959 | /* 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] | 14960 | builtin and then its argument prototype would still apply. */ |
| 14961 | char $ac_func (); |
| 14962 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14963 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14964 | #ifdef F77_DUMMY_MAIN |
| 14965 | # ifdef __cplusplus |
| 14966 | extern "C" |
| 14967 | # endif |
| 14968 | int F77_DUMMY_MAIN() { return 1; } |
| 14969 | #endif |
| 14970 | int |
| 14971 | main () |
| 14972 | { |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14973 | /* The GNU C library defines this for functions which it implements |
| 14974 | to always fail with ENOSYS. Some functions are actually named |
| 14975 | something starting with __ and the normal name is an alias. */ |
| 14976 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14977 | choke me |
| 14978 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14979 | f = $ac_func; |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14980 | #endif |
| 14981 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14982 | ; |
| 14983 | return 0; |
| 14984 | } |
| 14985 | _ACEOF |
| 14986 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14987 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14988 | (eval $ac_link) 2>&5 |
| 14989 | ac_status=$? |
| 14990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14991 | (exit $ac_status); } && |
| 14992 | { ac_try='test -s conftest$ac_exeext' |
| 14993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14994 | (eval $ac_try) 2>&5 |
| 14995 | ac_status=$? |
| 14996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14997 | (exit $ac_status); }; }; then |
| 14998 | eval "$as_ac_var=yes" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 14999 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15000 | echo "$as_me: failed program was:" >&5 |
| 15001 | cat conftest.$ac_ext >&5 |
| 15002 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15003 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15004 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15005 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15006 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15007 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15008 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15009 | cat >>confdefs.h <<_ACEOF |
| 15010 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15011 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15012 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15013 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15014 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 15015 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 15016 | done |
| 15017 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15018 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15019 | LIBS=$LIBS_SAVE |
| 15020 | |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15021 | # check whether malloc(0) returns NULL or not |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15022 | echo "$as_me:$LINENO: checking what malloc(0) returns" >&5 |
| 15023 | echo $ECHO_N "checking what malloc(0) returns... $ECHO_C" >&6 |
| 15024 | if test "${ac_cv_malloc_zero+set}" = set; then |
| 15025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15026 | else |
| 15027 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15028 | ac_cv_malloc_zero=nonnull |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15029 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15030 | cat >conftest.$ac_ext <<_ACEOF |
| 15031 | #line $LINENO "configure" |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15032 | #include "confdefs.h" |
| 15033 | #include <stdio.h> |
| 15034 | #ifdef HAVE_STDLIB |
| 15035 | #include <stdlib.h> |
| 15036 | #else |
| 15037 | char *malloc(), *realloc(); |
| 15038 | int *free(); |
| 15039 | #endif |
| 15040 | main() { |
| 15041 | char *p; |
| 15042 | p = malloc(0); |
| 15043 | if (p == NULL) exit(1); |
| 15044 | p = realloc(p, 0); |
| 15045 | if (p == NULL) exit(1); |
| 15046 | free(p); |
| 15047 | exit(0); |
| 15048 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15049 | _ACEOF |
| 15050 | rm -f conftest$ac_exeext |
| 15051 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15052 | (eval $ac_link) 2>&5 |
| 15053 | ac_status=$? |
| 15054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15055 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15057 | (eval $ac_try) 2>&5 |
| 15058 | ac_status=$? |
| 15059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15060 | (exit $ac_status); }; }; then |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15061 | ac_cv_malloc_zero=nonnull |
| 15062 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15063 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15064 | echo "$as_me: failed program was:" >&5 |
| 15065 | cat conftest.$ac_ext >&5 |
| 15066 | ( exit $ac_status ) |
| 15067 | ac_cv_malloc_zero=null |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15068 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15069 | 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] | 15070 | fi |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15071 | fi |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15072 | # XXX arm cross-compile? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15073 | echo "$as_me:$LINENO: result: $ac_cv_malloc_zero" >&5 |
| 15074 | echo "${ECHO_T}$ac_cv_malloc_zero" >&6 |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15075 | if test "$ac_cv_malloc_zero" = null |
| 15076 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15077 | |
| 15078 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15079 | #define MALLOC_ZERO_RETURNS_NULL 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15080 | _ACEOF |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15081 | |
| 15082 | fi |
| 15083 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15084 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15085 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 15086 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 15087 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 15088 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 15089 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15090 | fi |
| 15091 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 15092 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15093 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15094 | # Is the header compilable? |
| 15095 | echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 15096 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 |
| 15097 | cat >conftest.$ac_ext <<_ACEOF |
| 15098 | #line $LINENO "configure" |
| 15099 | #include "confdefs.h" |
| 15100 | $ac_includes_default |
| 15101 | #include <wchar.h> |
| 15102 | _ACEOF |
| 15103 | rm -f conftest.$ac_objext |
| 15104 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15105 | (eval $ac_compile) 2>&5 |
| 15106 | ac_status=$? |
| 15107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15108 | (exit $ac_status); } && |
| 15109 | { ac_try='test -s conftest.$ac_objext' |
| 15110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15111 | (eval $ac_try) 2>&5 |
| 15112 | ac_status=$? |
| 15113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15114 | (exit $ac_status); }; }; then |
| 15115 | ac_header_compiler=yes |
| 15116 | else |
| 15117 | echo "$as_me: failed program was:" >&5 |
| 15118 | cat conftest.$ac_ext >&5 |
| 15119 | ac_header_compiler=no |
| 15120 | fi |
| 15121 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15122 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15123 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 15124 | |
| 15125 | # Is the header present? |
| 15126 | echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 15127 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 |
| 15128 | cat >conftest.$ac_ext <<_ACEOF |
| 15129 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15130 | #include "confdefs.h" |
| 15131 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15132 | _ACEOF |
| 15133 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 15134 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 15135 | ac_status=$? |
| 15136 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 15137 | rm -f conftest.er1 |
| 15138 | cat conftest.err >&5 |
| 15139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15140 | (exit $ac_status); } >/dev/null; then |
| 15141 | if test -s conftest.err; then |
| 15142 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15143 | else |
| 15144 | ac_cpp_err= |
| 15145 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15146 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15147 | ac_cpp_err=yes |
| 15148 | fi |
| 15149 | if test -z "$ac_cpp_err"; then |
| 15150 | ac_header_preproc=yes |
| 15151 | else |
| 15152 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15153 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15154 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15155 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15156 | rm -f conftest.err conftest.$ac_ext |
| 15157 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15158 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 15159 | |
| 15160 | # So? What about this header? |
| 15161 | case $ac_header_compiler:$ac_header_preproc in |
| 15162 | yes:no ) |
| 15163 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15164 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15165 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 15166 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};; |
| 15167 | no:yes ) |
| 15168 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 15169 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 15170 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 15171 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 15172 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 15173 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};; |
| 15174 | esac |
| 15175 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 15176 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 15177 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 15178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15179 | else |
| 15180 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15181 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15182 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 15183 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
| 15184 | |
| 15185 | fi |
| 15186 | if test $ac_cv_header_wchar_h = yes; then |
| 15187 | |
| 15188 | |
| 15189 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15190 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15191 | _ACEOF |
| 15192 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15193 | wchar_h="yes" |
| 15194 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15195 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15196 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15197 | |
| 15198 | fi |
| 15199 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15200 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15201 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15202 | # determine wchar_t size |
| 15203 | if test "$wchar_h" = yes |
| 15204 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15205 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 15206 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 |
| 15207 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 15208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15209 | else |
| 15210 | cat >conftest.$ac_ext <<_ACEOF |
| 15211 | #line $LINENO "configure" |
| 15212 | #include "confdefs.h" |
| 15213 | #include <wchar.h> |
| 15214 | |
| 15215 | #ifdef F77_DUMMY_MAIN |
| 15216 | # ifdef __cplusplus |
| 15217 | extern "C" |
| 15218 | # endif |
| 15219 | int F77_DUMMY_MAIN() { return 1; } |
| 15220 | #endif |
| 15221 | int |
| 15222 | main () |
| 15223 | { |
| 15224 | if ((wchar_t *) 0) |
| 15225 | return 0; |
| 15226 | if (sizeof (wchar_t)) |
| 15227 | return 0; |
| 15228 | ; |
| 15229 | return 0; |
| 15230 | } |
| 15231 | _ACEOF |
| 15232 | rm -f conftest.$ac_objext |
| 15233 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15234 | (eval $ac_compile) 2>&5 |
| 15235 | ac_status=$? |
| 15236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15237 | (exit $ac_status); } && |
| 15238 | { ac_try='test -s conftest.$ac_objext' |
| 15239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15240 | (eval $ac_try) 2>&5 |
| 15241 | ac_status=$? |
| 15242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15243 | (exit $ac_status); }; }; then |
| 15244 | ac_cv_type_wchar_t=yes |
| 15245 | else |
| 15246 | echo "$as_me: failed program was:" >&5 |
| 15247 | cat conftest.$ac_ext >&5 |
| 15248 | ac_cv_type_wchar_t=no |
| 15249 | fi |
| 15250 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15251 | fi |
| 15252 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 15253 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 |
| 15254 | |
| 15255 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 15256 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 |
| 15257 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 15258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15259 | else |
| 15260 | if test "$ac_cv_type_wchar_t" = yes; then |
| 15261 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 15262 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 15263 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 15264 | # This bug is HP SR number 8606223364. |
| 15265 | if test "$cross_compiling" = yes; then |
| 15266 | # Depending upon the size, compute the lo and hi bounds. |
| 15267 | cat >conftest.$ac_ext <<_ACEOF |
| 15268 | #line $LINENO "configure" |
| 15269 | #include "confdefs.h" |
| 15270 | #include <wchar.h> |
| 15271 | |
| 15272 | #ifdef F77_DUMMY_MAIN |
| 15273 | # ifdef __cplusplus |
| 15274 | extern "C" |
| 15275 | # endif |
| 15276 | int F77_DUMMY_MAIN() { return 1; } |
| 15277 | #endif |
| 15278 | int |
| 15279 | main () |
| 15280 | { |
| 15281 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; |
| 15282 | test_array [0] = 0 |
| 15283 | |
| 15284 | ; |
| 15285 | return 0; |
| 15286 | } |
| 15287 | _ACEOF |
| 15288 | rm -f conftest.$ac_objext |
| 15289 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15290 | (eval $ac_compile) 2>&5 |
| 15291 | ac_status=$? |
| 15292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15293 | (exit $ac_status); } && |
| 15294 | { ac_try='test -s conftest.$ac_objext' |
| 15295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15296 | (eval $ac_try) 2>&5 |
| 15297 | ac_status=$? |
| 15298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15299 | (exit $ac_status); }; }; then |
| 15300 | ac_lo=0 ac_mid=0 |
| 15301 | while :; do |
| 15302 | cat >conftest.$ac_ext <<_ACEOF |
| 15303 | #line $LINENO "configure" |
| 15304 | #include "confdefs.h" |
| 15305 | #include <wchar.h> |
| 15306 | |
| 15307 | #ifdef F77_DUMMY_MAIN |
| 15308 | # ifdef __cplusplus |
| 15309 | extern "C" |
| 15310 | # endif |
| 15311 | int F77_DUMMY_MAIN() { return 1; } |
| 15312 | #endif |
| 15313 | int |
| 15314 | main () |
| 15315 | { |
| 15316 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 15317 | test_array [0] = 0 |
| 15318 | |
| 15319 | ; |
| 15320 | return 0; |
| 15321 | } |
| 15322 | _ACEOF |
| 15323 | rm -f conftest.$ac_objext |
| 15324 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15325 | (eval $ac_compile) 2>&5 |
| 15326 | ac_status=$? |
| 15327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15328 | (exit $ac_status); } && |
| 15329 | { ac_try='test -s conftest.$ac_objext' |
| 15330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15331 | (eval $ac_try) 2>&5 |
| 15332 | ac_status=$? |
| 15333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15334 | (exit $ac_status); }; }; then |
| 15335 | ac_hi=$ac_mid; break |
| 15336 | else |
| 15337 | echo "$as_me: failed program was:" >&5 |
| 15338 | cat conftest.$ac_ext >&5 |
| 15339 | ac_lo=`expr $ac_mid + 1` |
| 15340 | if test $ac_lo -le $ac_mid; then |
| 15341 | ac_lo= ac_hi= |
| 15342 | break |
| 15343 | fi |
| 15344 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 15345 | fi |
| 15346 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15347 | done |
| 15348 | else |
| 15349 | echo "$as_me: failed program was:" >&5 |
| 15350 | cat conftest.$ac_ext >&5 |
| 15351 | cat >conftest.$ac_ext <<_ACEOF |
| 15352 | #line $LINENO "configure" |
| 15353 | #include "confdefs.h" |
| 15354 | #include <wchar.h> |
| 15355 | |
| 15356 | #ifdef F77_DUMMY_MAIN |
| 15357 | # ifdef __cplusplus |
| 15358 | extern "C" |
| 15359 | # endif |
| 15360 | int F77_DUMMY_MAIN() { return 1; } |
| 15361 | #endif |
| 15362 | int |
| 15363 | main () |
| 15364 | { |
| 15365 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; |
| 15366 | test_array [0] = 0 |
| 15367 | |
| 15368 | ; |
| 15369 | return 0; |
| 15370 | } |
| 15371 | _ACEOF |
| 15372 | rm -f conftest.$ac_objext |
| 15373 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15374 | (eval $ac_compile) 2>&5 |
| 15375 | ac_status=$? |
| 15376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15377 | (exit $ac_status); } && |
| 15378 | { ac_try='test -s conftest.$ac_objext' |
| 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 |
| 15384 | ac_hi=-1 ac_mid=-1 |
| 15385 | while :; do |
| 15386 | cat >conftest.$ac_ext <<_ACEOF |
| 15387 | #line $LINENO "configure" |
| 15388 | #include "confdefs.h" |
| 15389 | #include <wchar.h> |
| 15390 | |
| 15391 | #ifdef F77_DUMMY_MAIN |
| 15392 | # ifdef __cplusplus |
| 15393 | extern "C" |
| 15394 | # endif |
| 15395 | int F77_DUMMY_MAIN() { return 1; } |
| 15396 | #endif |
| 15397 | int |
| 15398 | main () |
| 15399 | { |
| 15400 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; |
| 15401 | test_array [0] = 0 |
| 15402 | |
| 15403 | ; |
| 15404 | return 0; |
| 15405 | } |
| 15406 | _ACEOF |
| 15407 | rm -f conftest.$ac_objext |
| 15408 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15409 | (eval $ac_compile) 2>&5 |
| 15410 | ac_status=$? |
| 15411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15412 | (exit $ac_status); } && |
| 15413 | { ac_try='test -s conftest.$ac_objext' |
| 15414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15415 | (eval $ac_try) 2>&5 |
| 15416 | ac_status=$? |
| 15417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15418 | (exit $ac_status); }; }; then |
| 15419 | ac_lo=$ac_mid; break |
| 15420 | else |
| 15421 | echo "$as_me: failed program was:" >&5 |
| 15422 | cat conftest.$ac_ext >&5 |
| 15423 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 15424 | if test $ac_mid -le $ac_hi; then |
| 15425 | ac_lo= ac_hi= |
| 15426 | break |
| 15427 | fi |
| 15428 | ac_mid=`expr 2 '*' $ac_mid` |
| 15429 | fi |
| 15430 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15431 | done |
| 15432 | else |
| 15433 | echo "$as_me: failed program was:" >&5 |
| 15434 | cat conftest.$ac_ext >&5 |
| 15435 | ac_lo= ac_hi= |
| 15436 | fi |
| 15437 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15438 | fi |
| 15439 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15440 | # Binary search between lo and hi bounds. |
| 15441 | while test "x$ac_lo" != "x$ac_hi"; do |
| 15442 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 15443 | cat >conftest.$ac_ext <<_ACEOF |
| 15444 | #line $LINENO "configure" |
| 15445 | #include "confdefs.h" |
| 15446 | #include <wchar.h> |
| 15447 | |
| 15448 | #ifdef F77_DUMMY_MAIN |
| 15449 | # ifdef __cplusplus |
| 15450 | extern "C" |
| 15451 | # endif |
| 15452 | int F77_DUMMY_MAIN() { return 1; } |
| 15453 | #endif |
| 15454 | int |
| 15455 | main () |
| 15456 | { |
| 15457 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 15458 | test_array [0] = 0 |
| 15459 | |
| 15460 | ; |
| 15461 | return 0; |
| 15462 | } |
| 15463 | _ACEOF |
| 15464 | rm -f conftest.$ac_objext |
| 15465 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15466 | (eval $ac_compile) 2>&5 |
| 15467 | ac_status=$? |
| 15468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15469 | (exit $ac_status); } && |
| 15470 | { ac_try='test -s conftest.$ac_objext' |
| 15471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15472 | (eval $ac_try) 2>&5 |
| 15473 | ac_status=$? |
| 15474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15475 | (exit $ac_status); }; }; then |
| 15476 | ac_hi=$ac_mid |
| 15477 | else |
| 15478 | echo "$as_me: failed program was:" >&5 |
| 15479 | cat conftest.$ac_ext >&5 |
| 15480 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 15481 | fi |
| 15482 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15483 | done |
| 15484 | case $ac_lo in |
| 15485 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
| 15486 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5 |
| 15487 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;} |
| 15488 | { (exit 1); exit 1; }; } ;; |
| 15489 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15490 | else |
| 15491 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15492 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 15493 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 15494 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15495 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15496 | cat >conftest.$ac_ext <<_ACEOF |
| 15497 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15498 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15499 | #include <wchar.h> |
| 15500 | |
| 15501 | long longval () { return (long) (sizeof (wchar_t)); } |
| 15502 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15503 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15504 | #include <stdlib.h> |
| 15505 | #ifdef F77_DUMMY_MAIN |
| 15506 | # ifdef __cplusplus |
| 15507 | extern "C" |
| 15508 | # endif |
| 15509 | int F77_DUMMY_MAIN() { return 1; } |
| 15510 | #endif |
| 15511 | int |
| 15512 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15513 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15514 | |
| 15515 | FILE *f = fopen ("conftest.val", "w"); |
| 15516 | if (! f) |
| 15517 | exit (1); |
| 15518 | if (((long) (sizeof (wchar_t))) < 0) |
| 15519 | { |
| 15520 | long i = longval (); |
| 15521 | if (i != ((long) (sizeof (wchar_t)))) |
| 15522 | exit (1); |
| 15523 | fprintf (f, "%ld\n", i); |
| 15524 | } |
| 15525 | else |
| 15526 | { |
| 15527 | unsigned long i = ulongval (); |
| 15528 | if (i != ((long) (sizeof (wchar_t)))) |
| 15529 | exit (1); |
| 15530 | fprintf (f, "%lu\n", i); |
| 15531 | } |
| 15532 | exit (ferror (f) || fclose (f) != 0); |
| 15533 | |
| 15534 | ; |
| 15535 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15536 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15537 | _ACEOF |
| 15538 | rm -f conftest$ac_exeext |
| 15539 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15540 | (eval $ac_link) 2>&5 |
| 15541 | ac_status=$? |
| 15542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15543 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15545 | (eval $ac_try) 2>&5 |
| 15546 | ac_status=$? |
| 15547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15548 | (exit $ac_status); }; }; then |
| 15549 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15550 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15551 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15552 | echo "$as_me: failed program was:" >&5 |
| 15553 | cat conftest.$ac_ext >&5 |
| 15554 | ( exit $ac_status ) |
| 15555 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5 |
| 15556 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;} |
| 15557 | { (exit 1); exit 1; }; } |
| 15558 | fi |
| 15559 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15560 | fi |
| 15561 | fi |
| 15562 | rm -f conftest.val |
| 15563 | else |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15564 | ac_cv_sizeof_wchar_t=0 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15565 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15566 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15567 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 15568 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 |
| 15569 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15570 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15571 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15572 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15573 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15574 | fi |
| 15575 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15576 | echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 15577 | 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] | 15578 | # Check whether --enable-unicode or --disable-unicode was given. |
| 15579 | if test "${enable_unicode+set}" = set; then |
| 15580 | enableval="$enable_unicode" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15581 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15582 | else |
| 15583 | enable_unicode=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15584 | fi; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15585 | |
| 15586 | if test $enable_unicode = yes |
| 15587 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 15588 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
| 15589 | enable_unicode="ucs2" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15590 | fi |
| 15591 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 15592 | |
| 15593 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15594 | case "$enable_unicode" in |
| 15595 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15596 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15597 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15598 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15599 | |
| 15600 | ;; |
| 15601 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15602 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15603 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15604 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15605 | |
| 15606 | ;; |
| 15607 | esac |
| 15608 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15609 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15610 | |
| 15611 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 15612 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15613 | if test "$enable_unicode" = "no" |
| 15614 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 15615 | UNICODE_OBJS="" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15616 | echo "$as_me:$LINENO: result: not used" >&5 |
| 15617 | echo "${ECHO_T}not used" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15618 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 15619 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15620 | |
| 15621 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15622 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15623 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15624 | |
| 15625 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" |
| 15626 | then |
| 15627 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15628 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15629 | cat >>confdefs.h <<\_ACEOF |
| 15630 | #define HAVE_USABLE_WCHAR_T 1 |
| 15631 | _ACEOF |
| 15632 | |
| 15633 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15634 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15635 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15636 | |
| 15637 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 15638 | then |
| 15639 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15640 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15641 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15642 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15643 | |
| 15644 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 15645 | then |
| 15646 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15647 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15648 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15649 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15650 | |
| 15651 | else |
| 15652 | PY_UNICODE_TYPE="no type found" |
| 15653 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15654 | echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 15655 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15656 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15657 | |
| 15658 | # check for endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15659 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 15660 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 15661 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 15662 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15663 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15664 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 15665 | cat >conftest.$ac_ext <<_ACEOF |
| 15666 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15667 | #include "confdefs.h" |
| 15668 | #include <sys/types.h> |
| 15669 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15670 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15671 | #ifdef F77_DUMMY_MAIN |
| 15672 | # ifdef __cplusplus |
| 15673 | extern "C" |
| 15674 | # endif |
| 15675 | int F77_DUMMY_MAIN() { return 1; } |
| 15676 | #endif |
| 15677 | int |
| 15678 | main () |
| 15679 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15680 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 15681 | bogus endian macros |
| 15682 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15683 | |
| 15684 | ; |
| 15685 | return 0; |
| 15686 | } |
| 15687 | _ACEOF |
| 15688 | rm -f conftest.$ac_objext |
| 15689 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15690 | (eval $ac_compile) 2>&5 |
| 15691 | ac_status=$? |
| 15692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15693 | (exit $ac_status); } && |
| 15694 | { ac_try='test -s conftest.$ac_objext' |
| 15695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15696 | (eval $ac_try) 2>&5 |
| 15697 | ac_status=$? |
| 15698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15699 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15700 | # 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] | 15701 | cat >conftest.$ac_ext <<_ACEOF |
| 15702 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15703 | #include "confdefs.h" |
| 15704 | #include <sys/types.h> |
| 15705 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15706 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15707 | #ifdef F77_DUMMY_MAIN |
| 15708 | # ifdef __cplusplus |
| 15709 | extern "C" |
| 15710 | # endif |
| 15711 | int F77_DUMMY_MAIN() { return 1; } |
| 15712 | #endif |
| 15713 | int |
| 15714 | main () |
| 15715 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15716 | #if BYTE_ORDER != BIG_ENDIAN |
| 15717 | not big endian |
| 15718 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15719 | |
| 15720 | ; |
| 15721 | return 0; |
| 15722 | } |
| 15723 | _ACEOF |
| 15724 | rm -f conftest.$ac_objext |
| 15725 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15726 | (eval $ac_compile) 2>&5 |
| 15727 | ac_status=$? |
| 15728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15729 | (exit $ac_status); } && |
| 15730 | { ac_try='test -s conftest.$ac_objext' |
| 15731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15732 | (eval $ac_try) 2>&5 |
| 15733 | ac_status=$? |
| 15734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15735 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15736 | ac_cv_c_bigendian=yes |
| 15737 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15738 | echo "$as_me: failed program was:" >&5 |
| 15739 | cat conftest.$ac_ext >&5 |
| 15740 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15741 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15742 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15743 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15744 | echo "$as_me: failed program was:" >&5 |
| 15745 | cat conftest.$ac_ext >&5 |
| 15746 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15747 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15748 | # try to guess the endianess by grep'ing values into an object file |
| 15749 | ac_cv_c_bigendian=unknown |
| 15750 | cat >conftest.$ac_ext <<_ACEOF |
| 15751 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15752 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15753 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 15754 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 15755 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 15756 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 15757 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 15758 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 15759 | #ifdef F77_DUMMY_MAIN |
| 15760 | # ifdef __cplusplus |
| 15761 | extern "C" |
| 15762 | # endif |
| 15763 | int F77_DUMMY_MAIN() { return 1; } |
| 15764 | #endif |
| 15765 | int |
| 15766 | main () |
| 15767 | { |
| 15768 | _ascii (); _ebcdic (); |
| 15769 | ; |
| 15770 | return 0; |
| 15771 | } |
| 15772 | _ACEOF |
| 15773 | rm -f conftest.$ac_objext |
| 15774 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15775 | (eval $ac_compile) 2>&5 |
| 15776 | ac_status=$? |
| 15777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15778 | (exit $ac_status); } && |
| 15779 | { ac_try='test -s conftest.$ac_objext' |
| 15780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15781 | (eval $ac_try) 2>&5 |
| 15782 | ac_status=$? |
| 15783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15784 | (exit $ac_status); }; }; then |
| 15785 | if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 15786 | ac_cv_c_bigendian=yes |
| 15787 | fi |
| 15788 | if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 15789 | if test "$ac_cv_c_bigendian" = unknown; then |
| 15790 | ac_cv_c_bigendian=no |
| 15791 | else |
| 15792 | # finding both strings is unlikely to happen, but who knows? |
| 15793 | ac_cv_c_bigendian=unknown |
| 15794 | fi |
| 15795 | fi |
| 15796 | else |
| 15797 | echo "$as_me: failed program was:" >&5 |
| 15798 | cat conftest.$ac_ext >&5 |
| 15799 | fi |
| 15800 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15801 | else |
| 15802 | cat >conftest.$ac_ext <<_ACEOF |
| 15803 | #line $LINENO "configure" |
| 15804 | #include "confdefs.h" |
| 15805 | int |
| 15806 | main () |
| 15807 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15808 | /* Are we little or big endian? From Harbison&Steele. */ |
| 15809 | union |
| 15810 | { |
| 15811 | long l; |
| 15812 | char c[sizeof (long)]; |
| 15813 | } u; |
| 15814 | u.l = 1; |
| 15815 | exit (u.c[sizeof (long) - 1] == 1); |
| 15816 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15817 | _ACEOF |
| 15818 | rm -f conftest$ac_exeext |
| 15819 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15820 | (eval $ac_link) 2>&5 |
| 15821 | ac_status=$? |
| 15822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15823 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15825 | (eval $ac_try) 2>&5 |
| 15826 | ac_status=$? |
| 15827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15828 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15829 | ac_cv_c_bigendian=no |
| 15830 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15831 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15832 | echo "$as_me: failed program was:" >&5 |
| 15833 | cat conftest.$ac_ext >&5 |
| 15834 | ( exit $ac_status ) |
| 15835 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15836 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15837 | 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] | 15838 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15839 | fi |
| 15840 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15841 | fi |
| 15842 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 15843 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 15844 | case $ac_cv_c_bigendian in |
| 15845 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15846 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15847 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15848 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15849 | _ACEOF |
| 15850 | ;; |
| 15851 | no) |
| 15852 | ;; |
| 15853 | *) |
| 15854 | { { echo "$as_me:$LINENO: error: unknown endianess |
| 15855 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 15856 | echo "$as_me: error: unknown endianess |
| 15857 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 15858 | { (exit 1); exit 1; }; } ;; |
| 15859 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15860 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15861 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15862 | # Check whether right shifting a negative integer extends the sign bit |
| 15863 | # 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] | 15864 | echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 15865 | echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6 |
| 15866 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 15867 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15868 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15869 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15870 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15871 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15872 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15873 | cat >conftest.$ac_ext <<_ACEOF |
| 15874 | #line $LINENO "configure" |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15875 | #include "confdefs.h" |
| 15876 | |
| 15877 | int main() |
| 15878 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15879 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15880 | } |
| 15881 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15882 | _ACEOF |
| 15883 | rm -f conftest$ac_exeext |
| 15884 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15885 | (eval $ac_link) 2>&5 |
| 15886 | ac_status=$? |
| 15887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15888 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15890 | (eval $ac_try) 2>&5 |
| 15891 | ac_status=$? |
| 15892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15893 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15894 | ac_cv_rshift_extends_sign=yes |
| 15895 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15896 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15897 | echo "$as_me: failed program was:" >&5 |
| 15898 | cat conftest.$ac_ext >&5 |
| 15899 | ( exit $ac_status ) |
| 15900 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15901 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15902 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15903 | fi |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15904 | fi |
| 15905 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15906 | echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 15907 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15908 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15909 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15910 | |
| 15911 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15912 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15913 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15914 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15915 | fi |
| 15916 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15917 | # check for getc_unlocked and related locking functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15918 | echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 15919 | echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6 |
| 15920 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 15921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15922 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15923 | |
| 15924 | cat >conftest.$ac_ext <<_ACEOF |
| 15925 | #line $LINENO "configure" |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15926 | #include "confdefs.h" |
| 15927 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15928 | #ifdef F77_DUMMY_MAIN |
| 15929 | # ifdef __cplusplus |
| 15930 | extern "C" |
| 15931 | # endif |
| 15932 | int F77_DUMMY_MAIN() { return 1; } |
| 15933 | #endif |
| 15934 | int |
| 15935 | main () |
| 15936 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15937 | |
| 15938 | FILE *f = fopen("/dev/null", "r"); |
| 15939 | flockfile(f); |
| 15940 | getc_unlocked(f); |
| 15941 | funlockfile(f); |
| 15942 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15943 | ; |
| 15944 | return 0; |
| 15945 | } |
| 15946 | _ACEOF |
| 15947 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15948 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15949 | (eval $ac_link) 2>&5 |
| 15950 | ac_status=$? |
| 15951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15952 | (exit $ac_status); } && |
| 15953 | { ac_try='test -s conftest$ac_exeext' |
| 15954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15955 | (eval $ac_try) 2>&5 |
| 15956 | ac_status=$? |
| 15957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15958 | (exit $ac_status); }; }; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15959 | ac_cv_have_getc_unlocked=yes |
| 15960 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15961 | echo "$as_me: failed program was:" >&5 |
| 15962 | cat conftest.$ac_ext >&5 |
| 15963 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15964 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15965 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15966 | fi |
| 15967 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15968 | echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 15969 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15970 | if test "$ac_cv_have_getc_unlocked" = yes |
| 15971 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15972 | |
| 15973 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15974 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15975 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15976 | |
| 15977 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15978 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15979 | # check for readline 4.0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15980 | echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 15981 | echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6 |
| 15982 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 15983 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15984 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15985 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15986 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15987 | cat >conftest.$ac_ext <<_ACEOF |
| 15988 | #line $LINENO "configure" |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15989 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15990 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15991 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15992 | #ifdef __cplusplus |
| 15993 | extern "C" |
| 15994 | #endif |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15995 | /* 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] | 15996 | builtin and then its argument prototype would still apply. */ |
| 15997 | char rl_pre_input_hook (); |
| 15998 | #ifdef F77_DUMMY_MAIN |
| 15999 | # ifdef __cplusplus |
| 16000 | extern "C" |
| 16001 | # endif |
| 16002 | int F77_DUMMY_MAIN() { return 1; } |
| 16003 | #endif |
| 16004 | int |
| 16005 | main () |
| 16006 | { |
| 16007 | rl_pre_input_hook (); |
| 16008 | ; |
| 16009 | return 0; |
| 16010 | } |
| 16011 | _ACEOF |
| 16012 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16013 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16014 | (eval $ac_link) 2>&5 |
| 16015 | ac_status=$? |
| 16016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16017 | (exit $ac_status); } && |
| 16018 | { ac_try='test -s conftest$ac_exeext' |
| 16019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16020 | (eval $ac_try) 2>&5 |
| 16021 | ac_status=$? |
| 16022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16023 | (exit $ac_status); }; }; then |
| 16024 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16025 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16026 | echo "$as_me: failed program was:" >&5 |
| 16027 | cat conftest.$ac_ext >&5 |
| 16028 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16029 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16030 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16031 | LIBS=$ac_check_lib_save_LIBS |
| 16032 | fi |
| 16033 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 16034 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6 |
| 16035 | 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] | 16036 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16037 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16038 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16039 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16040 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16041 | fi |
| 16042 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16043 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16044 | # check for readline 4.2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16045 | echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 16046 | echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6 |
| 16047 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 16048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16049 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16050 | ac_check_lib_save_LIBS=$LIBS |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16051 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16052 | cat >conftest.$ac_ext <<_ACEOF |
| 16053 | #line $LINENO "configure" |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16054 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16055 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16056 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16057 | #ifdef __cplusplus |
| 16058 | extern "C" |
| 16059 | #endif |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16060 | /* 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] | 16061 | builtin and then its argument prototype would still apply. */ |
| 16062 | char rl_completion_matches (); |
| 16063 | #ifdef F77_DUMMY_MAIN |
| 16064 | # ifdef __cplusplus |
| 16065 | extern "C" |
| 16066 | # endif |
| 16067 | int F77_DUMMY_MAIN() { return 1; } |
| 16068 | #endif |
| 16069 | int |
| 16070 | main () |
| 16071 | { |
| 16072 | rl_completion_matches (); |
| 16073 | ; |
| 16074 | return 0; |
| 16075 | } |
| 16076 | _ACEOF |
| 16077 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16078 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16079 | (eval $ac_link) 2>&5 |
| 16080 | ac_status=$? |
| 16081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16082 | (exit $ac_status); } && |
| 16083 | { ac_try='test -s conftest$ac_exeext' |
| 16084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16085 | (eval $ac_try) 2>&5 |
| 16086 | ac_status=$? |
| 16087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16088 | (exit $ac_status); }; }; then |
| 16089 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16090 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16091 | echo "$as_me: failed program was:" >&5 |
| 16092 | cat conftest.$ac_ext >&5 |
| 16093 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16094 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16095 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16096 | LIBS=$ac_check_lib_save_LIBS |
| 16097 | fi |
| 16098 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 16099 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6 |
| 16100 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16101 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16102 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16103 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16104 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16105 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16106 | fi |
| 16107 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16108 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16109 | echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 16110 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6 |
| 16111 | if test "${ac_cv_broken_nice+set}" = set; then |
| 16112 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16113 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16114 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16115 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 16116 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16117 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16118 | cat >conftest.$ac_ext <<_ACEOF |
| 16119 | #line $LINENO "configure" |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16120 | #include "confdefs.h" |
| 16121 | |
| 16122 | int main() |
| 16123 | { |
| 16124 | int val1 = nice(1); |
| 16125 | if (val1 != -1 && val1 == nice(2)) |
| 16126 | exit(0); |
| 16127 | exit(1); |
| 16128 | } |
| 16129 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16130 | _ACEOF |
| 16131 | rm -f conftest$ac_exeext |
| 16132 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16133 | (eval $ac_link) 2>&5 |
| 16134 | ac_status=$? |
| 16135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16136 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16138 | (eval $ac_try) 2>&5 |
| 16139 | ac_status=$? |
| 16140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16141 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16142 | ac_cv_broken_nice=yes |
| 16143 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16144 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16145 | echo "$as_me: failed program was:" >&5 |
| 16146 | cat conftest.$ac_ext >&5 |
| 16147 | ( exit $ac_status ) |
| 16148 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16149 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16150 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 16151 | fi |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16152 | fi |
| 16153 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16154 | echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 16155 | echo "${ECHO_T}$ac_cv_broken_nice" >&6 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16156 | if test "$ac_cv_broken_nice" = yes |
| 16157 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16158 | |
| 16159 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16160 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16161 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16162 | |
| 16163 | fi |
| 16164 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16165 | # Look for subsecond timestamps in struct stat |
| 16166 | echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 16167 | echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6 |
| 16168 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
| 16169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16170 | else |
| 16171 | cat >conftest.$ac_ext <<_ACEOF |
| 16172 | #line $LINENO "configure" |
| 16173 | #include "confdefs.h" |
| 16174 | #include <sys/stat.h> |
| 16175 | #ifdef F77_DUMMY_MAIN |
| 16176 | # ifdef __cplusplus |
| 16177 | extern "C" |
| 16178 | # endif |
| 16179 | int F77_DUMMY_MAIN() { return 1; } |
| 16180 | #endif |
| 16181 | int |
| 16182 | main () |
| 16183 | { |
| 16184 | |
| 16185 | struct stat st; |
| 16186 | st.st_mtim.tv_nsec = 1; |
| 16187 | |
| 16188 | ; |
| 16189 | return 0; |
| 16190 | } |
| 16191 | _ACEOF |
| 16192 | rm -f conftest.$ac_objext |
| 16193 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16194 | (eval $ac_compile) 2>&5 |
| 16195 | ac_status=$? |
| 16196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16197 | (exit $ac_status); } && |
| 16198 | { ac_try='test -s conftest.$ac_objext' |
| 16199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16200 | (eval $ac_try) 2>&5 |
| 16201 | ac_status=$? |
| 16202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16203 | (exit $ac_status); }; }; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 16204 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16205 | else |
| 16206 | echo "$as_me: failed program was:" >&5 |
| 16207 | cat conftest.$ac_ext >&5 |
| 16208 | ac_cv_stat_tv_nsec=no |
| 16209 | fi |
| 16210 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16211 | fi |
| 16212 | |
| 16213 | echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 16214 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6 |
| 16215 | if test "$ac_cv_stat_tv_nsec" = yes |
| 16216 | then |
| 16217 | |
| 16218 | cat >>confdefs.h <<\_ACEOF |
| 16219 | #define HAVE_STAT_TV_NSEC 1 |
| 16220 | _ACEOF |
| 16221 | |
| 16222 | fi |
| 16223 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16224 | # 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] | 16225 | echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 16226 | echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6 |
| 16227 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 16228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16229 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16230 | cat >conftest.$ac_ext <<_ACEOF |
| 16231 | #line $LINENO "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16232 | #include "confdefs.h" |
| 16233 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16234 | #ifdef F77_DUMMY_MAIN |
| 16235 | # ifdef __cplusplus |
| 16236 | extern "C" |
| 16237 | # endif |
| 16238 | int F77_DUMMY_MAIN() { return 1; } |
| 16239 | #endif |
| 16240 | int |
| 16241 | main () |
| 16242 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16243 | |
| 16244 | int rtn; |
| 16245 | rtn = mvwdelch(0,0,0); |
| 16246 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16247 | ; |
| 16248 | return 0; |
| 16249 | } |
| 16250 | _ACEOF |
| 16251 | rm -f conftest.$ac_objext |
| 16252 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16253 | (eval $ac_compile) 2>&5 |
| 16254 | ac_status=$? |
| 16255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16256 | (exit $ac_status); } && |
| 16257 | { ac_try='test -s conftest.$ac_objext' |
| 16258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16259 | (eval $ac_try) 2>&5 |
| 16260 | ac_status=$? |
| 16261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16262 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16263 | ac_cv_mvwdelch_is_expression=yes |
| 16264 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16265 | echo "$as_me: failed program was:" >&5 |
| 16266 | cat conftest.$ac_ext >&5 |
| 16267 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16268 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16269 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16270 | fi |
| 16271 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16272 | echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 16273 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16274 | |
| 16275 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 16276 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16277 | |
| 16278 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16279 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16280 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16281 | |
| 16282 | fi |
| 16283 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16284 | echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 16285 | echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6 |
| 16286 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 16287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16288 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16289 | cat >conftest.$ac_ext <<_ACEOF |
| 16290 | #line $LINENO "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16291 | #include "confdefs.h" |
| 16292 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16293 | #ifdef F77_DUMMY_MAIN |
| 16294 | # ifdef __cplusplus |
| 16295 | extern "C" |
| 16296 | # endif |
| 16297 | int F77_DUMMY_MAIN() { return 1; } |
| 16298 | #endif |
| 16299 | int |
| 16300 | main () |
| 16301 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16302 | |
| 16303 | WINDOW *w; |
| 16304 | w->_flags = 0; |
| 16305 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16306 | ; |
| 16307 | return 0; |
| 16308 | } |
| 16309 | _ACEOF |
| 16310 | rm -f conftest.$ac_objext |
| 16311 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16312 | (eval $ac_compile) 2>&5 |
| 16313 | ac_status=$? |
| 16314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16315 | (exit $ac_status); } && |
| 16316 | { ac_try='test -s conftest.$ac_objext' |
| 16317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16318 | (eval $ac_try) 2>&5 |
| 16319 | ac_status=$? |
| 16320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16321 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16322 | ac_cv_window_has_flags=yes |
| 16323 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16324 | echo "$as_me: failed program was:" >&5 |
| 16325 | cat conftest.$ac_ext >&5 |
| 16326 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16327 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16328 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16329 | fi |
| 16330 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16331 | echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 16332 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16333 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16334 | |
| 16335 | if test "$ac_cv_window_has_flags" = yes |
| 16336 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16337 | |
| 16338 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16339 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16340 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16341 | |
| 16342 | fi |
| 16343 | |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16344 | # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS! |
| 16345 | # Add sys/socket.h to confdefs.h |
| 16346 | cat >> confdefs.h <<\EOF |
| 16347 | #ifdef HAVE_SYS_SOCKET_H |
| 16348 | #include <sys/socket.h> |
| 16349 | #endif |
| 16350 | EOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16351 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 16352 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 16353 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 16354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16355 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16356 | cat >conftest.$ac_ext <<_ACEOF |
| 16357 | #line $LINENO "configure" |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16358 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16359 | $ac_includes_default |
| 16360 | #ifdef F77_DUMMY_MAIN |
| 16361 | # ifdef __cplusplus |
| 16362 | extern "C" |
| 16363 | # endif |
| 16364 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16365 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16366 | int |
| 16367 | main () |
| 16368 | { |
| 16369 | if ((socklen_t *) 0) |
| 16370 | return 0; |
| 16371 | if (sizeof (socklen_t)) |
| 16372 | return 0; |
| 16373 | ; |
| 16374 | return 0; |
| 16375 | } |
| 16376 | _ACEOF |
| 16377 | rm -f conftest.$ac_objext |
| 16378 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16379 | (eval $ac_compile) 2>&5 |
| 16380 | ac_status=$? |
| 16381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16382 | (exit $ac_status); } && |
| 16383 | { ac_try='test -s conftest.$ac_objext' |
| 16384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16385 | (eval $ac_try) 2>&5 |
| 16386 | ac_status=$? |
| 16387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16388 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16389 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16390 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16391 | echo "$as_me: failed program was:" >&5 |
| 16392 | cat conftest.$ac_ext >&5 |
| 16393 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16394 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16395 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16396 | fi |
| 16397 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 16398 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| 16399 | if test $ac_cv_type_socklen_t = yes; then |
| 16400 | : |
| 16401 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16402 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16403 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16404 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16405 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16406 | |
| 16407 | fi |
| 16408 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16409 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16410 | #AC_MSG_CHECKING(for Modules/Setup) |
| 16411 | #if test ! -f Modules/Setup ; then |
| 16412 | # if test ! -d Modules ; then |
| 16413 | # mkdir Modules |
| 16414 | # fi |
| 16415 | # cp "$srcdir/Modules/Setup.dist" Modules/Setup |
| 16416 | # AC_MSG_RESULT(creating) |
| 16417 | #else |
| 16418 | # AC_MSG_RESULT(already exists) |
| 16419 | #fi |
| 16420 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16421 | |
| 16422 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 16423 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 16424 | do |
| 16425 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 16426 | done |
| 16427 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16428 | |
Jack Jansen | 0b06be7 | 2002-06-21 14:48:38 +0000 | [diff] [blame] | 16429 | SRCDIRS="Parser Grammar Objects Python Modules Mac Mac/Python" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16430 | echo "$as_me:$LINENO: checking for build directories" >&5 |
| 16431 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16432 | for dir in $SRCDIRS; do |
| 16433 | if test ! -d $dir; then |
| 16434 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 16435 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16436 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16437 | echo "$as_me:$LINENO: result: done" >&5 |
| 16438 | echo "${ECHO_T}done" >&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 16439 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16440 | # generate output files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16441 | ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config" |
| 16442 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16443 | # This file is a shell script that caches the results of configure |
| 16444 | # 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] | 16445 | # scripts and configure runs, see configure's option --config-cache. |
| 16446 | # It is not useful on other systems. If it contains results you don't |
| 16447 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16448 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16449 | # config.status only pays attention to the cache file if you give it |
| 16450 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16451 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16452 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
| 16453 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 16454 | # following values. |
| 16455 | |
| 16456 | _ACEOF |
| 16457 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 16458 | # The following way of writing the cache mishandles newlines in values, |
| 16459 | # but we know of no workaround that is simple, portable, and efficient. |
| 16460 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16461 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 16462 | # 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] | 16463 | { |
| 16464 | (set) 2>&1 | |
| 16465 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 16466 | *ac_space=\ *) |
| 16467 | # `set' does not quote correctly, so add quotes (double-quote |
| 16468 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 16469 | sed -n \ |
| 16470 | "s/'/'\\\\''/g; |
| 16471 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 16472 | ;; |
| 16473 | *) |
| 16474 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 16475 | sed -n \ |
| 16476 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 16477 | ;; |
| 16478 | esac; |
| 16479 | } | |
| 16480 | sed ' |
| 16481 | t clear |
| 16482 | : clear |
| 16483 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 16484 | t end |
| 16485 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 16486 | : end' >>confcache |
| 16487 | if cmp -s $cache_file confcache; then :; else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16488 | if test -w $cache_file; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16489 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 16490 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16491 | else |
| 16492 | echo "not updating unwritable cache $cache_file" |
| 16493 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16494 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16495 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16496 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16497 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 16498 | # Let make expand exec_prefix. |
| 16499 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16500 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16501 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 16502 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 16503 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 16504 | # (actually we leave an empty line to preserve line numbers). |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16505 | if test "x$srcdir" = x.; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16506 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 16507 | s/:*\$(srcdir):*/:/; |
| 16508 | s/:*\${srcdir}:*/:/; |
| 16509 | s/:*@srcdir@:*/:/; |
| 16510 | s/^\([^=]*=[ ]*\):*/\1/; |
| 16511 | s/:*$//; |
| 16512 | s/^[^=]*=[ ]*$//; |
| 16513 | }' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16514 | fi |
| 16515 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16516 | DEFS=-DHAVE_CONFIG_H |
| 16517 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16518 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16519 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16520 | ac_clean_files_save=$ac_clean_files |
| 16521 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 16522 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 16523 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 16524 | cat >$CONFIG_STATUS <<_ACEOF |
| 16525 | #! $SHELL |
| 16526 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16527 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16528 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16529 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16530 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16531 | debug=false |
| 16532 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 16533 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16534 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16535 | cat >>$CONFIG_STATUS <<\_ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16536 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16537 | ## --------------------- ## |
| 16538 | ## M4sh Initialization. ## |
| 16539 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16540 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16541 | # Be Bourne compatible |
| 16542 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16543 | emulate sh |
| 16544 | NULLCMD=: |
| 16545 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 16546 | set -o posix |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16547 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16548 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16549 | # NLS nuisances. |
| 16550 | # Support unset when possible. |
| 16551 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 16552 | as_unset=unset |
| 16553 | else |
| 16554 | as_unset=false |
| 16555 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16556 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16557 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && |
| 16558 | { $as_unset LANG || test "${LANG+set}" != set; } || |
| 16559 | { LANG=C; export LANG; } |
| 16560 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && |
| 16561 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || |
| 16562 | { LC_ALL=C; export LC_ALL; } |
| 16563 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && |
| 16564 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || |
| 16565 | { LC_TIME=C; export LC_TIME; } |
| 16566 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && |
| 16567 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || |
| 16568 | { LC_CTYPE=C; export LC_CTYPE; } |
| 16569 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && |
| 16570 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || |
| 16571 | { LANGUAGE=C; export LANGUAGE; } |
| 16572 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && |
| 16573 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || |
| 16574 | { LC_COLLATE=C; export LC_COLLATE; } |
| 16575 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && |
| 16576 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || |
| 16577 | { LC_NUMERIC=C; export LC_NUMERIC; } |
| 16578 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && |
| 16579 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || |
| 16580 | { LC_MESSAGES=C; export LC_MESSAGES; } |
| 16581 | |
| 16582 | |
| 16583 | # Name of the executable. |
| 16584 | as_me=`(basename "$0") 2>/dev/null || |
| 16585 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 16586 | X"$0" : 'X\(//\)$' \| \ |
| 16587 | X"$0" : 'X\(/\)$' \| \ |
| 16588 | . : '\(.\)' 2>/dev/null || |
| 16589 | echo X/"$0" | |
| 16590 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 16591 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 16592 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 16593 | s/.*/./; q'` |
| 16594 | |
| 16595 | # PATH needs CR, and LINENO needs CR and PATH. |
| 16596 | # Avoid depending upon Character Ranges. |
| 16597 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 16598 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 16599 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 16600 | as_cr_digits='0123456789' |
| 16601 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 16602 | |
| 16603 | # The user is always right. |
| 16604 | if test "${PATH_SEPARATOR+set}" != set; then |
| 16605 | echo "#! /bin/sh" >conftest.sh |
| 16606 | echo "exit 0" >>conftest.sh |
| 16607 | chmod +x conftest.sh |
| 16608 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
| 16609 | PATH_SEPARATOR=';' |
| 16610 | else |
| 16611 | PATH_SEPARATOR=: |
| 16612 | fi |
| 16613 | rm -f conftest.sh |
| 16614 | fi |
| 16615 | |
| 16616 | |
| 16617 | as_lineno_1=$LINENO |
| 16618 | as_lineno_2=$LINENO |
| 16619 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 16620 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 16621 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 16622 | # Find who we are. Look in the path if we contain no path at all |
| 16623 | # relative or not. |
| 16624 | case $0 in |
| 16625 | *[\\/]* ) as_myself=$0 ;; |
| 16626 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16627 | for as_dir in $PATH |
| 16628 | do |
| 16629 | IFS=$as_save_IFS |
| 16630 | test -z "$as_dir" && as_dir=. |
| 16631 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 16632 | done |
| 16633 | |
| 16634 | ;; |
| 16635 | esac |
| 16636 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 16637 | # in which case we are not to be found in the path. |
| 16638 | if test "x$as_myself" = x; then |
| 16639 | as_myself=$0 |
| 16640 | fi |
| 16641 | if test ! -f "$as_myself"; then |
| 16642 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 16643 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 16644 | { (exit 1); exit 1; }; } |
| 16645 | fi |
| 16646 | case $CONFIG_SHELL in |
| 16647 | '') |
| 16648 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16649 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 16650 | do |
| 16651 | IFS=$as_save_IFS |
| 16652 | test -z "$as_dir" && as_dir=. |
| 16653 | for as_base in sh bash ksh sh5; do |
| 16654 | case $as_dir in |
| 16655 | /*) |
| 16656 | if ("$as_dir/$as_base" -c ' |
| 16657 | as_lineno_1=$LINENO |
| 16658 | as_lineno_2=$LINENO |
| 16659 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 16660 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 16661 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 16662 | CONFIG_SHELL=$as_dir/$as_base |
| 16663 | export CONFIG_SHELL |
| 16664 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 16665 | fi;; |
| 16666 | esac |
| 16667 | done |
| 16668 | done |
| 16669 | ;; |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16670 | esac |
| 16671 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16672 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 16673 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 16674 | # line-number line before each line; the second 'sed' does the real |
| 16675 | # work. The second script uses 'N' to pair each line-number line |
| 16676 | # with the numbered line, and appends trailing '-' during |
| 16677 | # substitution so that $LINENO is not a special case at line end. |
| 16678 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 16679 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 16680 | sed '=' <$as_myself | |
| 16681 | sed ' |
| 16682 | N |
| 16683 | s,$,-, |
| 16684 | : loop |
| 16685 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 16686 | t loop |
| 16687 | s,-$,, |
| 16688 | s,^['$as_cr_digits']*\n,, |
| 16689 | ' >$as_me.lineno && |
| 16690 | chmod +x $as_me.lineno || |
| 16691 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 16692 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 16693 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16694 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16695 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 16696 | # (the dirname of $[0] is not the place where we might find the |
| 16697 | # original and so on. Autoconf is especially sensible to this). |
| 16698 | . ./$as_me.lineno |
| 16699 | # Exit status is that of the last command. |
| 16700 | exit |
| 16701 | } |
| 16702 | |
| 16703 | |
| 16704 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 16705 | *c*,-n*) ECHO_N= ECHO_C=' |
| 16706 | ' ECHO_T=' ' ;; |
| 16707 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 16708 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 16709 | esac |
| 16710 | |
| 16711 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 16712 | as_expr=expr |
| 16713 | else |
| 16714 | as_expr=false |
| 16715 | fi |
| 16716 | |
| 16717 | rm -f conf$$ conf$$.exe conf$$.file |
| 16718 | echo >conf$$.file |
| 16719 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 16720 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 16721 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 16722 | if test -f conf$$.exe; then |
| 16723 | # Don't use ln at all; we don't have any links |
| 16724 | as_ln_s='cp -p' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16725 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16726 | as_ln_s='ln -s' |
| 16727 | fi |
| 16728 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 16729 | as_ln_s=ln |
| 16730 | else |
| 16731 | as_ln_s='cp -p' |
| 16732 | fi |
| 16733 | rm -f conf$$ conf$$.exe conf$$.file |
| 16734 | |
| 16735 | as_executable_p="test -f" |
| 16736 | |
| 16737 | # Sed expression to map a string onto a valid CPP name. |
| 16738 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 16739 | |
| 16740 | # Sed expression to map a string onto a valid variable name. |
| 16741 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 16742 | |
| 16743 | |
| 16744 | # IFS |
| 16745 | # We need space, tab and new line, in precisely that order. |
| 16746 | as_nl=' |
| 16747 | ' |
| 16748 | IFS=" $as_nl" |
| 16749 | |
| 16750 | # CDPATH. |
| 16751 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
| 16752 | |
| 16753 | exec 6>&1 |
| 16754 | |
| 16755 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 16756 | # report actual input values of CONFIG_FILES etc. instead of their |
| 16757 | # values after options handling. Logging --version etc. is OK. |
| 16758 | exec 5>>config.log |
| 16759 | { |
| 16760 | echo |
| 16761 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 16762 | ## Running $as_me. ## |
| 16763 | _ASBOX |
| 16764 | } >&5 |
| 16765 | cat >&5 <<_CSEOF |
| 16766 | |
| 16767 | This file was extended by $as_me, which was |
| 16768 | generated by GNU Autoconf 2.53. Invocation command line was |
| 16769 | |
| 16770 | CONFIG_FILES = $CONFIG_FILES |
| 16771 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 16772 | CONFIG_LINKS = $CONFIG_LINKS |
| 16773 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 16774 | $ $0 $@ |
| 16775 | |
| 16776 | _CSEOF |
| 16777 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 16778 | echo >&5 |
| 16779 | _ACEOF |
| 16780 | |
| 16781 | # Files that config.status was made for. |
| 16782 | if test -n "$ac_config_files"; then |
| 16783 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 16784 | fi |
| 16785 | |
| 16786 | if test -n "$ac_config_headers"; then |
| 16787 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 16788 | fi |
| 16789 | |
| 16790 | if test -n "$ac_config_links"; then |
| 16791 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 16792 | fi |
| 16793 | |
| 16794 | if test -n "$ac_config_commands"; then |
| 16795 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 16796 | fi |
| 16797 | |
| 16798 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16799 | |
| 16800 | ac_cs_usage="\ |
| 16801 | \`$as_me' instantiates files from templates according to the |
| 16802 | current configuration. |
| 16803 | |
| 16804 | Usage: $0 [OPTIONS] [FILE]... |
| 16805 | |
| 16806 | -h, --help print this help, then exit |
| 16807 | -V, --version print version number, then exit |
| 16808 | -d, --debug don't remove temporary files |
| 16809 | --recheck update $as_me by reconfiguring in the same conditions |
| 16810 | --file=FILE[:TEMPLATE] |
| 16811 | instantiate the configuration file FILE |
| 16812 | --header=FILE[:TEMPLATE] |
| 16813 | instantiate the configuration header FILE |
| 16814 | |
| 16815 | Configuration files: |
| 16816 | $config_files |
| 16817 | |
| 16818 | Configuration headers: |
| 16819 | $config_headers |
| 16820 | |
| 16821 | Report bugs to <bug-autoconf@gnu.org>." |
| 16822 | _ACEOF |
| 16823 | |
| 16824 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16825 | ac_cs_version="\\ |
| 16826 | config.status |
| 16827 | configured by $0, generated by GNU Autoconf 2.53, |
| 16828 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 16829 | |
| 16830 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 16831 | Free Software Foundation, Inc. |
| 16832 | This config.status script is free software; the Free Software Foundation |
| 16833 | gives unlimited permission to copy, distribute and modify it." |
| 16834 | srcdir=$srcdir |
| 16835 | INSTALL="$INSTALL" |
| 16836 | _ACEOF |
| 16837 | |
| 16838 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16839 | # If no file are specified by the user, then we need to provide default |
| 16840 | # value. By we need to know if files were specified by the user. |
| 16841 | ac_need_defaults=: |
| 16842 | while test $# != 0 |
| 16843 | do |
| 16844 | case $1 in |
| 16845 | --*=*) |
| 16846 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 16847 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 16848 | shift |
| 16849 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} |
| 16850 | shift |
| 16851 | ;; |
| 16852 | -*);; |
| 16853 | *) # This is not an option, so the user has probably given explicit |
| 16854 | # arguments. |
| 16855 | ac_need_defaults=false;; |
| 16856 | esac |
| 16857 | |
| 16858 | case $1 in |
| 16859 | # Handling of the options. |
| 16860 | _ACEOF |
| 16861 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16862 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 16863 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
| 16864 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; |
| 16865 | _ACEOF |
| 16866 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16867 | --version | --vers* | -V ) |
| 16868 | echo "$ac_cs_version"; exit 0 ;; |
| 16869 | --he | --h) |
| 16870 | # Conflict between --help and --header |
| 16871 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 16872 | Try \`$0 --help' for more information." >&5 |
| 16873 | echo "$as_me: error: ambiguous option: $1 |
| 16874 | Try \`$0 --help' for more information." >&2;} |
| 16875 | { (exit 1); exit 1; }; };; |
| 16876 | --help | --hel | -h ) |
| 16877 | echo "$ac_cs_usage"; exit 0 ;; |
| 16878 | --debug | --d* | -d ) |
| 16879 | debug=: ;; |
| 16880 | --file | --fil | --fi | --f ) |
| 16881 | shift |
| 16882 | CONFIG_FILES="$CONFIG_FILES $1" |
| 16883 | ac_need_defaults=false;; |
| 16884 | --header | --heade | --head | --hea ) |
| 16885 | shift |
| 16886 | CONFIG_HEADERS="$CONFIG_HEADERS $1" |
| 16887 | ac_need_defaults=false;; |
| 16888 | |
| 16889 | # This is an error. |
| 16890 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 16891 | Try \`$0 --help' for more information." >&5 |
| 16892 | echo "$as_me: error: unrecognized option: $1 |
| 16893 | Try \`$0 --help' for more information." >&2;} |
| 16894 | { (exit 1); exit 1; }; } ;; |
| 16895 | |
| 16896 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 16897 | |
| 16898 | esac |
| 16899 | shift |
| 16900 | done |
| 16901 | |
| 16902 | _ACEOF |
| 16903 | |
| 16904 | |
| 16905 | |
| 16906 | |
| 16907 | |
| 16908 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16909 | for ac_config_target in $ac_config_targets |
| 16910 | do |
| 16911 | case "$ac_config_target" in |
| 16912 | # Handling of arguments. |
| 16913 | "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 16914 | "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 16915 | "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 16916 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 16917 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 16918 | { (exit 1); exit 1; }; };; |
| 16919 | esac |
| 16920 | done |
| 16921 | |
| 16922 | # If the user did not use the arguments to specify the items to instantiate, |
| 16923 | # then the envvar interface is used. Set only those that are not. |
| 16924 | # We use the long form for the default assignment because of an extremely |
| 16925 | # bizarre bug on SunOS 4.1.3. |
| 16926 | if $ac_need_defaults; then |
| 16927 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 16928 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 16929 | fi |
| 16930 | |
| 16931 | # Create a temporary directory, and hook for its removal unless debugging. |
| 16932 | $debug || |
| 16933 | { |
| 16934 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 16935 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 16936 | } |
| 16937 | |
| 16938 | # Create a (secure) tmp directory for tmp files. |
| 16939 | : ${TMPDIR=/tmp} |
| 16940 | { |
| 16941 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && |
| 16942 | test -n "$tmp" && test -d "$tmp" |
| 16943 | } || |
| 16944 | { |
| 16945 | tmp=$TMPDIR/cs$$-$RANDOM |
| 16946 | (umask 077 && mkdir $tmp) |
| 16947 | } || |
| 16948 | { |
| 16949 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
| 16950 | { (exit 1); exit 1; } |
| 16951 | } |
| 16952 | |
| 16953 | _ACEOF |
| 16954 | |
| 16955 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16956 | |
| 16957 | # |
| 16958 | # CONFIG_FILES section. |
| 16959 | # |
| 16960 | |
| 16961 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 16962 | # This happens for instance when ./config.status config.h |
| 16963 | if test -n "\$CONFIG_FILES"; then |
| 16964 | # Protect against being on the right side of a sed subst in config.status. |
| 16965 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 16966 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 16967 | s,@SHELL@,$SHELL,;t t |
| 16968 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 16969 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 16970 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 16971 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 16972 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 16973 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 16974 | s,@exec_prefix@,$exec_prefix,;t t |
| 16975 | s,@prefix@,$prefix,;t t |
| 16976 | s,@program_transform_name@,$program_transform_name,;t t |
| 16977 | s,@bindir@,$bindir,;t t |
| 16978 | s,@sbindir@,$sbindir,;t t |
| 16979 | s,@libexecdir@,$libexecdir,;t t |
| 16980 | s,@datadir@,$datadir,;t t |
| 16981 | s,@sysconfdir@,$sysconfdir,;t t |
| 16982 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 16983 | s,@localstatedir@,$localstatedir,;t t |
| 16984 | s,@libdir@,$libdir,;t t |
| 16985 | s,@includedir@,$includedir,;t t |
| 16986 | s,@oldincludedir@,$oldincludedir,;t t |
| 16987 | s,@infodir@,$infodir,;t t |
| 16988 | s,@mandir@,$mandir,;t t |
| 16989 | s,@build_alias@,$build_alias,;t t |
| 16990 | s,@host_alias@,$host_alias,;t t |
| 16991 | s,@target_alias@,$target_alias,;t t |
| 16992 | s,@DEFS@,$DEFS,;t t |
| 16993 | s,@ECHO_C@,$ECHO_C,;t t |
| 16994 | s,@ECHO_N@,$ECHO_N,;t t |
| 16995 | s,@ECHO_T@,$ECHO_T,;t t |
| 16996 | s,@LIBS@,$LIBS,;t t |
| 16997 | s,@VERSION@,$VERSION,;t t |
| 16998 | s,@SOVERSION@,$SOVERSION,;t t |
| 16999 | s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t |
| 17000 | s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t |
| 17001 | s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t |
| 17002 | s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t |
| 17003 | s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t |
| 17004 | s,@MACHDEP@,$MACHDEP,;t t |
| 17005 | s,@SGI_ABI@,$SGI_ABI,;t t |
| 17006 | s,@CXX@,$CXX,;t t |
| 17007 | s,@MAINOBJ@,$MAINOBJ,;t t |
| 17008 | s,@EXEEXT@,$EXEEXT,;t t |
| 17009 | s,@CC@,$CC,;t t |
| 17010 | s,@CFLAGS@,$CFLAGS,;t t |
| 17011 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 17012 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 17013 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 17014 | s,@OBJEXT@,$OBJEXT,;t t |
| 17015 | s,@CPP@,$CPP,;t t |
| 17016 | s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t |
| 17017 | s,@LIBRARY@,$LIBRARY,;t t |
| 17018 | s,@LDLIBRARY@,$LDLIBRARY,;t t |
| 17019 | s,@DLLLIBRARY@,$DLLLIBRARY,;t t |
| 17020 | s,@BLDLIBRARY@,$BLDLIBRARY,;t t |
| 17021 | s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t |
| 17022 | s,@INSTSONAME@,$INSTSONAME,;t t |
| 17023 | s,@RUNSHARED@,$RUNSHARED,;t t |
| 17024 | s,@LINKCC@,$LINKCC,;t t |
| 17025 | s,@RANLIB@,$RANLIB,;t t |
| 17026 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 17027 | s,@AR@,$AR,;t t |
| 17028 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 17029 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 17030 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 17031 | s,@LN@,$LN,;t t |
| 17032 | s,@OPT@,$OPT,;t t |
| 17033 | s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t |
| 17034 | s,@SO@,$SO,;t t |
| 17035 | s,@LDSHARED@,$LDSHARED,;t t |
| 17036 | s,@BLDSHARED@,$BLDSHARED,;t t |
| 17037 | s,@CCSHARED@,$CCSHARED,;t t |
| 17038 | s,@LINKFORSHARED@,$LINKFORSHARED,;t t |
| 17039 | s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 17040 | s,@SHLIBS@,$SHLIBS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17041 | s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t |
| 17042 | s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t |
| 17043 | s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t |
| 17044 | s,@LDLAST@,$LDLAST,;t t |
| 17045 | s,@THREADOBJ@,$THREADOBJ,;t t |
| 17046 | s,@DLINCLDIR@,$DLINCLDIR,;t t |
| 17047 | s,@DYNLOADFILE@,$DYNLOADFILE,;t t |
| 17048 | s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t |
| 17049 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 17050 | s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t |
| 17051 | s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t |
| 17052 | s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t |
| 17053 | s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t |
| 17054 | s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t |
| 17055 | s,@LIBM@,$LIBM,;t t |
| 17056 | s,@LIBC@,$LIBC,;t t |
| 17057 | s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t |
| 17058 | s,@THREADHEADERS@,$THREADHEADERS,;t t |
| 17059 | s,@SRCDIRS@,$SRCDIRS,;t t |
| 17060 | CEOF |
| 17061 | |
| 17062 | _ACEOF |
| 17063 | |
| 17064 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17065 | # Split the substitutions into bite-sized pieces for seds with |
| 17066 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 17067 | ac_max_sed_lines=48 |
| 17068 | ac_sed_frag=1 # Number of current file. |
| 17069 | ac_beg=1 # First line for current file. |
| 17070 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 17071 | ac_more_lines=: |
| 17072 | ac_sed_cmds= |
| 17073 | while $ac_more_lines; do |
| 17074 | if test $ac_beg -gt 1; then |
| 17075 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 17076 | else |
| 17077 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 17078 | fi |
| 17079 | if test ! -s $tmp/subs.frag; then |
| 17080 | ac_more_lines=false |
| 17081 | else |
| 17082 | # The purpose of the label and of the branching condition is to |
| 17083 | # speed up the sed processing (if there are no `@' at all, there |
| 17084 | # is no need to browse any of the substitutions). |
| 17085 | # These are the two extra sed commands mentioned above. |
| 17086 | (echo ':t |
| 17087 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 17088 | if test -z "$ac_sed_cmds"; then |
| 17089 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 17090 | else |
| 17091 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 17092 | fi |
| 17093 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 17094 | ac_beg=$ac_end |
| 17095 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 17096 | fi |
| 17097 | done |
| 17098 | if test -z "$ac_sed_cmds"; then |
| 17099 | ac_sed_cmds=cat |
| 17100 | fi |
| 17101 | fi # test -n "$CONFIG_FILES" |
| 17102 | |
| 17103 | _ACEOF |
| 17104 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17105 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 17106 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 17107 | case $ac_file in |
| 17108 | - | *:- | *:-:* ) # input from stdin |
| 17109 | cat >$tmp/stdin |
| 17110 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17111 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17112 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17113 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17114 | * ) ac_file_in=$ac_file.in ;; |
| 17115 | esac |
| 17116 | |
| 17117 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 17118 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 17119 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17120 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 17121 | X"$ac_file" : 'X\(//\)$' \| \ |
| 17122 | X"$ac_file" : 'X\(/\)' \| \ |
| 17123 | . : '\(.\)' 2>/dev/null || |
| 17124 | echo X"$ac_file" | |
| 17125 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 17126 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 17127 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 17128 | /^X\(\/\).*/{ s//\1/; q; } |
| 17129 | s/.*/./; q'` |
| 17130 | { case "$ac_dir" in |
| 17131 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 17132 | *) as_incr_dir=.;; |
| 17133 | esac |
| 17134 | as_dummy="$ac_dir" |
| 17135 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 17136 | case $as_mkdir_dir in |
| 17137 | # Skip DOS drivespec |
| 17138 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 17139 | *) |
| 17140 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 17141 | test -d "$as_incr_dir" || |
| 17142 | mkdir "$as_incr_dir" || |
| 17143 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 17144 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 17145 | { (exit 1); exit 1; }; } |
| 17146 | ;; |
| 17147 | esac |
| 17148 | done; } |
| 17149 | |
| 17150 | ac_builddir=. |
| 17151 | |
| 17152 | if test "$ac_dir" != .; then |
| 17153 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 17154 | # A "../" for each directory in $ac_dir_suffix. |
| 17155 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 17156 | else |
| 17157 | ac_dir_suffix= ac_top_builddir= |
| 17158 | fi |
| 17159 | |
| 17160 | case $srcdir in |
| 17161 | .) # No --srcdir option. We are building in place. |
| 17162 | ac_srcdir=. |
| 17163 | if test -z "$ac_top_builddir"; then |
| 17164 | ac_top_srcdir=. |
| 17165 | else |
| 17166 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 17167 | fi ;; |
| 17168 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 17169 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 17170 | ac_top_srcdir=$srcdir ;; |
| 17171 | *) # Relative path. |
| 17172 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 17173 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 17174 | esac |
| 17175 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 17176 | # absolute. |
| 17177 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
Martin v. Löwis | e482658 | 2002-10-26 13:33:00 +0000 | [diff] [blame^] | 17178 | ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17179 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 17180 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 17181 | |
| 17182 | |
| 17183 | case $INSTALL in |
| 17184 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 17185 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 17186 | esac |
| 17187 | |
| 17188 | if test x"$ac_file" != x-; then |
| 17189 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 17190 | echo "$as_me: creating $ac_file" >&6;} |
| 17191 | rm -f "$ac_file" |
| 17192 | fi |
| 17193 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 17194 | # use $as_me), people would be surprised to read: |
| 17195 | # /* config.h. Generated by config.status. */ |
| 17196 | if test x"$ac_file" = x-; then |
| 17197 | configure_input= |
| 17198 | else |
| 17199 | configure_input="$ac_file. " |
| 17200 | fi |
| 17201 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 17202 | sed 's,.*/,,'` by configure." |
| 17203 | |
| 17204 | # First look for the input files in the build tree, otherwise in the |
| 17205 | # src tree. |
| 17206 | ac_file_inputs=`IFS=: |
| 17207 | for f in $ac_file_in; do |
| 17208 | case $f in |
| 17209 | -) echo $tmp/stdin ;; |
| 17210 | [\\/$]*) |
| 17211 | # Absolute (can't be DOS-style, as IFS=:) |
| 17212 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 17213 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17214 | { (exit 1); exit 1; }; } |
| 17215 | echo $f;; |
| 17216 | *) # Relative |
| 17217 | if test -f "$f"; then |
| 17218 | # Build tree |
| 17219 | echo $f |
| 17220 | elif test -f "$srcdir/$f"; then |
| 17221 | # Source tree |
| 17222 | echo $srcdir/$f |
| 17223 | else |
| 17224 | # /dev/null tree |
| 17225 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 17226 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17227 | { (exit 1); exit 1; }; } |
| 17228 | fi;; |
| 17229 | esac |
| 17230 | done` || { (exit 1); exit 1; } |
| 17231 | _ACEOF |
| 17232 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17233 | sed "$ac_vpsub |
| 17234 | $extrasub |
| 17235 | _ACEOF |
| 17236 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17237 | :t |
| 17238 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 17239 | s,@configure_input@,$configure_input,;t t |
| 17240 | s,@srcdir@,$ac_srcdir,;t t |
| 17241 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 17242 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 17243 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 17244 | s,@builddir@,$ac_builddir,;t t |
| 17245 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 17246 | s,@top_builddir@,$ac_top_builddir,;t t |
| 17247 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 17248 | s,@INSTALL@,$ac_INSTALL,;t t |
| 17249 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 17250 | rm -f $tmp/stdin |
| 17251 | if test x"$ac_file" != x-; then |
| 17252 | mv $tmp/out $ac_file |
| 17253 | else |
| 17254 | cat $tmp/out |
| 17255 | rm -f $tmp/out |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17256 | fi |
| 17257 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17258 | done |
| 17259 | _ACEOF |
| 17260 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17261 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17262 | # |
| 17263 | # CONFIG_HEADER section. |
| 17264 | # |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17265 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17266 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 17267 | # 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] | 17268 | # |
| 17269 | # ac_d sets the value in "#define NAME VALUE" lines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17270 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 17271 | ac_dB='[ ].*$,\1#\2' |
| 17272 | ac_dC=' ' |
| 17273 | ac_dD=',;t' |
| 17274 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 17275 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 17276 | ac_uB='$,\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17277 | ac_uC=' ' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17278 | ac_uD=',;t' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17279 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17280 | 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] | 17281 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17282 | case $ac_file in |
| 17283 | - | *:- | *:-:* ) # input from stdin |
| 17284 | cat >$tmp/stdin |
| 17285 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17286 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17287 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17288 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17289 | * ) ac_file_in=$ac_file.in ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17290 | esac |
| 17291 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17292 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 17293 | echo "$as_me: creating $ac_file" >&6;} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17294 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17295 | # First look for the input files in the build tree, otherwise in the |
| 17296 | # src tree. |
| 17297 | ac_file_inputs=`IFS=: |
| 17298 | for f in $ac_file_in; do |
| 17299 | case $f in |
| 17300 | -) echo $tmp/stdin ;; |
| 17301 | [\\/$]*) |
| 17302 | # Absolute (can't be DOS-style, as IFS=:) |
| 17303 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 17304 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17305 | { (exit 1); exit 1; }; } |
| 17306 | echo $f;; |
| 17307 | *) # Relative |
| 17308 | if test -f "$f"; then |
| 17309 | # Build tree |
| 17310 | echo $f |
| 17311 | elif test -f "$srcdir/$f"; then |
| 17312 | # Source tree |
| 17313 | echo $srcdir/$f |
| 17314 | else |
| 17315 | # /dev/null tree |
| 17316 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 17317 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17318 | { (exit 1); exit 1; }; } |
| 17319 | fi;; |
| 17320 | esac |
| 17321 | done` || { (exit 1); exit 1; } |
| 17322 | # Remove the trailing spaces. |
| 17323 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17324 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17325 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17326 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17327 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 17328 | # `conftest.undefs', that substitutes the proper values into |
| 17329 | # config.h.in to produce config.h. The first handles `#define' |
| 17330 | # templates, and the second `#undef' templates. |
| 17331 | # And first: Protect against being on the right side of a sed subst in |
| 17332 | # config.status. Protect against being in an unquoted here document |
| 17333 | # in config.status. |
| 17334 | rm -f conftest.defines conftest.undefs |
| 17335 | # Using a here document instead of a string reduces the quoting nightmare. |
| 17336 | # Putting comments in sed scripts is not portable. |
| 17337 | # |
| 17338 | # `end' is used to avoid that the second main sed command (meant for |
| 17339 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 17340 | # See the Autoconf documentation for `clear'. |
| 17341 | cat >confdef2sed.sed <<\_ACEOF |
| 17342 | s/[\\&,]/\\&/g |
| 17343 | s,[\\$`],\\&,g |
| 17344 | t clear |
| 17345 | : clear |
| 17346 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 17347 | t end |
| 17348 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 17349 | : end |
| 17350 | _ACEOF |
| 17351 | # If some macros were called several times there might be several times |
| 17352 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 17353 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 17354 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 17355 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 17356 | rm -f confdef2sed.sed |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17357 | |
| 17358 | # This sed command replaces #undef with comments. This is necessary, for |
| 17359 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 17360 | # 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] | 17361 | cat >>conftest.undefs <<\_ACEOF |
| 17362 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 17363 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17364 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17365 | # Break up conftest.defines because some shells have a limit on the size |
| 17366 | # of here documents, and old seds have small limits too (100 cmds). |
| 17367 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 17368 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 17369 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 17370 | echo ' :' >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17371 | rm -f conftest.tail |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17372 | while grep . conftest.defines >/dev/null |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17373 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17374 | # Write a limited-size here document to $tmp/defines.sed. |
| 17375 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 17376 | # Speed up: don't consider the non `#define' lines. |
| 17377 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 17378 | # Work around the forget-to-reset-the-flag bug. |
| 17379 | echo 't clr' >>$CONFIG_STATUS |
| 17380 | echo ': clr' >>$CONFIG_STATUS |
| 17381 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17382 | echo 'CEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17383 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 17384 | rm -f $tmp/in |
| 17385 | mv $tmp/out $tmp/in |
| 17386 | ' >>$CONFIG_STATUS |
| 17387 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 17388 | rm -f conftest.defines |
| 17389 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17390 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17391 | rm -f conftest.defines |
| 17392 | echo ' fi # egrep' >>$CONFIG_STATUS |
| 17393 | echo >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17394 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17395 | # Break up conftest.undefs because some shells have a limit on the size |
| 17396 | # of here documents, and old seds have small limits too (100 cmds). |
| 17397 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 17398 | rm -f conftest.tail |
| 17399 | while grep . conftest.undefs >/dev/null |
| 17400 | do |
| 17401 | # Write a limited-size here document to $tmp/undefs.sed. |
| 17402 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 17403 | # Speed up: don't consider the non `#undef' |
| 17404 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 17405 | # Work around the forget-to-reset-the-flag bug. |
| 17406 | echo 't clr' >>$CONFIG_STATUS |
| 17407 | echo ': clr' >>$CONFIG_STATUS |
| 17408 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 17409 | echo 'CEOF |
| 17410 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 17411 | rm -f $tmp/in |
| 17412 | mv $tmp/out $tmp/in |
| 17413 | ' >>$CONFIG_STATUS |
| 17414 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 17415 | rm -f conftest.undefs |
| 17416 | mv conftest.tail conftest.undefs |
| 17417 | done |
| 17418 | rm -f conftest.undefs |
| 17419 | |
| 17420 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17421 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 17422 | # use $as_me), people would be surprised to read: |
| 17423 | # /* config.h. Generated by config.status. */ |
| 17424 | if test x"$ac_file" = x-; then |
| 17425 | echo "/* Generated by configure. */" >$tmp/config.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17426 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17427 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17428 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17429 | cat $tmp/in >>$tmp/config.h |
| 17430 | rm -f $tmp/in |
| 17431 | if test x"$ac_file" != x-; then |
| 17432 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then |
| 17433 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 17434 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 17435 | else |
| 17436 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 17437 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17438 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 17439 | X"$ac_file" : 'X\(//\)$' \| \ |
| 17440 | X"$ac_file" : 'X\(/\)' \| \ |
| 17441 | . : '\(.\)' 2>/dev/null || |
| 17442 | echo X"$ac_file" | |
| 17443 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 17444 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 17445 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 17446 | /^X\(\/\).*/{ s//\1/; q; } |
| 17447 | s/.*/./; q'` |
| 17448 | { case "$ac_dir" in |
| 17449 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 17450 | *) as_incr_dir=.;; |
| 17451 | esac |
| 17452 | as_dummy="$ac_dir" |
| 17453 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 17454 | case $as_mkdir_dir in |
| 17455 | # Skip DOS drivespec |
| 17456 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 17457 | *) |
| 17458 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 17459 | test -d "$as_incr_dir" || |
| 17460 | mkdir "$as_incr_dir" || |
| 17461 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 17462 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 17463 | { (exit 1); exit 1; }; } |
| 17464 | ;; |
| 17465 | esac |
| 17466 | done; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17467 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17468 | rm -f $ac_file |
| 17469 | mv $tmp/config.h $ac_file |
| 17470 | fi |
| 17471 | else |
| 17472 | cat $tmp/config.h |
| 17473 | rm -f $tmp/config.h |
| 17474 | fi |
| 17475 | done |
| 17476 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17477 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17478 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17479 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17480 | { (exit 0); exit 0; } |
| 17481 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17482 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17483 | ac_clean_files=$ac_clean_files_save |
| 17484 | |
| 17485 | |
| 17486 | # configure is writing to config.log, and then calls config.status. |
| 17487 | # config.status does its own redirection, appending to config.log. |
| 17488 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 17489 | # by configure, so config.status won't be able to write to it; its |
| 17490 | # output is simply discarded. So we exec the FD to /dev/null, |
| 17491 | # effectively closing config.log, so it can be properly (re)opened and |
| 17492 | # appended to by config.status. When coming back to configure, we |
| 17493 | # need to make the FD available again. |
| 17494 | if test "$no_create" != yes; then |
| 17495 | ac_cs_success=: |
| 17496 | exec 5>/dev/null |
| 17497 | $SHELL $CONFIG_STATUS || ac_cs_success=false |
| 17498 | exec 5>>config.log |
| 17499 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 17500 | # would make configure fail if this is the last instruction. |
| 17501 | $ac_cs_success || { (exit 1); exit 1; } |
| 17502 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17503 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17504 | |
| 17505 | echo "creating Setup" |
| 17506 | if test ! -f Modules/Setup |
| 17507 | then |
| 17508 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 17509 | fi |
| 17510 | |
| 17511 | echo "creating Setup.local" |
| 17512 | if test ! -f Modules/Setup.local |
| 17513 | then |
| 17514 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 17515 | fi |
| 17516 | |
| 17517 | echo "creating Makefile" |
| 17518 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 17519 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 17520 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 17521 | mv config.c Modules |