Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame^] | 2 | # From configure.in Revision: 1.361 . |
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 | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 4 | # Generated by GNU Autoconf 2.53 for python 2.3. |
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. |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 256 | PACKAGE_NAME='python' |
| 257 | PACKAGE_TARNAME='python' |
| 258 | PACKAGE_VERSION='2.3' |
| 259 | PACKAGE_STRING='python 2.3' |
| 260 | PACKAGE_BUGREPORT='' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 764 | \`configure' configures python 2.3 to adapt to many kinds of systems. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 820 | case $ac_init_help in |
| 821 | short | recursive ) echo "Configuration of python 2.3:";; |
| 822 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 823 | cat <<\_ACEOF |
| 824 | |
| 825 | Optional Features: |
| 826 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 827 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 828 | --enable-framework[=INSTALLDIR] |
| 829 | Build (MacOSX|Darwin) framework |
| 830 | --enable-shared disable/enable building shared python library |
| 831 | --enable-toolbox-glue disable/enable MacOSX glue code for extensions |
| 832 | --enable-ipv6 Enable ipv6 (with ipv4) support |
| 833 | --disable-ipv6 Disable ipv6 support |
| 834 | --enable-unicode[=ucs[24]] |
| 835 | Enable Unicode strings (default is yes) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 836 | |
| 837 | Optional Packages: |
| 838 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 839 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 840 | --without-gcc never use gcc |
| 841 | --with-cxx=<compiler> enable C++ support |
| 842 | --with-suffix=.exe set executable suffix |
| 843 | --with-pydebug build with Py_DEBUG defined |
| 844 | --with-libs='lib1 ...' link against additional libs |
| 845 | --with-signal-module disable/enable signal module |
| 846 | --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries |
| 847 | --with(out)-threads[=DIRECTORY] |
| 848 | disable/enable thread support |
| 849 | --with(out)-thread[=DIRECTORY] |
| 850 | deprecated; use --with(out)-threads |
| 851 | --with-pth use GNU pth threading libraries |
| 852 | --with(out)-universal-newlines |
| 853 | disable/enable foreign newlines |
| 854 | --with(out)-doc-strings disable/enable documentation strings |
| 855 | --with(out)-pymalloc disable/enable specialized mallocs |
| 856 | --with-wctype-functions use wctype.h functions |
| 857 | --with-sgi-dl=DIRECTORY IRIX 4 dynamic linking |
| 858 | --with-dl-dld=DL_DIR GNU dynamic linking |
| 859 | --with-fpectl enable SIGFPE catching |
| 860 | --with-libm=STRING math library |
| 861 | --with-libc=STRING C library |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 862 | |
| 863 | Some influential environment variables: |
| 864 | CC C compiler command |
| 865 | CFLAGS C compiler flags |
| 866 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 867 | nonstandard directory <lib dir> |
| 868 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 869 | headers in a nonstandard directory <include dir> |
| 870 | CPP C preprocessor |
| 871 | |
| 872 | Use these variables to override the choices made by `configure' or to help |
| 873 | it to find libraries and programs with nonstandard names/locations. |
| 874 | |
| 875 | _ACEOF |
| 876 | fi |
| 877 | |
| 878 | if test "$ac_init_help" = "recursive"; then |
| 879 | # If there are subdirs, report their specific --help. |
| 880 | ac_popdir=`pwd` |
| 881 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 882 | test -d $ac_dir || continue |
| 883 | ac_builddir=. |
| 884 | |
| 885 | if test "$ac_dir" != .; then |
| 886 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 887 | # A "../" for each directory in $ac_dir_suffix. |
| 888 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 889 | else |
| 890 | ac_dir_suffix= ac_top_builddir= |
| 891 | fi |
| 892 | |
| 893 | case $srcdir in |
| 894 | .) # No --srcdir option. We are building in place. |
| 895 | ac_srcdir=. |
| 896 | if test -z "$ac_top_builddir"; then |
| 897 | ac_top_srcdir=. |
| 898 | else |
| 899 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 900 | fi ;; |
| 901 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 902 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 903 | ac_top_srcdir=$srcdir ;; |
| 904 | *) # Relative path. |
| 905 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 906 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 907 | esac |
| 908 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 909 | # absolute. |
| 910 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
Martin v. Löwis | e482658 | 2002-10-26 13:33:00 +0000 | [diff] [blame] | 911 | 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] | 912 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 913 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 914 | |
| 915 | cd $ac_dir |
| 916 | # Check for guested configure; otherwise get Cygnus style configure. |
| 917 | if test -f $ac_srcdir/configure.gnu; then |
| 918 | echo |
| 919 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 920 | elif test -f $ac_srcdir/configure; then |
| 921 | echo |
| 922 | $SHELL $ac_srcdir/configure --help=recursive |
| 923 | elif test -f $ac_srcdir/configure.ac || |
| 924 | test -f $ac_srcdir/configure.in; then |
| 925 | echo |
| 926 | $ac_configure --help |
| 927 | else |
| 928 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 929 | fi |
| 930 | cd $ac_popdir |
| 931 | done |
| 932 | fi |
| 933 | |
| 934 | test -n "$ac_init_help" && exit 0 |
| 935 | if $ac_init_version; then |
| 936 | cat <<\_ACEOF |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 937 | python configure 2.3 |
| 938 | generated by GNU Autoconf 2.53 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 939 | |
| 940 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 941 | Free Software Foundation, Inc. |
| 942 | This configure script is free software; the Free Software Foundation |
| 943 | gives unlimited permission to copy, distribute and modify it. |
| 944 | _ACEOF |
| 945 | exit 0 |
| 946 | fi |
| 947 | exec 5>config.log |
| 948 | cat >&5 <<_ACEOF |
| 949 | This file contains any messages produced by compilers while |
| 950 | running configure, to aid debugging if configure makes a mistake. |
| 951 | |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 952 | It was created by python $as_me 2.3, which was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 953 | generated by GNU Autoconf 2.53. Invocation command line was |
| 954 | |
| 955 | $ $0 $@ |
| 956 | |
| 957 | _ACEOF |
| 958 | { |
| 959 | cat <<_ASUNAME |
| 960 | ## --------- ## |
| 961 | ## Platform. ## |
| 962 | ## --------- ## |
| 963 | |
| 964 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 965 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 966 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 967 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 968 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 969 | |
| 970 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 971 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 972 | |
| 973 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 974 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 975 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 976 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 977 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 978 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 979 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 980 | |
| 981 | _ASUNAME |
| 982 | |
| 983 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 984 | for as_dir in $PATH |
| 985 | do |
| 986 | IFS=$as_save_IFS |
| 987 | test -z "$as_dir" && as_dir=. |
| 988 | echo "PATH: $as_dir" |
| 989 | done |
| 990 | |
| 991 | } >&5 |
| 992 | |
| 993 | cat >&5 <<_ACEOF |
| 994 | |
| 995 | |
| 996 | ## ----------- ## |
| 997 | ## Core tests. ## |
| 998 | ## ----------- ## |
| 999 | |
| 1000 | _ACEOF |
| 1001 | |
| 1002 | |
| 1003 | # Keep a trace of the command line. |
| 1004 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1005 | # Also quote any args containing shell meta-characters. |
| 1006 | ac_configure_args= |
| 1007 | ac_sep= |
| 1008 | for ac_arg |
| 1009 | do |
| 1010 | case $ac_arg in |
| 1011 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1012 | | --no-cr | --no-c | -n ) continue ;; |
| 1013 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1014 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1015 | continue ;; |
| 1016 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1017 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1018 | esac |
| 1019 | case " $ac_configure_args " in |
| 1020 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1021 | *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1022 | ac_sep=" " ;; |
| 1023 | esac |
| 1024 | # Get rid of the leading space. |
| 1025 | done |
| 1026 | |
| 1027 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1028 | # config.log. We remove comments because anyway the quotes in there |
| 1029 | # would cause problems or look ugly. |
| 1030 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1031 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1032 | trap 'exit_status=$? |
| 1033 | # Save into config.log some information that might help in debugging. |
| 1034 | { |
| 1035 | echo |
| 1036 | cat <<\_ASBOX |
| 1037 | ## ---------------- ## |
| 1038 | ## Cache variables. ## |
| 1039 | ## ---------------- ## |
| 1040 | _ASBOX |
| 1041 | echo |
| 1042 | # The following way of writing the cache mishandles newlines in values, |
| 1043 | { |
| 1044 | (set) 2>&1 | |
| 1045 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1046 | *ac_space=\ *) |
| 1047 | sed -n \ |
| 1048 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1049 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1050 | ;; |
| 1051 | *) |
| 1052 | sed -n \ |
| 1053 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1054 | ;; |
| 1055 | esac; |
| 1056 | } |
| 1057 | echo |
| 1058 | if test -s confdefs.h; then |
| 1059 | cat <<\_ASBOX |
| 1060 | ## ----------- ## |
| 1061 | ## confdefs.h. ## |
| 1062 | ## ----------- ## |
| 1063 | _ASBOX |
| 1064 | echo |
| 1065 | sed "/^$/d" confdefs.h |
| 1066 | echo |
| 1067 | fi |
| 1068 | test "$ac_signal" != 0 && |
| 1069 | echo "$as_me: caught signal $ac_signal" |
| 1070 | echo "$as_me: exit $exit_status" |
| 1071 | } >&5 |
| 1072 | rm -f core core.* *.core && |
| 1073 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1074 | exit $exit_status |
| 1075 | ' 0 |
| 1076 | for ac_signal in 1 2 13 15; do |
| 1077 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1078 | done |
| 1079 | ac_signal=0 |
| 1080 | |
| 1081 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1082 | rm -rf conftest* confdefs.h |
| 1083 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1084 | echo >confdefs.h |
| 1085 | |
| 1086 | # Predefined preprocessor variables. |
| 1087 | |
| 1088 | cat >>confdefs.h <<_ACEOF |
| 1089 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1090 | _ACEOF |
| 1091 | |
| 1092 | |
| 1093 | cat >>confdefs.h <<_ACEOF |
| 1094 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1095 | _ACEOF |
| 1096 | |
| 1097 | |
| 1098 | cat >>confdefs.h <<_ACEOF |
| 1099 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1100 | _ACEOF |
| 1101 | |
| 1102 | |
| 1103 | cat >>confdefs.h <<_ACEOF |
| 1104 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1105 | _ACEOF |
| 1106 | |
| 1107 | |
| 1108 | cat >>confdefs.h <<_ACEOF |
| 1109 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1110 | _ACEOF |
| 1111 | |
| 1112 | |
| 1113 | # 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] | 1114 | # Prefer explicitly selected file to automatically selected ones. |
| 1115 | if test -z "$CONFIG_SITE"; then |
| 1116 | if test "x$prefix" != xNONE; then |
| 1117 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1118 | else |
| 1119 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1120 | fi |
| 1121 | fi |
| 1122 | for ac_site_file in $CONFIG_SITE; do |
| 1123 | if test -r "$ac_site_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1124 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1125 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1126 | sed 's/^/| /' "$ac_site_file" >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1127 | . "$ac_site_file" |
| 1128 | fi |
| 1129 | done |
| 1130 | |
| 1131 | if test -r "$cache_file"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1132 | # Some versions of bash will fail to source /dev/null (special |
| 1133 | # files actually), so we avoid doing that. |
| 1134 | if test -f "$cache_file"; then |
| 1135 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1136 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1137 | case $cache_file in |
| 1138 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1139 | *) . ./$cache_file;; |
| 1140 | esac |
| 1141 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1142 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1143 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1144 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1145 | >$cache_file |
| 1146 | fi |
| 1147 | |
| 1148 | # Check that the precious variables saved in the cache have kept the same |
| 1149 | # value. |
| 1150 | ac_cache_corrupted=false |
| 1151 | for ac_var in `(set) 2>&1 | |
| 1152 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1153 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1154 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1155 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1156 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1157 | case $ac_old_set,$ac_new_set in |
| 1158 | set,) |
| 1159 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1160 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1161 | ac_cache_corrupted=: ;; |
| 1162 | ,set) |
| 1163 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1164 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1165 | ac_cache_corrupted=: ;; |
| 1166 | ,);; |
| 1167 | *) |
| 1168 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1169 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1170 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1171 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1172 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1173 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1174 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1175 | ac_cache_corrupted=: |
| 1176 | fi;; |
| 1177 | esac |
| 1178 | # Pass precious variables to config.status. |
| 1179 | if test "$ac_new_set" = set; then |
| 1180 | case $ac_new_val in |
| 1181 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1182 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1183 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1184 | esac |
| 1185 | case " $ac_configure_args " in |
| 1186 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1187 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1188 | esac |
| 1189 | fi |
| 1190 | done |
| 1191 | if $ac_cache_corrupted; then |
| 1192 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1193 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1194 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1195 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1196 | { (exit 1); exit 1; }; } |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1197 | fi |
| 1198 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1199 | ac_ext=c |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1200 | ac_cpp='$CPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1201 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1202 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1203 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1204 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1205 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1206 | |
| 1207 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1208 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1209 | |
| 1210 | |
| 1211 | |
| 1212 | |
| 1213 | |
| 1214 | |
| 1215 | |
| 1216 | |
| 1217 | |
| 1218 | |
| 1219 | |
| 1220 | |
| 1221 | |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 1222 | |
| 1223 | |
| 1224 | |
| 1225 | |
| 1226 | |
| 1227 | |
| 1228 | |
| 1229 | |
| 1230 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1231 | ac_config_headers="$ac_config_headers pyconfig.h" |
| 1232 | |
| 1233 | |
| 1234 | # This is for stuff that absolutely must end up in pyconfig.h. |
| 1235 | # Please use pyport.h instead, if possible. |
| 1236 | |
| 1237 | |
| 1238 | |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1239 | |
Andrew M. Kuchling | f2f219d | 2002-02-11 16:31:10 +0000 | [diff] [blame] | 1240 | VERSION=2.3 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1241 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1242 | |
| 1243 | SOVERSION=1.0 |
| 1244 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1245 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1246 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1247 | |
| 1248 | cat >>confdefs.h <<\_ACEOF |
| 1249 | #define _GNU_SOURCE 1 |
| 1250 | _ACEOF |
| 1251 | |
| 1252 | |
| 1253 | # The definition of _GNU_SOURCE potentially causes a change of the value |
| 1254 | # of _XOPEN_SOURCE. So define it only conditionally. |
| 1255 | |
| 1256 | |
| 1257 | cat >>confdefs.h <<\_ACEOF |
| 1258 | #define _XOPEN_SOURCE 500 |
| 1259 | _ACEOF |
| 1260 | |
| 1261 | |
Martin v. Löwis | e482658 | 2002-10-26 13:33:00 +0000 | [diff] [blame] | 1262 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires definition |
| 1263 | # of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else several APIs |
| 1264 | # are not declared. Since this is also needed in some cases for HP-UX, |
| 1265 | # we define it globally. |
| 1266 | |
| 1267 | cat >>confdefs.h <<\_ACEOF |
| 1268 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 1269 | _ACEOF |
| 1270 | |
| 1271 | |
| 1272 | cat >>confdefs.h <<\_ACEOF |
| 1273 | #define _POSIX_C_SOURCE 199506L |
| 1274 | _ACEOF |
| 1275 | |
| 1276 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1277 | # Arguments passed to configure. |
| 1278 | |
| 1279 | CONFIG_ARGS="$ac_configure_args" |
| 1280 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1281 | # Check whether --enable-framework or --disable-framework was given. |
| 1282 | if test "${enable_framework+set}" = set; then |
| 1283 | enableval="$enable_framework" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1284 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1285 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1286 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1287 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1288 | esac |
| 1289 | case $enableval in |
| 1290 | no) |
| 1291 | PYTHONFRAMEWORK= |
| 1292 | PYTHONFRAMEWORKDIR=no-framework |
| 1293 | PYTHONFRAMEWORKPREFIX= |
| 1294 | PYTHONFRAMEWORKINSTALLDIR= |
| 1295 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1296 | ;; |
| 1297 | *) |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1298 | PYTHONFRAMEWORK=Python |
| 1299 | PYTHONFRAMEWORKDIR=Python.framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1300 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1301 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
| 1302 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1303 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1304 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1305 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1306 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1307 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1308 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1309 | PYTHONFRAMEWORKPREFIX= |
| 1310 | PYTHONFRAMEWORKINSTALLDIR= |
| 1311 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1312 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1313 | fi; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1314 | |
| 1315 | |
| 1316 | |
| 1317 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1318 | |
| 1319 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1320 | ## AC_HELP_STRING(--with-dyld, |
| 1321 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1322 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1323 | # Set name for machine-dependent library files |
| 1324 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1325 | echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 1326 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1327 | if test -z "$MACHDEP" |
| 1328 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1329 | ac_sys_system=`uname -s` |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 1330 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \ |
| 1331 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1332 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1333 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1334 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1335 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1336 | ac_md_system=`echo $ac_sys_system | |
| 1337 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 1338 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 1339 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1340 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1341 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 1342 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 1343 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 1344 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 1345 | atheos*) MACHDEP="atheos";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1346 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1347 | esac |
| 1348 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1349 | |
| 1350 | # |
| 1351 | # SGI compilers allow the specification of the both the ABI and the |
| 1352 | # ISA on the command line. Depending on the values of these switches, |
| 1353 | # different and often incompatable code will be generated. |
| 1354 | # |
| 1355 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 1356 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 1357 | # variable is also adjusted. |
| 1358 | # |
| 1359 | |
| 1360 | if test ! -z "$SGI_ABI" |
| 1361 | then |
| 1362 | CC="cc $SGI_ABI" |
| 1363 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 1364 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 1365 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1366 | echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 1367 | echo "${ECHO_T}$MACHDEP" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1368 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1369 | # checks for alternative programs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1370 | echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 1371 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6 |
| 1372 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1373 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1374 | if test "${with_gcc+set}" = set; then |
| 1375 | withval="$with_gcc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1376 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1377 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1378 | no) CC=cc |
| 1379 | without_gcc=yes;; |
| 1380 | yes) CC=gcc |
| 1381 | without_gcc=no;; |
| 1382 | *) CC=$withval |
| 1383 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1384 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1385 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1386 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1387 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1388 | AIX*) CC=cc_r |
| 1389 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1390 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1391 | case $BE_HOST_CPU in |
| 1392 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1393 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1394 | without_gcc=yes |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 1395 | OPT="-O -export pragma" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1396 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1397 | ;; |
| 1398 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1399 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1400 | without_gcc=no |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1401 | OPT=-O |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1402 | ;; |
| 1403 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1404 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 1405 | echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
| 1406 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1407 | ;; |
| 1408 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1409 | AR="\$(srcdir)/Modules/ar_beos" |
| 1410 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1411 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1412 | Monterey*) |
| 1413 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1414 | without_gcc=;; |
| 1415 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1416 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1417 | fi; |
| 1418 | echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 1419 | echo "${ECHO_T}$without_gcc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1420 | |
| 1421 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1422 | |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1423 | MAINOBJ=python.o |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1424 | echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5 |
| 1425 | echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6 |
| 1426 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1427 | # Check whether --with-cxx or --without-cxx was given. |
| 1428 | if test "${with_cxx+set}" = set; then |
| 1429 | withval="$with_cxx" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1430 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1431 | check_cxx=no |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1432 | case $withval in |
| 1433 | no) CXX= |
| 1434 | with_cxx=no;; |
| 1435 | *) CXX=$withval |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1436 | MAINOBJ=ccpython.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1437 | with_cxx=$withval;; |
| 1438 | esac |
| 1439 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1440 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1441 | with_cxx=no |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1442 | check_cxx=yes |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1443 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1444 | fi; |
| 1445 | echo "$as_me:$LINENO: result: $with_cxx" >&5 |
| 1446 | echo "${ECHO_T}$with_cxx" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1447 | |
| 1448 | if test "$with_cxx" = "yes" |
| 1449 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1450 | { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5 |
| 1451 | echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;} |
| 1452 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1453 | fi |
| 1454 | |
| 1455 | |
| 1456 | |
| 1457 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1458 | if test "$check_cxx" = "yes" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1459 | then |
| 1460 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 1461 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1462 | # 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] | 1463 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1464 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1465 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1466 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 1467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1468 | else |
| 1469 | if test -n "$CXX"; then |
| 1470 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 1471 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1473 | for as_dir in $PATH |
| 1474 | do |
| 1475 | IFS=$as_save_IFS |
| 1476 | test -z "$as_dir" && as_dir=. |
| 1477 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1478 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1479 | ac_cv_prog_CXX="$ac_prog" |
| 1480 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1481 | break 2 |
| 1482 | fi |
| 1483 | done |
| 1484 | done |
| 1485 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1486 | fi |
| 1487 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1488 | CXX=$ac_cv_prog_CXX |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1489 | if test -n "$CXX"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1490 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 1491 | echo "${ECHO_T}$CXX" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1492 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1493 | echo "$as_me:$LINENO: result: no" >&5 |
| 1494 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1495 | fi |
| 1496 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1497 | test -n "$CXX" && break |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1498 | done |
| 1499 | test -n "$CXX" || CXX="notfound" |
| 1500 | |
| 1501 | if test "$CXX" = "notfound" |
| 1502 | then |
| 1503 | CXX= |
| 1504 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1505 | ac_ext=cc |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1506 | ac_cpp='$CXXCPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1507 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1508 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1509 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 1510 | cat >conftest.$ac_ext <<_ACEOF |
| 1511 | #line $LINENO "configure" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1512 | #include "confdefs.h" |
| 1513 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1514 | #ifdef F77_DUMMY_MAIN |
| 1515 | # ifdef __cplusplus |
| 1516 | extern "C" |
| 1517 | # endif |
| 1518 | int F77_DUMMY_MAIN() { return 1; } |
| 1519 | #endif |
| 1520 | int |
| 1521 | main () |
| 1522 | { |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1523 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1524 | ; |
| 1525 | return 0; |
| 1526 | } |
| 1527 | _ACEOF |
| 1528 | ac_clean_files_save=$ac_clean_files |
| 1529 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 1530 | # Try to create an executable without -o first, disregard a.out. |
| 1531 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1532 | # of exeext. |
| 1533 | echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 |
| 1534 | echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 |
| 1535 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1536 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1537 | (eval $ac_link_default) 2>&5 |
| 1538 | ac_status=$? |
| 1539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1540 | (exit $ac_status); }; then |
| 1541 | # Find the output, starting from the most likely. This scheme is |
| 1542 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1543 | # resort. |
| 1544 | |
| 1545 | # Be careful to initialize this variable, since it used to be cached. |
| 1546 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1547 | ac_cv_exeext= |
| 1548 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; |
| 1549 | ls a.out conftest 2>/dev/null; |
| 1550 | ls a.* conftest.* 2>/dev/null`; do |
| 1551 | case $ac_file in |
| 1552 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
| 1553 | a.out ) # We found the default executable, but exeext='' is most |
| 1554 | # certainly right. |
| 1555 | break;; |
| 1556 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1557 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 1558 | export ac_cv_exeext |
| 1559 | break;; |
| 1560 | * ) break;; |
| 1561 | esac |
| 1562 | done |
| 1563 | else |
| 1564 | echo "$as_me: failed program was:" >&5 |
| 1565 | cat conftest.$ac_ext >&5 |
| 1566 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables" >&5 |
| 1567 | echo "$as_me: error: C++ compiler cannot create executables" >&2;} |
| 1568 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1569 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1570 | |
| 1571 | ac_exeext=$ac_cv_exeext |
| 1572 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1573 | echo "${ECHO_T}$ac_file" >&6 |
| 1574 | |
| 1575 | # Check the compiler produces executables we can run. If not, either |
| 1576 | # the compiler is broken, or we cross compile. |
| 1577 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
| 1578 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
| 1579 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1580 | # If not cross compiling, check that we can run a simple program. |
| 1581 | if test "$cross_compiling" != yes; then |
| 1582 | if { ac_try='./$ac_file' |
| 1583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1584 | (eval $ac_try) 2>&5 |
| 1585 | ac_status=$? |
| 1586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1587 | (exit $ac_status); }; }; then |
| 1588 | cross_compiling=no |
| 1589 | else |
| 1590 | if test "$cross_compiling" = maybe; then |
| 1591 | cross_compiling=yes |
| 1592 | else |
| 1593 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
| 1594 | If you meant to cross compile, use \`--host'." >&5 |
| 1595 | echo "$as_me: error: cannot run C++ compiled programs. |
| 1596 | If you meant to cross compile, use \`--host'." >&2;} |
| 1597 | { (exit 1); exit 1; }; } |
| 1598 | fi |
| 1599 | fi |
| 1600 | fi |
| 1601 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1602 | echo "${ECHO_T}yes" >&6 |
| 1603 | |
| 1604 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 1605 | ac_clean_files=$ac_clean_files_save |
| 1606 | # Check the compiler produces executables we can run. If not, either |
| 1607 | # the compiler is broken, or we cross compile. |
| 1608 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1609 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1610 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1611 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1612 | |
| 1613 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1614 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1615 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1616 | (eval $ac_link) 2>&5 |
| 1617 | ac_status=$? |
| 1618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1619 | (exit $ac_status); }; then |
| 1620 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1621 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1622 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1623 | # `rm'. |
| 1624 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
| 1625 | case $ac_file in |
| 1626 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 1627 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1628 | export ac_cv_exeext |
| 1629 | break;; |
| 1630 | * ) break;; |
| 1631 | esac |
| 1632 | done |
| 1633 | else |
| 1634 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 1635 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
| 1636 | { (exit 1); exit 1; }; } |
| 1637 | fi |
| 1638 | |
| 1639 | rm -f conftest$ac_cv_exeext |
| 1640 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1641 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1642 | |
| 1643 | rm -f conftest.$ac_ext |
| 1644 | EXEEXT=$ac_cv_exeext |
| 1645 | ac_exeext=$EXEEXT |
| 1646 | |
| 1647 | ac_ext=c |
| 1648 | ac_cpp='$CPP $CPPFLAGS' |
| 1649 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1650 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1651 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1652 | |
| 1653 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1654 | |
| 1655 | fi |
| 1656 | fi |
| 1657 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1658 | # If the user switches compilers, we can't believe the cache |
| 1659 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 1660 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1661 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
| 1662 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
| 1663 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
| 1664 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 1665 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1666 | fi |
| 1667 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1668 | ac_ext=c |
| 1669 | ac_cpp='$CPP $CPPFLAGS' |
| 1670 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1671 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1672 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1673 | if test -n "$ac_tool_prefix"; then |
| 1674 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1675 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1676 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1677 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1678 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1679 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1680 | else |
| 1681 | if test -n "$CC"; then |
| 1682 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1683 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1685 | for as_dir in $PATH |
| 1686 | do |
| 1687 | IFS=$as_save_IFS |
| 1688 | test -z "$as_dir" && as_dir=. |
| 1689 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1690 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1691 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1692 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1693 | break 2 |
| 1694 | fi |
| 1695 | done |
| 1696 | done |
| 1697 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1698 | fi |
| 1699 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1700 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1701 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1702 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1703 | echo "${ECHO_T}$CC" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1704 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1705 | echo "$as_me:$LINENO: result: no" >&5 |
| 1706 | echo "${ECHO_T}no" >&6 |
| 1707 | fi |
| 1708 | |
| 1709 | fi |
| 1710 | if test -z "$ac_cv_prog_CC"; then |
| 1711 | ac_ct_CC=$CC |
| 1712 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1713 | set dummy gcc; ac_word=$2 |
| 1714 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1715 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1716 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1718 | else |
| 1719 | if test -n "$ac_ct_CC"; then |
| 1720 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1721 | else |
| 1722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1723 | for as_dir in $PATH |
| 1724 | do |
| 1725 | IFS=$as_save_IFS |
| 1726 | test -z "$as_dir" && as_dir=. |
| 1727 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1728 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1729 | ac_cv_prog_ac_ct_CC="gcc" |
| 1730 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1731 | break 2 |
| 1732 | fi |
| 1733 | done |
| 1734 | done |
| 1735 | |
| 1736 | fi |
| 1737 | fi |
| 1738 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1739 | if test -n "$ac_ct_CC"; then |
| 1740 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1741 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1742 | else |
| 1743 | echo "$as_me:$LINENO: result: no" >&5 |
| 1744 | echo "${ECHO_T}no" >&6 |
| 1745 | fi |
| 1746 | |
| 1747 | CC=$ac_ct_CC |
| 1748 | else |
| 1749 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1750 | fi |
| 1751 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1752 | if test -z "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1753 | if test -n "$ac_tool_prefix"; then |
| 1754 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1755 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1756 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1757 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1758 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1759 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1760 | else |
| 1761 | if test -n "$CC"; then |
| 1762 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1763 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1765 | for as_dir in $PATH |
| 1766 | do |
| 1767 | IFS=$as_save_IFS |
| 1768 | test -z "$as_dir" && as_dir=. |
| 1769 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1770 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1771 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1772 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1773 | break 2 |
| 1774 | fi |
| 1775 | done |
| 1776 | done |
| 1777 | |
| 1778 | fi |
| 1779 | fi |
| 1780 | CC=$ac_cv_prog_CC |
| 1781 | if test -n "$CC"; then |
| 1782 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1783 | echo "${ECHO_T}$CC" >&6 |
| 1784 | else |
| 1785 | echo "$as_me:$LINENO: result: no" >&5 |
| 1786 | echo "${ECHO_T}no" >&6 |
| 1787 | fi |
| 1788 | |
| 1789 | fi |
| 1790 | if test -z "$ac_cv_prog_CC"; then |
| 1791 | ac_ct_CC=$CC |
| 1792 | # Extract the first word of "cc", so it can be a program name with args. |
| 1793 | set dummy cc; ac_word=$2 |
| 1794 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1795 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1796 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1798 | else |
| 1799 | if test -n "$ac_ct_CC"; then |
| 1800 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1801 | else |
| 1802 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1803 | for as_dir in $PATH |
| 1804 | do |
| 1805 | IFS=$as_save_IFS |
| 1806 | test -z "$as_dir" && as_dir=. |
| 1807 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1808 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1809 | ac_cv_prog_ac_ct_CC="cc" |
| 1810 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1811 | break 2 |
| 1812 | fi |
| 1813 | done |
| 1814 | done |
| 1815 | |
| 1816 | fi |
| 1817 | fi |
| 1818 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1819 | if test -n "$ac_ct_CC"; then |
| 1820 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1821 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1822 | else |
| 1823 | echo "$as_me:$LINENO: result: no" >&5 |
| 1824 | echo "${ECHO_T}no" >&6 |
| 1825 | fi |
| 1826 | |
| 1827 | CC=$ac_ct_CC |
| 1828 | else |
| 1829 | CC="$ac_cv_prog_CC" |
| 1830 | fi |
| 1831 | |
| 1832 | fi |
| 1833 | if test -z "$CC"; then |
| 1834 | # Extract the first word of "cc", so it can be a program name with args. |
| 1835 | set dummy cc; ac_word=$2 |
| 1836 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1837 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1838 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1839 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1840 | else |
| 1841 | if test -n "$CC"; then |
| 1842 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1843 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1844 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1846 | for as_dir in $PATH |
| 1847 | do |
| 1848 | IFS=$as_save_IFS |
| 1849 | test -z "$as_dir" && as_dir=. |
| 1850 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1851 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1852 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1853 | ac_prog_rejected=yes |
| 1854 | continue |
| 1855 | fi |
| 1856 | ac_cv_prog_CC="cc" |
| 1857 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1858 | break 2 |
| 1859 | fi |
| 1860 | done |
| 1861 | done |
| 1862 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1863 | if test $ac_prog_rejected = yes; then |
| 1864 | # We found a bogon in the path, so make sure we never use it. |
| 1865 | set dummy $ac_cv_prog_CC |
| 1866 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1867 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1868 | # We chose a different compiler from the bogus one. |
| 1869 | # However, it has the same basename, so the bogon will be chosen |
| 1870 | # first if we set CC to just the basename; use the full file name. |
| 1871 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1872 | set dummy "$as_dir/$ac_word" ${1+"$@"} |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1873 | shift |
| 1874 | ac_cv_prog_CC="$@" |
| 1875 | fi |
| 1876 | fi |
| 1877 | fi |
| 1878 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1879 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1880 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1881 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1882 | echo "${ECHO_T}$CC" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1883 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1884 | echo "$as_me:$LINENO: result: no" >&5 |
| 1885 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1886 | fi |
| 1887 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1888 | fi |
| 1889 | if test -z "$CC"; then |
| 1890 | if test -n "$ac_tool_prefix"; then |
| 1891 | for ac_prog in cl |
| 1892 | do |
| 1893 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1894 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1895 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1896 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1897 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1899 | else |
| 1900 | if test -n "$CC"; then |
| 1901 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1902 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1904 | for as_dir in $PATH |
| 1905 | do |
| 1906 | IFS=$as_save_IFS |
| 1907 | test -z "$as_dir" && as_dir=. |
| 1908 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1909 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1910 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1911 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1912 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1913 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1914 | done |
| 1915 | done |
| 1916 | |
| 1917 | fi |
| 1918 | fi |
| 1919 | CC=$ac_cv_prog_CC |
| 1920 | if test -n "$CC"; then |
| 1921 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1922 | echo "${ECHO_T}$CC" >&6 |
| 1923 | else |
| 1924 | echo "$as_me:$LINENO: result: no" >&5 |
| 1925 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1926 | fi |
| 1927 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1928 | test -n "$CC" && break |
| 1929 | done |
| 1930 | fi |
| 1931 | if test -z "$CC"; then |
| 1932 | ac_ct_CC=$CC |
| 1933 | for ac_prog in cl |
| 1934 | do |
| 1935 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1936 | set dummy $ac_prog; ac_word=$2 |
| 1937 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1938 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1939 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1940 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1941 | else |
| 1942 | if test -n "$ac_ct_CC"; then |
| 1943 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1944 | else |
| 1945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1946 | for as_dir in $PATH |
| 1947 | do |
| 1948 | IFS=$as_save_IFS |
| 1949 | test -z "$as_dir" && as_dir=. |
| 1950 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1951 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1952 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1953 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1954 | break 2 |
| 1955 | fi |
| 1956 | done |
| 1957 | done |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1958 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1959 | fi |
| 1960 | fi |
| 1961 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1962 | if test -n "$ac_ct_CC"; then |
| 1963 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1964 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1965 | else |
| 1966 | echo "$as_me:$LINENO: result: no" >&5 |
| 1967 | echo "${ECHO_T}no" >&6 |
| 1968 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1969 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1970 | test -n "$ac_ct_CC" && break |
| 1971 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1972 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1973 | CC=$ac_ct_CC |
| 1974 | fi |
| 1975 | |
| 1976 | fi |
| 1977 | |
| 1978 | |
| 1979 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 |
| 1980 | echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} |
| 1981 | { (exit 1); exit 1; }; } |
| 1982 | |
| 1983 | # Provide some information about the compiler. |
| 1984 | echo "$as_me:$LINENO:" \ |
| 1985 | "checking for C compiler version" >&5 |
| 1986 | ac_compiler=`set X $ac_compile; echo $2` |
| 1987 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1988 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1989 | ac_status=$? |
| 1990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1991 | (exit $ac_status); } |
| 1992 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1993 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1994 | ac_status=$? |
| 1995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1996 | (exit $ac_status); } |
| 1997 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 1998 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1999 | ac_status=$? |
| 2000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2001 | (exit $ac_status); } |
| 2002 | |
| 2003 | cat >conftest.$ac_ext <<_ACEOF |
| 2004 | #line $LINENO "configure" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2005 | #include "confdefs.h" |
| 2006 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2007 | #ifdef F77_DUMMY_MAIN |
| 2008 | # ifdef __cplusplus |
| 2009 | extern "C" |
| 2010 | # endif |
| 2011 | int F77_DUMMY_MAIN() { return 1; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2012 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2013 | int |
| 2014 | main () |
| 2015 | { |
| 2016 | |
| 2017 | ; |
| 2018 | return 0; |
| 2019 | } |
| 2020 | _ACEOF |
| 2021 | ac_clean_files_save=$ac_clean_files |
| 2022 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 2023 | # Try to create an executable without -o first, disregard a.out. |
| 2024 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2025 | # of exeext. |
| 2026 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
| 2027 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 2028 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2029 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2030 | (eval $ac_link_default) 2>&5 |
| 2031 | ac_status=$? |
| 2032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2033 | (exit $ac_status); }; then |
| 2034 | # Find the output, starting from the most likely. This scheme is |
| 2035 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2036 | # resort. |
| 2037 | |
| 2038 | # Be careful to initialize this variable, since it used to be cached. |
| 2039 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2040 | ac_cv_exeext= |
| 2041 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; |
| 2042 | ls a.out conftest 2>/dev/null; |
| 2043 | ls a.* conftest.* 2>/dev/null`; do |
| 2044 | case $ac_file in |
| 2045 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
| 2046 | a.out ) # We found the default executable, but exeext='' is most |
| 2047 | # certainly right. |
| 2048 | break;; |
| 2049 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2050 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 2051 | export ac_cv_exeext |
| 2052 | break;; |
| 2053 | * ) break;; |
| 2054 | esac |
| 2055 | done |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2056 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2057 | echo "$as_me: failed program was:" >&5 |
| 2058 | cat conftest.$ac_ext >&5 |
| 2059 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 |
| 2060 | echo "$as_me: error: C compiler cannot create executables" >&2;} |
| 2061 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2062 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2063 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2064 | ac_exeext=$ac_cv_exeext |
| 2065 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2066 | echo "${ECHO_T}$ac_file" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2067 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2068 | # Check the compiler produces executables we can run. If not, either |
| 2069 | # the compiler is broken, or we cross compile. |
| 2070 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2071 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2072 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2073 | # If not cross compiling, check that we can run a simple program. |
| 2074 | if test "$cross_compiling" != yes; then |
| 2075 | if { ac_try='./$ac_file' |
| 2076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2077 | (eval $ac_try) 2>&5 |
| 2078 | ac_status=$? |
| 2079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2080 | (exit $ac_status); }; }; then |
| 2081 | cross_compiling=no |
| 2082 | else |
| 2083 | if test "$cross_compiling" = maybe; then |
| 2084 | cross_compiling=yes |
| 2085 | else |
| 2086 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2087 | If you meant to cross compile, use \`--host'." >&5 |
| 2088 | echo "$as_me: error: cannot run C compiled programs. |
| 2089 | If you meant to cross compile, use \`--host'." >&2;} |
| 2090 | { (exit 1); exit 1; }; } |
| 2091 | fi |
| 2092 | fi |
| 2093 | fi |
| 2094 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2095 | echo "${ECHO_T}yes" >&6 |
| 2096 | |
| 2097 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 2098 | ac_clean_files=$ac_clean_files_save |
| 2099 | # Check the compiler produces executables we can run. If not, either |
| 2100 | # the compiler is broken, or we cross compile. |
| 2101 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2102 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2103 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2104 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2105 | |
| 2106 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2107 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2108 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2109 | (eval $ac_link) 2>&5 |
| 2110 | ac_status=$? |
| 2111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2112 | (exit $ac_status); }; then |
| 2113 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2114 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2115 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2116 | # `rm'. |
| 2117 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
| 2118 | case $ac_file in |
| 2119 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 2120 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2121 | export ac_cv_exeext |
| 2122 | break;; |
| 2123 | * ) break;; |
| 2124 | esac |
| 2125 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2126 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2127 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 2128 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
| 2129 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2130 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2131 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2132 | rm -f conftest$ac_cv_exeext |
| 2133 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2134 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2135 | |
| 2136 | rm -f conftest.$ac_ext |
| 2137 | EXEEXT=$ac_cv_exeext |
| 2138 | ac_exeext=$EXEEXT |
| 2139 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2140 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2141 | if test "${ac_cv_objext+set}" = set; then |
| 2142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2143 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2144 | cat >conftest.$ac_ext <<_ACEOF |
| 2145 | #line $LINENO "configure" |
| 2146 | #include "confdefs.h" |
| 2147 | |
| 2148 | #ifdef F77_DUMMY_MAIN |
| 2149 | # ifdef __cplusplus |
| 2150 | extern "C" |
| 2151 | # endif |
| 2152 | int F77_DUMMY_MAIN() { return 1; } |
| 2153 | #endif |
| 2154 | int |
| 2155 | main () |
| 2156 | { |
| 2157 | |
| 2158 | ; |
| 2159 | return 0; |
| 2160 | } |
| 2161 | _ACEOF |
| 2162 | rm -f conftest.o conftest.obj |
| 2163 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2164 | (eval $ac_compile) 2>&5 |
| 2165 | ac_status=$? |
| 2166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2167 | (exit $ac_status); }; then |
| 2168 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2169 | case $ac_file in |
| 2170 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 2171 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2172 | break;; |
| 2173 | esac |
| 2174 | done |
| 2175 | else |
| 2176 | echo "$as_me: failed program was:" >&5 |
| 2177 | cat conftest.$ac_ext >&5 |
| 2178 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 |
| 2179 | echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} |
| 2180 | { (exit 1); exit 1; }; } |
| 2181 | fi |
| 2182 | |
| 2183 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2184 | fi |
| 2185 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2186 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2187 | OBJEXT=$ac_cv_objext |
| 2188 | ac_objext=$OBJEXT |
| 2189 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2190 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2191 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2193 | else |
| 2194 | cat >conftest.$ac_ext <<_ACEOF |
| 2195 | #line $LINENO "configure" |
| 2196 | #include "confdefs.h" |
| 2197 | |
| 2198 | #ifdef F77_DUMMY_MAIN |
| 2199 | # ifdef __cplusplus |
| 2200 | extern "C" |
| 2201 | # endif |
| 2202 | int F77_DUMMY_MAIN() { return 1; } |
| 2203 | #endif |
| 2204 | int |
| 2205 | main () |
| 2206 | { |
| 2207 | #ifndef __GNUC__ |
| 2208 | choke me |
| 2209 | #endif |
| 2210 | |
| 2211 | ; |
| 2212 | return 0; |
| 2213 | } |
| 2214 | _ACEOF |
| 2215 | rm -f conftest.$ac_objext |
| 2216 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2217 | (eval $ac_compile) 2>&5 |
| 2218 | ac_status=$? |
| 2219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2220 | (exit $ac_status); } && |
| 2221 | { ac_try='test -s conftest.$ac_objext' |
| 2222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2223 | (eval $ac_try) 2>&5 |
| 2224 | ac_status=$? |
| 2225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2226 | (exit $ac_status); }; }; then |
| 2227 | ac_compiler_gnu=yes |
| 2228 | else |
| 2229 | echo "$as_me: failed program was:" >&5 |
| 2230 | cat conftest.$ac_ext >&5 |
| 2231 | ac_compiler_gnu=no |
| 2232 | fi |
| 2233 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2234 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2235 | |
| 2236 | fi |
| 2237 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2238 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2239 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2240 | ac_test_CFLAGS=${CFLAGS+set} |
| 2241 | ac_save_CFLAGS=$CFLAGS |
| 2242 | CFLAGS="-g" |
| 2243 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2244 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2245 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2246 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2247 | else |
| 2248 | cat >conftest.$ac_ext <<_ACEOF |
| 2249 | #line $LINENO "configure" |
| 2250 | #include "confdefs.h" |
| 2251 | |
| 2252 | #ifdef F77_DUMMY_MAIN |
| 2253 | # ifdef __cplusplus |
| 2254 | extern "C" |
| 2255 | # endif |
| 2256 | int F77_DUMMY_MAIN() { return 1; } |
| 2257 | #endif |
| 2258 | int |
| 2259 | main () |
| 2260 | { |
| 2261 | |
| 2262 | ; |
| 2263 | return 0; |
| 2264 | } |
| 2265 | _ACEOF |
| 2266 | rm -f conftest.$ac_objext |
| 2267 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2268 | (eval $ac_compile) 2>&5 |
| 2269 | ac_status=$? |
| 2270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2271 | (exit $ac_status); } && |
| 2272 | { ac_try='test -s conftest.$ac_objext' |
| 2273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2274 | (eval $ac_try) 2>&5 |
| 2275 | ac_status=$? |
| 2276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2277 | (exit $ac_status); }; }; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2278 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2279 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2280 | echo "$as_me: failed program was:" >&5 |
| 2281 | cat conftest.$ac_ext >&5 |
| 2282 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2283 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2284 | rm -f conftest.$ac_objext conftest.$ac_ext |
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 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2287 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2288 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2289 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2290 | elif test $ac_cv_prog_cc_g = yes; then |
| 2291 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2292 | CFLAGS="-g -O2" |
| 2293 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2294 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2295 | fi |
| 2296 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2297 | if test "$GCC" = yes; then |
| 2298 | CFLAGS="-O2" |
| 2299 | else |
| 2300 | CFLAGS= |
| 2301 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2302 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2303 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2304 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2305 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2306 | # the declaration of exit, since it's the most demanding environment. |
| 2307 | cat >conftest.$ac_ext <<_ACEOF |
| 2308 | #ifndef __cplusplus |
| 2309 | choke me |
| 2310 | #endif |
| 2311 | _ACEOF |
| 2312 | rm -f conftest.$ac_objext |
| 2313 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2314 | (eval $ac_compile) 2>&5 |
| 2315 | ac_status=$? |
| 2316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2317 | (exit $ac_status); } && |
| 2318 | { ac_try='test -s conftest.$ac_objext' |
| 2319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2320 | (eval $ac_try) 2>&5 |
| 2321 | ac_status=$? |
| 2322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2323 | (exit $ac_status); }; }; then |
| 2324 | for ac_declaration in \ |
| 2325 | ''\ |
| 2326 | '#include <stdlib.h>' \ |
| 2327 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2328 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2329 | 'extern "C" void exit (int) throw ();' \ |
| 2330 | 'extern "C" void exit (int);' \ |
| 2331 | 'void exit (int);' |
| 2332 | do |
| 2333 | cat >conftest.$ac_ext <<_ACEOF |
| 2334 | #line $LINENO "configure" |
| 2335 | #include "confdefs.h" |
| 2336 | #include <stdlib.h> |
| 2337 | $ac_declaration |
| 2338 | #ifdef F77_DUMMY_MAIN |
| 2339 | # ifdef __cplusplus |
| 2340 | extern "C" |
| 2341 | # endif |
| 2342 | int F77_DUMMY_MAIN() { return 1; } |
| 2343 | #endif |
| 2344 | int |
| 2345 | main () |
| 2346 | { |
| 2347 | exit (42); |
| 2348 | ; |
| 2349 | return 0; |
| 2350 | } |
| 2351 | _ACEOF |
| 2352 | rm -f conftest.$ac_objext |
| 2353 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2354 | (eval $ac_compile) 2>&5 |
| 2355 | ac_status=$? |
| 2356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2357 | (exit $ac_status); } && |
| 2358 | { ac_try='test -s conftest.$ac_objext' |
| 2359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2360 | (eval $ac_try) 2>&5 |
| 2361 | ac_status=$? |
| 2362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2363 | (exit $ac_status); }; }; then |
| 2364 | : |
| 2365 | else |
| 2366 | echo "$as_me: failed program was:" >&5 |
| 2367 | cat conftest.$ac_ext >&5 |
| 2368 | continue |
| 2369 | fi |
| 2370 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2371 | cat >conftest.$ac_ext <<_ACEOF |
| 2372 | #line $LINENO "configure" |
| 2373 | #include "confdefs.h" |
| 2374 | $ac_declaration |
| 2375 | #ifdef F77_DUMMY_MAIN |
| 2376 | # ifdef __cplusplus |
| 2377 | extern "C" |
| 2378 | # endif |
| 2379 | int F77_DUMMY_MAIN() { return 1; } |
| 2380 | #endif |
| 2381 | int |
| 2382 | main () |
| 2383 | { |
| 2384 | exit (42); |
| 2385 | ; |
| 2386 | return 0; |
| 2387 | } |
| 2388 | _ACEOF |
| 2389 | rm -f conftest.$ac_objext |
| 2390 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2391 | (eval $ac_compile) 2>&5 |
| 2392 | ac_status=$? |
| 2393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2394 | (exit $ac_status); } && |
| 2395 | { ac_try='test -s conftest.$ac_objext' |
| 2396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2397 | (eval $ac_try) 2>&5 |
| 2398 | ac_status=$? |
| 2399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2400 | (exit $ac_status); }; }; then |
| 2401 | break |
| 2402 | else |
| 2403 | echo "$as_me: failed program was:" >&5 |
| 2404 | cat conftest.$ac_ext >&5 |
| 2405 | fi |
| 2406 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2407 | done |
| 2408 | rm -f conftest* |
| 2409 | if test -n "$ac_declaration"; then |
| 2410 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2411 | echo $ac_declaration >>confdefs.h |
| 2412 | echo '#endif' >>confdefs.h |
| 2413 | fi |
| 2414 | |
| 2415 | else |
| 2416 | echo "$as_me: failed program was:" >&5 |
| 2417 | cat conftest.$ac_ext >&5 |
| 2418 | fi |
| 2419 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2420 | ac_ext=c |
| 2421 | ac_cpp='$CPP $CPPFLAGS' |
| 2422 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2423 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2424 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2425 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2426 | |
| 2427 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2428 | |
| 2429 | ac_ext=c |
| 2430 | ac_cpp='$CPP $CPPFLAGS' |
| 2431 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2432 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2433 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2434 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2435 | 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] | 2436 | # On Suns, sometimes $CPP names a directory. |
| 2437 | if test -n "$CPP" && test -d "$CPP"; then |
| 2438 | CPP= |
| 2439 | fi |
| 2440 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2441 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2443 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2444 | # Double quotes because CPP needs to be expanded |
| 2445 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2446 | do |
| 2447 | ac_preproc_ok=false |
| 2448 | for ac_c_preproc_warn_flag in '' yes |
| 2449 | do |
| 2450 | # Use a header file that comes with gcc, so configuring glibc |
| 2451 | # with a fresh cross-compiler works. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2452 | # 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] | 2453 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2454 | cat >conftest.$ac_ext <<_ACEOF |
| 2455 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2456 | #include "confdefs.h" |
| 2457 | #include <assert.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2458 | Syntax error |
| 2459 | _ACEOF |
| 2460 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2461 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2462 | ac_status=$? |
| 2463 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2464 | rm -f conftest.er1 |
| 2465 | cat conftest.err >&5 |
| 2466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2467 | (exit $ac_status); } >/dev/null; then |
| 2468 | if test -s conftest.err; then |
| 2469 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2470 | else |
| 2471 | ac_cpp_err= |
| 2472 | fi |
| 2473 | else |
| 2474 | ac_cpp_err=yes |
| 2475 | fi |
| 2476 | if test -z "$ac_cpp_err"; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2477 | : |
| 2478 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2479 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2480 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2481 | # Broken: fails on valid input. |
| 2482 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2483 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2484 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2485 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2486 | # OK, works on sane cases. Now check whether non-existent headers |
| 2487 | # can be detected and how. |
| 2488 | cat >conftest.$ac_ext <<_ACEOF |
| 2489 | #line $LINENO "configure" |
| 2490 | #include "confdefs.h" |
| 2491 | #include <ac_nonexistent.h> |
| 2492 | _ACEOF |
| 2493 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2494 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2495 | ac_status=$? |
| 2496 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2497 | rm -f conftest.er1 |
| 2498 | cat conftest.err >&5 |
| 2499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2500 | (exit $ac_status); } >/dev/null; then |
| 2501 | if test -s conftest.err; then |
| 2502 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2503 | else |
| 2504 | ac_cpp_err= |
| 2505 | fi |
| 2506 | else |
| 2507 | ac_cpp_err=yes |
| 2508 | fi |
| 2509 | if test -z "$ac_cpp_err"; then |
| 2510 | # Broken: success on invalid input. |
| 2511 | continue |
| 2512 | else |
| 2513 | echo "$as_me: failed program was:" >&5 |
| 2514 | cat conftest.$ac_ext >&5 |
| 2515 | # Passes both tests. |
| 2516 | ac_preproc_ok=: |
| 2517 | break |
| 2518 | fi |
| 2519 | rm -f conftest.err conftest.$ac_ext |
| 2520 | |
| 2521 | done |
| 2522 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2523 | rm -f conftest.err conftest.$ac_ext |
| 2524 | if $ac_preproc_ok; then |
| 2525 | break |
| 2526 | fi |
| 2527 | |
| 2528 | done |
| 2529 | ac_cv_prog_CPP=$CPP |
| 2530 | |
| 2531 | fi |
| 2532 | CPP=$ac_cv_prog_CPP |
| 2533 | else |
| 2534 | ac_cv_prog_CPP=$CPP |
| 2535 | fi |
| 2536 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2537 | echo "${ECHO_T}$CPP" >&6 |
| 2538 | ac_preproc_ok=false |
| 2539 | for ac_c_preproc_warn_flag in '' yes |
| 2540 | do |
| 2541 | # Use a header file that comes with gcc, so configuring glibc |
| 2542 | # with a fresh cross-compiler works. |
| 2543 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2544 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2545 | cat >conftest.$ac_ext <<_ACEOF |
| 2546 | #line $LINENO "configure" |
| 2547 | #include "confdefs.h" |
| 2548 | #include <assert.h> |
| 2549 | Syntax error |
| 2550 | _ACEOF |
| 2551 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2552 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2553 | ac_status=$? |
| 2554 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2555 | rm -f conftest.er1 |
| 2556 | cat conftest.err >&5 |
| 2557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2558 | (exit $ac_status); } >/dev/null; then |
| 2559 | if test -s conftest.err; then |
| 2560 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2561 | else |
| 2562 | ac_cpp_err= |
| 2563 | fi |
| 2564 | else |
| 2565 | ac_cpp_err=yes |
| 2566 | fi |
| 2567 | if test -z "$ac_cpp_err"; then |
| 2568 | : |
| 2569 | else |
| 2570 | echo "$as_me: failed program was:" >&5 |
| 2571 | cat conftest.$ac_ext >&5 |
| 2572 | # Broken: fails on valid input. |
| 2573 | continue |
| 2574 | fi |
| 2575 | rm -f conftest.err conftest.$ac_ext |
| 2576 | |
| 2577 | # OK, works on sane cases. Now check whether non-existent headers |
| 2578 | # can be detected and how. |
| 2579 | cat >conftest.$ac_ext <<_ACEOF |
| 2580 | #line $LINENO "configure" |
| 2581 | #include "confdefs.h" |
| 2582 | #include <ac_nonexistent.h> |
| 2583 | _ACEOF |
| 2584 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2585 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2586 | ac_status=$? |
| 2587 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2588 | rm -f conftest.er1 |
| 2589 | cat conftest.err >&5 |
| 2590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2591 | (exit $ac_status); } >/dev/null; then |
| 2592 | if test -s conftest.err; then |
| 2593 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2594 | else |
| 2595 | ac_cpp_err= |
| 2596 | fi |
| 2597 | else |
| 2598 | ac_cpp_err=yes |
| 2599 | fi |
| 2600 | if test -z "$ac_cpp_err"; then |
| 2601 | # Broken: success on invalid input. |
| 2602 | continue |
| 2603 | else |
| 2604 | echo "$as_me: failed program was:" >&5 |
| 2605 | cat conftest.$ac_ext >&5 |
| 2606 | # Passes both tests. |
| 2607 | ac_preproc_ok=: |
| 2608 | break |
| 2609 | fi |
| 2610 | rm -f conftest.err conftest.$ac_ext |
| 2611 | |
| 2612 | done |
| 2613 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2614 | rm -f conftest.err conftest.$ac_ext |
| 2615 | if $ac_preproc_ok; then |
| 2616 | : |
| 2617 | else |
| 2618 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
| 2619 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
| 2620 | { (exit 1); exit 1; }; } |
| 2621 | fi |
| 2622 | |
| 2623 | ac_ext=c |
| 2624 | ac_cpp='$CPP $CPPFLAGS' |
| 2625 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2626 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2627 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2628 | |
| 2629 | |
| 2630 | |
| 2631 | echo "$as_me:$LINENO: checking for AIX" >&5 |
| 2632 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 2633 | cat >conftest.$ac_ext <<_ACEOF |
| 2634 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2635 | #include "confdefs.h" |
| 2636 | #ifdef _AIX |
| 2637 | yes |
| 2638 | #endif |
| 2639 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2640 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2641 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2642 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2643 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2644 | echo "${ECHO_T}yes" >&6 |
| 2645 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2646 | #define _ALL_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2647 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2648 | |
| 2649 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2650 | echo "$as_me:$LINENO: result: no" >&5 |
| 2651 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2652 | fi |
| 2653 | rm -f conftest* |
| 2654 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2655 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2656 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 2657 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 2658 | if test "${ac_cv_header_stdc+set}" = set; then |
| 2659 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2660 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2661 | cat >conftest.$ac_ext <<_ACEOF |
| 2662 | #line $LINENO "configure" |
| 2663 | #include "confdefs.h" |
| 2664 | #include <stdlib.h> |
| 2665 | #include <stdarg.h> |
| 2666 | #include <string.h> |
| 2667 | #include <float.h> |
| 2668 | |
| 2669 | _ACEOF |
| 2670 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2671 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2672 | ac_status=$? |
| 2673 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2674 | rm -f conftest.er1 |
| 2675 | cat conftest.err >&5 |
| 2676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2677 | (exit $ac_status); } >/dev/null; then |
| 2678 | if test -s conftest.err; then |
| 2679 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2680 | else |
| 2681 | ac_cpp_err= |
| 2682 | fi |
| 2683 | else |
| 2684 | ac_cpp_err=yes |
| 2685 | fi |
| 2686 | if test -z "$ac_cpp_err"; then |
| 2687 | ac_cv_header_stdc=yes |
| 2688 | else |
| 2689 | echo "$as_me: failed program was:" >&5 |
| 2690 | cat conftest.$ac_ext >&5 |
| 2691 | ac_cv_header_stdc=no |
| 2692 | fi |
| 2693 | rm -f conftest.err conftest.$ac_ext |
| 2694 | |
| 2695 | if test $ac_cv_header_stdc = yes; then |
| 2696 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 2697 | cat >conftest.$ac_ext <<_ACEOF |
| 2698 | #line $LINENO "configure" |
| 2699 | #include "confdefs.h" |
| 2700 | #include <string.h> |
| 2701 | |
| 2702 | _ACEOF |
| 2703 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2704 | egrep "memchr" >/dev/null 2>&1; then |
| 2705 | : |
| 2706 | else |
| 2707 | ac_cv_header_stdc=no |
| 2708 | fi |
| 2709 | rm -f conftest* |
| 2710 | |
| 2711 | fi |
| 2712 | |
| 2713 | if test $ac_cv_header_stdc = yes; then |
| 2714 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 2715 | cat >conftest.$ac_ext <<_ACEOF |
| 2716 | #line $LINENO "configure" |
| 2717 | #include "confdefs.h" |
| 2718 | #include <stdlib.h> |
| 2719 | |
| 2720 | _ACEOF |
| 2721 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2722 | egrep "free" >/dev/null 2>&1; then |
| 2723 | : |
| 2724 | else |
| 2725 | ac_cv_header_stdc=no |
| 2726 | fi |
| 2727 | rm -f conftest* |
| 2728 | |
| 2729 | fi |
| 2730 | |
| 2731 | if test $ac_cv_header_stdc = yes; then |
| 2732 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 2733 | if test "$cross_compiling" = yes; then |
| 2734 | : |
| 2735 | else |
| 2736 | cat >conftest.$ac_ext <<_ACEOF |
| 2737 | #line $LINENO "configure" |
| 2738 | #include "confdefs.h" |
| 2739 | #include <ctype.h> |
| 2740 | #if ((' ' & 0x0FF) == 0x020) |
| 2741 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 2742 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 2743 | #else |
| 2744 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 2745 | || ('j' <= (c) && (c) <= 'r') \ |
| 2746 | || ('s' <= (c) && (c) <= 'z')) |
| 2747 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 2748 | #endif |
| 2749 | |
| 2750 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 2751 | int |
| 2752 | main () |
| 2753 | { |
| 2754 | int i; |
| 2755 | for (i = 0; i < 256; i++) |
| 2756 | if (XOR (islower (i), ISLOWER (i)) |
| 2757 | || toupper (i) != TOUPPER (i)) |
| 2758 | exit(2); |
| 2759 | exit (0); |
| 2760 | } |
| 2761 | _ACEOF |
| 2762 | rm -f conftest$ac_exeext |
| 2763 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2764 | (eval $ac_link) 2>&5 |
| 2765 | ac_status=$? |
| 2766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2767 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 2768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2769 | (eval $ac_try) 2>&5 |
| 2770 | ac_status=$? |
| 2771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2772 | (exit $ac_status); }; }; then |
| 2773 | : |
| 2774 | else |
| 2775 | echo "$as_me: program exited with status $ac_status" >&5 |
| 2776 | echo "$as_me: failed program was:" >&5 |
| 2777 | cat conftest.$ac_ext >&5 |
| 2778 | ( exit $ac_status ) |
| 2779 | ac_cv_header_stdc=no |
| 2780 | fi |
| 2781 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 2782 | fi |
| 2783 | fi |
| 2784 | fi |
| 2785 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 2786 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 2787 | if test $ac_cv_header_stdc = yes; then |
| 2788 | |
| 2789 | cat >>confdefs.h <<\_ACEOF |
| 2790 | #define STDC_HEADERS 1 |
| 2791 | _ACEOF |
| 2792 | |
| 2793 | fi |
| 2794 | |
| 2795 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 2796 | |
| 2797 | |
| 2798 | |
| 2799 | |
| 2800 | |
| 2801 | |
| 2802 | |
| 2803 | |
| 2804 | |
| 2805 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 2806 | inttypes.h stdint.h unistd.h |
| 2807 | do |
| 2808 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 2809 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 2810 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 2811 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 2812 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2813 | else |
| 2814 | cat >conftest.$ac_ext <<_ACEOF |
| 2815 | #line $LINENO "configure" |
| 2816 | #include "confdefs.h" |
| 2817 | $ac_includes_default |
| 2818 | |
| 2819 | #include <$ac_header> |
| 2820 | _ACEOF |
| 2821 | rm -f conftest.$ac_objext |
| 2822 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2823 | (eval $ac_compile) 2>&5 |
| 2824 | ac_status=$? |
| 2825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2826 | (exit $ac_status); } && |
| 2827 | { ac_try='test -s conftest.$ac_objext' |
| 2828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2829 | (eval $ac_try) 2>&5 |
| 2830 | ac_status=$? |
| 2831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2832 | (exit $ac_status); }; }; then |
| 2833 | eval "$as_ac_Header=yes" |
| 2834 | else |
| 2835 | echo "$as_me: failed program was:" >&5 |
| 2836 | cat conftest.$ac_ext >&5 |
| 2837 | eval "$as_ac_Header=no" |
| 2838 | fi |
| 2839 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2840 | fi |
| 2841 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 2842 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 2843 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 2844 | cat >>confdefs.h <<_ACEOF |
| 2845 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 2846 | _ACEOF |
| 2847 | |
| 2848 | fi |
| 2849 | |
| 2850 | done |
| 2851 | |
| 2852 | |
| 2853 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2854 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 2855 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 2856 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2858 | fi |
| 2859 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 2860 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 2861 | else |
| 2862 | # Is the header compilable? |
| 2863 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5 |
| 2864 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 |
| 2865 | cat >conftest.$ac_ext <<_ACEOF |
| 2866 | #line $LINENO "configure" |
| 2867 | #include "confdefs.h" |
| 2868 | $ac_includes_default |
| 2869 | #include <minix/config.h> |
| 2870 | _ACEOF |
| 2871 | rm -f conftest.$ac_objext |
| 2872 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2873 | (eval $ac_compile) 2>&5 |
| 2874 | ac_status=$? |
| 2875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2876 | (exit $ac_status); } && |
| 2877 | { ac_try='test -s conftest.$ac_objext' |
| 2878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2879 | (eval $ac_try) 2>&5 |
| 2880 | ac_status=$? |
| 2881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2882 | (exit $ac_status); }; }; then |
| 2883 | ac_header_compiler=yes |
| 2884 | else |
| 2885 | echo "$as_me: failed program was:" >&5 |
| 2886 | cat conftest.$ac_ext >&5 |
| 2887 | ac_header_compiler=no |
| 2888 | fi |
| 2889 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2890 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 2891 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 2892 | |
| 2893 | # Is the header present? |
| 2894 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5 |
| 2895 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 |
| 2896 | cat >conftest.$ac_ext <<_ACEOF |
| 2897 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2898 | #include "confdefs.h" |
| 2899 | #include <minix/config.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2900 | _ACEOF |
| 2901 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2902 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2903 | ac_status=$? |
| 2904 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2905 | rm -f conftest.er1 |
| 2906 | cat conftest.err >&5 |
| 2907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2908 | (exit $ac_status); } >/dev/null; then |
| 2909 | if test -s conftest.err; then |
| 2910 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2911 | else |
| 2912 | ac_cpp_err= |
| 2913 | fi |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2914 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2915 | ac_cpp_err=yes |
| 2916 | fi |
| 2917 | if test -z "$ac_cpp_err"; then |
| 2918 | ac_header_preproc=yes |
| 2919 | else |
| 2920 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2921 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2922 | ac_header_preproc=no |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2923 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2924 | rm -f conftest.err conftest.$ac_ext |
| 2925 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 2926 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 2927 | |
| 2928 | # So? What about this header? |
| 2929 | case $ac_header_compiler:$ac_header_preproc in |
| 2930 | yes:no ) |
| 2931 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 2932 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 2933 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 2934 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};; |
| 2935 | no:yes ) |
| 2936 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 |
| 2937 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} |
| 2938 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 |
| 2939 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} |
| 2940 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 2941 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};; |
| 2942 | esac |
| 2943 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 2944 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 2945 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2946 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2947 | else |
| 2948 | ac_cv_header_minix_config_h=$ac_header_preproc |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2949 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2950 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 2951 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 2952 | |
| 2953 | fi |
| 2954 | if test $ac_cv_header_minix_config_h = yes; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2955 | MINIX=yes |
| 2956 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2957 | MINIX= |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2958 | fi |
| 2959 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2960 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2961 | if test "$MINIX" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2962 | |
| 2963 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2964 | #define _POSIX_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2965 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2966 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2967 | |
| 2968 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2969 | #define _POSIX_1_SOURCE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2970 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2971 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2972 | |
| 2973 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2974 | #define _MINIX 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2975 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2976 | |
| 2977 | fi |
| 2978 | |
| 2979 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2980 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2981 | echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 2982 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2983 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 2984 | # Check whether --with-suffix or --without-suffix was given. |
| 2985 | if test "${with_suffix+set}" = set; then |
| 2986 | withval="$with_suffix" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2987 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 2988 | case $withval in |
| 2989 | no) EXEEXT=;; |
| 2990 | yes) EXEEXT=.exe;; |
| 2991 | *) EXEEXT=$withval;; |
| 2992 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2993 | fi; |
| 2994 | echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 2995 | echo "${ECHO_T}$EXEEXT" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 2996 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 2997 | # Test whether we're running on a non-case-sensitive system, in which |
| 2998 | # case we give a warning if no ext is given |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 2999 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3000 | echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3001 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6 |
Jack Jansen | 0b06be7 | 2002-06-21 14:48:38 +0000 | [diff] [blame] | 3002 | if test -d "${srcdir}/python" |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3003 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3004 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3005 | echo "${ECHO_T}yes" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3006 | BUILDEXEEXT=.exe |
| 3007 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3008 | echo "$as_me:$LINENO: result: no" >&5 |
| 3009 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3010 | BUILDEXEEXT=$EXEEXT |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3011 | fi |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 3012 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 3013 | case $MACHDEP in |
| 3014 | bsdos*) |
| 3015 | case $CC in |
| 3016 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3017 | esac;; |
| 3018 | esac |
| 3019 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3020 | case $ac_sys_system in |
| 3021 | hp*|HP*) |
| 3022 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 3023 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3024 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3025 | Monterey*) |
| 3026 | case $CC in |
| 3027 | cc) CC="$CC -Wl,-Bexport";; |
| 3028 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3029 | SunOS*) |
| 3030 | # 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] | 3031 | |
| 3032 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3033 | #define __EXTENSIONS__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3034 | _ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3035 | |
| 3036 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3037 | esac |
| 3038 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3039 | |
| 3040 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3041 | echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3042 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3043 | if test -z "$LIBRARY" |
| 3044 | then |
| 3045 | LIBRARY='libpython$(VERSION).a' |
| 3046 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3047 | echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3048 | echo "${ECHO_T}$LIBRARY" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3049 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3050 | # 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] | 3051 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3052 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3053 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3054 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3055 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3056 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3057 | # DLLLIBRARY is the shared (i.e., DLL) library. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3058 | # |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3059 | # RUNSHARED is used to run shared python without installed libraries |
| 3060 | # |
| 3061 | # INSTSONAME is the name of the shared library that will be use to install |
| 3062 | # on the system - some systems like version suffix, others don't |
| 3063 | |
| 3064 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3065 | |
| 3066 | |
| 3067 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3068 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3069 | LDLIBRARY="$LIBRARY" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3070 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 09bdf72 | 2002-05-08 08:51:29 +0000 | [diff] [blame] | 3071 | INSTSONAME='$(LDLIBRARY)' |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 3072 | DLLLIBRARY='' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3073 | LDLIBRARYDIR='' |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3074 | RUNSHARED='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3075 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3076 | # 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] | 3077 | # If CXX is set, and if it is needed to link a main function that was |
| 3078 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3079 | # python might then depend on the C++ runtime |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3080 | # 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] | 3081 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3082 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3083 | echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3084 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3085 | if test -z "$LINKCC" |
| 3086 | then |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3087 | if test -z "$CXX"; then |
| 3088 | LINKCC="\$(PURIFY) \$(CC)" |
| 3089 | else |
Martin v. Löwis | 1931ca7 | 2002-06-01 21:39:58 +0000 | [diff] [blame] | 3090 | 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] | 3091 | $CXX -c conftest.$ac_ext 2>&5 |
| 3092 | if $CC -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 3093 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 3094 | then |
| 3095 | LINKCC="\$(PURIFY) \$(CC)" |
| 3096 | else |
| 3097 | LINKCC="\$(PURIFY) \$(CXX)" |
| 3098 | fi |
| 3099 | rm -fr conftest* |
| 3100 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3101 | case $ac_sys_system in |
| 3102 | AIX*) |
Jack Jansen | 524a098 | 2002-03-12 15:25:52 +0000 | [diff] [blame] | 3103 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp \"\" \$(LIBRARY); $LINKCC";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 3104 | dgux*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3105 | LINKCC="LD_RUN_PATH=$libdir $LINKCC";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3106 | Monterey64*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3107 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3108 | esac |
| 3109 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3110 | echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3111 | echo "${ECHO_T}$LINKCC" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3112 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3113 | echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 3114 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3115 | # Check whether --enable-shared or --disable-shared was given. |
| 3116 | if test "${enable_shared+set}" = set; then |
| 3117 | enableval="$enable_shared" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3118 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3119 | fi; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3120 | |
| 3121 | if test -z "$enable_shared" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3122 | then |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3123 | case $ac_sys_system in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3124 | CYGWIN* | atheos*) |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3125 | enable_shared="yes";; |
| 3126 | *) |
| 3127 | enable_shared="no";; |
| 3128 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3129 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3130 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 3131 | echo "${ECHO_T}$enable_shared" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3132 | |
| 3133 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3134 | echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 3135 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3136 | |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 3137 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 3138 | # library that we build, but we do not want to link against it (we |
| 3139 | # will find it with a -framework option). For this reason there is an |
| 3140 | # extra variable BLDLIBRARY against which Python and the extension |
| 3141 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 3142 | # LDLIBRARY, but empty for MacOSX framework builds. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3143 | if test "$enable_framework" |
| 3144 | then |
| 3145 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 3146 | LDLIBRARYDIR='$(PYTHONFRAMEWORKDIR)' |
| 3147 | BLDLIBRARY='' |
| 3148 | else |
| 3149 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3150 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3151 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3152 | # Other platforms follow |
| 3153 | if test $enable_shared = "yes"; then |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 3154 | |
| 3155 | cat >>confdefs.h <<\_ACEOF |
| 3156 | #define Py_ENABLE_SHARED 1 |
| 3157 | _ACEOF |
| 3158 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3159 | case $ac_sys_system in |
| 3160 | BeOS*) |
| 3161 | LDLIBRARY='libpython$(VERSION).so' |
| 3162 | ;; |
| 3163 | CYGWIN*) |
| 3164 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3165 | DLLLIBRARY='libpython$(VERSION).dll' |
| 3166 | ;; |
| 3167 | SunOS*) |
| 3168 | LDLIBRARY='libpython$(VERSION).so' |
| 3169 | BLDLIBRARY='-Wl,-rpath,$(LIBDIR) -L. -lpython$(VERSION)' |
| 3170 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3171 | ;; |
Martin v. Löwis | 1bc894b | 2002-07-30 20:19:58 +0000 | [diff] [blame] | 3172 | Linux*|GNU*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3173 | LDLIBRARY='libpython$(VERSION).so' |
| 3174 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3175 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3176 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 3177 | ;; |
| 3178 | hp*|HP*) |
| 3179 | LDLIBRARY='libpython$(VERSION).sl' |
| 3180 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| 3181 | RUNSHARED=SHLIB_PATH=`pwd`:$SHLIB_PATH |
| 3182 | ;; |
| 3183 | OSF*) |
| 3184 | LDLIBRARY='libpython$(VERSION).so' |
| 3185 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| 3186 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3187 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3188 | atheos*) |
| 3189 | LDLIBRARY='libpython$(VERSION).so' |
| 3190 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3191 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 3192 | ;; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3193 | esac |
| 3194 | # DG/UX requires some fancy ld contortions to produce a .so from an .a |
| 3195 | case $MACHDEP in |
| 3196 | dguxR4) |
| 3197 | LDLIBRARY='libpython$(VERSION).so' |
| 3198 | OPT="$OPT -pic" |
| 3199 | ;; |
| 3200 | esac |
| 3201 | fi |
| 3202 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3203 | echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 3204 | echo "${ECHO_T}$LDLIBRARY" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3205 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3206 | if test -n "$ac_tool_prefix"; then |
| 3207 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3208 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3209 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3210 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3211 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3213 | else |
| 3214 | if test -n "$RANLIB"; then |
| 3215 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3216 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3218 | for as_dir in $PATH |
| 3219 | do |
| 3220 | IFS=$as_save_IFS |
| 3221 | test -z "$as_dir" && as_dir=. |
| 3222 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3223 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3224 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3225 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3226 | break 2 |
| 3227 | fi |
| 3228 | done |
| 3229 | done |
| 3230 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3231 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3232 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3233 | RANLIB=$ac_cv_prog_RANLIB |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3234 | if test -n "$RANLIB"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3235 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3236 | echo "${ECHO_T}$RANLIB" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3237 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3238 | echo "$as_me:$LINENO: result: no" >&5 |
| 3239 | echo "${ECHO_T}no" >&6 |
| 3240 | fi |
| 3241 | |
| 3242 | fi |
| 3243 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3244 | ac_ct_RANLIB=$RANLIB |
| 3245 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3246 | set dummy ranlib; ac_word=$2 |
| 3247 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3248 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3249 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3250 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3251 | else |
| 3252 | if test -n "$ac_ct_RANLIB"; then |
| 3253 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3254 | else |
| 3255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3256 | for as_dir in $PATH |
| 3257 | do |
| 3258 | IFS=$as_save_IFS |
| 3259 | test -z "$as_dir" && as_dir=. |
| 3260 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3261 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3262 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3263 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3264 | break 2 |
| 3265 | fi |
| 3266 | done |
| 3267 | done |
| 3268 | |
| 3269 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3270 | fi |
| 3271 | fi |
| 3272 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3273 | if test -n "$ac_ct_RANLIB"; then |
| 3274 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3275 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3276 | else |
| 3277 | echo "$as_me:$LINENO: result: no" >&5 |
| 3278 | echo "${ECHO_T}no" >&6 |
| 3279 | fi |
| 3280 | |
| 3281 | RANLIB=$ac_ct_RANLIB |
| 3282 | else |
| 3283 | RANLIB="$ac_cv_prog_RANLIB" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3284 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3285 | |
| 3286 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3287 | for ac_prog in ar aal |
| 3288 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3289 | # 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] | 3290 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3291 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3292 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3293 | if test "${ac_cv_prog_AR+set}" = set; then |
| 3294 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3295 | else |
| 3296 | if test -n "$AR"; then |
| 3297 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3298 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3299 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3300 | for as_dir in $PATH |
| 3301 | do |
| 3302 | IFS=$as_save_IFS |
| 3303 | test -z "$as_dir" && as_dir=. |
| 3304 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3305 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3306 | ac_cv_prog_AR="$ac_prog" |
| 3307 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3308 | break 2 |
| 3309 | fi |
| 3310 | done |
| 3311 | done |
| 3312 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3313 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3314 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3315 | AR=$ac_cv_prog_AR |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3316 | if test -n "$AR"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3317 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 3318 | echo "${ECHO_T}$AR" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3319 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3320 | echo "$as_me:$LINENO: result: no" >&5 |
| 3321 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3322 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3323 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3324 | test -n "$AR" && break |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3325 | done |
| 3326 | test -n "$AR" || AR="ar" |
| 3327 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3328 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3329 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 3330 | bsdos*|hp*|HP*) |
| 3331 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3332 | if test -z "$INSTALL" |
| 3333 | then |
| 3334 | INSTALL="${srcdir}/install-sh -c" |
| 3335 | fi |
| 3336 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3337 | ac_aux_dir= |
| 3338 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 3339 | if test -f $ac_dir/install-sh; then |
| 3340 | ac_aux_dir=$ac_dir |
| 3341 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3342 | break |
| 3343 | elif test -f $ac_dir/install.sh; then |
| 3344 | ac_aux_dir=$ac_dir |
| 3345 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3346 | break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3347 | elif test -f $ac_dir/shtool; then |
| 3348 | ac_aux_dir=$ac_dir |
| 3349 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3350 | break |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3351 | fi |
| 3352 | done |
| 3353 | if test -z "$ac_aux_dir"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3354 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 3355 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 3356 | { (exit 1); exit 1; }; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3357 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3358 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 3359 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 3360 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3361 | |
| 3362 | # Find a good install program. We prefer a C program (faster), |
| 3363 | # so one script is as good as another. But avoid the broken or |
| 3364 | # incompatible versions: |
| 3365 | # SysV /etc/install, /usr/sbin/install |
| 3366 | # SunOS /usr/etc/install |
| 3367 | # IRIX /sbin/install |
| 3368 | # AIX /bin/install |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3369 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3370 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3371 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3372 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3373 | # ./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] | 3374 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 3375 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3376 | if test -z "$INSTALL"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3377 | if test "${ac_cv_path_install+set}" = set; then |
| 3378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3379 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3381 | for as_dir in $PATH |
| 3382 | do |
| 3383 | IFS=$as_save_IFS |
| 3384 | test -z "$as_dir" && as_dir=. |
| 3385 | # Account for people who put trailing slashes in PATH elements. |
| 3386 | case $as_dir/ in |
| 3387 | ./ | .// | /cC/* | \ |
| 3388 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3389 | /usr/ucb/* ) ;; |
| 3390 | *) |
| 3391 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3392 | # Don't use installbsd from OSF since it installs stuff as root |
| 3393 | # by default. |
| 3394 | for ac_prog in ginstall scoinst install; do |
| 3395 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3396 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3397 | if test $ac_prog = install && |
| 3398 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3399 | # AIX install. It has an incompatible calling convention. |
| 3400 | : |
| 3401 | elif test $ac_prog = install && |
| 3402 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3403 | # program-specific install script used by HP pwplus--don't use. |
| 3404 | : |
| 3405 | else |
| 3406 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3407 | break 3 |
| 3408 | fi |
| 3409 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3410 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3411 | done |
| 3412 | ;; |
| 3413 | esac |
| 3414 | done |
| 3415 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3416 | |
| 3417 | fi |
| 3418 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3419 | INSTALL=$ac_cv_path_install |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3420 | else |
| 3421 | # As a last resort, use the slow shell script. We don't cache a |
| 3422 | # path for INSTALL within a source directory, because that will |
| 3423 | # break other packages using the cache if that directory is |
| 3424 | # removed, or if the path is relative. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3425 | INSTALL=$ac_install_sh |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3426 | fi |
| 3427 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3428 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 3429 | echo "${ECHO_T}$INSTALL" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3430 | |
| 3431 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3432 | # It thinks the first close brace ends the variable substitution. |
| 3433 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3434 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3435 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3436 | |
| 3437 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3438 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3439 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3440 | # Not every filesystem supports hard links |
| 3441 | |
| 3442 | if test -z "$LN" ; then |
| 3443 | case $ac_sys_system in |
| 3444 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3445 | CYGWIN*) LN="ln -s";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3446 | atheos*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3447 | *) LN=ln;; |
| 3448 | esac |
| 3449 | fi |
| 3450 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3451 | # Check for --with-pydebug |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3452 | echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 3453 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6 |
| 3454 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3455 | # Check whether --with-pydebug or --without-pydebug was given. |
| 3456 | if test "${with_pydebug+set}" = set; then |
| 3457 | withval="$with_pydebug" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3458 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3459 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3460 | then |
| 3461 | |
| 3462 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3463 | #define Py_DEBUG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3464 | _ACEOF |
| 3465 | |
| 3466 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3467 | echo "${ECHO_T}yes" >&6; |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 3468 | Py_DEBUG='true' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3469 | else echo "$as_me:$LINENO: result: no" >&5 |
| 3470 | echo "${ECHO_T}no" >&6; Py_DEBUG='false' |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3471 | fi |
| 3472 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3473 | echo "$as_me:$LINENO: result: no" >&5 |
| 3474 | echo "${ECHO_T}no" >&6 |
| 3475 | fi; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3476 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3477 | # Optimizer/debugger flags |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3478 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3479 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3480 | then |
Neal Norwitz | d957f39 | 2002-09-25 21:26:19 +0000 | [diff] [blame] | 3481 | case $GCC in |
Guido van Rossum | edca74a | 1997-07-18 23:29:40 +0000 | [diff] [blame] | 3482 | yes) |
| 3483 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3484 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3485 | if test "$Py_DEBUG" = 'true' ; then |
| 3486 | # Optimization messes up debuggers, so turn it off for |
| 3487 | # debug builds. |
| 3488 | OPT="-g -Wall -Wstrict-prototypes" |
| 3489 | else |
| 3490 | OPT="-g -O3 -Wall -Wstrict-prototypes" |
| 3491 | fi;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3492 | *) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3493 | OPT="-O3 -Wall -Wstrict-prototypes";; |
| 3494 | esac |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3495 | case $ac_sys_system in |
| 3496 | SCO_SV*) OPT="$OPT -m486 -DSCO5";; |
| 3497 | esac |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3498 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3499 | *) |
| 3500 | case $ac_sys_system in |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 3501 | OpenUNIX*|UnixWare*) |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3502 | OPT="-O -K pentium,host,inline,loop_unroll,alloca ";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3503 | SCO_SV*) |
| 3504 | CFLAGS="$CFLAGS -belf" |
| 3505 | OPT="-belf -O -Ki486 -DSCO5";; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3506 | *) |
| 3507 | OPT="-O";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3508 | esac |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3509 | esac |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3510 | case $ac_sys_system in |
| 3511 | Darwin*) |
Jack Jansen | 524a098 | 2002-03-12 15:25:52 +0000 | [diff] [blame] | 3512 | OPT="$OPT -Wno-long-double -no-cpp-precomp";; |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3513 | esac |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3514 | fi |
| 3515 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 3516 | if test "$Py_DEBUG" = 'true'; then |
| 3517 | : |
| 3518 | else |
| 3519 | OPT="-DNDEBUG $OPT" |
| 3520 | fi |
| 3521 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3522 | # The current (beta) Monterey compiler dies with optimizations |
| 3523 | case $ac_sys_system in |
| 3524 | Monterey*) OPT="";; |
| 3525 | esac |
| 3526 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3527 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3528 | then |
| 3529 | OPT="$OPT $ac_arch_flags" |
| 3530 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3531 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3532 | echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 3533 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6 |
| 3534 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 3535 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3536 | else |
| 3537 | ac_save_cc="$CC" |
| 3538 | CC="$CC -OPT:Olimit=0" |
| 3539 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3540 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3541 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3542 | cat >conftest.$ac_ext <<_ACEOF |
| 3543 | #line $LINENO "configure" |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3544 | #include "confdefs.h" |
| 3545 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3546 | _ACEOF |
| 3547 | rm -f conftest$ac_exeext |
| 3548 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3549 | (eval $ac_link) 2>&5 |
| 3550 | ac_status=$? |
| 3551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3552 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3554 | (eval $ac_try) 2>&5 |
| 3555 | ac_status=$? |
| 3556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3557 | (exit $ac_status); }; }; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3558 | ac_cv_opt_olimit_ok=yes |
| 3559 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3560 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3561 | echo "$as_me: failed program was:" >&5 |
| 3562 | cat conftest.$ac_ext >&5 |
| 3563 | ( exit $ac_status ) |
| 3564 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3565 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3566 | 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] | 3567 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3568 | CC="$ac_save_cc" |
| 3569 | fi |
| 3570 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3571 | echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 3572 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 3573 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3574 | case $ac_sys_system in |
| 3575 | Darwin*) OPT="$OPT" ;; |
| 3576 | *) OPT="$OPT -OPT:Olimit=0";; |
| 3577 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3578 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3579 | echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 3580 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6 |
| 3581 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 3582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3583 | else |
| 3584 | ac_save_cc="$CC" |
| 3585 | CC="$CC -Olimit 1500" |
| 3586 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3587 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3588 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3589 | cat >conftest.$ac_ext <<_ACEOF |
| 3590 | #line $LINENO "configure" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3591 | #include "confdefs.h" |
| 3592 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3593 | _ACEOF |
| 3594 | rm -f conftest$ac_exeext |
| 3595 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3596 | (eval $ac_link) 2>&5 |
| 3597 | ac_status=$? |
| 3598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3599 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3601 | (eval $ac_try) 2>&5 |
| 3602 | ac_status=$? |
| 3603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3604 | (exit $ac_status); }; }; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3605 | ac_cv_olimit_ok=yes |
| 3606 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3607 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3608 | echo "$as_me: failed program was:" >&5 |
| 3609 | cat conftest.$ac_ext >&5 |
| 3610 | ( exit $ac_status ) |
| 3611 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 3612 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3613 | 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] | 3614 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3615 | CC="$ac_save_cc" |
| 3616 | fi |
| 3617 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3618 | echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 3619 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3620 | if test $ac_cv_olimit_ok = yes; then |
| 3621 | OPT="$OPT -Olimit 1500" |
| 3622 | fi |
| 3623 | fi |
| 3624 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3625 | # On some compilers, pthreads are available without further options |
| 3626 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 3627 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 3628 | # So we have to see first whether pthreads are available without |
| 3629 | # options before we can check whether -Kpthread improves anything. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3630 | echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 3631 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6 |
| 3632 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 3633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3634 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3635 | if test "$cross_compiling" = yes; then |
| 3636 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3637 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3638 | cat >conftest.$ac_ext <<_ACEOF |
| 3639 | #line $LINENO "configure" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3640 | #include "confdefs.h" |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3641 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3642 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3643 | |
| 3644 | void* routine(void* p){return NULL;} |
| 3645 | |
| 3646 | int main(){ |
| 3647 | pthread_t p; |
| 3648 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3649 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3650 | (void)pthread_detach(p); |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3651 | return 0; |
| 3652 | } |
| 3653 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3654 | _ACEOF |
| 3655 | rm -f conftest$ac_exeext |
| 3656 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3657 | (eval $ac_link) 2>&5 |
| 3658 | ac_status=$? |
| 3659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3660 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3662 | (eval $ac_try) 2>&5 |
| 3663 | ac_status=$? |
| 3664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3665 | (exit $ac_status); }; }; then |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3666 | ac_cv_pthread_is_default=yes |
| 3667 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3668 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3669 | echo "$as_me: failed program was:" >&5 |
| 3670 | cat conftest.$ac_ext >&5 |
| 3671 | ( exit $ac_status ) |
| 3672 | ac_cv_pthread_is_default=no |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3673 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3674 | 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] | 3675 | fi |
| 3676 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3677 | fi |
| 3678 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3679 | echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 3680 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3681 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3682 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3683 | if test $ac_cv_pthread_is_default = yes |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3684 | then |
| 3685 | ac_cv_kpthread=no |
| 3686 | else |
| 3687 | # -Kpthread, if available, provides the right #defines |
| 3688 | # and linker options to make pthread_create available |
| 3689 | # Some compilers won't report that they do not support -Kpthread, |
| 3690 | # so we need to run a program to see whether it really made the |
| 3691 | # function available. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3692 | echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 3693 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6 |
| 3694 | if test "${ac_cv_kpthread+set}" = set; then |
| 3695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3696 | else |
| 3697 | ac_save_cc="$CC" |
| 3698 | CC="$CC -Kpthread" |
| 3699 | if test "$cross_compiling" = yes; then |
| 3700 | ac_cv_kpthread=no |
| 3701 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3702 | cat >conftest.$ac_ext <<_ACEOF |
| 3703 | #line $LINENO "configure" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3704 | #include "confdefs.h" |
| 3705 | |
| 3706 | #include <pthread.h> |
| 3707 | |
| 3708 | void* routine(void* p){return NULL;} |
| 3709 | |
| 3710 | int main(){ |
| 3711 | pthread_t p; |
| 3712 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3713 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3714 | (void)pthread_detach(p); |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3715 | return 0; |
| 3716 | } |
| 3717 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3718 | _ACEOF |
| 3719 | rm -f conftest$ac_exeext |
| 3720 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3721 | (eval $ac_link) 2>&5 |
| 3722 | ac_status=$? |
| 3723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3724 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3726 | (eval $ac_try) 2>&5 |
| 3727 | ac_status=$? |
| 3728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3729 | (exit $ac_status); }; }; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3730 | ac_cv_kpthread=yes |
| 3731 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3732 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3733 | echo "$as_me: failed program was:" >&5 |
| 3734 | cat conftest.$ac_ext >&5 |
| 3735 | ( exit $ac_status ) |
| 3736 | ac_cv_kpthread=no |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3737 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3738 | 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] | 3739 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3740 | CC="$ac_save_cc" |
| 3741 | fi |
| 3742 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3743 | echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 3744 | echo "${ECHO_T}$ac_cv_kpthread" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3745 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3746 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3747 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3748 | # checks for header files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3749 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3750 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3751 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3753 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3754 | cat >conftest.$ac_ext <<_ACEOF |
| 3755 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3756 | #include "confdefs.h" |
| 3757 | #include <stdlib.h> |
| 3758 | #include <stdarg.h> |
| 3759 | #include <string.h> |
| 3760 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3761 | |
| 3762 | _ACEOF |
| 3763 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3764 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3765 | ac_status=$? |
| 3766 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 3767 | rm -f conftest.er1 |
| 3768 | cat conftest.err >&5 |
| 3769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3770 | (exit $ac_status); } >/dev/null; then |
| 3771 | if test -s conftest.err; then |
| 3772 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3773 | else |
| 3774 | ac_cpp_err= |
| 3775 | fi |
| 3776 | else |
| 3777 | ac_cpp_err=yes |
| 3778 | fi |
| 3779 | if test -z "$ac_cpp_err"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3780 | ac_cv_header_stdc=yes |
| 3781 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3782 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3783 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3784 | ac_cv_header_stdc=no |
| 3785 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3786 | rm -f conftest.err conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3787 | |
| 3788 | if test $ac_cv_header_stdc = yes; then |
| 3789 | # 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] | 3790 | cat >conftest.$ac_ext <<_ACEOF |
| 3791 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3792 | #include "confdefs.h" |
| 3793 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3794 | |
| 3795 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3796 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3797 | egrep "memchr" >/dev/null 2>&1; then |
| 3798 | : |
| 3799 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3800 | ac_cv_header_stdc=no |
| 3801 | fi |
| 3802 | rm -f conftest* |
| 3803 | |
| 3804 | fi |
| 3805 | |
| 3806 | if test $ac_cv_header_stdc = yes; then |
| 3807 | # 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] | 3808 | cat >conftest.$ac_ext <<_ACEOF |
| 3809 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3810 | #include "confdefs.h" |
| 3811 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3812 | |
| 3813 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3814 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3815 | egrep "free" >/dev/null 2>&1; then |
| 3816 | : |
| 3817 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3818 | ac_cv_header_stdc=no |
| 3819 | fi |
| 3820 | rm -f conftest* |
| 3821 | |
| 3822 | fi |
| 3823 | |
| 3824 | if test $ac_cv_header_stdc = yes; then |
| 3825 | # /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] | 3826 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3827 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3828 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3829 | cat >conftest.$ac_ext <<_ACEOF |
| 3830 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3831 | #include "confdefs.h" |
| 3832 | #include <ctype.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3833 | #if ((' ' & 0x0FF) == 0x020) |
| 3834 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3835 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3836 | #else |
| 3837 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 3838 | || ('j' <= (c) && (c) <= 'r') \ |
| 3839 | || ('s' <= (c) && (c) <= 'z')) |
| 3840 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3841 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3842 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3843 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3844 | int |
| 3845 | main () |
| 3846 | { |
| 3847 | int i; |
| 3848 | for (i = 0; i < 256; i++) |
| 3849 | if (XOR (islower (i), ISLOWER (i)) |
| 3850 | || toupper (i) != TOUPPER (i)) |
| 3851 | exit(2); |
| 3852 | exit (0); |
| 3853 | } |
| 3854 | _ACEOF |
| 3855 | rm -f conftest$ac_exeext |
| 3856 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3857 | (eval $ac_link) 2>&5 |
| 3858 | ac_status=$? |
| 3859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3860 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3862 | (eval $ac_try) 2>&5 |
| 3863 | ac_status=$? |
| 3864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3865 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3866 | : |
| 3867 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3868 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3869 | echo "$as_me: failed program was:" >&5 |
| 3870 | cat conftest.$ac_ext >&5 |
| 3871 | ( exit $ac_status ) |
| 3872 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3873 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3874 | 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] | 3875 | fi |
| 3876 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3877 | fi |
| 3878 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3879 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3880 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3881 | |
| 3882 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3883 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3884 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3885 | |
| 3886 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3887 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3888 | |
| 3889 | |
| 3890 | |
| 3891 | |
| 3892 | |
| 3893 | |
| 3894 | |
| 3895 | |
| 3896 | |
| 3897 | |
| 3898 | |
| 3899 | |
| 3900 | |
| 3901 | |
| 3902 | |
| 3903 | |
| 3904 | |
| 3905 | |
| 3906 | |
| 3907 | |
| 3908 | |
| 3909 | |
| 3910 | |
| 3911 | |
| 3912 | |
| 3913 | |
| 3914 | |
| 3915 | |
| 3916 | |
| 3917 | |
| 3918 | |
| 3919 | |
| 3920 | |
| 3921 | |
| 3922 | |
| 3923 | |
| 3924 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3925 | 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] | 3926 | libintl.h locale.h ncurses.h poll.h pthread.h \ |
Eric S. Raymond | d2d75d3 | 2001-01-16 15:26:34 +0000 | [diff] [blame] | 3927 | 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] | 3928 | 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] | 3929 | 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] | 3930 | 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] | 3931 | sys/resource.h netpacket/packet.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3932 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3933 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3934 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3935 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3936 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3937 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3939 | fi |
| 3940 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3941 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3942 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3943 | # Is the header compilable? |
| 3944 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 3945 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 3946 | cat >conftest.$ac_ext <<_ACEOF |
| 3947 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3948 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3949 | $ac_includes_default |
| 3950 | #include <$ac_header> |
| 3951 | _ACEOF |
| 3952 | rm -f conftest.$ac_objext |
| 3953 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3954 | (eval $ac_compile) 2>&5 |
| 3955 | ac_status=$? |
| 3956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3957 | (exit $ac_status); } && |
| 3958 | { ac_try='test -s conftest.$ac_objext' |
| 3959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3960 | (eval $ac_try) 2>&5 |
| 3961 | ac_status=$? |
| 3962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3963 | (exit $ac_status); }; }; then |
| 3964 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3965 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3966 | echo "$as_me: failed program was:" >&5 |
| 3967 | cat conftest.$ac_ext >&5 |
| 3968 | ac_header_compiler=no |
| 3969 | fi |
| 3970 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3971 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3972 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 3973 | |
| 3974 | # Is the header present? |
| 3975 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 3976 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 3977 | cat >conftest.$ac_ext <<_ACEOF |
| 3978 | #line $LINENO "configure" |
| 3979 | #include "confdefs.h" |
| 3980 | #include <$ac_header> |
| 3981 | _ACEOF |
| 3982 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3983 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3984 | ac_status=$? |
| 3985 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 3986 | rm -f conftest.er1 |
| 3987 | cat conftest.err >&5 |
| 3988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3989 | (exit $ac_status); } >/dev/null; then |
| 3990 | if test -s conftest.err; then |
| 3991 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3992 | else |
| 3993 | ac_cpp_err= |
| 3994 | fi |
| 3995 | else |
| 3996 | ac_cpp_err=yes |
| 3997 | fi |
| 3998 | if test -z "$ac_cpp_err"; then |
| 3999 | ac_header_preproc=yes |
| 4000 | else |
| 4001 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4002 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4003 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4004 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4005 | rm -f conftest.err conftest.$ac_ext |
| 4006 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4007 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4008 | |
| 4009 | # So? What about this header? |
| 4010 | case $ac_header_compiler:$ac_header_preproc in |
| 4011 | yes:no ) |
| 4012 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4013 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4014 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4015 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 4016 | no:yes ) |
| 4017 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4018 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 4019 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4020 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4021 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4022 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 4023 | esac |
| 4024 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4025 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4026 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4027 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4028 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4029 | eval "$as_ac_Header=$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4030 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4031 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4032 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4033 | |
| 4034 | fi |
| 4035 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4036 | cat >>confdefs.h <<_ACEOF |
| 4037 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4038 | _ACEOF |
| 4039 | |
| 4040 | fi |
| 4041 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4042 | done |
| 4043 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4044 | |
| 4045 | |
| 4046 | |
| 4047 | |
| 4048 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4049 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4050 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 4051 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 4052 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 4053 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 4054 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4055 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4056 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4057 | cat >conftest.$ac_ext <<_ACEOF |
| 4058 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4059 | #include "confdefs.h" |
| 4060 | #include <sys/types.h> |
| 4061 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4062 | |
| 4063 | #ifdef F77_DUMMY_MAIN |
| 4064 | # ifdef __cplusplus |
| 4065 | extern "C" |
| 4066 | # endif |
| 4067 | int F77_DUMMY_MAIN() { return 1; } |
| 4068 | #endif |
| 4069 | int |
| 4070 | main () |
| 4071 | { |
| 4072 | if ((DIR *) 0) |
| 4073 | return 0; |
| 4074 | ; |
| 4075 | return 0; |
| 4076 | } |
| 4077 | _ACEOF |
| 4078 | rm -f conftest.$ac_objext |
| 4079 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4080 | (eval $ac_compile) 2>&5 |
| 4081 | ac_status=$? |
| 4082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4083 | (exit $ac_status); } && |
| 4084 | { ac_try='test -s conftest.$ac_objext' |
| 4085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4086 | (eval $ac_try) 2>&5 |
| 4087 | ac_status=$? |
| 4088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4089 | (exit $ac_status); }; }; then |
| 4090 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4091 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4092 | echo "$as_me: failed program was:" >&5 |
| 4093 | cat conftest.$ac_ext >&5 |
| 4094 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4095 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4096 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4097 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4098 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4099 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4100 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4101 | cat >>confdefs.h <<_ACEOF |
| 4102 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 4103 | _ACEOF |
| 4104 | |
| 4105 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4106 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4107 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4108 | done |
| 4109 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 4110 | if test $ac_header_dirent = dirent.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4111 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4112 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4113 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4115 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4116 | ac_func_search_save_LIBS=$LIBS |
| 4117 | ac_cv_search_opendir=no |
| 4118 | cat >conftest.$ac_ext <<_ACEOF |
| 4119 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4120 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4121 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4122 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4123 | #ifdef __cplusplus |
| 4124 | extern "C" |
| 4125 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4126 | /* 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] | 4127 | builtin and then its argument prototype would still apply. */ |
| 4128 | char opendir (); |
| 4129 | #ifdef F77_DUMMY_MAIN |
| 4130 | # ifdef __cplusplus |
| 4131 | extern "C" |
| 4132 | # endif |
| 4133 | int F77_DUMMY_MAIN() { return 1; } |
| 4134 | #endif |
| 4135 | int |
| 4136 | main () |
| 4137 | { |
| 4138 | opendir (); |
| 4139 | ; |
| 4140 | return 0; |
| 4141 | } |
| 4142 | _ACEOF |
| 4143 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4144 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4145 | (eval $ac_link) 2>&5 |
| 4146 | ac_status=$? |
| 4147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4148 | (exit $ac_status); } && |
| 4149 | { ac_try='test -s conftest$ac_exeext' |
| 4150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4151 | (eval $ac_try) 2>&5 |
| 4152 | ac_status=$? |
| 4153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4154 | (exit $ac_status); }; }; then |
| 4155 | ac_cv_search_opendir="none required" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4156 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4157 | echo "$as_me: failed program was:" >&5 |
| 4158 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4159 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4160 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4161 | if test "$ac_cv_search_opendir" = no; then |
| 4162 | for ac_lib in dir; do |
| 4163 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4164 | cat >conftest.$ac_ext <<_ACEOF |
| 4165 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4166 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4167 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4168 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4169 | #ifdef __cplusplus |
| 4170 | extern "C" |
| 4171 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4172 | /* 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] | 4173 | builtin and then its argument prototype would still apply. */ |
| 4174 | char opendir (); |
| 4175 | #ifdef F77_DUMMY_MAIN |
| 4176 | # ifdef __cplusplus |
| 4177 | extern "C" |
| 4178 | # endif |
| 4179 | int F77_DUMMY_MAIN() { return 1; } |
| 4180 | #endif |
| 4181 | int |
| 4182 | main () |
| 4183 | { |
| 4184 | opendir (); |
| 4185 | ; |
| 4186 | return 0; |
| 4187 | } |
| 4188 | _ACEOF |
| 4189 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4190 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4191 | (eval $ac_link) 2>&5 |
| 4192 | ac_status=$? |
| 4193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4194 | (exit $ac_status); } && |
| 4195 | { ac_try='test -s conftest$ac_exeext' |
| 4196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4197 | (eval $ac_try) 2>&5 |
| 4198 | ac_status=$? |
| 4199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4200 | (exit $ac_status); }; }; then |
| 4201 | ac_cv_search_opendir="-l$ac_lib" |
| 4202 | break |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4203 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4204 | echo "$as_me: failed program was:" >&5 |
| 4205 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4206 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4207 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4208 | done |
| 4209 | fi |
| 4210 | LIBS=$ac_func_search_save_LIBS |
| 4211 | fi |
| 4212 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4213 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4214 | if test "$ac_cv_search_opendir" != no; then |
| 4215 | 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] | 4216 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4217 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4218 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4219 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4220 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4221 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4222 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4223 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4224 | else |
| 4225 | ac_func_search_save_LIBS=$LIBS |
| 4226 | ac_cv_search_opendir=no |
| 4227 | cat >conftest.$ac_ext <<_ACEOF |
| 4228 | #line $LINENO "configure" |
| 4229 | #include "confdefs.h" |
| 4230 | |
| 4231 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4232 | #ifdef __cplusplus |
| 4233 | extern "C" |
| 4234 | #endif |
| 4235 | /* We use char because int might match the return type of a gcc2 |
| 4236 | builtin and then its argument prototype would still apply. */ |
| 4237 | char opendir (); |
| 4238 | #ifdef F77_DUMMY_MAIN |
| 4239 | # ifdef __cplusplus |
| 4240 | extern "C" |
| 4241 | # endif |
| 4242 | int F77_DUMMY_MAIN() { return 1; } |
| 4243 | #endif |
| 4244 | int |
| 4245 | main () |
| 4246 | { |
| 4247 | opendir (); |
| 4248 | ; |
| 4249 | return 0; |
| 4250 | } |
| 4251 | _ACEOF |
| 4252 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4253 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4254 | (eval $ac_link) 2>&5 |
| 4255 | ac_status=$? |
| 4256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4257 | (exit $ac_status); } && |
| 4258 | { ac_try='test -s conftest$ac_exeext' |
| 4259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4260 | (eval $ac_try) 2>&5 |
| 4261 | ac_status=$? |
| 4262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4263 | (exit $ac_status); }; }; then |
| 4264 | ac_cv_search_opendir="none required" |
| 4265 | else |
| 4266 | echo "$as_me: failed program was:" >&5 |
| 4267 | cat conftest.$ac_ext >&5 |
| 4268 | fi |
| 4269 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4270 | if test "$ac_cv_search_opendir" = no; then |
| 4271 | for ac_lib in x; do |
| 4272 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4273 | cat >conftest.$ac_ext <<_ACEOF |
| 4274 | #line $LINENO "configure" |
| 4275 | #include "confdefs.h" |
| 4276 | |
| 4277 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4278 | #ifdef __cplusplus |
| 4279 | extern "C" |
| 4280 | #endif |
| 4281 | /* We use char because int might match the return type of a gcc2 |
| 4282 | builtin and then its argument prototype would still apply. */ |
| 4283 | char opendir (); |
| 4284 | #ifdef F77_DUMMY_MAIN |
| 4285 | # ifdef __cplusplus |
| 4286 | extern "C" |
| 4287 | # endif |
| 4288 | int F77_DUMMY_MAIN() { return 1; } |
| 4289 | #endif |
| 4290 | int |
| 4291 | main () |
| 4292 | { |
| 4293 | opendir (); |
| 4294 | ; |
| 4295 | return 0; |
| 4296 | } |
| 4297 | _ACEOF |
| 4298 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4299 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4300 | (eval $ac_link) 2>&5 |
| 4301 | ac_status=$? |
| 4302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4303 | (exit $ac_status); } && |
| 4304 | { ac_try='test -s conftest$ac_exeext' |
| 4305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4306 | (eval $ac_try) 2>&5 |
| 4307 | ac_status=$? |
| 4308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4309 | (exit $ac_status); }; }; then |
| 4310 | ac_cv_search_opendir="-l$ac_lib" |
| 4311 | break |
| 4312 | else |
| 4313 | echo "$as_me: failed program was:" >&5 |
| 4314 | cat conftest.$ac_ext >&5 |
| 4315 | fi |
| 4316 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4317 | done |
| 4318 | fi |
| 4319 | LIBS=$ac_func_search_save_LIBS |
| 4320 | fi |
| 4321 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4322 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4323 | if test "$ac_cv_search_opendir" != no; then |
| 4324 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 4325 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4326 | fi |
| 4327 | |
| 4328 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4329 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4330 | echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 4331 | echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6 |
| 4332 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
| 4333 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4334 | else |
| 4335 | cat >conftest.$ac_ext <<_ACEOF |
| 4336 | #line $LINENO "configure" |
| 4337 | #include "confdefs.h" |
| 4338 | #include <sys/types.h> |
| 4339 | #ifdef F77_DUMMY_MAIN |
| 4340 | # ifdef __cplusplus |
| 4341 | extern "C" |
| 4342 | # endif |
| 4343 | int F77_DUMMY_MAIN() { return 1; } |
| 4344 | #endif |
| 4345 | int |
| 4346 | main () |
| 4347 | { |
| 4348 | return makedev(0, 0); |
| 4349 | ; |
| 4350 | return 0; |
| 4351 | } |
| 4352 | _ACEOF |
| 4353 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4354 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4355 | (eval $ac_link) 2>&5 |
| 4356 | ac_status=$? |
| 4357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4358 | (exit $ac_status); } && |
| 4359 | { ac_try='test -s conftest$ac_exeext' |
| 4360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4361 | (eval $ac_try) 2>&5 |
| 4362 | ac_status=$? |
| 4363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4364 | (exit $ac_status); }; }; then |
| 4365 | ac_cv_header_sys_types_h_makedev=yes |
| 4366 | else |
| 4367 | echo "$as_me: failed program was:" >&5 |
| 4368 | cat conftest.$ac_ext >&5 |
| 4369 | ac_cv_header_sys_types_h_makedev=no |
| 4370 | fi |
| 4371 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4372 | |
| 4373 | fi |
| 4374 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 4375 | echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6 |
| 4376 | |
| 4377 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 4378 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4379 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 4380 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 4381 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4383 | fi |
| 4384 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 4385 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 4386 | else |
| 4387 | # Is the header compilable? |
| 4388 | echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 4389 | echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6 |
| 4390 | cat >conftest.$ac_ext <<_ACEOF |
| 4391 | #line $LINENO "configure" |
| 4392 | #include "confdefs.h" |
| 4393 | $ac_includes_default |
| 4394 | #include <sys/mkdev.h> |
| 4395 | _ACEOF |
| 4396 | rm -f conftest.$ac_objext |
| 4397 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4398 | (eval $ac_compile) 2>&5 |
| 4399 | ac_status=$? |
| 4400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4401 | (exit $ac_status); } && |
| 4402 | { ac_try='test -s conftest.$ac_objext' |
| 4403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4404 | (eval $ac_try) 2>&5 |
| 4405 | ac_status=$? |
| 4406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4407 | (exit $ac_status); }; }; then |
| 4408 | ac_header_compiler=yes |
| 4409 | else |
| 4410 | echo "$as_me: failed program was:" >&5 |
| 4411 | cat conftest.$ac_ext >&5 |
| 4412 | ac_header_compiler=no |
| 4413 | fi |
| 4414 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4415 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4416 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4417 | |
| 4418 | # Is the header present? |
| 4419 | echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 4420 | echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6 |
| 4421 | cat >conftest.$ac_ext <<_ACEOF |
| 4422 | #line $LINENO "configure" |
| 4423 | #include "confdefs.h" |
| 4424 | #include <sys/mkdev.h> |
| 4425 | _ACEOF |
| 4426 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4427 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4428 | ac_status=$? |
| 4429 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 4430 | rm -f conftest.er1 |
| 4431 | cat conftest.err >&5 |
| 4432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4433 | (exit $ac_status); } >/dev/null; then |
| 4434 | if test -s conftest.err; then |
| 4435 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4436 | else |
| 4437 | ac_cpp_err= |
| 4438 | fi |
| 4439 | else |
| 4440 | ac_cpp_err=yes |
| 4441 | fi |
| 4442 | if test -z "$ac_cpp_err"; then |
| 4443 | ac_header_preproc=yes |
| 4444 | else |
| 4445 | echo "$as_me: failed program was:" >&5 |
| 4446 | cat conftest.$ac_ext >&5 |
| 4447 | ac_header_preproc=no |
| 4448 | fi |
| 4449 | rm -f conftest.err conftest.$ac_ext |
| 4450 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4451 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4452 | |
| 4453 | # So? What about this header? |
| 4454 | case $ac_header_compiler:$ac_header_preproc in |
| 4455 | yes:no ) |
| 4456 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4457 | echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4458 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 4459 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};; |
| 4460 | no:yes ) |
| 4461 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 4462 | echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
| 4463 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 4464 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 4465 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 4466 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};; |
| 4467 | esac |
| 4468 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 4469 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 4470 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4472 | else |
| 4473 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 4474 | fi |
| 4475 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 4476 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 4477 | |
| 4478 | fi |
| 4479 | if test $ac_cv_header_sys_mkdev_h = yes; then |
| 4480 | |
| 4481 | cat >>confdefs.h <<\_ACEOF |
| 4482 | #define MAJOR_IN_MKDEV 1 |
| 4483 | _ACEOF |
| 4484 | |
| 4485 | fi |
| 4486 | |
| 4487 | |
| 4488 | |
| 4489 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 4490 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4491 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 4492 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 4493 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4494 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4495 | fi |
| 4496 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 4497 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 4498 | else |
| 4499 | # Is the header compilable? |
| 4500 | echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 4501 | echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6 |
| 4502 | cat >conftest.$ac_ext <<_ACEOF |
| 4503 | #line $LINENO "configure" |
| 4504 | #include "confdefs.h" |
| 4505 | $ac_includes_default |
| 4506 | #include <sys/sysmacros.h> |
| 4507 | _ACEOF |
| 4508 | rm -f conftest.$ac_objext |
| 4509 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4510 | (eval $ac_compile) 2>&5 |
| 4511 | ac_status=$? |
| 4512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4513 | (exit $ac_status); } && |
| 4514 | { ac_try='test -s conftest.$ac_objext' |
| 4515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4516 | (eval $ac_try) 2>&5 |
| 4517 | ac_status=$? |
| 4518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4519 | (exit $ac_status); }; }; then |
| 4520 | ac_header_compiler=yes |
| 4521 | else |
| 4522 | echo "$as_me: failed program was:" >&5 |
| 4523 | cat conftest.$ac_ext >&5 |
| 4524 | ac_header_compiler=no |
| 4525 | fi |
| 4526 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4527 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4528 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4529 | |
| 4530 | # Is the header present? |
| 4531 | echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 4532 | echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6 |
| 4533 | cat >conftest.$ac_ext <<_ACEOF |
| 4534 | #line $LINENO "configure" |
| 4535 | #include "confdefs.h" |
| 4536 | #include <sys/sysmacros.h> |
| 4537 | _ACEOF |
| 4538 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4539 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4540 | ac_status=$? |
| 4541 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 4542 | rm -f conftest.er1 |
| 4543 | cat conftest.err >&5 |
| 4544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4545 | (exit $ac_status); } >/dev/null; then |
| 4546 | if test -s conftest.err; then |
| 4547 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4548 | else |
| 4549 | ac_cpp_err= |
| 4550 | fi |
| 4551 | else |
| 4552 | ac_cpp_err=yes |
| 4553 | fi |
| 4554 | if test -z "$ac_cpp_err"; then |
| 4555 | ac_header_preproc=yes |
| 4556 | else |
| 4557 | echo "$as_me: failed program was:" >&5 |
| 4558 | cat conftest.$ac_ext >&5 |
| 4559 | ac_header_preproc=no |
| 4560 | fi |
| 4561 | rm -f conftest.err conftest.$ac_ext |
| 4562 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4563 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4564 | |
| 4565 | # So? What about this header? |
| 4566 | case $ac_header_compiler:$ac_header_preproc in |
| 4567 | yes:no ) |
| 4568 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4569 | echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4570 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 4571 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};; |
| 4572 | no:yes ) |
| 4573 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 4574 | echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
| 4575 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 4576 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 4577 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 4578 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};; |
| 4579 | esac |
| 4580 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 4581 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 4582 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4583 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4584 | else |
| 4585 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 4586 | fi |
| 4587 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 4588 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 4589 | |
| 4590 | fi |
| 4591 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
| 4592 | |
| 4593 | cat >>confdefs.h <<\_ACEOF |
| 4594 | #define MAJOR_IN_SYSMACROS 1 |
| 4595 | _ACEOF |
| 4596 | |
| 4597 | fi |
| 4598 | |
| 4599 | |
| 4600 | fi |
| 4601 | fi |
| 4602 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4603 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4604 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4605 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4606 | echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 4607 | echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6 |
| 4608 | cat >conftest.$ac_ext <<_ACEOF |
| 4609 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4610 | #include "confdefs.h" |
| 4611 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4612 | |
| 4613 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4614 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4615 | egrep "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4616 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4617 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4618 | |
| 4619 | |
| 4620 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4621 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4622 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4623 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 4624 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4625 | fi |
| 4626 | rm -f conftest* |
| 4627 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4628 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 4629 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4630 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 4631 | # Check whether using makedev requires defining _OSF_SOURCE |
| 4632 | echo "$as_me:$LINENO: checking for makedev" >&5 |
| 4633 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6 |
| 4634 | cat >conftest.$ac_ext <<_ACEOF |
| 4635 | #line $LINENO "configure" |
| 4636 | #include "confdefs.h" |
| 4637 | #include <sys/types.h> |
| 4638 | #ifdef F77_DUMMY_MAIN |
| 4639 | # ifdef __cplusplus |
| 4640 | extern "C" |
| 4641 | # endif |
| 4642 | int F77_DUMMY_MAIN() { return 1; } |
| 4643 | #endif |
| 4644 | int |
| 4645 | main () |
| 4646 | { |
| 4647 | makedev(0, 0) |
| 4648 | ; |
| 4649 | return 0; |
| 4650 | } |
| 4651 | _ACEOF |
| 4652 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4653 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4654 | (eval $ac_link) 2>&5 |
| 4655 | ac_status=$? |
| 4656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4657 | (exit $ac_status); } && |
| 4658 | { ac_try='test -s conftest$ac_exeext' |
| 4659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4660 | (eval $ac_try) 2>&5 |
| 4661 | ac_status=$? |
| 4662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4663 | (exit $ac_status); }; }; then |
| 4664 | ac_cv_has_makedev=yes |
| 4665 | else |
| 4666 | echo "$as_me: failed program was:" >&5 |
| 4667 | cat conftest.$ac_ext >&5 |
| 4668 | ac_cv_has_makedev=no |
| 4669 | fi |
| 4670 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4671 | if test "$ac_cv_has_makedev" = "no"; then |
| 4672 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 4673 | cat >conftest.$ac_ext <<_ACEOF |
| 4674 | #line $LINENO "configure" |
| 4675 | #include "confdefs.h" |
| 4676 | |
| 4677 | #define _OSF_SOURCE 1 |
| 4678 | #include <sys/types.h> |
| 4679 | |
| 4680 | #ifdef F77_DUMMY_MAIN |
| 4681 | # ifdef __cplusplus |
| 4682 | extern "C" |
| 4683 | # endif |
| 4684 | int F77_DUMMY_MAIN() { return 1; } |
| 4685 | #endif |
| 4686 | int |
| 4687 | main () |
| 4688 | { |
| 4689 | makedev(0, 0) |
| 4690 | ; |
| 4691 | return 0; |
| 4692 | } |
| 4693 | _ACEOF |
| 4694 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4695 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4696 | (eval $ac_link) 2>&5 |
| 4697 | ac_status=$? |
| 4698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4699 | (exit $ac_status); } && |
| 4700 | { ac_try='test -s conftest$ac_exeext' |
| 4701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4702 | (eval $ac_try) 2>&5 |
| 4703 | ac_status=$? |
| 4704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4705 | (exit $ac_status); }; }; then |
| 4706 | ac_cv_has_makedev=yes |
| 4707 | else |
| 4708 | echo "$as_me: failed program was:" >&5 |
| 4709 | cat conftest.$ac_ext >&5 |
| 4710 | ac_cv_has_makedev=no |
| 4711 | fi |
| 4712 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4713 | if test "$ac_cv_has_makedev" = "yes"; then |
| 4714 | |
| 4715 | cat >>confdefs.h <<\_ACEOF |
| 4716 | #define _OSF_SOURCE 1 |
| 4717 | _ACEOF |
| 4718 | |
| 4719 | fi |
| 4720 | fi |
| 4721 | echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 4722 | echo "${ECHO_T}$ac_cv_has_makedev" >&6 |
| 4723 | if test "$ac_cv_has_makedev" = "yes"; then |
| 4724 | |
| 4725 | cat >>confdefs.h <<\_ACEOF |
| 4726 | #define HAVE_MAKEDEV 1 |
| 4727 | _ACEOF |
| 4728 | |
| 4729 | fi |
| 4730 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 4731 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 4732 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 4733 | # defined, but the compiler does not support pragma redefine_extname, |
| 4734 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 4735 | # structures (such as rlimit64) without declaring them. As a |
| 4736 | # work-around, disable LFS on such configurations |
| 4737 | |
| 4738 | use_lfs=yes |
| 4739 | echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 4740 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6 |
| 4741 | cat >conftest.$ac_ext <<_ACEOF |
| 4742 | #line $LINENO "configure" |
| 4743 | #include "confdefs.h" |
| 4744 | |
| 4745 | #define _LARGEFILE_SOURCE 1 |
| 4746 | #define _FILE_OFFSET_BITS 64 |
| 4747 | #include <sys/resource.h> |
| 4748 | |
| 4749 | #ifdef F77_DUMMY_MAIN |
| 4750 | # ifdef __cplusplus |
| 4751 | extern "C" |
| 4752 | # endif |
| 4753 | int F77_DUMMY_MAIN() { return 1; } |
| 4754 | #endif |
| 4755 | int |
| 4756 | main () |
| 4757 | { |
| 4758 | struct rlimit foo; |
| 4759 | ; |
| 4760 | return 0; |
| 4761 | } |
| 4762 | _ACEOF |
| 4763 | rm -f conftest.$ac_objext |
| 4764 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4765 | (eval $ac_compile) 2>&5 |
| 4766 | ac_status=$? |
| 4767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4768 | (exit $ac_status); } && |
| 4769 | { ac_try='test -s conftest.$ac_objext' |
| 4770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4771 | (eval $ac_try) 2>&5 |
| 4772 | ac_status=$? |
| 4773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4774 | (exit $ac_status); }; }; then |
| 4775 | sol_lfs_bug=no |
| 4776 | else |
| 4777 | echo "$as_me: failed program was:" >&5 |
| 4778 | cat conftest.$ac_ext >&5 |
| 4779 | sol_lfs_bug=yes |
| 4780 | fi |
| 4781 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4782 | echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 4783 | echo "${ECHO_T}$sol_lfs_bug" >&6 |
| 4784 | if test "$sol_lfs_bug" = "yes"; then |
| 4785 | use_lfs=no |
| 4786 | fi |
| 4787 | |
| 4788 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4789 | # Two defines needed to enable largefile support on various platforms |
| 4790 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4791 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4792 | cat >>confdefs.h <<\_ACEOF |
| 4793 | #define _LARGEFILE_SOURCE 1 |
| 4794 | _ACEOF |
| 4795 | |
| 4796 | |
| 4797 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4798 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4799 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4800 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 4801 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4802 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 4803 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 4804 | cat >> confdefs.h <<\EOF |
| 4805 | #if defined(SCO_DS) |
| 4806 | #undef _OFF_T |
| 4807 | #endif |
| 4808 | EOF |
| 4809 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4810 | # Type availability checks |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4811 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 4812 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 4813 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 4814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4815 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4816 | cat >conftest.$ac_ext <<_ACEOF |
| 4817 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4818 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4819 | $ac_includes_default |
| 4820 | #ifdef F77_DUMMY_MAIN |
| 4821 | # ifdef __cplusplus |
| 4822 | extern "C" |
| 4823 | # endif |
| 4824 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4825 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4826 | int |
| 4827 | main () |
| 4828 | { |
| 4829 | if ((mode_t *) 0) |
| 4830 | return 0; |
| 4831 | if (sizeof (mode_t)) |
| 4832 | return 0; |
| 4833 | ; |
| 4834 | return 0; |
| 4835 | } |
| 4836 | _ACEOF |
| 4837 | rm -f conftest.$ac_objext |
| 4838 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4839 | (eval $ac_compile) 2>&5 |
| 4840 | ac_status=$? |
| 4841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4842 | (exit $ac_status); } && |
| 4843 | { ac_try='test -s conftest.$ac_objext' |
| 4844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4845 | (eval $ac_try) 2>&5 |
| 4846 | ac_status=$? |
| 4847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4848 | (exit $ac_status); }; }; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4849 | ac_cv_type_mode_t=yes |
| 4850 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4851 | echo "$as_me: failed program was:" >&5 |
| 4852 | cat conftest.$ac_ext >&5 |
| 4853 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4854 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4855 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4856 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4857 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 4858 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 4859 | if test $ac_cv_type_mode_t = yes; then |
| 4860 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4861 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4862 | |
| 4863 | cat >>confdefs.h <<_ACEOF |
| 4864 | #define mode_t int |
| 4865 | _ACEOF |
| 4866 | |
| 4867 | fi |
| 4868 | |
| 4869 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 4870 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 4871 | if test "${ac_cv_type_off_t+set}" = set; then |
| 4872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4873 | else |
| 4874 | cat >conftest.$ac_ext <<_ACEOF |
| 4875 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4876 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4877 | $ac_includes_default |
| 4878 | #ifdef F77_DUMMY_MAIN |
| 4879 | # ifdef __cplusplus |
| 4880 | extern "C" |
| 4881 | # endif |
| 4882 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4883 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4884 | int |
| 4885 | main () |
| 4886 | { |
| 4887 | if ((off_t *) 0) |
| 4888 | return 0; |
| 4889 | if (sizeof (off_t)) |
| 4890 | return 0; |
| 4891 | ; |
| 4892 | return 0; |
| 4893 | } |
| 4894 | _ACEOF |
| 4895 | rm -f conftest.$ac_objext |
| 4896 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4897 | (eval $ac_compile) 2>&5 |
| 4898 | ac_status=$? |
| 4899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4900 | (exit $ac_status); } && |
| 4901 | { ac_try='test -s conftest.$ac_objext' |
| 4902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4903 | (eval $ac_try) 2>&5 |
| 4904 | ac_status=$? |
| 4905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4906 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4907 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4908 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4909 | echo "$as_me: failed program was:" >&5 |
| 4910 | cat conftest.$ac_ext >&5 |
| 4911 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4912 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4913 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4914 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4915 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 4916 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 4917 | if test $ac_cv_type_off_t = yes; then |
| 4918 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4919 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4920 | |
| 4921 | cat >>confdefs.h <<_ACEOF |
| 4922 | #define off_t long |
| 4923 | _ACEOF |
| 4924 | |
| 4925 | fi |
| 4926 | |
| 4927 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 4928 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 4929 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 4930 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4931 | else |
| 4932 | cat >conftest.$ac_ext <<_ACEOF |
| 4933 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4934 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4935 | $ac_includes_default |
| 4936 | #ifdef F77_DUMMY_MAIN |
| 4937 | # ifdef __cplusplus |
| 4938 | extern "C" |
| 4939 | # endif |
| 4940 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4941 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4942 | int |
| 4943 | main () |
| 4944 | { |
| 4945 | if ((pid_t *) 0) |
| 4946 | return 0; |
| 4947 | if (sizeof (pid_t)) |
| 4948 | return 0; |
| 4949 | ; |
| 4950 | return 0; |
| 4951 | } |
| 4952 | _ACEOF |
| 4953 | rm -f conftest.$ac_objext |
| 4954 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4955 | (eval $ac_compile) 2>&5 |
| 4956 | ac_status=$? |
| 4957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4958 | (exit $ac_status); } && |
| 4959 | { ac_try='test -s conftest.$ac_objext' |
| 4960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4961 | (eval $ac_try) 2>&5 |
| 4962 | ac_status=$? |
| 4963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4964 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4965 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4966 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4967 | echo "$as_me: failed program was:" >&5 |
| 4968 | cat conftest.$ac_ext >&5 |
| 4969 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4970 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4971 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4972 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4973 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 4974 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 4975 | if test $ac_cv_type_pid_t = yes; then |
| 4976 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4977 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4978 | |
| 4979 | cat >>confdefs.h <<_ACEOF |
| 4980 | #define pid_t int |
| 4981 | _ACEOF |
| 4982 | |
| 4983 | fi |
| 4984 | |
| 4985 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 4986 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 4987 | if test "${ac_cv_type_signal+set}" = set; then |
| 4988 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4989 | else |
| 4990 | cat >conftest.$ac_ext <<_ACEOF |
| 4991 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4992 | #include "confdefs.h" |
| 4993 | #include <sys/types.h> |
| 4994 | #include <signal.h> |
| 4995 | #ifdef signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4996 | # undef signal |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4997 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 4998 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4999 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 5000 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5001 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5002 | #endif |
| 5003 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5004 | #ifdef F77_DUMMY_MAIN |
| 5005 | # ifdef __cplusplus |
| 5006 | extern "C" |
| 5007 | # endif |
| 5008 | int F77_DUMMY_MAIN() { return 1; } |
| 5009 | #endif |
| 5010 | int |
| 5011 | main () |
| 5012 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5013 | int i; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5014 | ; |
| 5015 | return 0; |
| 5016 | } |
| 5017 | _ACEOF |
| 5018 | rm -f conftest.$ac_objext |
| 5019 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5020 | (eval $ac_compile) 2>&5 |
| 5021 | ac_status=$? |
| 5022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5023 | (exit $ac_status); } && |
| 5024 | { ac_try='test -s conftest.$ac_objext' |
| 5025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5026 | (eval $ac_try) 2>&5 |
| 5027 | ac_status=$? |
| 5028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5029 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5030 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5031 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5032 | echo "$as_me: failed program was:" >&5 |
| 5033 | cat conftest.$ac_ext >&5 |
| 5034 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5035 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5036 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5037 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5038 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 5039 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5040 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5041 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5042 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5043 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5044 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5045 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5046 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 5047 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 5048 | if test "${ac_cv_type_size_t+set}" = set; then |
| 5049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5050 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5051 | cat >conftest.$ac_ext <<_ACEOF |
| 5052 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5053 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5054 | $ac_includes_default |
| 5055 | #ifdef F77_DUMMY_MAIN |
| 5056 | # ifdef __cplusplus |
| 5057 | extern "C" |
| 5058 | # endif |
| 5059 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5060 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5061 | int |
| 5062 | main () |
| 5063 | { |
| 5064 | if ((size_t *) 0) |
| 5065 | return 0; |
| 5066 | if (sizeof (size_t)) |
| 5067 | return 0; |
| 5068 | ; |
| 5069 | return 0; |
| 5070 | } |
| 5071 | _ACEOF |
| 5072 | rm -f conftest.$ac_objext |
| 5073 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5074 | (eval $ac_compile) 2>&5 |
| 5075 | ac_status=$? |
| 5076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5077 | (exit $ac_status); } && |
| 5078 | { ac_try='test -s conftest.$ac_objext' |
| 5079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5080 | (eval $ac_try) 2>&5 |
| 5081 | ac_status=$? |
| 5082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5083 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5084 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5085 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5086 | echo "$as_me: failed program was:" >&5 |
| 5087 | cat conftest.$ac_ext >&5 |
| 5088 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5089 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5090 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5091 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5092 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 5093 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 5094 | if test $ac_cv_type_size_t = yes; then |
| 5095 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5096 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5097 | |
| 5098 | cat >>confdefs.h <<_ACEOF |
| 5099 | #define size_t unsigned |
| 5100 | _ACEOF |
| 5101 | |
| 5102 | fi |
| 5103 | |
| 5104 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 5105 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 5106 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 5107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5108 | else |
| 5109 | cat >conftest.$ac_ext <<_ACEOF |
| 5110 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5111 | #include "confdefs.h" |
| 5112 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5113 | |
| 5114 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5115 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5116 | egrep "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5117 | ac_cv_type_uid_t=yes |
| 5118 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5119 | ac_cv_type_uid_t=no |
| 5120 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5121 | rm -f conftest* |
| 5122 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5123 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5124 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 5125 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5126 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5127 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5128 | cat >>confdefs.h <<\_ACEOF |
| 5129 | #define uid_t int |
| 5130 | _ACEOF |
| 5131 | |
| 5132 | |
| 5133 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5134 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5135 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5136 | |
| 5137 | fi |
| 5138 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5139 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5140 | # Sizes of various common basic types |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5141 | echo "$as_me:$LINENO: checking for int" >&5 |
| 5142 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
| 5143 | if test "${ac_cv_type_int+set}" = set; then |
| 5144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5145 | else |
| 5146 | cat >conftest.$ac_ext <<_ACEOF |
| 5147 | #line $LINENO "configure" |
| 5148 | #include "confdefs.h" |
| 5149 | $ac_includes_default |
| 5150 | #ifdef F77_DUMMY_MAIN |
| 5151 | # ifdef __cplusplus |
| 5152 | extern "C" |
| 5153 | # endif |
| 5154 | int F77_DUMMY_MAIN() { return 1; } |
| 5155 | #endif |
| 5156 | int |
| 5157 | main () |
| 5158 | { |
| 5159 | if ((int *) 0) |
| 5160 | return 0; |
| 5161 | if (sizeof (int)) |
| 5162 | return 0; |
| 5163 | ; |
| 5164 | return 0; |
| 5165 | } |
| 5166 | _ACEOF |
| 5167 | rm -f conftest.$ac_objext |
| 5168 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5169 | (eval $ac_compile) 2>&5 |
| 5170 | ac_status=$? |
| 5171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5172 | (exit $ac_status); } && |
| 5173 | { ac_try='test -s conftest.$ac_objext' |
| 5174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5175 | (eval $ac_try) 2>&5 |
| 5176 | ac_status=$? |
| 5177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5178 | (exit $ac_status); }; }; then |
| 5179 | ac_cv_type_int=yes |
| 5180 | else |
| 5181 | echo "$as_me: failed program was:" >&5 |
| 5182 | cat conftest.$ac_ext >&5 |
| 5183 | ac_cv_type_int=no |
| 5184 | fi |
| 5185 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5186 | fi |
| 5187 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 5188 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
| 5189 | |
| 5190 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 5191 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 5192 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 5193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5194 | else |
| 5195 | if test "$ac_cv_type_int" = yes; then |
| 5196 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5197 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5198 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5199 | # This bug is HP SR number 8606223364. |
| 5200 | if test "$cross_compiling" = yes; then |
| 5201 | # Depending upon the size, compute the lo and hi bounds. |
| 5202 | cat >conftest.$ac_ext <<_ACEOF |
| 5203 | #line $LINENO "configure" |
| 5204 | #include "confdefs.h" |
| 5205 | $ac_includes_default |
| 5206 | #ifdef F77_DUMMY_MAIN |
| 5207 | # ifdef __cplusplus |
| 5208 | extern "C" |
| 5209 | # endif |
| 5210 | int F77_DUMMY_MAIN() { return 1; } |
| 5211 | #endif |
| 5212 | int |
| 5213 | main () |
| 5214 | { |
| 5215 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
| 5216 | test_array [0] = 0 |
| 5217 | |
| 5218 | ; |
| 5219 | return 0; |
| 5220 | } |
| 5221 | _ACEOF |
| 5222 | rm -f conftest.$ac_objext |
| 5223 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5224 | (eval $ac_compile) 2>&5 |
| 5225 | ac_status=$? |
| 5226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5227 | (exit $ac_status); } && |
| 5228 | { ac_try='test -s conftest.$ac_objext' |
| 5229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5230 | (eval $ac_try) 2>&5 |
| 5231 | ac_status=$? |
| 5232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5233 | (exit $ac_status); }; }; then |
| 5234 | ac_lo=0 ac_mid=0 |
| 5235 | while :; do |
| 5236 | cat >conftest.$ac_ext <<_ACEOF |
| 5237 | #line $LINENO "configure" |
| 5238 | #include "confdefs.h" |
| 5239 | $ac_includes_default |
| 5240 | #ifdef F77_DUMMY_MAIN |
| 5241 | # ifdef __cplusplus |
| 5242 | extern "C" |
| 5243 | # endif |
| 5244 | int F77_DUMMY_MAIN() { return 1; } |
| 5245 | #endif |
| 5246 | int |
| 5247 | main () |
| 5248 | { |
| 5249 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 5250 | test_array [0] = 0 |
| 5251 | |
| 5252 | ; |
| 5253 | return 0; |
| 5254 | } |
| 5255 | _ACEOF |
| 5256 | rm -f conftest.$ac_objext |
| 5257 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5258 | (eval $ac_compile) 2>&5 |
| 5259 | ac_status=$? |
| 5260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5261 | (exit $ac_status); } && |
| 5262 | { ac_try='test -s conftest.$ac_objext' |
| 5263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5264 | (eval $ac_try) 2>&5 |
| 5265 | ac_status=$? |
| 5266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5267 | (exit $ac_status); }; }; then |
| 5268 | ac_hi=$ac_mid; break |
| 5269 | else |
| 5270 | echo "$as_me: failed program was:" >&5 |
| 5271 | cat conftest.$ac_ext >&5 |
| 5272 | ac_lo=`expr $ac_mid + 1` |
| 5273 | if test $ac_lo -le $ac_mid; then |
| 5274 | ac_lo= ac_hi= |
| 5275 | break |
| 5276 | fi |
| 5277 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5278 | fi |
| 5279 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5280 | done |
| 5281 | else |
| 5282 | echo "$as_me: failed program was:" >&5 |
| 5283 | cat conftest.$ac_ext >&5 |
| 5284 | cat >conftest.$ac_ext <<_ACEOF |
| 5285 | #line $LINENO "configure" |
| 5286 | #include "confdefs.h" |
| 5287 | $ac_includes_default |
| 5288 | #ifdef F77_DUMMY_MAIN |
| 5289 | # ifdef __cplusplus |
| 5290 | extern "C" |
| 5291 | # endif |
| 5292 | int F77_DUMMY_MAIN() { return 1; } |
| 5293 | #endif |
| 5294 | int |
| 5295 | main () |
| 5296 | { |
| 5297 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
| 5298 | test_array [0] = 0 |
| 5299 | |
| 5300 | ; |
| 5301 | return 0; |
| 5302 | } |
| 5303 | _ACEOF |
| 5304 | rm -f conftest.$ac_objext |
| 5305 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5306 | (eval $ac_compile) 2>&5 |
| 5307 | ac_status=$? |
| 5308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5309 | (exit $ac_status); } && |
| 5310 | { ac_try='test -s conftest.$ac_objext' |
| 5311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5312 | (eval $ac_try) 2>&5 |
| 5313 | ac_status=$? |
| 5314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5315 | (exit $ac_status); }; }; then |
| 5316 | ac_hi=-1 ac_mid=-1 |
| 5317 | while :; do |
| 5318 | cat >conftest.$ac_ext <<_ACEOF |
| 5319 | #line $LINENO "configure" |
| 5320 | #include "confdefs.h" |
| 5321 | $ac_includes_default |
| 5322 | #ifdef F77_DUMMY_MAIN |
| 5323 | # ifdef __cplusplus |
| 5324 | extern "C" |
| 5325 | # endif |
| 5326 | int F77_DUMMY_MAIN() { return 1; } |
| 5327 | #endif |
| 5328 | int |
| 5329 | main () |
| 5330 | { |
| 5331 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
| 5332 | test_array [0] = 0 |
| 5333 | |
| 5334 | ; |
| 5335 | return 0; |
| 5336 | } |
| 5337 | _ACEOF |
| 5338 | rm -f conftest.$ac_objext |
| 5339 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5340 | (eval $ac_compile) 2>&5 |
| 5341 | ac_status=$? |
| 5342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5343 | (exit $ac_status); } && |
| 5344 | { ac_try='test -s conftest.$ac_objext' |
| 5345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5346 | (eval $ac_try) 2>&5 |
| 5347 | ac_status=$? |
| 5348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5349 | (exit $ac_status); }; }; then |
| 5350 | ac_lo=$ac_mid; break |
| 5351 | else |
| 5352 | echo "$as_me: failed program was:" >&5 |
| 5353 | cat conftest.$ac_ext >&5 |
| 5354 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5355 | if test $ac_mid -le $ac_hi; then |
| 5356 | ac_lo= ac_hi= |
| 5357 | break |
| 5358 | fi |
| 5359 | ac_mid=`expr 2 '*' $ac_mid` |
| 5360 | fi |
| 5361 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5362 | done |
| 5363 | else |
| 5364 | echo "$as_me: failed program was:" >&5 |
| 5365 | cat conftest.$ac_ext >&5 |
| 5366 | ac_lo= ac_hi= |
| 5367 | fi |
| 5368 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5369 | fi |
| 5370 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5371 | # Binary search between lo and hi bounds. |
| 5372 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5373 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5374 | cat >conftest.$ac_ext <<_ACEOF |
| 5375 | #line $LINENO "configure" |
| 5376 | #include "confdefs.h" |
| 5377 | $ac_includes_default |
| 5378 | #ifdef F77_DUMMY_MAIN |
| 5379 | # ifdef __cplusplus |
| 5380 | extern "C" |
| 5381 | # endif |
| 5382 | int F77_DUMMY_MAIN() { return 1; } |
| 5383 | #endif |
| 5384 | int |
| 5385 | main () |
| 5386 | { |
| 5387 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 5388 | test_array [0] = 0 |
| 5389 | |
| 5390 | ; |
| 5391 | return 0; |
| 5392 | } |
| 5393 | _ACEOF |
| 5394 | rm -f conftest.$ac_objext |
| 5395 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5396 | (eval $ac_compile) 2>&5 |
| 5397 | ac_status=$? |
| 5398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5399 | (exit $ac_status); } && |
| 5400 | { ac_try='test -s conftest.$ac_objext' |
| 5401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5402 | (eval $ac_try) 2>&5 |
| 5403 | ac_status=$? |
| 5404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5405 | (exit $ac_status); }; }; then |
| 5406 | ac_hi=$ac_mid |
| 5407 | else |
| 5408 | echo "$as_me: failed program was:" >&5 |
| 5409 | cat conftest.$ac_ext >&5 |
| 5410 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5411 | fi |
| 5412 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5413 | done |
| 5414 | case $ac_lo in |
| 5415 | ?*) ac_cv_sizeof_int=$ac_lo;; |
| 5416 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 |
| 5417 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} |
| 5418 | { (exit 1); exit 1; }; } ;; |
| 5419 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5420 | else |
| 5421 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5422 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 5423 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 5424 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5425 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5426 | cat >conftest.$ac_ext <<_ACEOF |
| 5427 | #line $LINENO "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5428 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5429 | $ac_includes_default |
| 5430 | long longval () { return (long) (sizeof (int)); } |
| 5431 | unsigned long ulongval () { return (long) (sizeof (int)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5432 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5433 | #include <stdlib.h> |
| 5434 | #ifdef F77_DUMMY_MAIN |
| 5435 | # ifdef __cplusplus |
| 5436 | extern "C" |
| 5437 | # endif |
| 5438 | int F77_DUMMY_MAIN() { return 1; } |
| 5439 | #endif |
| 5440 | int |
| 5441 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5442 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5443 | |
| 5444 | FILE *f = fopen ("conftest.val", "w"); |
| 5445 | if (! f) |
| 5446 | exit (1); |
| 5447 | if (((long) (sizeof (int))) < 0) |
| 5448 | { |
| 5449 | long i = longval (); |
| 5450 | if (i != ((long) (sizeof (int)))) |
| 5451 | exit (1); |
| 5452 | fprintf (f, "%ld\n", i); |
| 5453 | } |
| 5454 | else |
| 5455 | { |
| 5456 | unsigned long i = ulongval (); |
| 5457 | if (i != ((long) (sizeof (int)))) |
| 5458 | exit (1); |
| 5459 | fprintf (f, "%lu\n", i); |
| 5460 | } |
| 5461 | exit (ferror (f) || fclose (f) != 0); |
| 5462 | |
| 5463 | ; |
| 5464 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5465 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5466 | _ACEOF |
| 5467 | rm -f conftest$ac_exeext |
| 5468 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5469 | (eval $ac_link) 2>&5 |
| 5470 | ac_status=$? |
| 5471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5472 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5474 | (eval $ac_try) 2>&5 |
| 5475 | ac_status=$? |
| 5476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5477 | (exit $ac_status); }; }; then |
| 5478 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5479 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5480 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5481 | echo "$as_me: failed program was:" >&5 |
| 5482 | cat conftest.$ac_ext >&5 |
| 5483 | ( exit $ac_status ) |
| 5484 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 |
| 5485 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} |
| 5486 | { (exit 1); exit 1; }; } |
| 5487 | fi |
| 5488 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5489 | fi |
| 5490 | fi |
| 5491 | rm -f conftest.val |
| 5492 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5493 | ac_cv_sizeof_int=0 |
| 5494 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5495 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5496 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 5497 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 5498 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5499 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5500 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5501 | |
| 5502 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5503 | echo "$as_me:$LINENO: checking for long" >&5 |
| 5504 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 5505 | if test "${ac_cv_type_long+set}" = set; then |
| 5506 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5507 | else |
| 5508 | cat >conftest.$ac_ext <<_ACEOF |
| 5509 | #line $LINENO "configure" |
| 5510 | #include "confdefs.h" |
| 5511 | $ac_includes_default |
| 5512 | #ifdef F77_DUMMY_MAIN |
| 5513 | # ifdef __cplusplus |
| 5514 | extern "C" |
| 5515 | # endif |
| 5516 | int F77_DUMMY_MAIN() { return 1; } |
| 5517 | #endif |
| 5518 | int |
| 5519 | main () |
| 5520 | { |
| 5521 | if ((long *) 0) |
| 5522 | return 0; |
| 5523 | if (sizeof (long)) |
| 5524 | return 0; |
| 5525 | ; |
| 5526 | return 0; |
| 5527 | } |
| 5528 | _ACEOF |
| 5529 | rm -f conftest.$ac_objext |
| 5530 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5531 | (eval $ac_compile) 2>&5 |
| 5532 | ac_status=$? |
| 5533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5534 | (exit $ac_status); } && |
| 5535 | { ac_try='test -s conftest.$ac_objext' |
| 5536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5537 | (eval $ac_try) 2>&5 |
| 5538 | ac_status=$? |
| 5539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5540 | (exit $ac_status); }; }; then |
| 5541 | ac_cv_type_long=yes |
| 5542 | else |
| 5543 | echo "$as_me: failed program was:" >&5 |
| 5544 | cat conftest.$ac_ext >&5 |
| 5545 | ac_cv_type_long=no |
| 5546 | fi |
| 5547 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5548 | fi |
| 5549 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 5550 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 5551 | |
| 5552 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 5553 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 5554 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 5555 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5556 | else |
| 5557 | if test "$ac_cv_type_long" = yes; then |
| 5558 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5559 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5560 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5561 | # This bug is HP SR number 8606223364. |
| 5562 | if test "$cross_compiling" = yes; then |
| 5563 | # Depending upon the size, compute the lo and hi bounds. |
| 5564 | cat >conftest.$ac_ext <<_ACEOF |
| 5565 | #line $LINENO "configure" |
| 5566 | #include "confdefs.h" |
| 5567 | $ac_includes_default |
| 5568 | #ifdef F77_DUMMY_MAIN |
| 5569 | # ifdef __cplusplus |
| 5570 | extern "C" |
| 5571 | # endif |
| 5572 | int F77_DUMMY_MAIN() { return 1; } |
| 5573 | #endif |
| 5574 | int |
| 5575 | main () |
| 5576 | { |
| 5577 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 5578 | test_array [0] = 0 |
| 5579 | |
| 5580 | ; |
| 5581 | return 0; |
| 5582 | } |
| 5583 | _ACEOF |
| 5584 | rm -f conftest.$ac_objext |
| 5585 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5586 | (eval $ac_compile) 2>&5 |
| 5587 | ac_status=$? |
| 5588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5589 | (exit $ac_status); } && |
| 5590 | { ac_try='test -s conftest.$ac_objext' |
| 5591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5592 | (eval $ac_try) 2>&5 |
| 5593 | ac_status=$? |
| 5594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5595 | (exit $ac_status); }; }; then |
| 5596 | ac_lo=0 ac_mid=0 |
| 5597 | while :; do |
| 5598 | cat >conftest.$ac_ext <<_ACEOF |
| 5599 | #line $LINENO "configure" |
| 5600 | #include "confdefs.h" |
| 5601 | $ac_includes_default |
| 5602 | #ifdef F77_DUMMY_MAIN |
| 5603 | # ifdef __cplusplus |
| 5604 | extern "C" |
| 5605 | # endif |
| 5606 | int F77_DUMMY_MAIN() { return 1; } |
| 5607 | #endif |
| 5608 | int |
| 5609 | main () |
| 5610 | { |
| 5611 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 5612 | test_array [0] = 0 |
| 5613 | |
| 5614 | ; |
| 5615 | return 0; |
| 5616 | } |
| 5617 | _ACEOF |
| 5618 | rm -f conftest.$ac_objext |
| 5619 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5620 | (eval $ac_compile) 2>&5 |
| 5621 | ac_status=$? |
| 5622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5623 | (exit $ac_status); } && |
| 5624 | { ac_try='test -s conftest.$ac_objext' |
| 5625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5626 | (eval $ac_try) 2>&5 |
| 5627 | ac_status=$? |
| 5628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5629 | (exit $ac_status); }; }; then |
| 5630 | ac_hi=$ac_mid; break |
| 5631 | else |
| 5632 | echo "$as_me: failed program was:" >&5 |
| 5633 | cat conftest.$ac_ext >&5 |
| 5634 | ac_lo=`expr $ac_mid + 1` |
| 5635 | if test $ac_lo -le $ac_mid; then |
| 5636 | ac_lo= ac_hi= |
| 5637 | break |
| 5638 | fi |
| 5639 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5640 | fi |
| 5641 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5642 | done |
| 5643 | else |
| 5644 | echo "$as_me: failed program was:" >&5 |
| 5645 | cat conftest.$ac_ext >&5 |
| 5646 | cat >conftest.$ac_ext <<_ACEOF |
| 5647 | #line $LINENO "configure" |
| 5648 | #include "confdefs.h" |
| 5649 | $ac_includes_default |
| 5650 | #ifdef F77_DUMMY_MAIN |
| 5651 | # ifdef __cplusplus |
| 5652 | extern "C" |
| 5653 | # endif |
| 5654 | int F77_DUMMY_MAIN() { return 1; } |
| 5655 | #endif |
| 5656 | int |
| 5657 | main () |
| 5658 | { |
| 5659 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 5660 | test_array [0] = 0 |
| 5661 | |
| 5662 | ; |
| 5663 | return 0; |
| 5664 | } |
| 5665 | _ACEOF |
| 5666 | rm -f conftest.$ac_objext |
| 5667 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5668 | (eval $ac_compile) 2>&5 |
| 5669 | ac_status=$? |
| 5670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5671 | (exit $ac_status); } && |
| 5672 | { ac_try='test -s conftest.$ac_objext' |
| 5673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5674 | (eval $ac_try) 2>&5 |
| 5675 | ac_status=$? |
| 5676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5677 | (exit $ac_status); }; }; then |
| 5678 | ac_hi=-1 ac_mid=-1 |
| 5679 | while :; do |
| 5680 | cat >conftest.$ac_ext <<_ACEOF |
| 5681 | #line $LINENO "configure" |
| 5682 | #include "confdefs.h" |
| 5683 | $ac_includes_default |
| 5684 | #ifdef F77_DUMMY_MAIN |
| 5685 | # ifdef __cplusplus |
| 5686 | extern "C" |
| 5687 | # endif |
| 5688 | int F77_DUMMY_MAIN() { return 1; } |
| 5689 | #endif |
| 5690 | int |
| 5691 | main () |
| 5692 | { |
| 5693 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 5694 | test_array [0] = 0 |
| 5695 | |
| 5696 | ; |
| 5697 | return 0; |
| 5698 | } |
| 5699 | _ACEOF |
| 5700 | rm -f conftest.$ac_objext |
| 5701 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5702 | (eval $ac_compile) 2>&5 |
| 5703 | ac_status=$? |
| 5704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5705 | (exit $ac_status); } && |
| 5706 | { ac_try='test -s conftest.$ac_objext' |
| 5707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5708 | (eval $ac_try) 2>&5 |
| 5709 | ac_status=$? |
| 5710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5711 | (exit $ac_status); }; }; then |
| 5712 | ac_lo=$ac_mid; break |
| 5713 | else |
| 5714 | echo "$as_me: failed program was:" >&5 |
| 5715 | cat conftest.$ac_ext >&5 |
| 5716 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5717 | if test $ac_mid -le $ac_hi; then |
| 5718 | ac_lo= ac_hi= |
| 5719 | break |
| 5720 | fi |
| 5721 | ac_mid=`expr 2 '*' $ac_mid` |
| 5722 | fi |
| 5723 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5724 | done |
| 5725 | else |
| 5726 | echo "$as_me: failed program was:" >&5 |
| 5727 | cat conftest.$ac_ext >&5 |
| 5728 | ac_lo= ac_hi= |
| 5729 | fi |
| 5730 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5731 | fi |
| 5732 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5733 | # Binary search between lo and hi bounds. |
| 5734 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5735 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5736 | cat >conftest.$ac_ext <<_ACEOF |
| 5737 | #line $LINENO "configure" |
| 5738 | #include "confdefs.h" |
| 5739 | $ac_includes_default |
| 5740 | #ifdef F77_DUMMY_MAIN |
| 5741 | # ifdef __cplusplus |
| 5742 | extern "C" |
| 5743 | # endif |
| 5744 | int F77_DUMMY_MAIN() { return 1; } |
| 5745 | #endif |
| 5746 | int |
| 5747 | main () |
| 5748 | { |
| 5749 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 5750 | test_array [0] = 0 |
| 5751 | |
| 5752 | ; |
| 5753 | return 0; |
| 5754 | } |
| 5755 | _ACEOF |
| 5756 | rm -f conftest.$ac_objext |
| 5757 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5758 | (eval $ac_compile) 2>&5 |
| 5759 | ac_status=$? |
| 5760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5761 | (exit $ac_status); } && |
| 5762 | { ac_try='test -s conftest.$ac_objext' |
| 5763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5764 | (eval $ac_try) 2>&5 |
| 5765 | ac_status=$? |
| 5766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5767 | (exit $ac_status); }; }; then |
| 5768 | ac_hi=$ac_mid |
| 5769 | else |
| 5770 | echo "$as_me: failed program was:" >&5 |
| 5771 | cat conftest.$ac_ext >&5 |
| 5772 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5773 | fi |
| 5774 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5775 | done |
| 5776 | case $ac_lo in |
| 5777 | ?*) ac_cv_sizeof_long=$ac_lo;; |
| 5778 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 |
| 5779 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} |
| 5780 | { (exit 1); exit 1; }; } ;; |
| 5781 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5782 | else |
| 5783 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5784 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 5785 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 5786 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5787 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5788 | cat >conftest.$ac_ext <<_ACEOF |
| 5789 | #line $LINENO "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5790 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5791 | $ac_includes_default |
| 5792 | long longval () { return (long) (sizeof (long)); } |
| 5793 | unsigned long ulongval () { return (long) (sizeof (long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5794 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5795 | #include <stdlib.h> |
| 5796 | #ifdef F77_DUMMY_MAIN |
| 5797 | # ifdef __cplusplus |
| 5798 | extern "C" |
| 5799 | # endif |
| 5800 | int F77_DUMMY_MAIN() { return 1; } |
| 5801 | #endif |
| 5802 | int |
| 5803 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5804 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5805 | |
| 5806 | FILE *f = fopen ("conftest.val", "w"); |
| 5807 | if (! f) |
| 5808 | exit (1); |
| 5809 | if (((long) (sizeof (long))) < 0) |
| 5810 | { |
| 5811 | long i = longval (); |
| 5812 | if (i != ((long) (sizeof (long)))) |
| 5813 | exit (1); |
| 5814 | fprintf (f, "%ld\n", i); |
| 5815 | } |
| 5816 | else |
| 5817 | { |
| 5818 | unsigned long i = ulongval (); |
| 5819 | if (i != ((long) (sizeof (long)))) |
| 5820 | exit (1); |
| 5821 | fprintf (f, "%lu\n", i); |
| 5822 | } |
| 5823 | exit (ferror (f) || fclose (f) != 0); |
| 5824 | |
| 5825 | ; |
| 5826 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5827 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5828 | _ACEOF |
| 5829 | rm -f conftest$ac_exeext |
| 5830 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5831 | (eval $ac_link) 2>&5 |
| 5832 | ac_status=$? |
| 5833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5834 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5836 | (eval $ac_try) 2>&5 |
| 5837 | ac_status=$? |
| 5838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5839 | (exit $ac_status); }; }; then |
| 5840 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5841 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5842 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5843 | echo "$as_me: failed program was:" >&5 |
| 5844 | cat conftest.$ac_ext >&5 |
| 5845 | ( exit $ac_status ) |
| 5846 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 |
| 5847 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} |
| 5848 | { (exit 1); exit 1; }; } |
| 5849 | fi |
| 5850 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5851 | fi |
| 5852 | fi |
| 5853 | rm -f conftest.val |
| 5854 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5855 | ac_cv_sizeof_long=0 |
| 5856 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5857 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5858 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 5859 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 5860 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5861 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5862 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5863 | |
| 5864 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5865 | echo "$as_me:$LINENO: checking for void *" >&5 |
| 5866 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
| 5867 | if test "${ac_cv_type_void_p+set}" = set; then |
| 5868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5869 | else |
| 5870 | cat >conftest.$ac_ext <<_ACEOF |
| 5871 | #line $LINENO "configure" |
| 5872 | #include "confdefs.h" |
| 5873 | $ac_includes_default |
| 5874 | #ifdef F77_DUMMY_MAIN |
| 5875 | # ifdef __cplusplus |
| 5876 | extern "C" |
| 5877 | # endif |
| 5878 | int F77_DUMMY_MAIN() { return 1; } |
| 5879 | #endif |
| 5880 | int |
| 5881 | main () |
| 5882 | { |
| 5883 | if ((void * *) 0) |
| 5884 | return 0; |
| 5885 | if (sizeof (void *)) |
| 5886 | return 0; |
| 5887 | ; |
| 5888 | return 0; |
| 5889 | } |
| 5890 | _ACEOF |
| 5891 | rm -f conftest.$ac_objext |
| 5892 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5893 | (eval $ac_compile) 2>&5 |
| 5894 | ac_status=$? |
| 5895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5896 | (exit $ac_status); } && |
| 5897 | { ac_try='test -s conftest.$ac_objext' |
| 5898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5899 | (eval $ac_try) 2>&5 |
| 5900 | ac_status=$? |
| 5901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5902 | (exit $ac_status); }; }; then |
| 5903 | ac_cv_type_void_p=yes |
| 5904 | else |
| 5905 | echo "$as_me: failed program was:" >&5 |
| 5906 | cat conftest.$ac_ext >&5 |
| 5907 | ac_cv_type_void_p=no |
| 5908 | fi |
| 5909 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5910 | fi |
| 5911 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 5912 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
| 5913 | |
| 5914 | echo "$as_me:$LINENO: checking size of void *" >&5 |
| 5915 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
| 5916 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 5917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5918 | else |
| 5919 | if test "$ac_cv_type_void_p" = yes; then |
| 5920 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5921 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5922 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5923 | # This bug is HP SR number 8606223364. |
| 5924 | if test "$cross_compiling" = yes; then |
| 5925 | # Depending upon the size, compute the lo and hi bounds. |
| 5926 | cat >conftest.$ac_ext <<_ACEOF |
| 5927 | #line $LINENO "configure" |
| 5928 | #include "confdefs.h" |
| 5929 | $ac_includes_default |
| 5930 | #ifdef F77_DUMMY_MAIN |
| 5931 | # ifdef __cplusplus |
| 5932 | extern "C" |
| 5933 | # endif |
| 5934 | int F77_DUMMY_MAIN() { return 1; } |
| 5935 | #endif |
| 5936 | int |
| 5937 | main () |
| 5938 | { |
| 5939 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
| 5940 | test_array [0] = 0 |
| 5941 | |
| 5942 | ; |
| 5943 | return 0; |
| 5944 | } |
| 5945 | _ACEOF |
| 5946 | rm -f conftest.$ac_objext |
| 5947 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5948 | (eval $ac_compile) 2>&5 |
| 5949 | ac_status=$? |
| 5950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5951 | (exit $ac_status); } && |
| 5952 | { ac_try='test -s conftest.$ac_objext' |
| 5953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5954 | (eval $ac_try) 2>&5 |
| 5955 | ac_status=$? |
| 5956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5957 | (exit $ac_status); }; }; then |
| 5958 | ac_lo=0 ac_mid=0 |
| 5959 | while :; do |
| 5960 | cat >conftest.$ac_ext <<_ACEOF |
| 5961 | #line $LINENO "configure" |
| 5962 | #include "confdefs.h" |
| 5963 | $ac_includes_default |
| 5964 | #ifdef F77_DUMMY_MAIN |
| 5965 | # ifdef __cplusplus |
| 5966 | extern "C" |
| 5967 | # endif |
| 5968 | int F77_DUMMY_MAIN() { return 1; } |
| 5969 | #endif |
| 5970 | int |
| 5971 | main () |
| 5972 | { |
| 5973 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 5974 | test_array [0] = 0 |
| 5975 | |
| 5976 | ; |
| 5977 | return 0; |
| 5978 | } |
| 5979 | _ACEOF |
| 5980 | rm -f conftest.$ac_objext |
| 5981 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5982 | (eval $ac_compile) 2>&5 |
| 5983 | ac_status=$? |
| 5984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5985 | (exit $ac_status); } && |
| 5986 | { ac_try='test -s conftest.$ac_objext' |
| 5987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5988 | (eval $ac_try) 2>&5 |
| 5989 | ac_status=$? |
| 5990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5991 | (exit $ac_status); }; }; then |
| 5992 | ac_hi=$ac_mid; break |
| 5993 | else |
| 5994 | echo "$as_me: failed program was:" >&5 |
| 5995 | cat conftest.$ac_ext >&5 |
| 5996 | ac_lo=`expr $ac_mid + 1` |
| 5997 | if test $ac_lo -le $ac_mid; then |
| 5998 | ac_lo= ac_hi= |
| 5999 | break |
| 6000 | fi |
| 6001 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6002 | fi |
| 6003 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6004 | done |
| 6005 | else |
| 6006 | echo "$as_me: failed program was:" >&5 |
| 6007 | cat conftest.$ac_ext >&5 |
| 6008 | cat >conftest.$ac_ext <<_ACEOF |
| 6009 | #line $LINENO "configure" |
| 6010 | #include "confdefs.h" |
| 6011 | $ac_includes_default |
| 6012 | #ifdef F77_DUMMY_MAIN |
| 6013 | # ifdef __cplusplus |
| 6014 | extern "C" |
| 6015 | # endif |
| 6016 | int F77_DUMMY_MAIN() { return 1; } |
| 6017 | #endif |
| 6018 | int |
| 6019 | main () |
| 6020 | { |
| 6021 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
| 6022 | test_array [0] = 0 |
| 6023 | |
| 6024 | ; |
| 6025 | return 0; |
| 6026 | } |
| 6027 | _ACEOF |
| 6028 | rm -f conftest.$ac_objext |
| 6029 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6030 | (eval $ac_compile) 2>&5 |
| 6031 | ac_status=$? |
| 6032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6033 | (exit $ac_status); } && |
| 6034 | { ac_try='test -s conftest.$ac_objext' |
| 6035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6036 | (eval $ac_try) 2>&5 |
| 6037 | ac_status=$? |
| 6038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6039 | (exit $ac_status); }; }; then |
| 6040 | ac_hi=-1 ac_mid=-1 |
| 6041 | while :; do |
| 6042 | cat >conftest.$ac_ext <<_ACEOF |
| 6043 | #line $LINENO "configure" |
| 6044 | #include "confdefs.h" |
| 6045 | $ac_includes_default |
| 6046 | #ifdef F77_DUMMY_MAIN |
| 6047 | # ifdef __cplusplus |
| 6048 | extern "C" |
| 6049 | # endif |
| 6050 | int F77_DUMMY_MAIN() { return 1; } |
| 6051 | #endif |
| 6052 | int |
| 6053 | main () |
| 6054 | { |
| 6055 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
| 6056 | test_array [0] = 0 |
| 6057 | |
| 6058 | ; |
| 6059 | return 0; |
| 6060 | } |
| 6061 | _ACEOF |
| 6062 | rm -f conftest.$ac_objext |
| 6063 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6064 | (eval $ac_compile) 2>&5 |
| 6065 | ac_status=$? |
| 6066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6067 | (exit $ac_status); } && |
| 6068 | { ac_try='test -s conftest.$ac_objext' |
| 6069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6070 | (eval $ac_try) 2>&5 |
| 6071 | ac_status=$? |
| 6072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6073 | (exit $ac_status); }; }; then |
| 6074 | ac_lo=$ac_mid; break |
| 6075 | else |
| 6076 | echo "$as_me: failed program was:" >&5 |
| 6077 | cat conftest.$ac_ext >&5 |
| 6078 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6079 | if test $ac_mid -le $ac_hi; then |
| 6080 | ac_lo= ac_hi= |
| 6081 | break |
| 6082 | fi |
| 6083 | ac_mid=`expr 2 '*' $ac_mid` |
| 6084 | fi |
| 6085 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6086 | done |
| 6087 | else |
| 6088 | echo "$as_me: failed program was:" >&5 |
| 6089 | cat conftest.$ac_ext >&5 |
| 6090 | ac_lo= ac_hi= |
| 6091 | fi |
| 6092 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6093 | fi |
| 6094 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6095 | # Binary search between lo and hi bounds. |
| 6096 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6097 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6098 | cat >conftest.$ac_ext <<_ACEOF |
| 6099 | #line $LINENO "configure" |
| 6100 | #include "confdefs.h" |
| 6101 | $ac_includes_default |
| 6102 | #ifdef F77_DUMMY_MAIN |
| 6103 | # ifdef __cplusplus |
| 6104 | extern "C" |
| 6105 | # endif |
| 6106 | int F77_DUMMY_MAIN() { return 1; } |
| 6107 | #endif |
| 6108 | int |
| 6109 | main () |
| 6110 | { |
| 6111 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 6112 | test_array [0] = 0 |
| 6113 | |
| 6114 | ; |
| 6115 | return 0; |
| 6116 | } |
| 6117 | _ACEOF |
| 6118 | rm -f conftest.$ac_objext |
| 6119 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6120 | (eval $ac_compile) 2>&5 |
| 6121 | ac_status=$? |
| 6122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6123 | (exit $ac_status); } && |
| 6124 | { ac_try='test -s conftest.$ac_objext' |
| 6125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6126 | (eval $ac_try) 2>&5 |
| 6127 | ac_status=$? |
| 6128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6129 | (exit $ac_status); }; }; then |
| 6130 | ac_hi=$ac_mid |
| 6131 | else |
| 6132 | echo "$as_me: failed program was:" >&5 |
| 6133 | cat conftest.$ac_ext >&5 |
| 6134 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6135 | fi |
| 6136 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6137 | done |
| 6138 | case $ac_lo in |
| 6139 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
| 6140 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 |
| 6141 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} |
| 6142 | { (exit 1); exit 1; }; } ;; |
| 6143 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6144 | else |
| 6145 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6146 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6147 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6148 | { (exit 1); exit 1; }; } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6149 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6150 | cat >conftest.$ac_ext <<_ACEOF |
| 6151 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6152 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6153 | $ac_includes_default |
| 6154 | long longval () { return (long) (sizeof (void *)); } |
| 6155 | unsigned long ulongval () { return (long) (sizeof (void *)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6156 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6157 | #include <stdlib.h> |
| 6158 | #ifdef F77_DUMMY_MAIN |
| 6159 | # ifdef __cplusplus |
| 6160 | extern "C" |
| 6161 | # endif |
| 6162 | int F77_DUMMY_MAIN() { return 1; } |
| 6163 | #endif |
| 6164 | int |
| 6165 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6166 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6167 | |
| 6168 | FILE *f = fopen ("conftest.val", "w"); |
| 6169 | if (! f) |
| 6170 | exit (1); |
| 6171 | if (((long) (sizeof (void *))) < 0) |
| 6172 | { |
| 6173 | long i = longval (); |
| 6174 | if (i != ((long) (sizeof (void *)))) |
| 6175 | exit (1); |
| 6176 | fprintf (f, "%ld\n", i); |
| 6177 | } |
| 6178 | else |
| 6179 | { |
| 6180 | unsigned long i = ulongval (); |
| 6181 | if (i != ((long) (sizeof (void *)))) |
| 6182 | exit (1); |
| 6183 | fprintf (f, "%lu\n", i); |
| 6184 | } |
| 6185 | exit (ferror (f) || fclose (f) != 0); |
| 6186 | |
| 6187 | ; |
| 6188 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6189 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6190 | _ACEOF |
| 6191 | rm -f conftest$ac_exeext |
| 6192 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6193 | (eval $ac_link) 2>&5 |
| 6194 | ac_status=$? |
| 6195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6196 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6198 | (eval $ac_try) 2>&5 |
| 6199 | ac_status=$? |
| 6200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6201 | (exit $ac_status); }; }; then |
| 6202 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6203 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6204 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6205 | echo "$as_me: failed program was:" >&5 |
| 6206 | cat conftest.$ac_ext >&5 |
| 6207 | ( exit $ac_status ) |
| 6208 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 |
| 6209 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} |
| 6210 | { (exit 1); exit 1; }; } |
| 6211 | fi |
| 6212 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6213 | fi |
| 6214 | fi |
| 6215 | rm -f conftest.val |
| 6216 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6217 | ac_cv_sizeof_void_p=0 |
| 6218 | fi |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6219 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6220 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 6221 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
| 6222 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6223 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6224 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6225 | |
| 6226 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6227 | echo "$as_me:$LINENO: checking for char" >&5 |
| 6228 | echo $ECHO_N "checking for char... $ECHO_C" >&6 |
| 6229 | if test "${ac_cv_type_char+set}" = set; then |
| 6230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6231 | else |
| 6232 | cat >conftest.$ac_ext <<_ACEOF |
| 6233 | #line $LINENO "configure" |
| 6234 | #include "confdefs.h" |
| 6235 | $ac_includes_default |
| 6236 | #ifdef F77_DUMMY_MAIN |
| 6237 | # ifdef __cplusplus |
| 6238 | extern "C" |
| 6239 | # endif |
| 6240 | int F77_DUMMY_MAIN() { return 1; } |
| 6241 | #endif |
| 6242 | int |
| 6243 | main () |
| 6244 | { |
| 6245 | if ((char *) 0) |
| 6246 | return 0; |
| 6247 | if (sizeof (char)) |
| 6248 | return 0; |
| 6249 | ; |
| 6250 | return 0; |
| 6251 | } |
| 6252 | _ACEOF |
| 6253 | rm -f conftest.$ac_objext |
| 6254 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6255 | (eval $ac_compile) 2>&5 |
| 6256 | ac_status=$? |
| 6257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6258 | (exit $ac_status); } && |
| 6259 | { ac_try='test -s conftest.$ac_objext' |
| 6260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6261 | (eval $ac_try) 2>&5 |
| 6262 | ac_status=$? |
| 6263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6264 | (exit $ac_status); }; }; then |
| 6265 | ac_cv_type_char=yes |
| 6266 | else |
| 6267 | echo "$as_me: failed program was:" >&5 |
| 6268 | cat conftest.$ac_ext >&5 |
| 6269 | ac_cv_type_char=no |
| 6270 | fi |
| 6271 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6272 | fi |
| 6273 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
| 6274 | echo "${ECHO_T}$ac_cv_type_char" >&6 |
| 6275 | |
| 6276 | echo "$as_me:$LINENO: checking size of char" >&5 |
| 6277 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 |
| 6278 | if test "${ac_cv_sizeof_char+set}" = set; then |
| 6279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6280 | else |
| 6281 | if test "$ac_cv_type_char" = yes; then |
| 6282 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6283 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6284 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6285 | # This bug is HP SR number 8606223364. |
| 6286 | if test "$cross_compiling" = yes; then |
| 6287 | # Depending upon the size, compute the lo and hi bounds. |
| 6288 | cat >conftest.$ac_ext <<_ACEOF |
| 6289 | #line $LINENO "configure" |
| 6290 | #include "confdefs.h" |
| 6291 | $ac_includes_default |
| 6292 | #ifdef F77_DUMMY_MAIN |
| 6293 | # ifdef __cplusplus |
| 6294 | extern "C" |
| 6295 | # endif |
| 6296 | int F77_DUMMY_MAIN() { return 1; } |
| 6297 | #endif |
| 6298 | int |
| 6299 | main () |
| 6300 | { |
| 6301 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
| 6302 | test_array [0] = 0 |
| 6303 | |
| 6304 | ; |
| 6305 | return 0; |
| 6306 | } |
| 6307 | _ACEOF |
| 6308 | rm -f conftest.$ac_objext |
| 6309 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6310 | (eval $ac_compile) 2>&5 |
| 6311 | ac_status=$? |
| 6312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6313 | (exit $ac_status); } && |
| 6314 | { ac_try='test -s conftest.$ac_objext' |
| 6315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6316 | (eval $ac_try) 2>&5 |
| 6317 | ac_status=$? |
| 6318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6319 | (exit $ac_status); }; }; then |
| 6320 | ac_lo=0 ac_mid=0 |
| 6321 | while :; do |
| 6322 | cat >conftest.$ac_ext <<_ACEOF |
| 6323 | #line $LINENO "configure" |
| 6324 | #include "confdefs.h" |
| 6325 | $ac_includes_default |
| 6326 | #ifdef F77_DUMMY_MAIN |
| 6327 | # ifdef __cplusplus |
| 6328 | extern "C" |
| 6329 | # endif |
| 6330 | int F77_DUMMY_MAIN() { return 1; } |
| 6331 | #endif |
| 6332 | int |
| 6333 | main () |
| 6334 | { |
| 6335 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 6336 | test_array [0] = 0 |
| 6337 | |
| 6338 | ; |
| 6339 | return 0; |
| 6340 | } |
| 6341 | _ACEOF |
| 6342 | rm -f conftest.$ac_objext |
| 6343 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6344 | (eval $ac_compile) 2>&5 |
| 6345 | ac_status=$? |
| 6346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6347 | (exit $ac_status); } && |
| 6348 | { ac_try='test -s conftest.$ac_objext' |
| 6349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6350 | (eval $ac_try) 2>&5 |
| 6351 | ac_status=$? |
| 6352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6353 | (exit $ac_status); }; }; then |
| 6354 | ac_hi=$ac_mid; break |
| 6355 | else |
| 6356 | echo "$as_me: failed program was:" >&5 |
| 6357 | cat conftest.$ac_ext >&5 |
| 6358 | ac_lo=`expr $ac_mid + 1` |
| 6359 | if test $ac_lo -le $ac_mid; then |
| 6360 | ac_lo= ac_hi= |
| 6361 | break |
| 6362 | fi |
| 6363 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6364 | fi |
| 6365 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6366 | done |
| 6367 | else |
| 6368 | echo "$as_me: failed program was:" >&5 |
| 6369 | cat conftest.$ac_ext >&5 |
| 6370 | cat >conftest.$ac_ext <<_ACEOF |
| 6371 | #line $LINENO "configure" |
| 6372 | #include "confdefs.h" |
| 6373 | $ac_includes_default |
| 6374 | #ifdef F77_DUMMY_MAIN |
| 6375 | # ifdef __cplusplus |
| 6376 | extern "C" |
| 6377 | # endif |
| 6378 | int F77_DUMMY_MAIN() { return 1; } |
| 6379 | #endif |
| 6380 | int |
| 6381 | main () |
| 6382 | { |
| 6383 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
| 6384 | test_array [0] = 0 |
| 6385 | |
| 6386 | ; |
| 6387 | return 0; |
| 6388 | } |
| 6389 | _ACEOF |
| 6390 | rm -f conftest.$ac_objext |
| 6391 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6392 | (eval $ac_compile) 2>&5 |
| 6393 | ac_status=$? |
| 6394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6395 | (exit $ac_status); } && |
| 6396 | { ac_try='test -s conftest.$ac_objext' |
| 6397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6398 | (eval $ac_try) 2>&5 |
| 6399 | ac_status=$? |
| 6400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6401 | (exit $ac_status); }; }; then |
| 6402 | ac_hi=-1 ac_mid=-1 |
| 6403 | while :; do |
| 6404 | cat >conftest.$ac_ext <<_ACEOF |
| 6405 | #line $LINENO "configure" |
| 6406 | #include "confdefs.h" |
| 6407 | $ac_includes_default |
| 6408 | #ifdef F77_DUMMY_MAIN |
| 6409 | # ifdef __cplusplus |
| 6410 | extern "C" |
| 6411 | # endif |
| 6412 | int F77_DUMMY_MAIN() { return 1; } |
| 6413 | #endif |
| 6414 | int |
| 6415 | main () |
| 6416 | { |
| 6417 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
| 6418 | test_array [0] = 0 |
| 6419 | |
| 6420 | ; |
| 6421 | return 0; |
| 6422 | } |
| 6423 | _ACEOF |
| 6424 | rm -f conftest.$ac_objext |
| 6425 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6426 | (eval $ac_compile) 2>&5 |
| 6427 | ac_status=$? |
| 6428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6429 | (exit $ac_status); } && |
| 6430 | { ac_try='test -s conftest.$ac_objext' |
| 6431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6432 | (eval $ac_try) 2>&5 |
| 6433 | ac_status=$? |
| 6434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6435 | (exit $ac_status); }; }; then |
| 6436 | ac_lo=$ac_mid; break |
| 6437 | else |
| 6438 | echo "$as_me: failed program was:" >&5 |
| 6439 | cat conftest.$ac_ext >&5 |
| 6440 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6441 | if test $ac_mid -le $ac_hi; then |
| 6442 | ac_lo= ac_hi= |
| 6443 | break |
| 6444 | fi |
| 6445 | ac_mid=`expr 2 '*' $ac_mid` |
| 6446 | fi |
| 6447 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6448 | done |
| 6449 | else |
| 6450 | echo "$as_me: failed program was:" >&5 |
| 6451 | cat conftest.$ac_ext >&5 |
| 6452 | ac_lo= ac_hi= |
| 6453 | fi |
| 6454 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6455 | fi |
| 6456 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6457 | # Binary search between lo and hi bounds. |
| 6458 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6459 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6460 | cat >conftest.$ac_ext <<_ACEOF |
| 6461 | #line $LINENO "configure" |
| 6462 | #include "confdefs.h" |
| 6463 | $ac_includes_default |
| 6464 | #ifdef F77_DUMMY_MAIN |
| 6465 | # ifdef __cplusplus |
| 6466 | extern "C" |
| 6467 | # endif |
| 6468 | int F77_DUMMY_MAIN() { return 1; } |
| 6469 | #endif |
| 6470 | int |
| 6471 | main () |
| 6472 | { |
| 6473 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 6474 | test_array [0] = 0 |
| 6475 | |
| 6476 | ; |
| 6477 | return 0; |
| 6478 | } |
| 6479 | _ACEOF |
| 6480 | rm -f conftest.$ac_objext |
| 6481 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6482 | (eval $ac_compile) 2>&5 |
| 6483 | ac_status=$? |
| 6484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6485 | (exit $ac_status); } && |
| 6486 | { ac_try='test -s conftest.$ac_objext' |
| 6487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6488 | (eval $ac_try) 2>&5 |
| 6489 | ac_status=$? |
| 6490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6491 | (exit $ac_status); }; }; then |
| 6492 | ac_hi=$ac_mid |
| 6493 | else |
| 6494 | echo "$as_me: failed program was:" >&5 |
| 6495 | cat conftest.$ac_ext >&5 |
| 6496 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6497 | fi |
| 6498 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6499 | done |
| 6500 | case $ac_lo in |
| 6501 | ?*) ac_cv_sizeof_char=$ac_lo;; |
| 6502 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 |
| 6503 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} |
| 6504 | { (exit 1); exit 1; }; } ;; |
| 6505 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6506 | else |
| 6507 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6508 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6509 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6510 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6511 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6512 | cat >conftest.$ac_ext <<_ACEOF |
| 6513 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6514 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6515 | $ac_includes_default |
| 6516 | long longval () { return (long) (sizeof (char)); } |
| 6517 | unsigned long ulongval () { return (long) (sizeof (char)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6518 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6519 | #include <stdlib.h> |
| 6520 | #ifdef F77_DUMMY_MAIN |
| 6521 | # ifdef __cplusplus |
| 6522 | extern "C" |
| 6523 | # endif |
| 6524 | int F77_DUMMY_MAIN() { return 1; } |
| 6525 | #endif |
| 6526 | int |
| 6527 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6528 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6529 | |
| 6530 | FILE *f = fopen ("conftest.val", "w"); |
| 6531 | if (! f) |
| 6532 | exit (1); |
| 6533 | if (((long) (sizeof (char))) < 0) |
| 6534 | { |
| 6535 | long i = longval (); |
| 6536 | if (i != ((long) (sizeof (char)))) |
| 6537 | exit (1); |
| 6538 | fprintf (f, "%ld\n", i); |
| 6539 | } |
| 6540 | else |
| 6541 | { |
| 6542 | unsigned long i = ulongval (); |
| 6543 | if (i != ((long) (sizeof (char)))) |
| 6544 | exit (1); |
| 6545 | fprintf (f, "%lu\n", i); |
| 6546 | } |
| 6547 | exit (ferror (f) || fclose (f) != 0); |
| 6548 | |
| 6549 | ; |
| 6550 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6551 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6552 | _ACEOF |
| 6553 | rm -f conftest$ac_exeext |
| 6554 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6555 | (eval $ac_link) 2>&5 |
| 6556 | ac_status=$? |
| 6557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6558 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6560 | (eval $ac_try) 2>&5 |
| 6561 | ac_status=$? |
| 6562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6563 | (exit $ac_status); }; }; then |
| 6564 | ac_cv_sizeof_char=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6565 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6566 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6567 | echo "$as_me: failed program was:" >&5 |
| 6568 | cat conftest.$ac_ext >&5 |
| 6569 | ( exit $ac_status ) |
| 6570 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 |
| 6571 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} |
| 6572 | { (exit 1); exit 1; }; } |
| 6573 | fi |
| 6574 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6575 | fi |
| 6576 | fi |
| 6577 | rm -f conftest.val |
| 6578 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6579 | ac_cv_sizeof_char=0 |
| 6580 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6581 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6582 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
| 6583 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 |
| 6584 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6585 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6586 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6587 | |
| 6588 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6589 | echo "$as_me:$LINENO: checking for short" >&5 |
| 6590 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
| 6591 | if test "${ac_cv_type_short+set}" = set; then |
| 6592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6593 | else |
| 6594 | cat >conftest.$ac_ext <<_ACEOF |
| 6595 | #line $LINENO "configure" |
| 6596 | #include "confdefs.h" |
| 6597 | $ac_includes_default |
| 6598 | #ifdef F77_DUMMY_MAIN |
| 6599 | # ifdef __cplusplus |
| 6600 | extern "C" |
| 6601 | # endif |
| 6602 | int F77_DUMMY_MAIN() { return 1; } |
| 6603 | #endif |
| 6604 | int |
| 6605 | main () |
| 6606 | { |
| 6607 | if ((short *) 0) |
| 6608 | return 0; |
| 6609 | if (sizeof (short)) |
| 6610 | return 0; |
| 6611 | ; |
| 6612 | return 0; |
| 6613 | } |
| 6614 | _ACEOF |
| 6615 | rm -f conftest.$ac_objext |
| 6616 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6617 | (eval $ac_compile) 2>&5 |
| 6618 | ac_status=$? |
| 6619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6620 | (exit $ac_status); } && |
| 6621 | { ac_try='test -s conftest.$ac_objext' |
| 6622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6623 | (eval $ac_try) 2>&5 |
| 6624 | ac_status=$? |
| 6625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6626 | (exit $ac_status); }; }; then |
| 6627 | ac_cv_type_short=yes |
| 6628 | else |
| 6629 | echo "$as_me: failed program was:" >&5 |
| 6630 | cat conftest.$ac_ext >&5 |
| 6631 | ac_cv_type_short=no |
| 6632 | fi |
| 6633 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6634 | fi |
| 6635 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 6636 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
| 6637 | |
| 6638 | echo "$as_me:$LINENO: checking size of short" >&5 |
| 6639 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
| 6640 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 6641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6642 | else |
| 6643 | if test "$ac_cv_type_short" = yes; then |
| 6644 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6645 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6646 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6647 | # This bug is HP SR number 8606223364. |
| 6648 | if test "$cross_compiling" = yes; then |
| 6649 | # Depending upon the size, compute the lo and hi bounds. |
| 6650 | cat >conftest.$ac_ext <<_ACEOF |
| 6651 | #line $LINENO "configure" |
| 6652 | #include "confdefs.h" |
| 6653 | $ac_includes_default |
| 6654 | #ifdef F77_DUMMY_MAIN |
| 6655 | # ifdef __cplusplus |
| 6656 | extern "C" |
| 6657 | # endif |
| 6658 | int F77_DUMMY_MAIN() { return 1; } |
| 6659 | #endif |
| 6660 | int |
| 6661 | main () |
| 6662 | { |
| 6663 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
| 6664 | test_array [0] = 0 |
| 6665 | |
| 6666 | ; |
| 6667 | return 0; |
| 6668 | } |
| 6669 | _ACEOF |
| 6670 | rm -f conftest.$ac_objext |
| 6671 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6672 | (eval $ac_compile) 2>&5 |
| 6673 | ac_status=$? |
| 6674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6675 | (exit $ac_status); } && |
| 6676 | { ac_try='test -s conftest.$ac_objext' |
| 6677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6678 | (eval $ac_try) 2>&5 |
| 6679 | ac_status=$? |
| 6680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6681 | (exit $ac_status); }; }; then |
| 6682 | ac_lo=0 ac_mid=0 |
| 6683 | while :; do |
| 6684 | cat >conftest.$ac_ext <<_ACEOF |
| 6685 | #line $LINENO "configure" |
| 6686 | #include "confdefs.h" |
| 6687 | $ac_includes_default |
| 6688 | #ifdef F77_DUMMY_MAIN |
| 6689 | # ifdef __cplusplus |
| 6690 | extern "C" |
| 6691 | # endif |
| 6692 | int F77_DUMMY_MAIN() { return 1; } |
| 6693 | #endif |
| 6694 | int |
| 6695 | main () |
| 6696 | { |
| 6697 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 6698 | test_array [0] = 0 |
| 6699 | |
| 6700 | ; |
| 6701 | return 0; |
| 6702 | } |
| 6703 | _ACEOF |
| 6704 | rm -f conftest.$ac_objext |
| 6705 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6706 | (eval $ac_compile) 2>&5 |
| 6707 | ac_status=$? |
| 6708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6709 | (exit $ac_status); } && |
| 6710 | { ac_try='test -s conftest.$ac_objext' |
| 6711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6712 | (eval $ac_try) 2>&5 |
| 6713 | ac_status=$? |
| 6714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6715 | (exit $ac_status); }; }; then |
| 6716 | ac_hi=$ac_mid; break |
| 6717 | else |
| 6718 | echo "$as_me: failed program was:" >&5 |
| 6719 | cat conftest.$ac_ext >&5 |
| 6720 | ac_lo=`expr $ac_mid + 1` |
| 6721 | if test $ac_lo -le $ac_mid; then |
| 6722 | ac_lo= ac_hi= |
| 6723 | break |
| 6724 | fi |
| 6725 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6726 | fi |
| 6727 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6728 | done |
| 6729 | else |
| 6730 | echo "$as_me: failed program was:" >&5 |
| 6731 | cat conftest.$ac_ext >&5 |
| 6732 | cat >conftest.$ac_ext <<_ACEOF |
| 6733 | #line $LINENO "configure" |
| 6734 | #include "confdefs.h" |
| 6735 | $ac_includes_default |
| 6736 | #ifdef F77_DUMMY_MAIN |
| 6737 | # ifdef __cplusplus |
| 6738 | extern "C" |
| 6739 | # endif |
| 6740 | int F77_DUMMY_MAIN() { return 1; } |
| 6741 | #endif |
| 6742 | int |
| 6743 | main () |
| 6744 | { |
| 6745 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
| 6746 | test_array [0] = 0 |
| 6747 | |
| 6748 | ; |
| 6749 | return 0; |
| 6750 | } |
| 6751 | _ACEOF |
| 6752 | rm -f conftest.$ac_objext |
| 6753 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6754 | (eval $ac_compile) 2>&5 |
| 6755 | ac_status=$? |
| 6756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6757 | (exit $ac_status); } && |
| 6758 | { ac_try='test -s conftest.$ac_objext' |
| 6759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6760 | (eval $ac_try) 2>&5 |
| 6761 | ac_status=$? |
| 6762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6763 | (exit $ac_status); }; }; then |
| 6764 | ac_hi=-1 ac_mid=-1 |
| 6765 | while :; do |
| 6766 | cat >conftest.$ac_ext <<_ACEOF |
| 6767 | #line $LINENO "configure" |
| 6768 | #include "confdefs.h" |
| 6769 | $ac_includes_default |
| 6770 | #ifdef F77_DUMMY_MAIN |
| 6771 | # ifdef __cplusplus |
| 6772 | extern "C" |
| 6773 | # endif |
| 6774 | int F77_DUMMY_MAIN() { return 1; } |
| 6775 | #endif |
| 6776 | int |
| 6777 | main () |
| 6778 | { |
| 6779 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
| 6780 | test_array [0] = 0 |
| 6781 | |
| 6782 | ; |
| 6783 | return 0; |
| 6784 | } |
| 6785 | _ACEOF |
| 6786 | rm -f conftest.$ac_objext |
| 6787 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6788 | (eval $ac_compile) 2>&5 |
| 6789 | ac_status=$? |
| 6790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6791 | (exit $ac_status); } && |
| 6792 | { ac_try='test -s conftest.$ac_objext' |
| 6793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6794 | (eval $ac_try) 2>&5 |
| 6795 | ac_status=$? |
| 6796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6797 | (exit $ac_status); }; }; then |
| 6798 | ac_lo=$ac_mid; break |
| 6799 | else |
| 6800 | echo "$as_me: failed program was:" >&5 |
| 6801 | cat conftest.$ac_ext >&5 |
| 6802 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6803 | if test $ac_mid -le $ac_hi; then |
| 6804 | ac_lo= ac_hi= |
| 6805 | break |
| 6806 | fi |
| 6807 | ac_mid=`expr 2 '*' $ac_mid` |
| 6808 | fi |
| 6809 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6810 | done |
| 6811 | else |
| 6812 | echo "$as_me: failed program was:" >&5 |
| 6813 | cat conftest.$ac_ext >&5 |
| 6814 | ac_lo= ac_hi= |
| 6815 | fi |
| 6816 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6817 | fi |
| 6818 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6819 | # Binary search between lo and hi bounds. |
| 6820 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6821 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6822 | cat >conftest.$ac_ext <<_ACEOF |
| 6823 | #line $LINENO "configure" |
| 6824 | #include "confdefs.h" |
| 6825 | $ac_includes_default |
| 6826 | #ifdef F77_DUMMY_MAIN |
| 6827 | # ifdef __cplusplus |
| 6828 | extern "C" |
| 6829 | # endif |
| 6830 | int F77_DUMMY_MAIN() { return 1; } |
| 6831 | #endif |
| 6832 | int |
| 6833 | main () |
| 6834 | { |
| 6835 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 6836 | test_array [0] = 0 |
| 6837 | |
| 6838 | ; |
| 6839 | return 0; |
| 6840 | } |
| 6841 | _ACEOF |
| 6842 | rm -f conftest.$ac_objext |
| 6843 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6844 | (eval $ac_compile) 2>&5 |
| 6845 | ac_status=$? |
| 6846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6847 | (exit $ac_status); } && |
| 6848 | { ac_try='test -s conftest.$ac_objext' |
| 6849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6850 | (eval $ac_try) 2>&5 |
| 6851 | ac_status=$? |
| 6852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6853 | (exit $ac_status); }; }; then |
| 6854 | ac_hi=$ac_mid |
| 6855 | else |
| 6856 | echo "$as_me: failed program was:" >&5 |
| 6857 | cat conftest.$ac_ext >&5 |
| 6858 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6859 | fi |
| 6860 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6861 | done |
| 6862 | case $ac_lo in |
| 6863 | ?*) ac_cv_sizeof_short=$ac_lo;; |
| 6864 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 |
| 6865 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} |
| 6866 | { (exit 1); exit 1; }; } ;; |
| 6867 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6868 | else |
| 6869 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6870 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6871 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6872 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6873 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6874 | cat >conftest.$ac_ext <<_ACEOF |
| 6875 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6876 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6877 | $ac_includes_default |
| 6878 | long longval () { return (long) (sizeof (short)); } |
| 6879 | unsigned long ulongval () { return (long) (sizeof (short)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6880 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6881 | #include <stdlib.h> |
| 6882 | #ifdef F77_DUMMY_MAIN |
| 6883 | # ifdef __cplusplus |
| 6884 | extern "C" |
| 6885 | # endif |
| 6886 | int F77_DUMMY_MAIN() { return 1; } |
| 6887 | #endif |
| 6888 | int |
| 6889 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6890 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6891 | |
| 6892 | FILE *f = fopen ("conftest.val", "w"); |
| 6893 | if (! f) |
| 6894 | exit (1); |
| 6895 | if (((long) (sizeof (short))) < 0) |
| 6896 | { |
| 6897 | long i = longval (); |
| 6898 | if (i != ((long) (sizeof (short)))) |
| 6899 | exit (1); |
| 6900 | fprintf (f, "%ld\n", i); |
| 6901 | } |
| 6902 | else |
| 6903 | { |
| 6904 | unsigned long i = ulongval (); |
| 6905 | if (i != ((long) (sizeof (short)))) |
| 6906 | exit (1); |
| 6907 | fprintf (f, "%lu\n", i); |
| 6908 | } |
| 6909 | exit (ferror (f) || fclose (f) != 0); |
| 6910 | |
| 6911 | ; |
| 6912 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6913 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6914 | _ACEOF |
| 6915 | rm -f conftest$ac_exeext |
| 6916 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6917 | (eval $ac_link) 2>&5 |
| 6918 | ac_status=$? |
| 6919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6920 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6922 | (eval $ac_try) 2>&5 |
| 6923 | ac_status=$? |
| 6924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6925 | (exit $ac_status); }; }; then |
| 6926 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6927 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6928 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6929 | echo "$as_me: failed program was:" >&5 |
| 6930 | cat conftest.$ac_ext >&5 |
| 6931 | ( exit $ac_status ) |
| 6932 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 |
| 6933 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} |
| 6934 | { (exit 1); exit 1; }; } |
| 6935 | fi |
| 6936 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6937 | fi |
| 6938 | fi |
| 6939 | rm -f conftest.val |
| 6940 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6941 | ac_cv_sizeof_short=0 |
| 6942 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6943 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6944 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 6945 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
| 6946 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6947 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6948 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6949 | |
| 6950 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6951 | echo "$as_me:$LINENO: checking for float" >&5 |
| 6952 | echo $ECHO_N "checking for float... $ECHO_C" >&6 |
| 6953 | if test "${ac_cv_type_float+set}" = set; then |
| 6954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6955 | else |
| 6956 | cat >conftest.$ac_ext <<_ACEOF |
| 6957 | #line $LINENO "configure" |
| 6958 | #include "confdefs.h" |
| 6959 | $ac_includes_default |
| 6960 | #ifdef F77_DUMMY_MAIN |
| 6961 | # ifdef __cplusplus |
| 6962 | extern "C" |
| 6963 | # endif |
| 6964 | int F77_DUMMY_MAIN() { return 1; } |
| 6965 | #endif |
| 6966 | int |
| 6967 | main () |
| 6968 | { |
| 6969 | if ((float *) 0) |
| 6970 | return 0; |
| 6971 | if (sizeof (float)) |
| 6972 | return 0; |
| 6973 | ; |
| 6974 | return 0; |
| 6975 | } |
| 6976 | _ACEOF |
| 6977 | rm -f conftest.$ac_objext |
| 6978 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6979 | (eval $ac_compile) 2>&5 |
| 6980 | ac_status=$? |
| 6981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6982 | (exit $ac_status); } && |
| 6983 | { ac_try='test -s conftest.$ac_objext' |
| 6984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6985 | (eval $ac_try) 2>&5 |
| 6986 | ac_status=$? |
| 6987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6988 | (exit $ac_status); }; }; then |
| 6989 | ac_cv_type_float=yes |
| 6990 | else |
| 6991 | echo "$as_me: failed program was:" >&5 |
| 6992 | cat conftest.$ac_ext >&5 |
| 6993 | ac_cv_type_float=no |
| 6994 | fi |
| 6995 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6996 | fi |
| 6997 | echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 6998 | echo "${ECHO_T}$ac_cv_type_float" >&6 |
| 6999 | |
| 7000 | echo "$as_me:$LINENO: checking size of float" >&5 |
| 7001 | echo $ECHO_N "checking size of float... $ECHO_C" >&6 |
| 7002 | if test "${ac_cv_sizeof_float+set}" = set; then |
| 7003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7004 | else |
| 7005 | if test "$ac_cv_type_float" = yes; then |
| 7006 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7007 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7008 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7009 | # This bug is HP SR number 8606223364. |
| 7010 | if test "$cross_compiling" = yes; then |
| 7011 | # Depending upon the size, compute the lo and hi bounds. |
| 7012 | cat >conftest.$ac_ext <<_ACEOF |
| 7013 | #line $LINENO "configure" |
| 7014 | #include "confdefs.h" |
| 7015 | $ac_includes_default |
| 7016 | #ifdef F77_DUMMY_MAIN |
| 7017 | # ifdef __cplusplus |
| 7018 | extern "C" |
| 7019 | # endif |
| 7020 | int F77_DUMMY_MAIN() { return 1; } |
| 7021 | #endif |
| 7022 | int |
| 7023 | main () |
| 7024 | { |
| 7025 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)]; |
| 7026 | test_array [0] = 0 |
| 7027 | |
| 7028 | ; |
| 7029 | return 0; |
| 7030 | } |
| 7031 | _ACEOF |
| 7032 | rm -f conftest.$ac_objext |
| 7033 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7034 | (eval $ac_compile) 2>&5 |
| 7035 | ac_status=$? |
| 7036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7037 | (exit $ac_status); } && |
| 7038 | { ac_try='test -s conftest.$ac_objext' |
| 7039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7040 | (eval $ac_try) 2>&5 |
| 7041 | ac_status=$? |
| 7042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7043 | (exit $ac_status); }; }; then |
| 7044 | ac_lo=0 ac_mid=0 |
| 7045 | while :; do |
| 7046 | cat >conftest.$ac_ext <<_ACEOF |
| 7047 | #line $LINENO "configure" |
| 7048 | #include "confdefs.h" |
| 7049 | $ac_includes_default |
| 7050 | #ifdef F77_DUMMY_MAIN |
| 7051 | # ifdef __cplusplus |
| 7052 | extern "C" |
| 7053 | # endif |
| 7054 | int F77_DUMMY_MAIN() { return 1; } |
| 7055 | #endif |
| 7056 | int |
| 7057 | main () |
| 7058 | { |
| 7059 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 7060 | test_array [0] = 0 |
| 7061 | |
| 7062 | ; |
| 7063 | return 0; |
| 7064 | } |
| 7065 | _ACEOF |
| 7066 | rm -f conftest.$ac_objext |
| 7067 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7068 | (eval $ac_compile) 2>&5 |
| 7069 | ac_status=$? |
| 7070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7071 | (exit $ac_status); } && |
| 7072 | { ac_try='test -s conftest.$ac_objext' |
| 7073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7074 | (eval $ac_try) 2>&5 |
| 7075 | ac_status=$? |
| 7076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7077 | (exit $ac_status); }; }; then |
| 7078 | ac_hi=$ac_mid; break |
| 7079 | else |
| 7080 | echo "$as_me: failed program was:" >&5 |
| 7081 | cat conftest.$ac_ext >&5 |
| 7082 | ac_lo=`expr $ac_mid + 1` |
| 7083 | if test $ac_lo -le $ac_mid; then |
| 7084 | ac_lo= ac_hi= |
| 7085 | break |
| 7086 | fi |
| 7087 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7088 | fi |
| 7089 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7090 | done |
| 7091 | else |
| 7092 | echo "$as_me: failed program was:" >&5 |
| 7093 | cat conftest.$ac_ext >&5 |
| 7094 | cat >conftest.$ac_ext <<_ACEOF |
| 7095 | #line $LINENO "configure" |
| 7096 | #include "confdefs.h" |
| 7097 | $ac_includes_default |
| 7098 | #ifdef F77_DUMMY_MAIN |
| 7099 | # ifdef __cplusplus |
| 7100 | extern "C" |
| 7101 | # endif |
| 7102 | int F77_DUMMY_MAIN() { return 1; } |
| 7103 | #endif |
| 7104 | int |
| 7105 | main () |
| 7106 | { |
| 7107 | static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)]; |
| 7108 | test_array [0] = 0 |
| 7109 | |
| 7110 | ; |
| 7111 | return 0; |
| 7112 | } |
| 7113 | _ACEOF |
| 7114 | rm -f conftest.$ac_objext |
| 7115 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7116 | (eval $ac_compile) 2>&5 |
| 7117 | ac_status=$? |
| 7118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7119 | (exit $ac_status); } && |
| 7120 | { ac_try='test -s conftest.$ac_objext' |
| 7121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7122 | (eval $ac_try) 2>&5 |
| 7123 | ac_status=$? |
| 7124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7125 | (exit $ac_status); }; }; then |
| 7126 | ac_hi=-1 ac_mid=-1 |
| 7127 | while :; do |
| 7128 | cat >conftest.$ac_ext <<_ACEOF |
| 7129 | #line $LINENO "configure" |
| 7130 | #include "confdefs.h" |
| 7131 | $ac_includes_default |
| 7132 | #ifdef F77_DUMMY_MAIN |
| 7133 | # ifdef __cplusplus |
| 7134 | extern "C" |
| 7135 | # endif |
| 7136 | int F77_DUMMY_MAIN() { return 1; } |
| 7137 | #endif |
| 7138 | int |
| 7139 | main () |
| 7140 | { |
| 7141 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)]; |
| 7142 | test_array [0] = 0 |
| 7143 | |
| 7144 | ; |
| 7145 | return 0; |
| 7146 | } |
| 7147 | _ACEOF |
| 7148 | rm -f conftest.$ac_objext |
| 7149 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7150 | (eval $ac_compile) 2>&5 |
| 7151 | ac_status=$? |
| 7152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7153 | (exit $ac_status); } && |
| 7154 | { ac_try='test -s conftest.$ac_objext' |
| 7155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7156 | (eval $ac_try) 2>&5 |
| 7157 | ac_status=$? |
| 7158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7159 | (exit $ac_status); }; }; then |
| 7160 | ac_lo=$ac_mid; break |
| 7161 | else |
| 7162 | echo "$as_me: failed program was:" >&5 |
| 7163 | cat conftest.$ac_ext >&5 |
| 7164 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7165 | if test $ac_mid -le $ac_hi; then |
| 7166 | ac_lo= ac_hi= |
| 7167 | break |
| 7168 | fi |
| 7169 | ac_mid=`expr 2 '*' $ac_mid` |
| 7170 | fi |
| 7171 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7172 | done |
| 7173 | else |
| 7174 | echo "$as_me: failed program was:" >&5 |
| 7175 | cat conftest.$ac_ext >&5 |
| 7176 | ac_lo= ac_hi= |
| 7177 | fi |
| 7178 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7179 | fi |
| 7180 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7181 | # Binary search between lo and hi bounds. |
| 7182 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7183 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7184 | cat >conftest.$ac_ext <<_ACEOF |
| 7185 | #line $LINENO "configure" |
| 7186 | #include "confdefs.h" |
| 7187 | $ac_includes_default |
| 7188 | #ifdef F77_DUMMY_MAIN |
| 7189 | # ifdef __cplusplus |
| 7190 | extern "C" |
| 7191 | # endif |
| 7192 | int F77_DUMMY_MAIN() { return 1; } |
| 7193 | #endif |
| 7194 | int |
| 7195 | main () |
| 7196 | { |
| 7197 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 7198 | test_array [0] = 0 |
| 7199 | |
| 7200 | ; |
| 7201 | return 0; |
| 7202 | } |
| 7203 | _ACEOF |
| 7204 | rm -f conftest.$ac_objext |
| 7205 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7206 | (eval $ac_compile) 2>&5 |
| 7207 | ac_status=$? |
| 7208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7209 | (exit $ac_status); } && |
| 7210 | { ac_try='test -s conftest.$ac_objext' |
| 7211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7212 | (eval $ac_try) 2>&5 |
| 7213 | ac_status=$? |
| 7214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7215 | (exit $ac_status); }; }; then |
| 7216 | ac_hi=$ac_mid |
| 7217 | else |
| 7218 | echo "$as_me: failed program was:" >&5 |
| 7219 | cat conftest.$ac_ext >&5 |
| 7220 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7221 | fi |
| 7222 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7223 | done |
| 7224 | case $ac_lo in |
| 7225 | ?*) ac_cv_sizeof_float=$ac_lo;; |
| 7226 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5 |
| 7227 | echo "$as_me: error: cannot compute sizeof (float), 77" >&2;} |
| 7228 | { (exit 1); exit 1; }; } ;; |
| 7229 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7230 | else |
| 7231 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7232 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7233 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7234 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7235 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7236 | cat >conftest.$ac_ext <<_ACEOF |
| 7237 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7238 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7239 | $ac_includes_default |
| 7240 | long longval () { return (long) (sizeof (float)); } |
| 7241 | unsigned long ulongval () { return (long) (sizeof (float)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7242 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7243 | #include <stdlib.h> |
| 7244 | #ifdef F77_DUMMY_MAIN |
| 7245 | # ifdef __cplusplus |
| 7246 | extern "C" |
| 7247 | # endif |
| 7248 | int F77_DUMMY_MAIN() { return 1; } |
| 7249 | #endif |
| 7250 | int |
| 7251 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7252 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7253 | |
| 7254 | FILE *f = fopen ("conftest.val", "w"); |
| 7255 | if (! f) |
| 7256 | exit (1); |
| 7257 | if (((long) (sizeof (float))) < 0) |
| 7258 | { |
| 7259 | long i = longval (); |
| 7260 | if (i != ((long) (sizeof (float)))) |
| 7261 | exit (1); |
| 7262 | fprintf (f, "%ld\n", i); |
| 7263 | } |
| 7264 | else |
| 7265 | { |
| 7266 | unsigned long i = ulongval (); |
| 7267 | if (i != ((long) (sizeof (float)))) |
| 7268 | exit (1); |
| 7269 | fprintf (f, "%lu\n", i); |
| 7270 | } |
| 7271 | exit (ferror (f) || fclose (f) != 0); |
| 7272 | |
| 7273 | ; |
| 7274 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7275 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7276 | _ACEOF |
| 7277 | rm -f conftest$ac_exeext |
| 7278 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7279 | (eval $ac_link) 2>&5 |
| 7280 | ac_status=$? |
| 7281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7282 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7284 | (eval $ac_try) 2>&5 |
| 7285 | ac_status=$? |
| 7286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7287 | (exit $ac_status); }; }; then |
| 7288 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7289 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7290 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7291 | echo "$as_me: failed program was:" >&5 |
| 7292 | cat conftest.$ac_ext >&5 |
| 7293 | ( exit $ac_status ) |
| 7294 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5 |
| 7295 | echo "$as_me: error: cannot compute sizeof (float), 77" >&2;} |
| 7296 | { (exit 1); exit 1; }; } |
| 7297 | fi |
| 7298 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7299 | fi |
| 7300 | fi |
| 7301 | rm -f conftest.val |
| 7302 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7303 | ac_cv_sizeof_float=0 |
| 7304 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7305 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7306 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 7307 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6 |
| 7308 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7309 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7310 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7311 | |
| 7312 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7313 | echo "$as_me:$LINENO: checking for double" >&5 |
| 7314 | echo $ECHO_N "checking for double... $ECHO_C" >&6 |
| 7315 | if test "${ac_cv_type_double+set}" = set; then |
| 7316 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7317 | else |
| 7318 | cat >conftest.$ac_ext <<_ACEOF |
| 7319 | #line $LINENO "configure" |
| 7320 | #include "confdefs.h" |
| 7321 | $ac_includes_default |
| 7322 | #ifdef F77_DUMMY_MAIN |
| 7323 | # ifdef __cplusplus |
| 7324 | extern "C" |
| 7325 | # endif |
| 7326 | int F77_DUMMY_MAIN() { return 1; } |
| 7327 | #endif |
| 7328 | int |
| 7329 | main () |
| 7330 | { |
| 7331 | if ((double *) 0) |
| 7332 | return 0; |
| 7333 | if (sizeof (double)) |
| 7334 | return 0; |
| 7335 | ; |
| 7336 | return 0; |
| 7337 | } |
| 7338 | _ACEOF |
| 7339 | rm -f conftest.$ac_objext |
| 7340 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7341 | (eval $ac_compile) 2>&5 |
| 7342 | ac_status=$? |
| 7343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7344 | (exit $ac_status); } && |
| 7345 | { ac_try='test -s conftest.$ac_objext' |
| 7346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7347 | (eval $ac_try) 2>&5 |
| 7348 | ac_status=$? |
| 7349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7350 | (exit $ac_status); }; }; then |
| 7351 | ac_cv_type_double=yes |
| 7352 | else |
| 7353 | echo "$as_me: failed program was:" >&5 |
| 7354 | cat conftest.$ac_ext >&5 |
| 7355 | ac_cv_type_double=no |
| 7356 | fi |
| 7357 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7358 | fi |
| 7359 | echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 7360 | echo "${ECHO_T}$ac_cv_type_double" >&6 |
| 7361 | |
| 7362 | echo "$as_me:$LINENO: checking size of double" >&5 |
| 7363 | echo $ECHO_N "checking size of double... $ECHO_C" >&6 |
| 7364 | if test "${ac_cv_sizeof_double+set}" = set; then |
| 7365 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7366 | else |
| 7367 | if test "$ac_cv_type_double" = yes; then |
| 7368 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7369 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7370 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7371 | # This bug is HP SR number 8606223364. |
| 7372 | if test "$cross_compiling" = yes; then |
| 7373 | # Depending upon the size, compute the lo and hi bounds. |
| 7374 | cat >conftest.$ac_ext <<_ACEOF |
| 7375 | #line $LINENO "configure" |
| 7376 | #include "confdefs.h" |
| 7377 | $ac_includes_default |
| 7378 | #ifdef F77_DUMMY_MAIN |
| 7379 | # ifdef __cplusplus |
| 7380 | extern "C" |
| 7381 | # endif |
| 7382 | int F77_DUMMY_MAIN() { return 1; } |
| 7383 | #endif |
| 7384 | int |
| 7385 | main () |
| 7386 | { |
| 7387 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)]; |
| 7388 | test_array [0] = 0 |
| 7389 | |
| 7390 | ; |
| 7391 | return 0; |
| 7392 | } |
| 7393 | _ACEOF |
| 7394 | rm -f conftest.$ac_objext |
| 7395 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7396 | (eval $ac_compile) 2>&5 |
| 7397 | ac_status=$? |
| 7398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7399 | (exit $ac_status); } && |
| 7400 | { ac_try='test -s conftest.$ac_objext' |
| 7401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7402 | (eval $ac_try) 2>&5 |
| 7403 | ac_status=$? |
| 7404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7405 | (exit $ac_status); }; }; then |
| 7406 | ac_lo=0 ac_mid=0 |
| 7407 | while :; do |
| 7408 | cat >conftest.$ac_ext <<_ACEOF |
| 7409 | #line $LINENO "configure" |
| 7410 | #include "confdefs.h" |
| 7411 | $ac_includes_default |
| 7412 | #ifdef F77_DUMMY_MAIN |
| 7413 | # ifdef __cplusplus |
| 7414 | extern "C" |
| 7415 | # endif |
| 7416 | int F77_DUMMY_MAIN() { return 1; } |
| 7417 | #endif |
| 7418 | int |
| 7419 | main () |
| 7420 | { |
| 7421 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 7422 | test_array [0] = 0 |
| 7423 | |
| 7424 | ; |
| 7425 | return 0; |
| 7426 | } |
| 7427 | _ACEOF |
| 7428 | rm -f conftest.$ac_objext |
| 7429 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7430 | (eval $ac_compile) 2>&5 |
| 7431 | ac_status=$? |
| 7432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7433 | (exit $ac_status); } && |
| 7434 | { ac_try='test -s conftest.$ac_objext' |
| 7435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7436 | (eval $ac_try) 2>&5 |
| 7437 | ac_status=$? |
| 7438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7439 | (exit $ac_status); }; }; then |
| 7440 | ac_hi=$ac_mid; break |
| 7441 | else |
| 7442 | echo "$as_me: failed program was:" >&5 |
| 7443 | cat conftest.$ac_ext >&5 |
| 7444 | ac_lo=`expr $ac_mid + 1` |
| 7445 | if test $ac_lo -le $ac_mid; then |
| 7446 | ac_lo= ac_hi= |
| 7447 | break |
| 7448 | fi |
| 7449 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7450 | fi |
| 7451 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7452 | done |
| 7453 | else |
| 7454 | echo "$as_me: failed program was:" >&5 |
| 7455 | cat conftest.$ac_ext >&5 |
| 7456 | cat >conftest.$ac_ext <<_ACEOF |
| 7457 | #line $LINENO "configure" |
| 7458 | #include "confdefs.h" |
| 7459 | $ac_includes_default |
| 7460 | #ifdef F77_DUMMY_MAIN |
| 7461 | # ifdef __cplusplus |
| 7462 | extern "C" |
| 7463 | # endif |
| 7464 | int F77_DUMMY_MAIN() { return 1; } |
| 7465 | #endif |
| 7466 | int |
| 7467 | main () |
| 7468 | { |
| 7469 | static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)]; |
| 7470 | test_array [0] = 0 |
| 7471 | |
| 7472 | ; |
| 7473 | return 0; |
| 7474 | } |
| 7475 | _ACEOF |
| 7476 | rm -f conftest.$ac_objext |
| 7477 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7478 | (eval $ac_compile) 2>&5 |
| 7479 | ac_status=$? |
| 7480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7481 | (exit $ac_status); } && |
| 7482 | { ac_try='test -s conftest.$ac_objext' |
| 7483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7484 | (eval $ac_try) 2>&5 |
| 7485 | ac_status=$? |
| 7486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7487 | (exit $ac_status); }; }; then |
| 7488 | ac_hi=-1 ac_mid=-1 |
| 7489 | while :; do |
| 7490 | cat >conftest.$ac_ext <<_ACEOF |
| 7491 | #line $LINENO "configure" |
| 7492 | #include "confdefs.h" |
| 7493 | $ac_includes_default |
| 7494 | #ifdef F77_DUMMY_MAIN |
| 7495 | # ifdef __cplusplus |
| 7496 | extern "C" |
| 7497 | # endif |
| 7498 | int F77_DUMMY_MAIN() { return 1; } |
| 7499 | #endif |
| 7500 | int |
| 7501 | main () |
| 7502 | { |
| 7503 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)]; |
| 7504 | test_array [0] = 0 |
| 7505 | |
| 7506 | ; |
| 7507 | return 0; |
| 7508 | } |
| 7509 | _ACEOF |
| 7510 | rm -f conftest.$ac_objext |
| 7511 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7512 | (eval $ac_compile) 2>&5 |
| 7513 | ac_status=$? |
| 7514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7515 | (exit $ac_status); } && |
| 7516 | { ac_try='test -s conftest.$ac_objext' |
| 7517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7518 | (eval $ac_try) 2>&5 |
| 7519 | ac_status=$? |
| 7520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7521 | (exit $ac_status); }; }; then |
| 7522 | ac_lo=$ac_mid; break |
| 7523 | else |
| 7524 | echo "$as_me: failed program was:" >&5 |
| 7525 | cat conftest.$ac_ext >&5 |
| 7526 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7527 | if test $ac_mid -le $ac_hi; then |
| 7528 | ac_lo= ac_hi= |
| 7529 | break |
| 7530 | fi |
| 7531 | ac_mid=`expr 2 '*' $ac_mid` |
| 7532 | fi |
| 7533 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7534 | done |
| 7535 | else |
| 7536 | echo "$as_me: failed program was:" >&5 |
| 7537 | cat conftest.$ac_ext >&5 |
| 7538 | ac_lo= ac_hi= |
| 7539 | fi |
| 7540 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7541 | fi |
| 7542 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7543 | # Binary search between lo and hi bounds. |
| 7544 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7545 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7546 | cat >conftest.$ac_ext <<_ACEOF |
| 7547 | #line $LINENO "configure" |
| 7548 | #include "confdefs.h" |
| 7549 | $ac_includes_default |
| 7550 | #ifdef F77_DUMMY_MAIN |
| 7551 | # ifdef __cplusplus |
| 7552 | extern "C" |
| 7553 | # endif |
| 7554 | int F77_DUMMY_MAIN() { return 1; } |
| 7555 | #endif |
| 7556 | int |
| 7557 | main () |
| 7558 | { |
| 7559 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 7560 | test_array [0] = 0 |
| 7561 | |
| 7562 | ; |
| 7563 | return 0; |
| 7564 | } |
| 7565 | _ACEOF |
| 7566 | rm -f conftest.$ac_objext |
| 7567 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7568 | (eval $ac_compile) 2>&5 |
| 7569 | ac_status=$? |
| 7570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7571 | (exit $ac_status); } && |
| 7572 | { ac_try='test -s conftest.$ac_objext' |
| 7573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7574 | (eval $ac_try) 2>&5 |
| 7575 | ac_status=$? |
| 7576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7577 | (exit $ac_status); }; }; then |
| 7578 | ac_hi=$ac_mid |
| 7579 | else |
| 7580 | echo "$as_me: failed program was:" >&5 |
| 7581 | cat conftest.$ac_ext >&5 |
| 7582 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7583 | fi |
| 7584 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7585 | done |
| 7586 | case $ac_lo in |
| 7587 | ?*) ac_cv_sizeof_double=$ac_lo;; |
| 7588 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5 |
| 7589 | echo "$as_me: error: cannot compute sizeof (double), 77" >&2;} |
| 7590 | { (exit 1); exit 1; }; } ;; |
| 7591 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7592 | else |
| 7593 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7594 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7595 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7596 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7597 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7598 | cat >conftest.$ac_ext <<_ACEOF |
| 7599 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7600 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7601 | $ac_includes_default |
| 7602 | long longval () { return (long) (sizeof (double)); } |
| 7603 | unsigned long ulongval () { return (long) (sizeof (double)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7604 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7605 | #include <stdlib.h> |
| 7606 | #ifdef F77_DUMMY_MAIN |
| 7607 | # ifdef __cplusplus |
| 7608 | extern "C" |
| 7609 | # endif |
| 7610 | int F77_DUMMY_MAIN() { return 1; } |
| 7611 | #endif |
| 7612 | int |
| 7613 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7614 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7615 | |
| 7616 | FILE *f = fopen ("conftest.val", "w"); |
| 7617 | if (! f) |
| 7618 | exit (1); |
| 7619 | if (((long) (sizeof (double))) < 0) |
| 7620 | { |
| 7621 | long i = longval (); |
| 7622 | if (i != ((long) (sizeof (double)))) |
| 7623 | exit (1); |
| 7624 | fprintf (f, "%ld\n", i); |
| 7625 | } |
| 7626 | else |
| 7627 | { |
| 7628 | unsigned long i = ulongval (); |
| 7629 | if (i != ((long) (sizeof (double)))) |
| 7630 | exit (1); |
| 7631 | fprintf (f, "%lu\n", i); |
| 7632 | } |
| 7633 | exit (ferror (f) || fclose (f) != 0); |
| 7634 | |
| 7635 | ; |
| 7636 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7637 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7638 | _ACEOF |
| 7639 | rm -f conftest$ac_exeext |
| 7640 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7641 | (eval $ac_link) 2>&5 |
| 7642 | ac_status=$? |
| 7643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7644 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7646 | (eval $ac_try) 2>&5 |
| 7647 | ac_status=$? |
| 7648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7649 | (exit $ac_status); }; }; then |
| 7650 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7651 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7652 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7653 | echo "$as_me: failed program was:" >&5 |
| 7654 | cat conftest.$ac_ext >&5 |
| 7655 | ( exit $ac_status ) |
| 7656 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5 |
| 7657 | echo "$as_me: error: cannot compute sizeof (double), 77" >&2;} |
| 7658 | { (exit 1); exit 1; }; } |
| 7659 | fi |
| 7660 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7661 | fi |
| 7662 | fi |
| 7663 | rm -f conftest.val |
| 7664 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7665 | ac_cv_sizeof_double=0 |
| 7666 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7667 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7668 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 7669 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6 |
| 7670 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7671 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7672 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7673 | |
| 7674 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7675 | echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 7676 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6 |
| 7677 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 7678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7679 | else |
| 7680 | cat >conftest.$ac_ext <<_ACEOF |
| 7681 | #line $LINENO "configure" |
| 7682 | #include "confdefs.h" |
| 7683 | $ac_includes_default |
| 7684 | #ifdef F77_DUMMY_MAIN |
| 7685 | # ifdef __cplusplus |
| 7686 | extern "C" |
| 7687 | # endif |
| 7688 | int F77_DUMMY_MAIN() { return 1; } |
| 7689 | #endif |
| 7690 | int |
| 7691 | main () |
| 7692 | { |
| 7693 | if ((fpos_t *) 0) |
| 7694 | return 0; |
| 7695 | if (sizeof (fpos_t)) |
| 7696 | return 0; |
| 7697 | ; |
| 7698 | return 0; |
| 7699 | } |
| 7700 | _ACEOF |
| 7701 | rm -f conftest.$ac_objext |
| 7702 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7703 | (eval $ac_compile) 2>&5 |
| 7704 | ac_status=$? |
| 7705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7706 | (exit $ac_status); } && |
| 7707 | { ac_try='test -s conftest.$ac_objext' |
| 7708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7709 | (eval $ac_try) 2>&5 |
| 7710 | ac_status=$? |
| 7711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7712 | (exit $ac_status); }; }; then |
| 7713 | ac_cv_type_fpos_t=yes |
| 7714 | else |
| 7715 | echo "$as_me: failed program was:" >&5 |
| 7716 | cat conftest.$ac_ext >&5 |
| 7717 | ac_cv_type_fpos_t=no |
| 7718 | fi |
| 7719 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7720 | fi |
| 7721 | echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 7722 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6 |
| 7723 | |
| 7724 | echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 7725 | echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6 |
| 7726 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| 7727 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7728 | else |
| 7729 | if test "$ac_cv_type_fpos_t" = yes; then |
| 7730 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7731 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7732 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7733 | # This bug is HP SR number 8606223364. |
| 7734 | if test "$cross_compiling" = yes; then |
| 7735 | # Depending upon the size, compute the lo and hi bounds. |
| 7736 | cat >conftest.$ac_ext <<_ACEOF |
| 7737 | #line $LINENO "configure" |
| 7738 | #include "confdefs.h" |
| 7739 | $ac_includes_default |
| 7740 | #ifdef F77_DUMMY_MAIN |
| 7741 | # ifdef __cplusplus |
| 7742 | extern "C" |
| 7743 | # endif |
| 7744 | int F77_DUMMY_MAIN() { return 1; } |
| 7745 | #endif |
| 7746 | int |
| 7747 | main () |
| 7748 | { |
| 7749 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)]; |
| 7750 | test_array [0] = 0 |
| 7751 | |
| 7752 | ; |
| 7753 | return 0; |
| 7754 | } |
| 7755 | _ACEOF |
| 7756 | rm -f conftest.$ac_objext |
| 7757 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7758 | (eval $ac_compile) 2>&5 |
| 7759 | ac_status=$? |
| 7760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7761 | (exit $ac_status); } && |
| 7762 | { ac_try='test -s conftest.$ac_objext' |
| 7763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7764 | (eval $ac_try) 2>&5 |
| 7765 | ac_status=$? |
| 7766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7767 | (exit $ac_status); }; }; then |
| 7768 | ac_lo=0 ac_mid=0 |
| 7769 | while :; do |
| 7770 | cat >conftest.$ac_ext <<_ACEOF |
| 7771 | #line $LINENO "configure" |
| 7772 | #include "confdefs.h" |
| 7773 | $ac_includes_default |
| 7774 | #ifdef F77_DUMMY_MAIN |
| 7775 | # ifdef __cplusplus |
| 7776 | extern "C" |
| 7777 | # endif |
| 7778 | int F77_DUMMY_MAIN() { return 1; } |
| 7779 | #endif |
| 7780 | int |
| 7781 | main () |
| 7782 | { |
| 7783 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 7784 | test_array [0] = 0 |
| 7785 | |
| 7786 | ; |
| 7787 | return 0; |
| 7788 | } |
| 7789 | _ACEOF |
| 7790 | rm -f conftest.$ac_objext |
| 7791 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7792 | (eval $ac_compile) 2>&5 |
| 7793 | ac_status=$? |
| 7794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7795 | (exit $ac_status); } && |
| 7796 | { ac_try='test -s conftest.$ac_objext' |
| 7797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7798 | (eval $ac_try) 2>&5 |
| 7799 | ac_status=$? |
| 7800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7801 | (exit $ac_status); }; }; then |
| 7802 | ac_hi=$ac_mid; break |
| 7803 | else |
| 7804 | echo "$as_me: failed program was:" >&5 |
| 7805 | cat conftest.$ac_ext >&5 |
| 7806 | ac_lo=`expr $ac_mid + 1` |
| 7807 | if test $ac_lo -le $ac_mid; then |
| 7808 | ac_lo= ac_hi= |
| 7809 | break |
| 7810 | fi |
| 7811 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7812 | fi |
| 7813 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7814 | done |
| 7815 | else |
| 7816 | echo "$as_me: failed program was:" >&5 |
| 7817 | cat conftest.$ac_ext >&5 |
| 7818 | cat >conftest.$ac_ext <<_ACEOF |
| 7819 | #line $LINENO "configure" |
| 7820 | #include "confdefs.h" |
| 7821 | $ac_includes_default |
| 7822 | #ifdef F77_DUMMY_MAIN |
| 7823 | # ifdef __cplusplus |
| 7824 | extern "C" |
| 7825 | # endif |
| 7826 | int F77_DUMMY_MAIN() { return 1; } |
| 7827 | #endif |
| 7828 | int |
| 7829 | main () |
| 7830 | { |
| 7831 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)]; |
| 7832 | test_array [0] = 0 |
| 7833 | |
| 7834 | ; |
| 7835 | return 0; |
| 7836 | } |
| 7837 | _ACEOF |
| 7838 | rm -f conftest.$ac_objext |
| 7839 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7840 | (eval $ac_compile) 2>&5 |
| 7841 | ac_status=$? |
| 7842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7843 | (exit $ac_status); } && |
| 7844 | { ac_try='test -s conftest.$ac_objext' |
| 7845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7846 | (eval $ac_try) 2>&5 |
| 7847 | ac_status=$? |
| 7848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7849 | (exit $ac_status); }; }; then |
| 7850 | ac_hi=-1 ac_mid=-1 |
| 7851 | while :; do |
| 7852 | cat >conftest.$ac_ext <<_ACEOF |
| 7853 | #line $LINENO "configure" |
| 7854 | #include "confdefs.h" |
| 7855 | $ac_includes_default |
| 7856 | #ifdef F77_DUMMY_MAIN |
| 7857 | # ifdef __cplusplus |
| 7858 | extern "C" |
| 7859 | # endif |
| 7860 | int F77_DUMMY_MAIN() { return 1; } |
| 7861 | #endif |
| 7862 | int |
| 7863 | main () |
| 7864 | { |
| 7865 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)]; |
| 7866 | test_array [0] = 0 |
| 7867 | |
| 7868 | ; |
| 7869 | return 0; |
| 7870 | } |
| 7871 | _ACEOF |
| 7872 | rm -f conftest.$ac_objext |
| 7873 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7874 | (eval $ac_compile) 2>&5 |
| 7875 | ac_status=$? |
| 7876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7877 | (exit $ac_status); } && |
| 7878 | { ac_try='test -s conftest.$ac_objext' |
| 7879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7880 | (eval $ac_try) 2>&5 |
| 7881 | ac_status=$? |
| 7882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7883 | (exit $ac_status); }; }; then |
| 7884 | ac_lo=$ac_mid; break |
| 7885 | else |
| 7886 | echo "$as_me: failed program was:" >&5 |
| 7887 | cat conftest.$ac_ext >&5 |
| 7888 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7889 | if test $ac_mid -le $ac_hi; then |
| 7890 | ac_lo= ac_hi= |
| 7891 | break |
| 7892 | fi |
| 7893 | ac_mid=`expr 2 '*' $ac_mid` |
| 7894 | fi |
| 7895 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7896 | done |
| 7897 | else |
| 7898 | echo "$as_me: failed program was:" >&5 |
| 7899 | cat conftest.$ac_ext >&5 |
| 7900 | ac_lo= ac_hi= |
| 7901 | fi |
| 7902 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7903 | fi |
| 7904 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7905 | # Binary search between lo and hi bounds. |
| 7906 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7907 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7908 | cat >conftest.$ac_ext <<_ACEOF |
| 7909 | #line $LINENO "configure" |
| 7910 | #include "confdefs.h" |
| 7911 | $ac_includes_default |
| 7912 | #ifdef F77_DUMMY_MAIN |
| 7913 | # ifdef __cplusplus |
| 7914 | extern "C" |
| 7915 | # endif |
| 7916 | int F77_DUMMY_MAIN() { return 1; } |
| 7917 | #endif |
| 7918 | int |
| 7919 | main () |
| 7920 | { |
| 7921 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 7922 | test_array [0] = 0 |
| 7923 | |
| 7924 | ; |
| 7925 | return 0; |
| 7926 | } |
| 7927 | _ACEOF |
| 7928 | rm -f conftest.$ac_objext |
| 7929 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7930 | (eval $ac_compile) 2>&5 |
| 7931 | ac_status=$? |
| 7932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7933 | (exit $ac_status); } && |
| 7934 | { ac_try='test -s conftest.$ac_objext' |
| 7935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7936 | (eval $ac_try) 2>&5 |
| 7937 | ac_status=$? |
| 7938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7939 | (exit $ac_status); }; }; then |
| 7940 | ac_hi=$ac_mid |
| 7941 | else |
| 7942 | echo "$as_me: failed program was:" >&5 |
| 7943 | cat conftest.$ac_ext >&5 |
| 7944 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7945 | fi |
| 7946 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7947 | done |
| 7948 | case $ac_lo in |
| 7949 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
| 7950 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5 |
| 7951 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;} |
| 7952 | { (exit 1); exit 1; }; } ;; |
| 7953 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7954 | else |
| 7955 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7956 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7957 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7958 | { (exit 1); exit 1; }; } |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7959 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7960 | cat >conftest.$ac_ext <<_ACEOF |
| 7961 | #line $LINENO "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7962 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7963 | $ac_includes_default |
| 7964 | long longval () { return (long) (sizeof (fpos_t)); } |
| 7965 | unsigned long ulongval () { return (long) (sizeof (fpos_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7966 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7967 | #include <stdlib.h> |
| 7968 | #ifdef F77_DUMMY_MAIN |
| 7969 | # ifdef __cplusplus |
| 7970 | extern "C" |
| 7971 | # endif |
| 7972 | int F77_DUMMY_MAIN() { return 1; } |
| 7973 | #endif |
| 7974 | int |
| 7975 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7976 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7977 | |
| 7978 | FILE *f = fopen ("conftest.val", "w"); |
| 7979 | if (! f) |
| 7980 | exit (1); |
| 7981 | if (((long) (sizeof (fpos_t))) < 0) |
| 7982 | { |
| 7983 | long i = longval (); |
| 7984 | if (i != ((long) (sizeof (fpos_t)))) |
| 7985 | exit (1); |
| 7986 | fprintf (f, "%ld\n", i); |
| 7987 | } |
| 7988 | else |
| 7989 | { |
| 7990 | unsigned long i = ulongval (); |
| 7991 | if (i != ((long) (sizeof (fpos_t)))) |
| 7992 | exit (1); |
| 7993 | fprintf (f, "%lu\n", i); |
| 7994 | } |
| 7995 | exit (ferror (f) || fclose (f) != 0); |
| 7996 | |
| 7997 | ; |
| 7998 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7999 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8000 | _ACEOF |
| 8001 | rm -f conftest$ac_exeext |
| 8002 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8003 | (eval $ac_link) 2>&5 |
| 8004 | ac_status=$? |
| 8005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8006 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8008 | (eval $ac_try) 2>&5 |
| 8009 | ac_status=$? |
| 8010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8011 | (exit $ac_status); }; }; then |
| 8012 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8013 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8014 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8015 | echo "$as_me: failed program was:" >&5 |
| 8016 | cat conftest.$ac_ext >&5 |
| 8017 | ( exit $ac_status ) |
| 8018 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5 |
| 8019 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;} |
| 8020 | { (exit 1); exit 1; }; } |
| 8021 | fi |
| 8022 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8023 | fi |
| 8024 | fi |
| 8025 | rm -f conftest.val |
| 8026 | else |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8027 | ac_cv_sizeof_fpos_t=0 |
| 8028 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8029 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8030 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 8031 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6 |
| 8032 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8033 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8034 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8035 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8036 | |
| 8037 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8038 | echo "$as_me:$LINENO: checking for long long support" >&5 |
| 8039 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8040 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8041 | cat >conftest.$ac_ext <<_ACEOF |
| 8042 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8043 | #include "confdefs.h" |
| 8044 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8045 | #ifdef F77_DUMMY_MAIN |
| 8046 | # ifdef __cplusplus |
| 8047 | extern "C" |
| 8048 | # endif |
| 8049 | int F77_DUMMY_MAIN() { return 1; } |
| 8050 | #endif |
| 8051 | int |
| 8052 | main () |
| 8053 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8054 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8055 | ; |
| 8056 | return 0; |
| 8057 | } |
| 8058 | _ACEOF |
| 8059 | rm -f conftest.$ac_objext |
| 8060 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8061 | (eval $ac_compile) 2>&5 |
| 8062 | ac_status=$? |
| 8063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8064 | (exit $ac_status); } && |
| 8065 | { ac_try='test -s conftest.$ac_objext' |
| 8066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8067 | (eval $ac_try) 2>&5 |
| 8068 | ac_status=$? |
| 8069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8070 | (exit $ac_status); }; }; then |
| 8071 | |
| 8072 | |
| 8073 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8074 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8075 | _ACEOF |
| 8076 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8077 | have_long_long=yes |
| 8078 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8079 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8080 | echo "$as_me: failed program was:" >&5 |
| 8081 | cat conftest.$ac_ext >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8082 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8083 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8084 | echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 8085 | echo "${ECHO_T}$have_long_long" >&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 8086 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8087 | echo "$as_me:$LINENO: checking for long long" >&5 |
| 8088 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 8089 | if test "${ac_cv_type_long_long+set}" = set; then |
| 8090 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8091 | else |
| 8092 | cat >conftest.$ac_ext <<_ACEOF |
| 8093 | #line $LINENO "configure" |
| 8094 | #include "confdefs.h" |
| 8095 | $ac_includes_default |
| 8096 | #ifdef F77_DUMMY_MAIN |
| 8097 | # ifdef __cplusplus |
| 8098 | extern "C" |
| 8099 | # endif |
| 8100 | int F77_DUMMY_MAIN() { return 1; } |
| 8101 | #endif |
| 8102 | int |
| 8103 | main () |
| 8104 | { |
| 8105 | if ((long long *) 0) |
| 8106 | return 0; |
| 8107 | if (sizeof (long long)) |
| 8108 | return 0; |
| 8109 | ; |
| 8110 | return 0; |
| 8111 | } |
| 8112 | _ACEOF |
| 8113 | rm -f conftest.$ac_objext |
| 8114 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8115 | (eval $ac_compile) 2>&5 |
| 8116 | ac_status=$? |
| 8117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8118 | (exit $ac_status); } && |
| 8119 | { ac_try='test -s conftest.$ac_objext' |
| 8120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8121 | (eval $ac_try) 2>&5 |
| 8122 | ac_status=$? |
| 8123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8124 | (exit $ac_status); }; }; then |
| 8125 | ac_cv_type_long_long=yes |
| 8126 | else |
| 8127 | echo "$as_me: failed program was:" >&5 |
| 8128 | cat conftest.$ac_ext >&5 |
| 8129 | ac_cv_type_long_long=no |
| 8130 | fi |
| 8131 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8132 | fi |
| 8133 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 8134 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 8135 | |
| 8136 | echo "$as_me:$LINENO: checking size of long long" >&5 |
| 8137 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 8138 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 8139 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8140 | else |
| 8141 | if test "$ac_cv_type_long_long" = yes; then |
| 8142 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8143 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8144 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8145 | # This bug is HP SR number 8606223364. |
| 8146 | if test "$cross_compiling" = yes; then |
| 8147 | # Depending upon the size, compute the lo and hi bounds. |
| 8148 | cat >conftest.$ac_ext <<_ACEOF |
| 8149 | #line $LINENO "configure" |
| 8150 | #include "confdefs.h" |
| 8151 | $ac_includes_default |
| 8152 | #ifdef F77_DUMMY_MAIN |
| 8153 | # ifdef __cplusplus |
| 8154 | extern "C" |
| 8155 | # endif |
| 8156 | int F77_DUMMY_MAIN() { return 1; } |
| 8157 | #endif |
| 8158 | int |
| 8159 | main () |
| 8160 | { |
| 8161 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
| 8162 | test_array [0] = 0 |
| 8163 | |
| 8164 | ; |
| 8165 | return 0; |
| 8166 | } |
| 8167 | _ACEOF |
| 8168 | rm -f conftest.$ac_objext |
| 8169 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8170 | (eval $ac_compile) 2>&5 |
| 8171 | ac_status=$? |
| 8172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8173 | (exit $ac_status); } && |
| 8174 | { ac_try='test -s conftest.$ac_objext' |
| 8175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8176 | (eval $ac_try) 2>&5 |
| 8177 | ac_status=$? |
| 8178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8179 | (exit $ac_status); }; }; then |
| 8180 | ac_lo=0 ac_mid=0 |
| 8181 | while :; do |
| 8182 | cat >conftest.$ac_ext <<_ACEOF |
| 8183 | #line $LINENO "configure" |
| 8184 | #include "confdefs.h" |
| 8185 | $ac_includes_default |
| 8186 | #ifdef F77_DUMMY_MAIN |
| 8187 | # ifdef __cplusplus |
| 8188 | extern "C" |
| 8189 | # endif |
| 8190 | int F77_DUMMY_MAIN() { return 1; } |
| 8191 | #endif |
| 8192 | int |
| 8193 | main () |
| 8194 | { |
| 8195 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 8196 | test_array [0] = 0 |
| 8197 | |
| 8198 | ; |
| 8199 | return 0; |
| 8200 | } |
| 8201 | _ACEOF |
| 8202 | rm -f conftest.$ac_objext |
| 8203 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8204 | (eval $ac_compile) 2>&5 |
| 8205 | ac_status=$? |
| 8206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8207 | (exit $ac_status); } && |
| 8208 | { ac_try='test -s conftest.$ac_objext' |
| 8209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8210 | (eval $ac_try) 2>&5 |
| 8211 | ac_status=$? |
| 8212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8213 | (exit $ac_status); }; }; then |
| 8214 | ac_hi=$ac_mid; break |
| 8215 | else |
| 8216 | echo "$as_me: failed program was:" >&5 |
| 8217 | cat conftest.$ac_ext >&5 |
| 8218 | ac_lo=`expr $ac_mid + 1` |
| 8219 | if test $ac_lo -le $ac_mid; then |
| 8220 | ac_lo= ac_hi= |
| 8221 | break |
| 8222 | fi |
| 8223 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8224 | fi |
| 8225 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8226 | done |
| 8227 | else |
| 8228 | echo "$as_me: failed program was:" >&5 |
| 8229 | cat conftest.$ac_ext >&5 |
| 8230 | cat >conftest.$ac_ext <<_ACEOF |
| 8231 | #line $LINENO "configure" |
| 8232 | #include "confdefs.h" |
| 8233 | $ac_includes_default |
| 8234 | #ifdef F77_DUMMY_MAIN |
| 8235 | # ifdef __cplusplus |
| 8236 | extern "C" |
| 8237 | # endif |
| 8238 | int F77_DUMMY_MAIN() { return 1; } |
| 8239 | #endif |
| 8240 | int |
| 8241 | main () |
| 8242 | { |
| 8243 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| 8244 | test_array [0] = 0 |
| 8245 | |
| 8246 | ; |
| 8247 | return 0; |
| 8248 | } |
| 8249 | _ACEOF |
| 8250 | rm -f conftest.$ac_objext |
| 8251 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8252 | (eval $ac_compile) 2>&5 |
| 8253 | ac_status=$? |
| 8254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8255 | (exit $ac_status); } && |
| 8256 | { ac_try='test -s conftest.$ac_objext' |
| 8257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8258 | (eval $ac_try) 2>&5 |
| 8259 | ac_status=$? |
| 8260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8261 | (exit $ac_status); }; }; then |
| 8262 | ac_hi=-1 ac_mid=-1 |
| 8263 | while :; do |
| 8264 | cat >conftest.$ac_ext <<_ACEOF |
| 8265 | #line $LINENO "configure" |
| 8266 | #include "confdefs.h" |
| 8267 | $ac_includes_default |
| 8268 | #ifdef F77_DUMMY_MAIN |
| 8269 | # ifdef __cplusplus |
| 8270 | extern "C" |
| 8271 | # endif |
| 8272 | int F77_DUMMY_MAIN() { return 1; } |
| 8273 | #endif |
| 8274 | int |
| 8275 | main () |
| 8276 | { |
| 8277 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| 8278 | test_array [0] = 0 |
| 8279 | |
| 8280 | ; |
| 8281 | return 0; |
| 8282 | } |
| 8283 | _ACEOF |
| 8284 | rm -f conftest.$ac_objext |
| 8285 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8286 | (eval $ac_compile) 2>&5 |
| 8287 | ac_status=$? |
| 8288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8289 | (exit $ac_status); } && |
| 8290 | { ac_try='test -s conftest.$ac_objext' |
| 8291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8292 | (eval $ac_try) 2>&5 |
| 8293 | ac_status=$? |
| 8294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8295 | (exit $ac_status); }; }; then |
| 8296 | ac_lo=$ac_mid; break |
| 8297 | else |
| 8298 | echo "$as_me: failed program was:" >&5 |
| 8299 | cat conftest.$ac_ext >&5 |
| 8300 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8301 | if test $ac_mid -le $ac_hi; then |
| 8302 | ac_lo= ac_hi= |
| 8303 | break |
| 8304 | fi |
| 8305 | ac_mid=`expr 2 '*' $ac_mid` |
| 8306 | fi |
| 8307 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8308 | done |
| 8309 | else |
| 8310 | echo "$as_me: failed program was:" >&5 |
| 8311 | cat conftest.$ac_ext >&5 |
| 8312 | ac_lo= ac_hi= |
| 8313 | fi |
| 8314 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8315 | fi |
| 8316 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8317 | # Binary search between lo and hi bounds. |
| 8318 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8319 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8320 | cat >conftest.$ac_ext <<_ACEOF |
| 8321 | #line $LINENO "configure" |
| 8322 | #include "confdefs.h" |
| 8323 | $ac_includes_default |
| 8324 | #ifdef F77_DUMMY_MAIN |
| 8325 | # ifdef __cplusplus |
| 8326 | extern "C" |
| 8327 | # endif |
| 8328 | int F77_DUMMY_MAIN() { return 1; } |
| 8329 | #endif |
| 8330 | int |
| 8331 | main () |
| 8332 | { |
| 8333 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 8334 | test_array [0] = 0 |
| 8335 | |
| 8336 | ; |
| 8337 | return 0; |
| 8338 | } |
| 8339 | _ACEOF |
| 8340 | rm -f conftest.$ac_objext |
| 8341 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8342 | (eval $ac_compile) 2>&5 |
| 8343 | ac_status=$? |
| 8344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8345 | (exit $ac_status); } && |
| 8346 | { ac_try='test -s conftest.$ac_objext' |
| 8347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8348 | (eval $ac_try) 2>&5 |
| 8349 | ac_status=$? |
| 8350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8351 | (exit $ac_status); }; }; then |
| 8352 | ac_hi=$ac_mid |
| 8353 | else |
| 8354 | echo "$as_me: failed program was:" >&5 |
| 8355 | cat conftest.$ac_ext >&5 |
| 8356 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8357 | fi |
| 8358 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8359 | done |
| 8360 | case $ac_lo in |
| 8361 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
| 8362 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 8363 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 8364 | { (exit 1); exit 1; }; } ;; |
| 8365 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8366 | else |
| 8367 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8368 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 8369 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 8370 | { (exit 1); exit 1; }; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8371 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8372 | cat >conftest.$ac_ext <<_ACEOF |
| 8373 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8374 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8375 | $ac_includes_default |
| 8376 | long longval () { return (long) (sizeof (long long)); } |
| 8377 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8378 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8379 | #include <stdlib.h> |
| 8380 | #ifdef F77_DUMMY_MAIN |
| 8381 | # ifdef __cplusplus |
| 8382 | extern "C" |
| 8383 | # endif |
| 8384 | int F77_DUMMY_MAIN() { return 1; } |
| 8385 | #endif |
| 8386 | int |
| 8387 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8388 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8389 | |
| 8390 | FILE *f = fopen ("conftest.val", "w"); |
| 8391 | if (! f) |
| 8392 | exit (1); |
| 8393 | if (((long) (sizeof (long long))) < 0) |
| 8394 | { |
| 8395 | long i = longval (); |
| 8396 | if (i != ((long) (sizeof (long long)))) |
| 8397 | exit (1); |
| 8398 | fprintf (f, "%ld\n", i); |
| 8399 | } |
| 8400 | else |
| 8401 | { |
| 8402 | unsigned long i = ulongval (); |
| 8403 | if (i != ((long) (sizeof (long long)))) |
| 8404 | exit (1); |
| 8405 | fprintf (f, "%lu\n", i); |
| 8406 | } |
| 8407 | exit (ferror (f) || fclose (f) != 0); |
| 8408 | |
| 8409 | ; |
| 8410 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8411 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8412 | _ACEOF |
| 8413 | rm -f conftest$ac_exeext |
| 8414 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8415 | (eval $ac_link) 2>&5 |
| 8416 | ac_status=$? |
| 8417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8418 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8420 | (eval $ac_try) 2>&5 |
| 8421 | ac_status=$? |
| 8422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8423 | (exit $ac_status); }; }; then |
| 8424 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8425 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8426 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8427 | echo "$as_me: failed program was:" >&5 |
| 8428 | cat conftest.$ac_ext >&5 |
| 8429 | ( exit $ac_status ) |
| 8430 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 8431 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 8432 | { (exit 1); exit 1; }; } |
| 8433 | fi |
| 8434 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8435 | fi |
| 8436 | fi |
| 8437 | rm -f conftest.val |
| 8438 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8439 | ac_cv_sizeof_long_long=0 |
| 8440 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8441 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8442 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 8443 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
| 8444 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8445 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8446 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8447 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8448 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8449 | fi |
| 8450 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8451 | echo "$as_me:$LINENO: checking for uintptr_t support" >&5 |
| 8452 | echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8453 | have_uintptr_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8454 | cat >conftest.$ac_ext <<_ACEOF |
| 8455 | #line $LINENO "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8456 | #include "confdefs.h" |
| 8457 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8458 | #ifdef F77_DUMMY_MAIN |
| 8459 | # ifdef __cplusplus |
| 8460 | extern "C" |
| 8461 | # endif |
| 8462 | int F77_DUMMY_MAIN() { return 1; } |
| 8463 | #endif |
| 8464 | int |
| 8465 | main () |
| 8466 | { |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8467 | uintptr_t x; x = (uintptr_t)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8468 | ; |
| 8469 | return 0; |
| 8470 | } |
| 8471 | _ACEOF |
| 8472 | rm -f conftest.$ac_objext |
| 8473 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8474 | (eval $ac_compile) 2>&5 |
| 8475 | ac_status=$? |
| 8476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8477 | (exit $ac_status); } && |
| 8478 | { ac_try='test -s conftest.$ac_objext' |
| 8479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8480 | (eval $ac_try) 2>&5 |
| 8481 | ac_status=$? |
| 8482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8483 | (exit $ac_status); }; }; then |
| 8484 | |
| 8485 | |
| 8486 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8487 | #define HAVE_UINTPTR_T 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8488 | _ACEOF |
| 8489 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8490 | have_uintptr_t=yes |
| 8491 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8492 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8493 | echo "$as_me: failed program was:" >&5 |
| 8494 | cat conftest.$ac_ext >&5 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8495 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8496 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8497 | echo "$as_me:$LINENO: result: $have_uintptr_t" >&5 |
| 8498 | echo "${ECHO_T}$have_uintptr_t" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8499 | if test "$have_uintptr_t" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8500 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 8501 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 8502 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 8503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8504 | else |
| 8505 | cat >conftest.$ac_ext <<_ACEOF |
| 8506 | #line $LINENO "configure" |
| 8507 | #include "confdefs.h" |
| 8508 | $ac_includes_default |
| 8509 | #ifdef F77_DUMMY_MAIN |
| 8510 | # ifdef __cplusplus |
| 8511 | extern "C" |
| 8512 | # endif |
| 8513 | int F77_DUMMY_MAIN() { return 1; } |
| 8514 | #endif |
| 8515 | int |
| 8516 | main () |
| 8517 | { |
| 8518 | if ((uintptr_t *) 0) |
| 8519 | return 0; |
| 8520 | if (sizeof (uintptr_t)) |
| 8521 | return 0; |
| 8522 | ; |
| 8523 | return 0; |
| 8524 | } |
| 8525 | _ACEOF |
| 8526 | rm -f conftest.$ac_objext |
| 8527 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8528 | (eval $ac_compile) 2>&5 |
| 8529 | ac_status=$? |
| 8530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8531 | (exit $ac_status); } && |
| 8532 | { ac_try='test -s conftest.$ac_objext' |
| 8533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8534 | (eval $ac_try) 2>&5 |
| 8535 | ac_status=$? |
| 8536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8537 | (exit $ac_status); }; }; then |
| 8538 | ac_cv_type_uintptr_t=yes |
| 8539 | else |
| 8540 | echo "$as_me: failed program was:" >&5 |
| 8541 | cat conftest.$ac_ext >&5 |
| 8542 | ac_cv_type_uintptr_t=no |
| 8543 | fi |
| 8544 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8545 | fi |
| 8546 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 8547 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 8548 | |
| 8549 | echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 8550 | echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6 |
| 8551 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| 8552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8553 | else |
| 8554 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 8555 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8556 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8557 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8558 | # This bug is HP SR number 8606223364. |
| 8559 | if test "$cross_compiling" = yes; then |
| 8560 | # Depending upon the size, compute the lo and hi bounds. |
| 8561 | cat >conftest.$ac_ext <<_ACEOF |
| 8562 | #line $LINENO "configure" |
| 8563 | #include "confdefs.h" |
| 8564 | $ac_includes_default |
| 8565 | #ifdef F77_DUMMY_MAIN |
| 8566 | # ifdef __cplusplus |
| 8567 | extern "C" |
| 8568 | # endif |
| 8569 | int F77_DUMMY_MAIN() { return 1; } |
| 8570 | #endif |
| 8571 | int |
| 8572 | main () |
| 8573 | { |
| 8574 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)]; |
| 8575 | test_array [0] = 0 |
| 8576 | |
| 8577 | ; |
| 8578 | return 0; |
| 8579 | } |
| 8580 | _ACEOF |
| 8581 | rm -f conftest.$ac_objext |
| 8582 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8583 | (eval $ac_compile) 2>&5 |
| 8584 | ac_status=$? |
| 8585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8586 | (exit $ac_status); } && |
| 8587 | { ac_try='test -s conftest.$ac_objext' |
| 8588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8589 | (eval $ac_try) 2>&5 |
| 8590 | ac_status=$? |
| 8591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8592 | (exit $ac_status); }; }; then |
| 8593 | ac_lo=0 ac_mid=0 |
| 8594 | while :; do |
| 8595 | cat >conftest.$ac_ext <<_ACEOF |
| 8596 | #line $LINENO "configure" |
| 8597 | #include "confdefs.h" |
| 8598 | $ac_includes_default |
| 8599 | #ifdef F77_DUMMY_MAIN |
| 8600 | # ifdef __cplusplus |
| 8601 | extern "C" |
| 8602 | # endif |
| 8603 | int F77_DUMMY_MAIN() { return 1; } |
| 8604 | #endif |
| 8605 | int |
| 8606 | main () |
| 8607 | { |
| 8608 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 8609 | test_array [0] = 0 |
| 8610 | |
| 8611 | ; |
| 8612 | return 0; |
| 8613 | } |
| 8614 | _ACEOF |
| 8615 | rm -f conftest.$ac_objext |
| 8616 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8617 | (eval $ac_compile) 2>&5 |
| 8618 | ac_status=$? |
| 8619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8620 | (exit $ac_status); } && |
| 8621 | { ac_try='test -s conftest.$ac_objext' |
| 8622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8623 | (eval $ac_try) 2>&5 |
| 8624 | ac_status=$? |
| 8625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8626 | (exit $ac_status); }; }; then |
| 8627 | ac_hi=$ac_mid; break |
| 8628 | else |
| 8629 | echo "$as_me: failed program was:" >&5 |
| 8630 | cat conftest.$ac_ext >&5 |
| 8631 | ac_lo=`expr $ac_mid + 1` |
| 8632 | if test $ac_lo -le $ac_mid; then |
| 8633 | ac_lo= ac_hi= |
| 8634 | break |
| 8635 | fi |
| 8636 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8637 | fi |
| 8638 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8639 | done |
| 8640 | else |
| 8641 | echo "$as_me: failed program was:" >&5 |
| 8642 | cat conftest.$ac_ext >&5 |
| 8643 | cat >conftest.$ac_ext <<_ACEOF |
| 8644 | #line $LINENO "configure" |
| 8645 | #include "confdefs.h" |
| 8646 | $ac_includes_default |
| 8647 | #ifdef F77_DUMMY_MAIN |
| 8648 | # ifdef __cplusplus |
| 8649 | extern "C" |
| 8650 | # endif |
| 8651 | int F77_DUMMY_MAIN() { return 1; } |
| 8652 | #endif |
| 8653 | int |
| 8654 | main () |
| 8655 | { |
| 8656 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)]; |
| 8657 | test_array [0] = 0 |
| 8658 | |
| 8659 | ; |
| 8660 | return 0; |
| 8661 | } |
| 8662 | _ACEOF |
| 8663 | rm -f conftest.$ac_objext |
| 8664 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8665 | (eval $ac_compile) 2>&5 |
| 8666 | ac_status=$? |
| 8667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8668 | (exit $ac_status); } && |
| 8669 | { ac_try='test -s conftest.$ac_objext' |
| 8670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8671 | (eval $ac_try) 2>&5 |
| 8672 | ac_status=$? |
| 8673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8674 | (exit $ac_status); }; }; then |
| 8675 | ac_hi=-1 ac_mid=-1 |
| 8676 | while :; do |
| 8677 | cat >conftest.$ac_ext <<_ACEOF |
| 8678 | #line $LINENO "configure" |
| 8679 | #include "confdefs.h" |
| 8680 | $ac_includes_default |
| 8681 | #ifdef F77_DUMMY_MAIN |
| 8682 | # ifdef __cplusplus |
| 8683 | extern "C" |
| 8684 | # endif |
| 8685 | int F77_DUMMY_MAIN() { return 1; } |
| 8686 | #endif |
| 8687 | int |
| 8688 | main () |
| 8689 | { |
| 8690 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)]; |
| 8691 | test_array [0] = 0 |
| 8692 | |
| 8693 | ; |
| 8694 | return 0; |
| 8695 | } |
| 8696 | _ACEOF |
| 8697 | rm -f conftest.$ac_objext |
| 8698 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8699 | (eval $ac_compile) 2>&5 |
| 8700 | ac_status=$? |
| 8701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8702 | (exit $ac_status); } && |
| 8703 | { ac_try='test -s conftest.$ac_objext' |
| 8704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8705 | (eval $ac_try) 2>&5 |
| 8706 | ac_status=$? |
| 8707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8708 | (exit $ac_status); }; }; then |
| 8709 | ac_lo=$ac_mid; break |
| 8710 | else |
| 8711 | echo "$as_me: failed program was:" >&5 |
| 8712 | cat conftest.$ac_ext >&5 |
| 8713 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8714 | if test $ac_mid -le $ac_hi; then |
| 8715 | ac_lo= ac_hi= |
| 8716 | break |
| 8717 | fi |
| 8718 | ac_mid=`expr 2 '*' $ac_mid` |
| 8719 | fi |
| 8720 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8721 | done |
| 8722 | else |
| 8723 | echo "$as_me: failed program was:" >&5 |
| 8724 | cat conftest.$ac_ext >&5 |
| 8725 | ac_lo= ac_hi= |
| 8726 | fi |
| 8727 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8728 | fi |
| 8729 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8730 | # Binary search between lo and hi bounds. |
| 8731 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8732 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8733 | cat >conftest.$ac_ext <<_ACEOF |
| 8734 | #line $LINENO "configure" |
| 8735 | #include "confdefs.h" |
| 8736 | $ac_includes_default |
| 8737 | #ifdef F77_DUMMY_MAIN |
| 8738 | # ifdef __cplusplus |
| 8739 | extern "C" |
| 8740 | # endif |
| 8741 | int F77_DUMMY_MAIN() { return 1; } |
| 8742 | #endif |
| 8743 | int |
| 8744 | main () |
| 8745 | { |
| 8746 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 8747 | test_array [0] = 0 |
| 8748 | |
| 8749 | ; |
| 8750 | return 0; |
| 8751 | } |
| 8752 | _ACEOF |
| 8753 | rm -f conftest.$ac_objext |
| 8754 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8755 | (eval $ac_compile) 2>&5 |
| 8756 | ac_status=$? |
| 8757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8758 | (exit $ac_status); } && |
| 8759 | { ac_try='test -s conftest.$ac_objext' |
| 8760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8761 | (eval $ac_try) 2>&5 |
| 8762 | ac_status=$? |
| 8763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8764 | (exit $ac_status); }; }; then |
| 8765 | ac_hi=$ac_mid |
| 8766 | else |
| 8767 | echo "$as_me: failed program was:" >&5 |
| 8768 | cat conftest.$ac_ext >&5 |
| 8769 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8770 | fi |
| 8771 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8772 | done |
| 8773 | case $ac_lo in |
| 8774 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
| 8775 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5 |
| 8776 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;} |
| 8777 | { (exit 1); exit 1; }; } ;; |
| 8778 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8779 | else |
| 8780 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8781 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 8782 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 8783 | { (exit 1); exit 1; }; } |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8784 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8785 | cat >conftest.$ac_ext <<_ACEOF |
| 8786 | #line $LINENO "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8787 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8788 | $ac_includes_default |
| 8789 | long longval () { return (long) (sizeof (uintptr_t)); } |
| 8790 | unsigned long ulongval () { return (long) (sizeof (uintptr_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8791 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8792 | #include <stdlib.h> |
| 8793 | #ifdef F77_DUMMY_MAIN |
| 8794 | # ifdef __cplusplus |
| 8795 | extern "C" |
| 8796 | # endif |
| 8797 | int F77_DUMMY_MAIN() { return 1; } |
| 8798 | #endif |
| 8799 | int |
| 8800 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8801 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8802 | |
| 8803 | FILE *f = fopen ("conftest.val", "w"); |
| 8804 | if (! f) |
| 8805 | exit (1); |
| 8806 | if (((long) (sizeof (uintptr_t))) < 0) |
| 8807 | { |
| 8808 | long i = longval (); |
| 8809 | if (i != ((long) (sizeof (uintptr_t)))) |
| 8810 | exit (1); |
| 8811 | fprintf (f, "%ld\n", i); |
| 8812 | } |
| 8813 | else |
| 8814 | { |
| 8815 | unsigned long i = ulongval (); |
| 8816 | if (i != ((long) (sizeof (uintptr_t)))) |
| 8817 | exit (1); |
| 8818 | fprintf (f, "%lu\n", i); |
| 8819 | } |
| 8820 | exit (ferror (f) || fclose (f) != 0); |
| 8821 | |
| 8822 | ; |
| 8823 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8824 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8825 | _ACEOF |
| 8826 | rm -f conftest$ac_exeext |
| 8827 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8828 | (eval $ac_link) 2>&5 |
| 8829 | ac_status=$? |
| 8830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8831 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8833 | (eval $ac_try) 2>&5 |
| 8834 | ac_status=$? |
| 8835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8836 | (exit $ac_status); }; }; then |
| 8837 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8838 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8839 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8840 | echo "$as_me: failed program was:" >&5 |
| 8841 | cat conftest.$ac_ext >&5 |
| 8842 | ( exit $ac_status ) |
| 8843 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5 |
| 8844 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;} |
| 8845 | { (exit 1); exit 1; }; } |
| 8846 | fi |
| 8847 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8848 | fi |
| 8849 | fi |
| 8850 | rm -f conftest.val |
| 8851 | else |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8852 | ac_cv_sizeof_uintptr_t=0 |
| 8853 | fi |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8854 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8855 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 8856 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6 |
| 8857 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8858 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8859 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8860 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8861 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8862 | fi |
| 8863 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8864 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8865 | echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 8866 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 |
| 8867 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 8868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8869 | else |
| 8870 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 8871 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8872 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8873 | cat >conftest.$ac_ext <<_ACEOF |
| 8874 | #line $LINENO "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8875 | #include "confdefs.h" |
| 8876 | #include <stdio.h> |
| 8877 | #include <sys/types.h> |
| 8878 | main() |
| 8879 | { |
| 8880 | FILE *f=fopen("conftestval", "w"); |
| 8881 | if (!f) exit(1); |
| 8882 | fprintf(f, "%d\n", sizeof(off_t)); |
| 8883 | exit(0); |
| 8884 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8885 | _ACEOF |
| 8886 | rm -f conftest$ac_exeext |
| 8887 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8888 | (eval $ac_link) 2>&5 |
| 8889 | ac_status=$? |
| 8890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8891 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8893 | (eval $ac_try) 2>&5 |
| 8894 | ac_status=$? |
| 8895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8896 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8897 | ac_cv_sizeof_off_t=`cat conftestval` |
| 8898 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8899 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8900 | echo "$as_me: failed program was:" >&5 |
| 8901 | cat conftest.$ac_ext >&5 |
| 8902 | ( exit $ac_status ) |
| 8903 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8904 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8905 | 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] | 8906 | fi |
| 8907 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8908 | fi |
| 8909 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8910 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 8911 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 |
| 8912 | |
| 8913 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8914 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8915 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8916 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8917 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8918 | echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 8919 | 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] | 8920 | if test "$have_long_long" = yes -a \ |
| 8921 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 8922 | "$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] | 8923 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8924 | cat >>confdefs.h <<\_ACEOF |
| 8925 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 8926 | _ACEOF |
| 8927 | |
| 8928 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8929 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8930 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8931 | echo "$as_me:$LINENO: result: no" >&5 |
| 8932 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8933 | fi |
| 8934 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8935 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8936 | echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 8937 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6 |
| 8938 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 8939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8940 | else |
| 8941 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 8942 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8943 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8944 | cat >conftest.$ac_ext <<_ACEOF |
| 8945 | #line $LINENO "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8946 | #include "confdefs.h" |
| 8947 | #include <stdio.h> |
| 8948 | #include <time.h> |
| 8949 | main() |
| 8950 | { |
| 8951 | FILE *f=fopen("conftestval", "w"); |
| 8952 | if (!f) exit(1); |
| 8953 | fprintf(f, "%d\n", sizeof(time_t)); |
| 8954 | exit(0); |
| 8955 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8956 | _ACEOF |
| 8957 | rm -f conftest$ac_exeext |
| 8958 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8959 | (eval $ac_link) 2>&5 |
| 8960 | ac_status=$? |
| 8961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8962 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8964 | (eval $ac_try) 2>&5 |
| 8965 | ac_status=$? |
| 8966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8967 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8968 | ac_cv_sizeof_time_t=`cat conftestval` |
| 8969 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8970 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8971 | echo "$as_me: failed program was:" >&5 |
| 8972 | cat conftest.$ac_ext >&5 |
| 8973 | ( exit $ac_status ) |
| 8974 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8975 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8976 | 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] | 8977 | fi |
| 8978 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8979 | fi |
| 8980 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8981 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 8982 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6 |
| 8983 | |
| 8984 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8985 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8986 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8987 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8988 | |
| 8989 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8990 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 8991 | ac_save_cc="$CC" |
| 8992 | if test "$ac_cv_kpthread" = "yes" |
| 8993 | then CC="$CC -Kpthread" |
| 8994 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8995 | echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 8996 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 8997 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8998 | cat >conftest.$ac_ext <<_ACEOF |
| 8999 | #line $LINENO "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9000 | #include "confdefs.h" |
| 9001 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9002 | #ifdef F77_DUMMY_MAIN |
| 9003 | # ifdef __cplusplus |
| 9004 | extern "C" |
| 9005 | # endif |
| 9006 | int F77_DUMMY_MAIN() { return 1; } |
| 9007 | #endif |
| 9008 | int |
| 9009 | main () |
| 9010 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 9011 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9012 | ; |
| 9013 | return 0; |
| 9014 | } |
| 9015 | _ACEOF |
| 9016 | rm -f conftest.$ac_objext |
| 9017 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9018 | (eval $ac_compile) 2>&5 |
| 9019 | ac_status=$? |
| 9020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9021 | (exit $ac_status); } && |
| 9022 | { ac_try='test -s conftest.$ac_objext' |
| 9023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9024 | (eval $ac_try) 2>&5 |
| 9025 | ac_status=$? |
| 9026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9027 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9028 | have_pthread_t=yes |
| 9029 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9030 | echo "$as_me: failed program was:" >&5 |
| 9031 | cat conftest.$ac_ext >&5 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9032 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9033 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9034 | echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 9035 | echo "${ECHO_T}$have_pthread_t" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9036 | if test "$have_pthread_t" = yes ; then |
| 9037 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9038 | echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 9039 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6 |
| 9040 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 9041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9042 | else |
| 9043 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9044 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9045 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9046 | cat >conftest.$ac_ext <<_ACEOF |
| 9047 | #line $LINENO "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9048 | #include "confdefs.h" |
| 9049 | #include <stdio.h> |
| 9050 | #include <pthread.h> |
| 9051 | main() |
| 9052 | { |
| 9053 | FILE *f=fopen("conftestval", "w"); |
| 9054 | if (!f) exit(1); |
| 9055 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 9056 | exit(0); |
| 9057 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9058 | _ACEOF |
| 9059 | rm -f conftest$ac_exeext |
| 9060 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9061 | (eval $ac_link) 2>&5 |
| 9062 | ac_status=$? |
| 9063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9064 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9066 | (eval $ac_try) 2>&5 |
| 9067 | ac_status=$? |
| 9068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9069 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9070 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 9071 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9072 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9073 | echo "$as_me: failed program was:" >&5 |
| 9074 | cat conftest.$ac_ext >&5 |
| 9075 | ( exit $ac_status ) |
| 9076 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9077 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9078 | 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] | 9079 | fi |
| 9080 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9081 | fi |
| 9082 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9083 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 9084 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6 |
| 9085 | |
| 9086 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9087 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9088 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9089 | |
| 9090 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9091 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9092 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9093 | echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 9094 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9095 | # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given. |
| 9096 | if test "${enable_toolbox_glue+set}" = set; then |
| 9097 | enableval="$enable_toolbox_glue" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9098 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9099 | fi; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9100 | |
| 9101 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9102 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9103 | case $ac_sys_system/$ac_sys_release in |
| 9104 | Darwin/*) |
| 9105 | enable_toolbox_glue="yes";; |
| 9106 | *) |
| 9107 | enable_toolbox_glue="no";; |
| 9108 | esac |
| 9109 | fi |
| 9110 | case "$enable_toolbox_glue" in |
| 9111 | yes) |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 9112 | extra_frameworks="-framework CoreServices -framework Foundation" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9113 | extra_machdep_objs="Python/mactoolboxglue.o" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9114 | extra_undefs="-u __dummy -u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9115 | |
| 9116 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9117 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9118 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9119 | |
| 9120 | ;; |
| 9121 | *) |
| 9122 | extra_frameworks="" |
| 9123 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9124 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9125 | ;; |
| 9126 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9127 | echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 9128 | echo "${ECHO_T}$enable_toolbox_glue" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9129 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9130 | |
| 9131 | case $ac_sys_system/$ac_sys_release in |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9132 | Darwin/1.3*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9133 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9134 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9135 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' |
| 9136 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 9137 | Darwin/*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9138 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9139 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9140 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' |
| 9141 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9142 | esac |
| 9143 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9144 | echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 9145 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9146 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9147 | then |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 9148 | OPT="$OPT -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9149 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9150 | # in the build location. |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9151 | LDFLAGS="$LDFLAGS -Wl,-F." |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9152 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9153 | cat >>confdefs.h <<\_ACEOF |
| 9154 | #define WITH_NEXT_FRAMEWORK 1 |
| 9155 | _ACEOF |
| 9156 | |
| 9157 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9158 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9159 | else |
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 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9162 | fi |
| 9163 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9164 | echo "$as_me:$LINENO: checking for dyld" >&5 |
| 9165 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9166 | case $ac_sys_system/$ac_sys_release in |
| 9167 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9168 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9169 | cat >>confdefs.h <<\_ACEOF |
| 9170 | #define WITH_DYLD 1 |
| 9171 | _ACEOF |
| 9172 | |
| 9173 | echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 9174 | echo "${ECHO_T}always on for Darwin" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9175 | ;; |
| 9176 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9177 | echo "$as_me:$LINENO: result: no" >&5 |
| 9178 | echo "${ECHO_T}no" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9179 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9180 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9181 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9182 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9183 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9184 | |
| 9185 | |
| 9186 | |
| 9187 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9188 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 9189 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9190 | echo "$as_me:$LINENO: checking SO" >&5 |
| 9191 | echo $ECHO_N "checking SO... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9192 | if test -z "$SO" |
| 9193 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9194 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 9195 | hp*|HP*) SO=.sl;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 9196 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 9197 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9198 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9199 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9200 | echo "$as_me:$LINENO: result: $SO" >&5 |
| 9201 | echo "${ECHO_T}$SO" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9202 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 5b718fc | 2001-09-10 15:34:42 +0000 | [diff] [blame] | 9203 | # -- "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] | 9204 | # (Shared libraries in this instance are shared modules to be loaded into |
| 9205 | # 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] | 9206 | echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 9207 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9208 | if test -z "$LDSHARED" |
| 9209 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9210 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9211 | AIX*) |
| 9212 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 9213 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9214 | ;; |
| 9215 | BeOS*) |
| 9216 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 9217 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9218 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9219 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 9220 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9221 | SunOS/4*) LDSHARED="ld";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9222 | SunOS/5*) |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 9223 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 9224 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 9225 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 9226 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9227 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 9228 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 9229 | DYNIX/ptx*) LDSHARED="ld -G";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9230 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9231 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 9232 | if test "$enable_framework" ; then |
| 9233 | # Link against the framework. All externals should be defined. |
| 9234 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 9235 | else |
| 9236 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9237 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9238 | fi ;; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9239 | Darwin/*) |
| 9240 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 9241 | if test "$enable_framework" ; then |
| 9242 | # Link against the framework. All externals should be defined. |
| 9243 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 9244 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 9245 | # No framework, use the Python app as bundle-loader |
| 9246 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 9247 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/$(PYTHON)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9248 | fi ;; |
Martin v. Löwis | 3cba5c0 | 2002-09-16 17:50:59 +0000 | [diff] [blame] | 9249 | Linux*|GNU*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 9250 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 9251 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 9252 | OpenBSD*|FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 9253 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9254 | then |
| 9255 | LDSHARED="cc -shared ${LDFLAGS}" |
| 9256 | else |
| 9257 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 9258 | fi;; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 9259 | NetBSD*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9260 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9261 | if test "$GCC" = "yes" |
| 9262 | then LDSHARED="$(CC) -shared" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9263 | else LDSHARED="$(CC) -G" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9264 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9265 | SCO_SV*) LDSHARED="$(CC) -Wl,-G,-Bexport";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9266 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 9267 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9268 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9269 | *) LDSHARED="ld";; |
| 9270 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9271 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9272 | echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 9273 | echo "${ECHO_T}$LDSHARED" >&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9274 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9275 | # 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] | 9276 | # library (module) -- this is only needed for a few systems |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9277 | echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 9278 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9279 | if test -z "$CCSHARED" |
| 9280 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9281 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 9282 | SunOS*) if test "$GCC" = yes; |
| 9283 | then CCSHARED="-fPIC"; |
| 9284 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9285 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 9286 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9287 | else CCSHARED="+z"; |
| 9288 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9289 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9290 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 9291 | FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9292 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9293 | if test "$GCC" = "yes" |
| 9294 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9295 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9296 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9297 | SCO_SV*) |
| 9298 | if test "$GCC" = "yes" |
| 9299 | then CCSHARED="-fPIC" |
| 9300 | else CCSHARED="-Kpic -belf" |
| 9301 | fi;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9302 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9303 | IRIX*/6*) case $CC in |
| 9304 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 9305 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9306 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9307 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9308 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9309 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9310 | echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 9311 | echo "${ECHO_T}$CCSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9312 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9313 | # 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] | 9314 | echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 9315 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9316 | if test -z "$LINKFORSHARED" |
| 9317 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9318 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9319 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 9320 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 9321 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 9322 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9323 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9324 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9325 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9326 | Darwin/*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9327 | # -u __dummy makes the linker aware of the objc runtime |
| 9328 | # in System.framework; otherwise, __objcInit (referenced in |
| 9329 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 9330 | # loading of any modules which reference it in System.framework. |
| 9331 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, which is |
| 9332 | # not used by the core itself but which needs to be in the core so |
| 9333 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9334 | LINKFORSHARED="$extra_undefs -framework System" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9335 | if test "$enable_framework" |
| 9336 | then |
| 9337 | LINKFORSHARED="$LINKFORSHARED -framework Python" |
| 9338 | fi |
| 9339 | LINKFORSHARED="$LINKFORSHARED $extra_frameworks";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9340 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9341 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 9342 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9343 | FreeBSD*|NetBSD*|OpenBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 9344 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 9345 | then |
| 9346 | LINKFORSHARED="-Wl,--export-dynamic" |
| 9347 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9348 | SunOS/5*) case $CC in |
| 9349 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 9350 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 9351 | then |
| 9352 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9353 | fi;; |
| 9354 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9355 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +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: $LINKFORSHARED" >&5 |
| 9358 | echo "${ECHO_T}$LINKFORSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9359 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9360 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9361 | echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 9362 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9363 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 9364 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 9365 | case $ac_sys_system in |
| 9366 | CYGWIN*) |
| 9367 | # Cygwin needs CCSHARED when building extension DLLs |
| 9368 | # but not when building the interpreter DLL. |
| 9369 | CFLAGSFORSHARED='';; |
| 9370 | *) |
| 9371 | CFLAGSFORSHARED='$(CCSHARED)' |
| 9372 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9373 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9374 | echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 9375 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9376 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9377 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 9378 | # library (with --enable-shared). |
| 9379 | # 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] | 9380 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 9381 | # if it is not required, since it creates a dependency of the shared library |
| 9382 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 9383 | # don't need to link LIBS explicitly. The default should be only changed |
| 9384 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9385 | |
| 9386 | echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 9387 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6 |
| 9388 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9389 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 9390 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9391 | esac |
| 9392 | echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 9393 | echo "${ECHO_T}$SHLIBS" >&6 |
| 9394 | |
| 9395 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9396 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9397 | |
| 9398 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9399 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 9400 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9401 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9402 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9403 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9404 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9405 | cat >conftest.$ac_ext <<_ACEOF |
| 9406 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9407 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9408 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9409 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9410 | #ifdef __cplusplus |
| 9411 | extern "C" |
| 9412 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9413 | /* 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] | 9414 | builtin and then its argument prototype would still apply. */ |
| 9415 | char dlopen (); |
| 9416 | #ifdef F77_DUMMY_MAIN |
| 9417 | # ifdef __cplusplus |
| 9418 | extern "C" |
| 9419 | # endif |
| 9420 | int F77_DUMMY_MAIN() { return 1; } |
| 9421 | #endif |
| 9422 | int |
| 9423 | main () |
| 9424 | { |
| 9425 | dlopen (); |
| 9426 | ; |
| 9427 | return 0; |
| 9428 | } |
| 9429 | _ACEOF |
| 9430 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9431 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9432 | (eval $ac_link) 2>&5 |
| 9433 | ac_status=$? |
| 9434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9435 | (exit $ac_status); } && |
| 9436 | { ac_try='test -s conftest$ac_exeext' |
| 9437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9438 | (eval $ac_try) 2>&5 |
| 9439 | ac_status=$? |
| 9440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9441 | (exit $ac_status); }; }; then |
| 9442 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9443 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9444 | echo "$as_me: failed program was:" >&5 |
| 9445 | cat conftest.$ac_ext >&5 |
| 9446 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9447 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9448 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9449 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9450 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9451 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9452 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 9453 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 9454 | cat >>confdefs.h <<_ACEOF |
| 9455 | #define HAVE_LIBDL 1 |
| 9456 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9457 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9458 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9459 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9460 | fi |
| 9461 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9462 | |
| 9463 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9464 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 9465 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9467 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9468 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9469 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9470 | cat >conftest.$ac_ext <<_ACEOF |
| 9471 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9472 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9473 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9474 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9475 | #ifdef __cplusplus |
| 9476 | extern "C" |
| 9477 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9478 | /* 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] | 9479 | builtin and then its argument prototype would still apply. */ |
| 9480 | char shl_load (); |
| 9481 | #ifdef F77_DUMMY_MAIN |
| 9482 | # ifdef __cplusplus |
| 9483 | extern "C" |
| 9484 | # endif |
| 9485 | int F77_DUMMY_MAIN() { return 1; } |
| 9486 | #endif |
| 9487 | int |
| 9488 | main () |
| 9489 | { |
| 9490 | shl_load (); |
| 9491 | ; |
| 9492 | return 0; |
| 9493 | } |
| 9494 | _ACEOF |
| 9495 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9496 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9497 | (eval $ac_link) 2>&5 |
| 9498 | ac_status=$? |
| 9499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9500 | (exit $ac_status); } && |
| 9501 | { ac_try='test -s conftest$ac_exeext' |
| 9502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9503 | (eval $ac_try) 2>&5 |
| 9504 | ac_status=$? |
| 9505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9506 | (exit $ac_status); }; }; then |
| 9507 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9508 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9509 | echo "$as_me: failed program was:" >&5 |
| 9510 | cat conftest.$ac_ext >&5 |
| 9511 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9512 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9513 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9514 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9515 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9516 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9517 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 9518 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 9519 | cat >>confdefs.h <<_ACEOF |
| 9520 | #define HAVE_LIBDLD 1 |
| 9521 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9522 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9523 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9524 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9525 | fi |
| 9526 | # Dynamic linking for HP-UX |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9527 | echo "$as_me:$LINENO: checking for library containing sem_init" >&5 |
| 9528 | echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6 |
| 9529 | if test "${ac_cv_search_sem_init+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9531 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9532 | ac_func_search_save_LIBS=$LIBS |
| 9533 | ac_cv_search_sem_init=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9534 | cat >conftest.$ac_ext <<_ACEOF |
| 9535 | #line $LINENO "configure" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9536 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9537 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9538 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9539 | #ifdef __cplusplus |
| 9540 | extern "C" |
| 9541 | #endif |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9542 | /* 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] | 9543 | builtin and then its argument prototype would still apply. */ |
| 9544 | char sem_init (); |
| 9545 | #ifdef F77_DUMMY_MAIN |
| 9546 | # ifdef __cplusplus |
| 9547 | extern "C" |
| 9548 | # endif |
| 9549 | int F77_DUMMY_MAIN() { return 1; } |
| 9550 | #endif |
| 9551 | int |
| 9552 | main () |
| 9553 | { |
| 9554 | sem_init (); |
| 9555 | ; |
| 9556 | return 0; |
| 9557 | } |
| 9558 | _ACEOF |
| 9559 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9560 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9561 | (eval $ac_link) 2>&5 |
| 9562 | ac_status=$? |
| 9563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9564 | (exit $ac_status); } && |
| 9565 | { ac_try='test -s conftest$ac_exeext' |
| 9566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9567 | (eval $ac_try) 2>&5 |
| 9568 | ac_status=$? |
| 9569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9570 | (exit $ac_status); }; }; then |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9571 | ac_cv_search_sem_init="none required" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9572 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9573 | echo "$as_me: failed program was:" >&5 |
| 9574 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9575 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9576 | 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] | 9577 | if test "$ac_cv_search_sem_init" = no; then |
| 9578 | for ac_lib in rt posix4; do |
| 9579 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9580 | cat >conftest.$ac_ext <<_ACEOF |
| 9581 | #line $LINENO "configure" |
| 9582 | #include "confdefs.h" |
| 9583 | |
| 9584 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9585 | #ifdef __cplusplus |
| 9586 | extern "C" |
| 9587 | #endif |
| 9588 | /* We use char because int might match the return type of a gcc2 |
| 9589 | builtin and then its argument prototype would still apply. */ |
| 9590 | char sem_init (); |
| 9591 | #ifdef F77_DUMMY_MAIN |
| 9592 | # ifdef __cplusplus |
| 9593 | extern "C" |
| 9594 | # endif |
| 9595 | int F77_DUMMY_MAIN() { return 1; } |
| 9596 | #endif |
| 9597 | int |
| 9598 | main () |
| 9599 | { |
| 9600 | sem_init (); |
| 9601 | ; |
| 9602 | return 0; |
| 9603 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9604 | _ACEOF |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9605 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9606 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9607 | (eval $ac_link) 2>&5 |
| 9608 | ac_status=$? |
| 9609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9610 | (exit $ac_status); } && |
| 9611 | { ac_try='test -s conftest$ac_exeext' |
| 9612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9613 | (eval $ac_try) 2>&5 |
| 9614 | ac_status=$? |
| 9615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9616 | (exit $ac_status); }; }; then |
| 9617 | ac_cv_search_sem_init="-l$ac_lib" |
| 9618 | break |
| 9619 | else |
| 9620 | echo "$as_me: failed program was:" >&5 |
| 9621 | cat conftest.$ac_ext >&5 |
| 9622 | fi |
| 9623 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9624 | done |
| 9625 | fi |
| 9626 | LIBS=$ac_func_search_save_LIBS |
| 9627 | fi |
| 9628 | echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 9629 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6 |
| 9630 | if test "$ac_cv_search_sem_init" != no; then |
| 9631 | 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] | 9632 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9633 | fi |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9634 | # 'Real Time' functions on Solaris, |
| 9635 | # posix4 on Solaris 2.6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9636 | |
| 9637 | # checks for system dependent C++ extensions support |
| 9638 | case "$ac_sys_system" in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9639 | AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 9640 | echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6 |
| 9641 | cat >conftest.$ac_ext <<_ACEOF |
| 9642 | #line $LINENO "configure" |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9643 | #include "confdefs.h" |
| 9644 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9645 | #ifdef F77_DUMMY_MAIN |
| 9646 | # ifdef __cplusplus |
| 9647 | extern "C" |
| 9648 | # endif |
| 9649 | int F77_DUMMY_MAIN() { return 1; } |
| 9650 | #endif |
| 9651 | int |
| 9652 | main () |
| 9653 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9654 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9655 | ; |
| 9656 | return 0; |
| 9657 | } |
| 9658 | _ACEOF |
| 9659 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9660 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9661 | (eval $ac_link) 2>&5 |
| 9662 | ac_status=$? |
| 9663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9664 | (exit $ac_status); } && |
| 9665 | { ac_try='test -s conftest$ac_exeext' |
| 9666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9667 | (eval $ac_try) 2>&5 |
| 9668 | ac_status=$? |
| 9669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9670 | (exit $ac_status); }; }; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9671 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9672 | cat >>confdefs.h <<\_ACEOF |
| 9673 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 9674 | _ACEOF |
| 9675 | |
| 9676 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9677 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9678 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9679 | echo "$as_me: failed program was:" >&5 |
| 9680 | cat conftest.$ac_ext >&5 |
| 9681 | echo "$as_me:$LINENO: result: no" >&5 |
| 9682 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9683 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9684 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9685 | *) ;; |
| 9686 | esac |
| 9687 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9688 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
| 9689 | # However on SGI IRIX, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9690 | # BeOS' sockets are stashed in libnet. |
| 9691 | case "$ac_sys_system" in |
| 9692 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9693 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9694 | echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 9695 | echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6 |
| 9696 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 9697 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9698 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9699 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9700 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9701 | cat >conftest.$ac_ext <<_ACEOF |
| 9702 | #line $LINENO "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9703 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9704 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9705 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9706 | #ifdef __cplusplus |
| 9707 | extern "C" |
| 9708 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9709 | /* 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] | 9710 | builtin and then its argument prototype would still apply. */ |
| 9711 | char t_open (); |
| 9712 | #ifdef F77_DUMMY_MAIN |
| 9713 | # ifdef __cplusplus |
| 9714 | extern "C" |
| 9715 | # endif |
| 9716 | int F77_DUMMY_MAIN() { return 1; } |
| 9717 | #endif |
| 9718 | int |
| 9719 | main () |
| 9720 | { |
| 9721 | t_open (); |
| 9722 | ; |
| 9723 | return 0; |
| 9724 | } |
| 9725 | _ACEOF |
| 9726 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9727 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9728 | (eval $ac_link) 2>&5 |
| 9729 | ac_status=$? |
| 9730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9731 | (exit $ac_status); } && |
| 9732 | { ac_try='test -s conftest$ac_exeext' |
| 9733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9734 | (eval $ac_try) 2>&5 |
| 9735 | ac_status=$? |
| 9736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9737 | (exit $ac_status); }; }; then |
| 9738 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9739 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9740 | echo "$as_me: failed program was:" >&5 |
| 9741 | cat conftest.$ac_ext >&5 |
| 9742 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9743 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9744 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9745 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9746 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9747 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 9748 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6 |
| 9749 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9750 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9751 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 9752 | # SVR4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9753 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 9754 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 9755 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 9756 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9757 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9758 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9759 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9760 | cat >conftest.$ac_ext <<_ACEOF |
| 9761 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9762 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9763 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9764 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9765 | #ifdef __cplusplus |
| 9766 | extern "C" |
| 9767 | #endif |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9768 | /* 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] | 9769 | builtin and then its argument prototype would still apply. */ |
| 9770 | char socket (); |
| 9771 | #ifdef F77_DUMMY_MAIN |
| 9772 | # ifdef __cplusplus |
| 9773 | extern "C" |
| 9774 | # endif |
| 9775 | int F77_DUMMY_MAIN() { return 1; } |
| 9776 | #endif |
| 9777 | int |
| 9778 | main () |
| 9779 | { |
| 9780 | socket (); |
| 9781 | ; |
| 9782 | return 0; |
| 9783 | } |
| 9784 | _ACEOF |
| 9785 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9786 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9787 | (eval $ac_link) 2>&5 |
| 9788 | ac_status=$? |
| 9789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9790 | (exit $ac_status); } && |
| 9791 | { ac_try='test -s conftest$ac_exeext' |
| 9792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9793 | (eval $ac_try) 2>&5 |
| 9794 | ac_status=$? |
| 9795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9796 | (exit $ac_status); }; }; then |
| 9797 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9798 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9799 | echo "$as_me: failed program was:" >&5 |
| 9800 | cat conftest.$ac_ext >&5 |
| 9801 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9802 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9803 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9804 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9805 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9806 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 9807 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 9808 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9809 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9810 | fi |
| 9811 | # SVR4 sockets |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 9812 | ;; |
| 9813 | esac |
| 9814 | case "$ac_sys_system" in |
| 9815 | BeOS*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9816 | echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 9817 | echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6 |
| 9818 | if test "${ac_cv_lib_net_socket+set}" = set; then |
| 9819 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9820 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9821 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9822 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9823 | cat >conftest.$ac_ext <<_ACEOF |
| 9824 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9825 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9826 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9827 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9828 | #ifdef __cplusplus |
| 9829 | extern "C" |
| 9830 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9831 | /* 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] | 9832 | builtin and then its argument prototype would still apply. */ |
| 9833 | char socket (); |
| 9834 | #ifdef F77_DUMMY_MAIN |
| 9835 | # ifdef __cplusplus |
| 9836 | extern "C" |
| 9837 | # endif |
| 9838 | int F77_DUMMY_MAIN() { return 1; } |
| 9839 | #endif |
| 9840 | int |
| 9841 | main () |
| 9842 | { |
| 9843 | socket (); |
| 9844 | ; |
| 9845 | return 0; |
| 9846 | } |
| 9847 | _ACEOF |
| 9848 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9849 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9850 | (eval $ac_link) 2>&5 |
| 9851 | ac_status=$? |
| 9852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9853 | (exit $ac_status); } && |
| 9854 | { ac_try='test -s conftest$ac_exeext' |
| 9855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9856 | (eval $ac_try) 2>&5 |
| 9857 | ac_status=$? |
| 9858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9859 | (exit $ac_status); }; }; then |
| 9860 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9861 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9862 | echo "$as_me: failed program was:" >&5 |
| 9863 | cat conftest.$ac_ext >&5 |
| 9864 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9865 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9866 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9867 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9868 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9869 | echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 9870 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6 |
| 9871 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9872 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9873 | fi |
| 9874 | # BeOS |
| 9875 | ;; |
| 9876 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9877 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9878 | echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 9879 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6 |
| 9880 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9881 | # Check whether --with-libs or --without-libs was given. |
| 9882 | if test "${with_libs+set}" = set; then |
| 9883 | withval="$with_libs" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9884 | |
| 9885 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 9886 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9887 | LIBS="$withval $LIBS" |
| 9888 | |
| 9889 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9890 | echo "$as_me:$LINENO: result: no" >&5 |
| 9891 | echo "${ECHO_T}no" >&6 |
| 9892 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9893 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 9894 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9895 | |
| 9896 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9897 | echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 9898 | echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6 |
| 9899 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9900 | # Check whether --with-signal-module or --without-signal-module was given. |
| 9901 | if test "${with_signal_module+set}" = set; then |
| 9902 | withval="$with_signal_module" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9903 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9904 | fi; |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9905 | |
| 9906 | if test -z "$with_signal_module" |
| 9907 | then with_signal_module="yes" |
| 9908 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9909 | echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 9910 | echo "${ECHO_T}$with_signal_module" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9911 | |
| 9912 | if test "${with_signal_module}" = "yes"; then |
| 9913 | USE_SIGNAL_MODULE="" |
| 9914 | SIGNAL_OBJS="" |
| 9915 | else |
| 9916 | USE_SIGNAL_MODULE="#" |
| 9917 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 9918 | fi |
| 9919 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 9920 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9921 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9922 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9923 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9924 | echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 9925 | echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6 |
| 9926 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9927 | |
| 9928 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 9929 | if test "${with_dec_threads+set}" = set; then |
| 9930 | withval="$with_dec_threads" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9931 | |
| 9932 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 9933 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9934 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9935 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9936 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9937 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9938 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9939 | echo "$as_me:$LINENO: result: no" >&5 |
| 9940 | echo "${ECHO_T}no" >&6 |
| 9941 | fi; |
| 9942 | |
| 9943 | # Templates for things AC_DEFINEd more than once. |
| 9944 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9945 | |
| 9946 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9947 | |
| 9948 | |
| 9949 | |
| 9950 | |
| 9951 | |
| 9952 | echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 9953 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6 |
| 9954 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9955 | # Check whether --with-threads or --without-threads was given. |
| 9956 | if test "${with_threads+set}" = set; then |
| 9957 | withval="$with_threads" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9958 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9959 | fi; |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9960 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9961 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9962 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9963 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9964 | if test "${with_thread+set}" = set; then |
| 9965 | withval="$with_thread" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 9966 | with_threads=$with_thread |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9967 | fi; |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9968 | |
| 9969 | if test -z "$with_threads" |
| 9970 | then with_threads="yes" |
| 9971 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9972 | echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 9973 | echo "${ECHO_T}$with_threads" >&6 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9974 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 9975 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9976 | if test "$with_threads" = "no" |
| 9977 | then |
| 9978 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9979 | elif test "$ac_cv_pthread_is_default" = yes |
| 9980 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9981 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9982 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9983 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9984 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9985 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9986 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9987 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9988 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 9989 | |
| 9990 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9991 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9992 | elif test "$ac_cv_kpthread" = "yes" |
| 9993 | then |
| 9994 | CC="$CC -Kpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9995 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 9996 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9997 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 9998 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 9999 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10000 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10001 | else |
| 10002 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 10003 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 10004 | fi |
| 10005 | if test ! -z "$withval" -a -d "$withval" |
| 10006 | then LDFLAGS="$LDFLAGS -L$withval" |
| 10007 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10008 | |
| 10009 | # According to the POSIX spec, a pthreads implementation must |
| 10010 | # 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] | 10011 | echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 10012 | echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6 |
| 10013 | cat >conftest.$ac_ext <<_ACEOF |
| 10014 | #line $LINENO "configure" |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10015 | #include "confdefs.h" |
| 10016 | #include <unistd.h> |
| 10017 | #ifdef _POSIX_THREADS |
| 10018 | yes |
| 10019 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10020 | |
| 10021 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10022 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10023 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10024 | unistd_defines_pthreads=yes |
| 10025 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10026 | unistd_defines_pthreads=no |
| 10027 | fi |
| 10028 | rm -f conftest* |
| 10029 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10030 | echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 10031 | echo "${ECHO_T}$unistd_defines_pthreads" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10032 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10033 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10034 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10035 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10036 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10037 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10038 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 10039 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 10040 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10042 | fi |
| 10043 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 10044 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10045 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10046 | # Is the header compilable? |
| 10047 | echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 10048 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6 |
| 10049 | cat >conftest.$ac_ext <<_ACEOF |
| 10050 | #line $LINENO "configure" |
| 10051 | #include "confdefs.h" |
| 10052 | $ac_includes_default |
| 10053 | #include <cthreads.h> |
| 10054 | _ACEOF |
| 10055 | rm -f conftest.$ac_objext |
| 10056 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10057 | (eval $ac_compile) 2>&5 |
| 10058 | ac_status=$? |
| 10059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10060 | (exit $ac_status); } && |
| 10061 | { ac_try='test -s conftest.$ac_objext' |
| 10062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10063 | (eval $ac_try) 2>&5 |
| 10064 | ac_status=$? |
| 10065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10066 | (exit $ac_status); }; }; then |
| 10067 | ac_header_compiler=yes |
| 10068 | else |
| 10069 | echo "$as_me: failed program was:" >&5 |
| 10070 | cat conftest.$ac_ext >&5 |
| 10071 | ac_header_compiler=no |
| 10072 | fi |
| 10073 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10074 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10075 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10076 | |
| 10077 | # Is the header present? |
| 10078 | echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 10079 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6 |
| 10080 | cat >conftest.$ac_ext <<_ACEOF |
| 10081 | #line $LINENO "configure" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10082 | #include "confdefs.h" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10083 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10084 | _ACEOF |
| 10085 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10086 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10087 | ac_status=$? |
| 10088 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 10089 | rm -f conftest.er1 |
| 10090 | cat conftest.err >&5 |
| 10091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10092 | (exit $ac_status); } >/dev/null; then |
| 10093 | if test -s conftest.err; then |
| 10094 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10095 | else |
| 10096 | ac_cpp_err= |
| 10097 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10098 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10099 | ac_cpp_err=yes |
| 10100 | fi |
| 10101 | if test -z "$ac_cpp_err"; then |
| 10102 | ac_header_preproc=yes |
| 10103 | else |
| 10104 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 10105 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10106 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10107 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10108 | rm -f conftest.err conftest.$ac_ext |
| 10109 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10110 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10111 | |
| 10112 | # So? What about this header? |
| 10113 | case $ac_header_compiler:$ac_header_preproc in |
| 10114 | yes:no ) |
| 10115 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10116 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10117 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10118 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10119 | no:yes ) |
| 10120 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 10121 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 10122 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 10123 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 10124 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10125 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10126 | esac |
| 10127 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 10128 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 10129 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10131 | else |
| 10132 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10133 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10134 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 10135 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
| 10136 | |
| 10137 | fi |
| 10138 | if test $ac_cv_header_cthreads_h = yes; then |
| 10139 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10140 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10141 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10142 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10143 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10144 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10145 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10146 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10147 | |
| 10148 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10149 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10150 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10151 | |
| 10152 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10153 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10154 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10155 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10156 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10157 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 10158 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 10159 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10160 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10161 | fi |
| 10162 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 10163 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10164 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10165 | # Is the header compilable? |
| 10166 | echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 10167 | echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6 |
| 10168 | cat >conftest.$ac_ext <<_ACEOF |
| 10169 | #line $LINENO "configure" |
| 10170 | #include "confdefs.h" |
| 10171 | $ac_includes_default |
| 10172 | #include <mach/cthreads.h> |
| 10173 | _ACEOF |
| 10174 | rm -f conftest.$ac_objext |
| 10175 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10176 | (eval $ac_compile) 2>&5 |
| 10177 | ac_status=$? |
| 10178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10179 | (exit $ac_status); } && |
| 10180 | { ac_try='test -s conftest.$ac_objext' |
| 10181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10182 | (eval $ac_try) 2>&5 |
| 10183 | ac_status=$? |
| 10184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10185 | (exit $ac_status); }; }; then |
| 10186 | ac_header_compiler=yes |
| 10187 | else |
| 10188 | echo "$as_me: failed program was:" >&5 |
| 10189 | cat conftest.$ac_ext >&5 |
| 10190 | ac_header_compiler=no |
| 10191 | fi |
| 10192 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10193 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10194 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10195 | |
| 10196 | # Is the header present? |
| 10197 | echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 10198 | echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6 |
| 10199 | cat >conftest.$ac_ext <<_ACEOF |
| 10200 | #line $LINENO "configure" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10201 | #include "confdefs.h" |
| 10202 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10203 | _ACEOF |
| 10204 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10205 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10206 | ac_status=$? |
| 10207 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 10208 | rm -f conftest.er1 |
| 10209 | cat conftest.err >&5 |
| 10210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10211 | (exit $ac_status); } >/dev/null; then |
| 10212 | if test -s conftest.err; then |
| 10213 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10214 | else |
| 10215 | ac_cpp_err= |
| 10216 | fi |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10217 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10218 | ac_cpp_err=yes |
| 10219 | fi |
| 10220 | if test -z "$ac_cpp_err"; then |
| 10221 | ac_header_preproc=yes |
| 10222 | else |
| 10223 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10224 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10225 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10226 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10227 | rm -f conftest.err conftest.$ac_ext |
| 10228 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10229 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10230 | |
| 10231 | # So? What about this header? |
| 10232 | case $ac_header_compiler:$ac_header_preproc in |
| 10233 | yes:no ) |
| 10234 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10235 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10236 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10237 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10238 | no:yes ) |
| 10239 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 10240 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 10241 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 10242 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 10243 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10244 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10245 | esac |
| 10246 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 10247 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 10248 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10250 | else |
| 10251 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10252 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10253 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 10254 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
| 10255 | |
| 10256 | fi |
| 10257 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 10258 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10259 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10260 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10261 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10262 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10263 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10264 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10265 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10266 | |
| 10267 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10268 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10269 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10270 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10271 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10272 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10273 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10274 | echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 10275 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6 |
| 10276 | |
| 10277 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10278 | if test "${with_pth+set}" = set; then |
| 10279 | withval="$with_pth" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10280 | echo "$as_me:$LINENO: result: $withval" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10281 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10282 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10283 | #define WITH_THREAD 1 |
| 10284 | _ACEOF |
| 10285 | |
| 10286 | |
| 10287 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10288 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10289 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10290 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10291 | LIBS="-lpth $LIBS" |
| 10292 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10293 | else |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10294 | echo "$as_me:$LINENO: result: no" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10295 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10296 | |
| 10297 | # Just looking for pthread_create in libpthread is not enough: |
| 10298 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 10299 | # So we really have to include pthread.h, and then link. |
| 10300 | _libs=$LIBS |
| 10301 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10302 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 10303 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 10304 | cat >conftest.$ac_ext <<_ACEOF |
| 10305 | #line $LINENO "configure" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10306 | #include "confdefs.h" |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10307 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10308 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10309 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10310 | #ifdef F77_DUMMY_MAIN |
| 10311 | # ifdef __cplusplus |
| 10312 | extern "C" |
| 10313 | # endif |
| 10314 | int F77_DUMMY_MAIN() { return 1; } |
| 10315 | #endif |
| 10316 | int |
| 10317 | main () |
| 10318 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10319 | |
| 10320 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10321 | ; |
| 10322 | return 0; |
| 10323 | } |
| 10324 | _ACEOF |
| 10325 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10326 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10327 | (eval $ac_link) 2>&5 |
| 10328 | ac_status=$? |
| 10329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10330 | (exit $ac_status); } && |
| 10331 | { ac_try='test -s conftest$ac_exeext' |
| 10332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10333 | (eval $ac_try) 2>&5 |
| 10334 | ac_status=$? |
| 10335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10336 | (exit $ac_status); }; }; then |
| 10337 | |
| 10338 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10339 | echo "${ECHO_T}yes" >&6 |
| 10340 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10341 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10342 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10343 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10344 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10345 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10346 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10347 | echo "$as_me: failed program was:" >&5 |
| 10348 | cat conftest.$ac_ext >&5 |
| 10349 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10350 | LIBS=$_libs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10351 | echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 10352 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6 |
| 10353 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 10354 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10355 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10356 | cat >conftest.$ac_ext <<_ACEOF |
| 10357 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10358 | #include "confdefs.h" |
| 10359 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10360 | which can conflict with char pthread_detach (); below. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10361 | #include <assert.h> |
| 10362 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10363 | #ifdef __cplusplus |
| 10364 | extern "C" |
| 10365 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10366 | /* 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] | 10367 | builtin and then its argument prototype would still apply. */ |
| 10368 | char pthread_detach (); |
| 10369 | char (*f) (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10370 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10371 | #ifdef F77_DUMMY_MAIN |
| 10372 | # ifdef __cplusplus |
| 10373 | extern "C" |
| 10374 | # endif |
| 10375 | int F77_DUMMY_MAIN() { return 1; } |
| 10376 | #endif |
| 10377 | int |
| 10378 | main () |
| 10379 | { |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10380 | /* The GNU C library defines this for functions which it implements |
| 10381 | to always fail with ENOSYS. Some functions are actually named |
| 10382 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 10383 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10384 | choke me |
| 10385 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10386 | f = pthread_detach; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10387 | #endif |
| 10388 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10389 | ; |
| 10390 | return 0; |
| 10391 | } |
| 10392 | _ACEOF |
| 10393 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10394 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10395 | (eval $ac_link) 2>&5 |
| 10396 | ac_status=$? |
| 10397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10398 | (exit $ac_status); } && |
| 10399 | { ac_try='test -s conftest$ac_exeext' |
| 10400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10401 | (eval $ac_try) 2>&5 |
| 10402 | ac_status=$? |
| 10403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10404 | (exit $ac_status); }; }; then |
| 10405 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10406 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10407 | echo "$as_me: failed program was:" >&5 |
| 10408 | cat conftest.$ac_ext >&5 |
| 10409 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10410 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10411 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10412 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10413 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 10414 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6 |
| 10415 | if test $ac_cv_func_pthread_detach = yes; then |
| 10416 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10417 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10418 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10419 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10420 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10421 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10422 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10423 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10424 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10425 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 10426 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 10427 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10429 | fi |
| 10430 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 10431 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 10432 | else |
| 10433 | # Is the header compilable? |
| 10434 | echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 10435 | echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6 |
| 10436 | cat >conftest.$ac_ext <<_ACEOF |
| 10437 | #line $LINENO "configure" |
| 10438 | #include "confdefs.h" |
| 10439 | $ac_includes_default |
| 10440 | #include <atheos/threads.h> |
| 10441 | _ACEOF |
| 10442 | rm -f conftest.$ac_objext |
| 10443 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10444 | (eval $ac_compile) 2>&5 |
| 10445 | ac_status=$? |
| 10446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10447 | (exit $ac_status); } && |
| 10448 | { ac_try='test -s conftest.$ac_objext' |
| 10449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10450 | (eval $ac_try) 2>&5 |
| 10451 | ac_status=$? |
| 10452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10453 | (exit $ac_status); }; }; then |
| 10454 | ac_header_compiler=yes |
| 10455 | else |
| 10456 | echo "$as_me: failed program was:" >&5 |
| 10457 | cat conftest.$ac_ext >&5 |
| 10458 | ac_header_compiler=no |
| 10459 | fi |
| 10460 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10461 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10462 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10463 | |
| 10464 | # Is the header present? |
| 10465 | echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 10466 | echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6 |
| 10467 | cat >conftest.$ac_ext <<_ACEOF |
| 10468 | #line $LINENO "configure" |
| 10469 | #include "confdefs.h" |
| 10470 | #include <atheos/threads.h> |
| 10471 | _ACEOF |
| 10472 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10473 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10474 | ac_status=$? |
| 10475 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 10476 | rm -f conftest.er1 |
| 10477 | cat conftest.err >&5 |
| 10478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10479 | (exit $ac_status); } >/dev/null; then |
| 10480 | if test -s conftest.err; then |
| 10481 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10482 | else |
| 10483 | ac_cpp_err= |
| 10484 | fi |
| 10485 | else |
| 10486 | ac_cpp_err=yes |
| 10487 | fi |
| 10488 | if test -z "$ac_cpp_err"; then |
| 10489 | ac_header_preproc=yes |
| 10490 | else |
| 10491 | echo "$as_me: failed program was:" >&5 |
| 10492 | cat conftest.$ac_ext >&5 |
| 10493 | ac_header_preproc=no |
| 10494 | fi |
| 10495 | rm -f conftest.err conftest.$ac_ext |
| 10496 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10497 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10498 | |
| 10499 | # So? What about this header? |
| 10500 | case $ac_header_compiler:$ac_header_preproc in |
| 10501 | yes:no ) |
| 10502 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10503 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10504 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 10505 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};; |
| 10506 | no:yes ) |
| 10507 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 10508 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
| 10509 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 10510 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 10511 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 10512 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};; |
| 10513 | esac |
| 10514 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 10515 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 10516 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10518 | else |
| 10519 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 10520 | fi |
| 10521 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 10522 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 10523 | |
| 10524 | fi |
| 10525 | if test $ac_cv_header_atheos_threads_h = yes; then |
| 10526 | cat >>confdefs.h <<\_ACEOF |
| 10527 | #define WITH_THREAD 1 |
| 10528 | _ACEOF |
| 10529 | |
| 10530 | |
| 10531 | cat >>confdefs.h <<\_ACEOF |
| 10532 | #define ATHEOS_THREADS 1 |
| 10533 | _ACEOF |
| 10534 | |
| 10535 | THREADOBJ="Python/thread.o" |
| 10536 | else |
| 10537 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10538 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10539 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 10540 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 10541 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10542 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10543 | fi |
| 10544 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 10545 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10546 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10547 | # Is the header compilable? |
| 10548 | echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 10549 | echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6 |
| 10550 | cat >conftest.$ac_ext <<_ACEOF |
| 10551 | #line $LINENO "configure" |
| 10552 | #include "confdefs.h" |
| 10553 | $ac_includes_default |
| 10554 | #include <kernel/OS.h> |
| 10555 | _ACEOF |
| 10556 | rm -f conftest.$ac_objext |
| 10557 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10558 | (eval $ac_compile) 2>&5 |
| 10559 | ac_status=$? |
| 10560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10561 | (exit $ac_status); } && |
| 10562 | { ac_try='test -s conftest.$ac_objext' |
| 10563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10564 | (eval $ac_try) 2>&5 |
| 10565 | ac_status=$? |
| 10566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10567 | (exit $ac_status); }; }; then |
| 10568 | ac_header_compiler=yes |
| 10569 | else |
| 10570 | echo "$as_me: failed program was:" >&5 |
| 10571 | cat conftest.$ac_ext >&5 |
| 10572 | ac_header_compiler=no |
| 10573 | fi |
| 10574 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10575 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10576 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10577 | |
| 10578 | # Is the header present? |
| 10579 | echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 10580 | echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6 |
| 10581 | cat >conftest.$ac_ext <<_ACEOF |
| 10582 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10583 | #include "confdefs.h" |
| 10584 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10585 | _ACEOF |
| 10586 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10587 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10588 | ac_status=$? |
| 10589 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 10590 | rm -f conftest.er1 |
| 10591 | cat conftest.err >&5 |
| 10592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10593 | (exit $ac_status); } >/dev/null; then |
| 10594 | if test -s conftest.err; then |
| 10595 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10596 | else |
| 10597 | ac_cpp_err= |
| 10598 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10599 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10600 | ac_cpp_err=yes |
| 10601 | fi |
| 10602 | if test -z "$ac_cpp_err"; then |
| 10603 | ac_header_preproc=yes |
| 10604 | else |
| 10605 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10606 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10607 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10608 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10609 | rm -f conftest.err conftest.$ac_ext |
| 10610 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10611 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10612 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10613 | # So? What about this header? |
| 10614 | case $ac_header_compiler:$ac_header_preproc in |
| 10615 | yes:no ) |
| 10616 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10617 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10618 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 10619 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};; |
| 10620 | no:yes ) |
| 10621 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 10622 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
| 10623 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 10624 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 10625 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 10626 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};; |
| 10627 | esac |
| 10628 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 10629 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 10630 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10631 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10632 | else |
| 10633 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 10634 | fi |
| 10635 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 10636 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
| 10637 | |
| 10638 | fi |
| 10639 | if test $ac_cv_header_kernel_OS_h = yes; then |
| 10640 | cat >>confdefs.h <<\_ACEOF |
| 10641 | #define WITH_THREAD 1 |
| 10642 | _ACEOF |
| 10643 | |
| 10644 | |
| 10645 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10646 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10647 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10648 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10649 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10650 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10651 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10652 | echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 10653 | echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6 |
| 10654 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 10655 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10656 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10657 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10658 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10659 | cat >conftest.$ac_ext <<_ACEOF |
| 10660 | #line $LINENO "configure" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10661 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10662 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10663 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10664 | #ifdef __cplusplus |
| 10665 | extern "C" |
| 10666 | #endif |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10667 | /* 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] | 10668 | builtin and then its argument prototype would still apply. */ |
| 10669 | char pthread_create (); |
| 10670 | #ifdef F77_DUMMY_MAIN |
| 10671 | # ifdef __cplusplus |
| 10672 | extern "C" |
| 10673 | # endif |
| 10674 | int F77_DUMMY_MAIN() { return 1; } |
| 10675 | #endif |
| 10676 | int |
| 10677 | main () |
| 10678 | { |
| 10679 | pthread_create (); |
| 10680 | ; |
| 10681 | return 0; |
| 10682 | } |
| 10683 | _ACEOF |
| 10684 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10685 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10686 | (eval $ac_link) 2>&5 |
| 10687 | ac_status=$? |
| 10688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10689 | (exit $ac_status); } && |
| 10690 | { ac_try='test -s conftest$ac_exeext' |
| 10691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10692 | (eval $ac_try) 2>&5 |
| 10693 | ac_status=$? |
| 10694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10695 | (exit $ac_status); }; }; then |
| 10696 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10697 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10698 | echo "$as_me: failed program was:" >&5 |
| 10699 | cat conftest.$ac_ext >&5 |
| 10700 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10701 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10702 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10703 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10704 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10705 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 10706 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6 |
| 10707 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 10708 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10709 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10710 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10711 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10712 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10713 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10714 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10715 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10716 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10717 | echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 10718 | echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 |
| 10719 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 10720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10721 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10722 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10723 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10724 | cat >conftest.$ac_ext <<_ACEOF |
| 10725 | #line $LINENO "configure" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10726 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10727 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10728 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10729 | #ifdef __cplusplus |
| 10730 | extern "C" |
| 10731 | #endif |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10732 | /* 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] | 10733 | builtin and then its argument prototype would still apply. */ |
| 10734 | char pthread_create (); |
| 10735 | #ifdef F77_DUMMY_MAIN |
| 10736 | # ifdef __cplusplus |
| 10737 | extern "C" |
| 10738 | # endif |
| 10739 | int F77_DUMMY_MAIN() { return 1; } |
| 10740 | #endif |
| 10741 | int |
| 10742 | main () |
| 10743 | { |
| 10744 | pthread_create (); |
| 10745 | ; |
| 10746 | return 0; |
| 10747 | } |
| 10748 | _ACEOF |
| 10749 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10750 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10751 | (eval $ac_link) 2>&5 |
| 10752 | ac_status=$? |
| 10753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10754 | (exit $ac_status); } && |
| 10755 | { ac_try='test -s conftest$ac_exeext' |
| 10756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10757 | (eval $ac_try) 2>&5 |
| 10758 | ac_status=$? |
| 10759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10760 | (exit $ac_status); }; }; then |
| 10761 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10762 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10763 | echo "$as_me: failed program was:" >&5 |
| 10764 | cat conftest.$ac_ext >&5 |
| 10765 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10766 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10767 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10768 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10769 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10770 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 10771 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 |
| 10772 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 10773 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10774 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10775 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10776 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10777 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10778 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10779 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10780 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10781 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10782 | echo "$as_me:$LINENO: checking for __d6_pthread_create in -lthread" >&5 |
| 10783 | echo $ECHO_N "checking for __d6_pthread_create in -lthread... $ECHO_C" >&6 |
| 10784 | if test "${ac_cv_lib_thread___d6_pthread_create+set}" = set; then |
| 10785 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10786 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10787 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10788 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10789 | cat >conftest.$ac_ext <<_ACEOF |
| 10790 | #line $LINENO "configure" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10791 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10792 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10793 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10794 | #ifdef __cplusplus |
| 10795 | extern "C" |
| 10796 | #endif |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10797 | /* 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] | 10798 | builtin and then its argument prototype would still apply. */ |
| 10799 | char __d6_pthread_create (); |
| 10800 | #ifdef F77_DUMMY_MAIN |
| 10801 | # ifdef __cplusplus |
| 10802 | extern "C" |
| 10803 | # endif |
| 10804 | int F77_DUMMY_MAIN() { return 1; } |
| 10805 | #endif |
| 10806 | int |
| 10807 | main () |
| 10808 | { |
| 10809 | __d6_pthread_create (); |
| 10810 | ; |
| 10811 | return 0; |
| 10812 | } |
| 10813 | _ACEOF |
| 10814 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10815 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10816 | (eval $ac_link) 2>&5 |
| 10817 | ac_status=$? |
| 10818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10819 | (exit $ac_status); } && |
| 10820 | { ac_try='test -s conftest$ac_exeext' |
| 10821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10822 | (eval $ac_try) 2>&5 |
| 10823 | ac_status=$? |
| 10824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10825 | (exit $ac_status); }; }; then |
| 10826 | ac_cv_lib_thread___d6_pthread_create=yes |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10827 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10828 | echo "$as_me: failed program was:" >&5 |
| 10829 | cat conftest.$ac_ext >&5 |
| 10830 | ac_cv_lib_thread___d6_pthread_create=no |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10831 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10832 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10833 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10834 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10835 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread___d6_pthread_create" >&5 |
| 10836 | echo "${ECHO_T}$ac_cv_lib_thread___d6_pthread_create" >&6 |
| 10837 | if test $ac_cv_lib_thread___d6_pthread_create = yes; then |
| 10838 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10839 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10840 | _ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10841 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10842 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10843 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10844 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10845 | else |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10846 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10847 | echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 10848 | echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6 |
| 10849 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 10850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10851 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10852 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10853 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10854 | cat >conftest.$ac_ext <<_ACEOF |
| 10855 | #line $LINENO "configure" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10856 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10857 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10858 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10859 | #ifdef __cplusplus |
| 10860 | extern "C" |
| 10861 | #endif |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10862 | /* 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] | 10863 | builtin and then its argument prototype would still apply. */ |
| 10864 | char __pthread_create_system (); |
| 10865 | #ifdef F77_DUMMY_MAIN |
| 10866 | # ifdef __cplusplus |
| 10867 | extern "C" |
| 10868 | # endif |
| 10869 | int F77_DUMMY_MAIN() { return 1; } |
| 10870 | #endif |
| 10871 | int |
| 10872 | main () |
| 10873 | { |
| 10874 | __pthread_create_system (); |
| 10875 | ; |
| 10876 | return 0; |
| 10877 | } |
| 10878 | _ACEOF |
| 10879 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10880 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10881 | (eval $ac_link) 2>&5 |
| 10882 | ac_status=$? |
| 10883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10884 | (exit $ac_status); } && |
| 10885 | { ac_try='test -s conftest$ac_exeext' |
| 10886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10887 | (eval $ac_try) 2>&5 |
| 10888 | ac_status=$? |
| 10889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10890 | (exit $ac_status); }; }; then |
| 10891 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10892 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10893 | echo "$as_me: failed program was:" >&5 |
| 10894 | cat conftest.$ac_ext >&5 |
| 10895 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10896 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10897 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10898 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10899 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10900 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 10901 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6 |
| 10902 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 10903 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10904 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10905 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10906 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10907 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10908 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10909 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10910 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10911 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10912 | echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 10913 | echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6 |
| 10914 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 10915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10916 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10917 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10918 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10919 | cat >conftest.$ac_ext <<_ACEOF |
| 10920 | #line $LINENO "configure" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10921 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10922 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10923 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10924 | #ifdef __cplusplus |
| 10925 | extern "C" |
| 10926 | #endif |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10927 | /* 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] | 10928 | builtin and then its argument prototype would still apply. */ |
| 10929 | char pthread_create (); |
| 10930 | #ifdef F77_DUMMY_MAIN |
| 10931 | # ifdef __cplusplus |
| 10932 | extern "C" |
| 10933 | # endif |
| 10934 | int F77_DUMMY_MAIN() { return 1; } |
| 10935 | #endif |
| 10936 | int |
| 10937 | main () |
| 10938 | { |
| 10939 | pthread_create (); |
| 10940 | ; |
| 10941 | return 0; |
| 10942 | } |
| 10943 | _ACEOF |
| 10944 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10945 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10946 | (eval $ac_link) 2>&5 |
| 10947 | ac_status=$? |
| 10948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10949 | (exit $ac_status); } && |
| 10950 | { ac_try='test -s conftest$ac_exeext' |
| 10951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10952 | (eval $ac_try) 2>&5 |
| 10953 | ac_status=$? |
| 10954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10955 | (exit $ac_status); }; }; then |
| 10956 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10957 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10958 | echo "$as_me: failed program was:" >&5 |
| 10959 | cat conftest.$ac_ext >&5 |
| 10960 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10961 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10962 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10963 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10964 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10965 | echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 10966 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6 |
| 10967 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 10968 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10969 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10970 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10971 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10972 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10973 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10974 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10975 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 10976 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10977 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 10978 | fi |
| 10979 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 10980 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10981 | fi |
| 10982 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 10983 | fi |
| 10984 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10985 | fi |
| 10986 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10987 | fi |
| 10988 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10989 | fi |
| 10990 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10991 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 10992 | fi |
| 10993 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10994 | |
| 10995 | fi |
| 10996 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10997 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10998 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10999 | fi; |
| 11000 | fi |
| 11001 | |
| 11002 | |
| 11003 | fi |
| 11004 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11005 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11006 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11007 | if test "$posix_threads" = "yes"; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11008 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11009 | |
| 11010 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11011 | #define _POSIX_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11012 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11013 | |
| 11014 | fi |
| 11015 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11016 | echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 11017 | echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6 |
| 11018 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 11019 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11020 | else |
| 11021 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 11022 | ac_cv_pthread_system_supported=no |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11023 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11024 | cat >conftest.$ac_ext <<_ACEOF |
| 11025 | #line $LINENO "configure" |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11026 | #include "confdefs.h" |
| 11027 | #include <pthread.h> |
| 11028 | void *foo(void *parm) { |
| 11029 | return NULL; |
| 11030 | } |
| 11031 | main() { |
| 11032 | pthread_attr_t attr; |
Martin v. Löwis | a82d347 | 2002-02-24 16:05:05 +0000 | [diff] [blame] | 11033 | pthread_t id; |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11034 | if (pthread_attr_init(&attr)) exit(-1); |
| 11035 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
Martin v. Löwis | a82d347 | 2002-02-24 16:05:05 +0000 | [diff] [blame] | 11036 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11037 | exit(0); |
| 11038 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11039 | _ACEOF |
| 11040 | rm -f conftest$ac_exeext |
| 11041 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11042 | (eval $ac_link) 2>&5 |
| 11043 | ac_status=$? |
| 11044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11045 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11047 | (eval $ac_try) 2>&5 |
| 11048 | ac_status=$? |
| 11049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11050 | (exit $ac_status); }; }; then |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11051 | ac_cv_pthread_system_supported=yes |
| 11052 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11053 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11054 | echo "$as_me: failed program was:" >&5 |
| 11055 | cat conftest.$ac_ext >&5 |
| 11056 | ( exit $ac_status ) |
| 11057 | ac_cv_pthread_system_supported=no |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11058 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11059 | 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] | 11060 | fi |
| 11061 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11062 | fi |
| 11063 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11064 | echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 11065 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11066 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11067 | |
| 11068 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11069 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11070 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11071 | |
| 11072 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11073 | |
| 11074 | for ac_func in pthread_sigmask |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11075 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11076 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11077 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11078 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11079 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11080 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11081 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11082 | cat >conftest.$ac_ext <<_ACEOF |
| 11083 | #line $LINENO "configure" |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11084 | #include "confdefs.h" |
| 11085 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11086 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11087 | #include <assert.h> |
| 11088 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11089 | #ifdef __cplusplus |
| 11090 | extern "C" |
| 11091 | #endif |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11092 | /* 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] | 11093 | builtin and then its argument prototype would still apply. */ |
| 11094 | char $ac_func (); |
| 11095 | char (*f) (); |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11096 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11097 | #ifdef F77_DUMMY_MAIN |
| 11098 | # ifdef __cplusplus |
| 11099 | extern "C" |
| 11100 | # endif |
| 11101 | int F77_DUMMY_MAIN() { return 1; } |
| 11102 | #endif |
| 11103 | int |
| 11104 | main () |
| 11105 | { |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11106 | /* The GNU C library defines this for functions which it implements |
| 11107 | to always fail with ENOSYS. Some functions are actually named |
| 11108 | something starting with __ and the normal name is an alias. */ |
| 11109 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11110 | choke me |
| 11111 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11112 | f = $ac_func; |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11113 | #endif |
| 11114 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11115 | ; |
| 11116 | return 0; |
| 11117 | } |
| 11118 | _ACEOF |
| 11119 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11120 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11121 | (eval $ac_link) 2>&5 |
| 11122 | ac_status=$? |
| 11123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11124 | (exit $ac_status); } && |
| 11125 | { ac_try='test -s conftest$ac_exeext' |
| 11126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11127 | (eval $ac_try) 2>&5 |
| 11128 | ac_status=$? |
| 11129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11130 | (exit $ac_status); }; }; then |
| 11131 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11132 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11133 | echo "$as_me: failed program was:" >&5 |
| 11134 | cat conftest.$ac_ext >&5 |
| 11135 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11136 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11137 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11138 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11139 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11140 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11141 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11142 | cat >>confdefs.h <<_ACEOF |
| 11143 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11144 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11145 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11146 | fi |
| 11147 | done |
| 11148 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11149 | fi |
| 11150 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11151 | echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 11152 | echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6 |
| 11153 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 11154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11155 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11156 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11157 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11158 | cat >conftest.$ac_ext <<_ACEOF |
| 11159 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11160 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11161 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11162 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11163 | #ifdef __cplusplus |
| 11164 | extern "C" |
| 11165 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11166 | /* 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] | 11167 | builtin and then its argument prototype would still apply. */ |
| 11168 | char usconfig (); |
| 11169 | #ifdef F77_DUMMY_MAIN |
| 11170 | # ifdef __cplusplus |
| 11171 | extern "C" |
| 11172 | # endif |
| 11173 | int F77_DUMMY_MAIN() { return 1; } |
| 11174 | #endif |
| 11175 | int |
| 11176 | main () |
| 11177 | { |
| 11178 | usconfig (); |
| 11179 | ; |
| 11180 | return 0; |
| 11181 | } |
| 11182 | _ACEOF |
| 11183 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11184 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11185 | (eval $ac_link) 2>&5 |
| 11186 | ac_status=$? |
| 11187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11188 | (exit $ac_status); } && |
| 11189 | { ac_try='test -s conftest$ac_exeext' |
| 11190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11191 | (eval $ac_try) 2>&5 |
| 11192 | ac_status=$? |
| 11193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11194 | (exit $ac_status); }; }; then |
| 11195 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11196 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11197 | echo "$as_me: failed program was:" >&5 |
| 11198 | cat conftest.$ac_ext >&5 |
| 11199 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11200 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11201 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11202 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11203 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11204 | echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 11205 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6 |
| 11206 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 11207 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11208 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11209 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11210 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11211 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11212 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11213 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11214 | fi |
| 11215 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11216 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame^] | 11217 | if test "$posix_threads" != "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11218 | echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 11219 | echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6 |
| 11220 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 11221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11222 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11223 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11224 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11225 | cat >conftest.$ac_ext <<_ACEOF |
| 11226 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11227 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11228 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11229 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11230 | #ifdef __cplusplus |
| 11231 | extern "C" |
| 11232 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11233 | /* 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] | 11234 | builtin and then its argument prototype would still apply. */ |
| 11235 | char thr_create (); |
| 11236 | #ifdef F77_DUMMY_MAIN |
| 11237 | # ifdef __cplusplus |
| 11238 | extern "C" |
| 11239 | # endif |
| 11240 | int F77_DUMMY_MAIN() { return 1; } |
| 11241 | #endif |
| 11242 | int |
| 11243 | main () |
| 11244 | { |
| 11245 | thr_create (); |
| 11246 | ; |
| 11247 | return 0; |
| 11248 | } |
| 11249 | _ACEOF |
| 11250 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11251 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11252 | (eval $ac_link) 2>&5 |
| 11253 | ac_status=$? |
| 11254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11255 | (exit $ac_status); } && |
| 11256 | { ac_try='test -s conftest$ac_exeext' |
| 11257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11258 | (eval $ac_try) 2>&5 |
| 11259 | ac_status=$? |
| 11260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11261 | (exit $ac_status); }; }; then |
| 11262 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11263 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11264 | echo "$as_me: failed program was:" >&5 |
| 11265 | cat conftest.$ac_ext >&5 |
| 11266 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11267 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11268 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11269 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11270 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11271 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 11272 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6 |
| 11273 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 11274 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11275 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11276 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11277 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11278 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11279 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11280 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11281 | fi |
| 11282 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11283 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11284 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11285 | if test "$USE_THREAD_MODULE" != "#" |
| 11286 | then |
| 11287 | # If the above checks didn't disable threads, (at least) OSF1 |
| 11288 | # needs this '-threads' argument during linking. |
| 11289 | case $ac_sys_system in |
| 11290 | OSF1) LDLAST=-threads;; |
| 11291 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 11292 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 11293 | |
| 11294 | if test "$posix_threads" = yes -a \ |
| 11295 | "$ac_sys_system" = "SunOS" -a \ |
| 11296 | "$ac_sys_release" = "5.6"; then |
| 11297 | |
| 11298 | cat >>confdefs.h <<\_ACEOF |
| 11299 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 11300 | _ACEOF |
| 11301 | |
| 11302 | fi |
| 11303 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11304 | fi |
| 11305 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11306 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11307 | |
| 11308 | |
| 11309 | echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 11310 | 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] | 11311 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 11312 | if test "${enable_ipv6+set}" = set; then |
| 11313 | enableval="$enable_ipv6" |
| 11314 | case "$enableval" in |
| 11315 | no) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11316 | echo "$as_me:$LINENO: result: no" >&5 |
| 11317 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11318 | ipv6=no |
| 11319 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11320 | *) echo "$as_me:$LINENO: result: yes" >&5 |
| 11321 | echo "${ECHO_T}yes" >&6 |
| 11322 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11323 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11324 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11325 | |
| 11326 | ipv6=yes |
| 11327 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11328 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11329 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11330 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11331 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11332 | echo "$as_me:$LINENO: result: no" >&5 |
| 11333 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11334 | ipv6=no |
| 11335 | |
| 11336 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11337 | cat >conftest.$ac_ext <<_ACEOF |
| 11338 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11339 | #include "confdefs.h" |
| 11340 | /* AF_INET6 available check */ |
| 11341 | #include <sys/types.h> |
| 11342 | #include <sys/socket.h> |
| 11343 | main() |
| 11344 | { |
| 11345 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 11346 | exit(1); |
| 11347 | else |
| 11348 | exit(0); |
| 11349 | } |
| 11350 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11351 | _ACEOF |
| 11352 | rm -f conftest$ac_exeext |
| 11353 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11354 | (eval $ac_link) 2>&5 |
| 11355 | ac_status=$? |
| 11356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11357 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11359 | (eval $ac_try) 2>&5 |
| 11360 | ac_status=$? |
| 11361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11362 | (exit $ac_status); }; }; then |
| 11363 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11364 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11365 | ipv6=yes |
| 11366 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11367 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11368 | echo "$as_me: failed program was:" >&5 |
| 11369 | cat conftest.$ac_ext >&5 |
| 11370 | ( exit $ac_status ) |
| 11371 | echo "$as_me:$LINENO: result: no" >&5 |
| 11372 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11373 | ipv6=no |
| 11374 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11375 | 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] | 11376 | fi |
| 11377 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11378 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11379 | echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 11380 | echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6 |
| 11381 | cat >conftest.$ac_ext <<_ACEOF |
| 11382 | #line $LINENO "configure" |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11383 | #include "confdefs.h" |
| 11384 | #include <sys/types.h> |
| 11385 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11386 | #ifdef F77_DUMMY_MAIN |
| 11387 | # ifdef __cplusplus |
| 11388 | extern "C" |
| 11389 | # endif |
| 11390 | int F77_DUMMY_MAIN() { return 1; } |
| 11391 | #endif |
| 11392 | int |
| 11393 | main () |
| 11394 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11395 | struct sockaddr_in6 x; |
| 11396 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11397 | ; |
| 11398 | return 0; |
| 11399 | } |
| 11400 | _ACEOF |
| 11401 | rm -f conftest.$ac_objext |
| 11402 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11403 | (eval $ac_compile) 2>&5 |
| 11404 | ac_status=$? |
| 11405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11406 | (exit $ac_status); } && |
| 11407 | { ac_try='test -s conftest.$ac_objext' |
| 11408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11409 | (eval $ac_try) 2>&5 |
| 11410 | ac_status=$? |
| 11411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11412 | (exit $ac_status); }; }; then |
| 11413 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11414 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11415 | ipv6=yes |
| 11416 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11417 | echo "$as_me: failed program was:" >&5 |
| 11418 | cat conftest.$ac_ext >&5 |
| 11419 | echo "$as_me:$LINENO: result: no" >&5 |
| 11420 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11421 | ipv6=no |
| 11422 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11423 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11424 | fi |
| 11425 | |
| 11426 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11427 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11428 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11429 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11430 | |
| 11431 | fi |
| 11432 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11433 | fi; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11434 | |
| 11435 | ipv6type=unknown |
| 11436 | ipv6lib=none |
| 11437 | ipv6trylibc=no |
| 11438 | |
| 11439 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11440 | echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 11441 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 11442 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 11443 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11444 | case $i in |
| 11445 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11446 | cat >conftest.$ac_ext <<_ACEOF |
| 11447 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11448 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11449 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11450 | #include <netinet/in.h> |
| 11451 | #ifdef IPV6_INRIA_VERSION |
| 11452 | yes |
| 11453 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11454 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11455 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11456 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11457 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11458 | fi |
| 11459 | rm -f conftest* |
| 11460 | |
| 11461 | ;; |
| 11462 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11463 | cat >conftest.$ac_ext <<_ACEOF |
| 11464 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11465 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11466 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11467 | #include <netinet/in.h> |
| 11468 | #ifdef __KAME__ |
| 11469 | yes |
| 11470 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11471 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11472 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11473 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11474 | ipv6type=$i; |
| 11475 | ipv6lib=inet6 |
| 11476 | ipv6libdir=/usr/local/v6/lib |
| 11477 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11478 | fi |
| 11479 | rm -f conftest* |
| 11480 | |
| 11481 | ;; |
| 11482 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11483 | cat >conftest.$ac_ext <<_ACEOF |
| 11484 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11485 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11486 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11487 | #include <features.h> |
| 11488 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 11489 | yes |
| 11490 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11491 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11492 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11493 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11494 | ipv6type=$i; |
| 11495 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11496 | fi |
| 11497 | rm -f conftest* |
| 11498 | |
| 11499 | ;; |
| 11500 | linux-inet6) |
| 11501 | if test -d /usr/inet6; then |
| 11502 | ipv6type=$i |
| 11503 | ipv6lib=inet6 |
| 11504 | ipv6libdir=/usr/inet6/lib |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11505 | OPT="-I/usr/inet6/include $OPT" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11506 | fi |
| 11507 | ;; |
| 11508 | solaris) |
| 11509 | if test -f /etc/netconfig; then |
| 11510 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 11511 | ipv6type=$i |
| 11512 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11513 | fi |
| 11514 | fi |
| 11515 | ;; |
| 11516 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11517 | cat >conftest.$ac_ext <<_ACEOF |
| 11518 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11519 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11520 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11521 | #include <sys/param.h> |
| 11522 | #ifdef _TOSHIBA_INET6 |
| 11523 | yes |
| 11524 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11525 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11526 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11527 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11528 | ipv6type=$i; |
| 11529 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11530 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11531 | fi |
| 11532 | rm -f conftest* |
| 11533 | |
| 11534 | ;; |
| 11535 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11536 | cat >conftest.$ac_ext <<_ACEOF |
| 11537 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11538 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11539 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11540 | #include </usr/local/v6/include/sys/v6config.h> |
| 11541 | #ifdef __V6D__ |
| 11542 | yes |
| 11543 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11544 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11545 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11546 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11547 | ipv6type=$i; |
| 11548 | ipv6lib=v6; |
| 11549 | ipv6libdir=/usr/local/v6/lib; |
| 11550 | OPT="-I/usr/local/v6/include $OPT" |
| 11551 | fi |
| 11552 | rm -f conftest* |
| 11553 | |
| 11554 | ;; |
| 11555 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11556 | cat >conftest.$ac_ext <<_ACEOF |
| 11557 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11558 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11559 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11560 | #include <sys/param.h> |
| 11561 | #ifdef _ZETA_MINAMI_INET6 |
| 11562 | yes |
| 11563 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11564 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11565 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11566 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11567 | ipv6type=$i; |
| 11568 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11569 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11570 | fi |
| 11571 | rm -f conftest* |
| 11572 | |
| 11573 | ;; |
| 11574 | esac |
| 11575 | if test "$ipv6type" != "unknown"; then |
| 11576 | break |
| 11577 | fi |
| 11578 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11579 | echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 11580 | echo "${ECHO_T}$ipv6type" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11581 | fi |
| 11582 | |
| 11583 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 11584 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 11585 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 11586 | echo "using lib$ipv6lib" |
| 11587 | else |
| 11588 | if test $ipv6trylibc = "yes"; then |
| 11589 | echo "using libc" |
| 11590 | else |
| 11591 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 11592 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 11593 | echo 'ipv6 kit and compile beforehand.' |
| 11594 | exit 1 |
| 11595 | fi |
| 11596 | fi |
| 11597 | fi |
| 11598 | |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11599 | # Check for universal newline support |
Guido van Rossum | 402905e | 2002-08-15 13:56:35 +0000 | [diff] [blame] | 11600 | echo "$as_me:$LINENO: checking for --with-universal-newlines" >&5 |
| 11601 | echo $ECHO_N "checking for --with-universal-newlines... $ECHO_C" >&6 |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11602 | |
| 11603 | # Check whether --with-universal-newlines or --without-universal-newlines was given. |
| 11604 | if test "${with_universal_newlines+set}" = set; then |
| 11605 | withval="$with_universal_newlines" |
| 11606 | |
| 11607 | fi; |
| 11608 | |
| 11609 | if test -z "$with_universal_newlines" |
| 11610 | then with_universal_newlines="yes" |
| 11611 | fi |
| 11612 | if test "$with_universal_newlines" != "no" |
| 11613 | then |
Martin v. Löwis | e8aea58 | 2002-04-16 05:51:02 +0000 | [diff] [blame] | 11614 | |
| 11615 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11616 | #define WITH_UNIVERSAL_NEWLINES 1 |
| 11617 | _ACEOF |
| 11618 | |
| 11619 | fi |
| 11620 | echo "$as_me:$LINENO: result: $with_universal_newlines" >&5 |
| 11621 | echo "${ECHO_T}$with_universal_newlines" >&6 |
| 11622 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11623 | # Check for --with-doc-strings |
| 11624 | echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 11625 | echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6 |
| 11626 | |
| 11627 | # Check whether --with-doc-strings or --without-doc-strings was given. |
| 11628 | if test "${with_doc_strings+set}" = set; then |
| 11629 | withval="$with_doc_strings" |
| 11630 | |
| 11631 | fi; |
| 11632 | |
| 11633 | if test -z "$with_doc_strings" |
| 11634 | then with_doc_strings="yes" |
| 11635 | fi |
| 11636 | if test "$with_doc_strings" != "no" |
| 11637 | then |
| 11638 | |
| 11639 | cat >>confdefs.h <<\_ACEOF |
| 11640 | #define WITH_DOC_STRINGS 1 |
| 11641 | _ACEOF |
| 11642 | |
| 11643 | fi |
| 11644 | echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 11645 | echo "${ECHO_T}$with_doc_strings" >&6 |
| 11646 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11647 | # Check for Python-specific malloc support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11648 | echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 11649 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6 |
| 11650 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11651 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 11652 | if test "${with_pymalloc+set}" = set; then |
| 11653 | withval="$with_pymalloc" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11654 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11655 | fi; |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11656 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11657 | if test -z "$with_pymalloc" |
| 11658 | then with_pymalloc="yes" |
| 11659 | fi |
| 11660 | if test "$with_pymalloc" != "no" |
| 11661 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11662 | |
| 11663 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11664 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11665 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11666 | |
| 11667 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11668 | echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 11669 | echo "${ECHO_T}$with_pymalloc" >&6 |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11670 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11671 | # Check for --with-wctype-functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11672 | echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 11673 | echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6 |
| 11674 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11675 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 11676 | if test "${with_wctype_functions+set}" = set; then |
| 11677 | withval="$with_wctype_functions" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11678 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11679 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11680 | then |
| 11681 | |
| 11682 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11683 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11684 | _ACEOF |
| 11685 | |
| 11686 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11687 | echo "${ECHO_T}yes" >&6 |
| 11688 | else echo "$as_me:$LINENO: result: no" >&5 |
| 11689 | echo "${ECHO_T}no" >&6 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11690 | fi |
| 11691 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11692 | echo "$as_me:$LINENO: result: no" >&5 |
| 11693 | echo "${ECHO_T}no" >&6 |
| 11694 | fi; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11695 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11696 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11697 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 11698 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11699 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11700 | echo "$as_me:$LINENO: checking for --with-sgi-dl" >&5 |
| 11701 | echo $ECHO_N "checking for --with-sgi-dl... $ECHO_C" >&6 |
| 11702 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11703 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11704 | if test "${with_sgi_dl+set}" = set; then |
| 11705 | withval="$with_sgi_dl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11706 | |
| 11707 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11708 | echo "${ECHO_T}$withval" >&6 |
| 11709 | |
| 11710 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11711 | #define WITH_SGI_DL 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11712 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11713 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11714 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11715 | dldir=$withval |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 11716 | if test ! -z "$dldir" -a -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 11717 | then LDFLAGS="$LDFLAGS -L$dldir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11718 | else { { echo "$as_me:$LINENO: error: proper usage is --with-sgi-dl=DIRECTORY" >&5 |
| 11719 | echo "$as_me: error: proper usage is --with-sgi-dl=DIRECTORY" >&2;} |
| 11720 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11721 | fi |
| 11722 | DLINCLDIR=${dldir} |
| 11723 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11724 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11725 | echo "$as_me:$LINENO: result: no" >&5 |
| 11726 | echo "${ECHO_T}no" >&6 |
| 11727 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11728 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11729 | echo "$as_me:$LINENO: checking for --with-dl-dld" >&5 |
| 11730 | echo $ECHO_N "checking for --with-dl-dld... $ECHO_C" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11731 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11732 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11733 | if test "${with_dl_dld+set}" = set; then |
| 11734 | withval="$with_dl_dld" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11735 | |
| 11736 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11737 | echo "${ECHO_T}$withval" >&6 |
| 11738 | |
| 11739 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11740 | #define WITH_DL_DLD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11741 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11742 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11743 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11744 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 11745 | dlddir=`echo "$withval" | sed 's/.*,//'` |
Barry Warsaw | 7d1219d | 2000-10-05 18:45:53 +0000 | [diff] [blame] | 11746 | 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] | 11747 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11748 | else { { echo "$as_me:$LINENO: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&5 |
| 11749 | echo "$as_me: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&2;} |
| 11750 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11751 | fi |
| 11752 | DLINCLDIR=${dldir} |
| 11753 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11754 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11755 | echo "$as_me:$LINENO: result: no" >&5 |
| 11756 | echo "${ECHO_T}no" >&6 |
| 11757 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11758 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11759 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 11760 | # 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] | 11761 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11762 | for ac_func in dlopen |
| 11763 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11764 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11765 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11766 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11767 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11769 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11770 | cat >conftest.$ac_ext <<_ACEOF |
| 11771 | #line $LINENO "configure" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11772 | #include "confdefs.h" |
| 11773 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11774 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11775 | #include <assert.h> |
| 11776 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11777 | #ifdef __cplusplus |
| 11778 | extern "C" |
| 11779 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11780 | /* 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] | 11781 | builtin and then its argument prototype would still apply. */ |
| 11782 | char $ac_func (); |
| 11783 | char (*f) (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11784 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11785 | #ifdef F77_DUMMY_MAIN |
| 11786 | # ifdef __cplusplus |
| 11787 | extern "C" |
| 11788 | # endif |
| 11789 | int F77_DUMMY_MAIN() { return 1; } |
| 11790 | #endif |
| 11791 | int |
| 11792 | main () |
| 11793 | { |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11794 | /* The GNU C library defines this for functions which it implements |
| 11795 | to always fail with ENOSYS. Some functions are actually named |
| 11796 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11797 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11798 | choke me |
| 11799 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11800 | f = $ac_func; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11801 | #endif |
| 11802 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11803 | ; |
| 11804 | return 0; |
| 11805 | } |
| 11806 | _ACEOF |
| 11807 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11808 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11809 | (eval $ac_link) 2>&5 |
| 11810 | ac_status=$? |
| 11811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11812 | (exit $ac_status); } && |
| 11813 | { ac_try='test -s conftest$ac_exeext' |
| 11814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11815 | (eval $ac_try) 2>&5 |
| 11816 | ac_status=$? |
| 11817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11818 | (exit $ac_status); }; }; then |
| 11819 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11820 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11821 | echo "$as_me: failed program was:" >&5 |
| 11822 | cat conftest.$ac_ext >&5 |
| 11823 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11824 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11825 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11826 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11827 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11828 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11829 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11830 | cat >>confdefs.h <<_ACEOF |
| 11831 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11832 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11833 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11834 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11835 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11836 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11837 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11838 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 11839 | # loading of modules. |
| 11840 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11841 | echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 11842 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11843 | if test -z "$DYNLOADFILE" |
| 11844 | then |
| 11845 | case $ac_sys_system/$ac_sys_release in |
| 11846 | AIX*) DYNLOADFILE="dynload_aix.o";; |
| 11847 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 11848 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11849 | Darwin/*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11850 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11851 | *) |
| 11852 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 11853 | # out any dynamic loading |
| 11854 | if test "$ac_cv_func_dlopen" = yes |
| 11855 | then DYNLOADFILE="dynload_shlib.o" |
| 11856 | else DYNLOADFILE="dynload_stub.o" |
| 11857 | fi |
| 11858 | ;; |
| 11859 | esac |
| 11860 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11861 | echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 11862 | echo "${ECHO_T}$DYNLOADFILE" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11863 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 11864 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11865 | |
| 11866 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11867 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11868 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11869 | |
| 11870 | fi |
| 11871 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11872 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 11873 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11874 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11875 | echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 11876 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11877 | if test -z "$MACHDEP_OBJS" |
| 11878 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11879 | MACHDEP_OBJS=$extra_machdep_objs |
| 11880 | else |
| 11881 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11882 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11883 | echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 11884 | echo "${ECHO_T}MACHDEP_OBJS" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11885 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11886 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | |
| 11946 | |
| 11947 | |
| 11948 | |
| 11949 | |
| 11950 | |
| 11951 | |
| 11952 | |
| 11953 | |
| 11954 | |
| 11955 | |
| 11956 | |
| 11957 | |
| 11958 | |
| 11959 | |
Martin v. Löwis | 06a83e9 | 2002-04-14 10:19:44 +0000 | [diff] [blame] | 11960 | |
Fred Drake | 6b3cc52 | 2002-04-15 19:20:27 +0000 | [diff] [blame] | 11961 | |
Jack Jansen | 0b06be7 | 2002-06-21 14:48:38 +0000 | [diff] [blame] | 11962 | |
Martin v. Löwis | 0cec0ff | 2002-07-28 16:33:45 +0000 | [diff] [blame] | 11963 | |
Martin v. Löwis | 6aa9fdb | 2002-09-10 09:16:13 +0000 | [diff] [blame] | 11964 | |
Martin v. Löwis | 244edc8 | 2001-10-04 22:44:26 +0000 | [diff] [blame] | 11965 | 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] | 11966 | fchdir flock fork fsync fdatasync fpathconf ftime ftruncate \ |
Martin v. Löwis | 606edc1 | 2002-06-13 21:09:11 +0000 | [diff] [blame] | 11967 | gai_strerror getgroups getlogin getpeername getpgid getpid getpwent getwd \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 11968 | hstrerror inet_pton kill killpg lchown link lstat mkfifo mknod mktime \ |
| 11969 | mremap nice pathconf pause plock poll pthread_init \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 11970 | putenv readlink \ |
Martin v. Löwis | 61c5edf | 2001-10-18 04:06:00 +0000 | [diff] [blame] | 11971 | select setegid seteuid setgid setgroups \ |
Martin v. Löwis | 791bfda | 2001-07-24 06:33:08 +0000 | [diff] [blame] | 11972 | setlocale setregid setreuid setsid setpgid setuid setvbuf snprintf \ |
Michael W. Hudson | 065c1a2 | 2002-06-06 13:03:44 +0000 | [diff] [blame] | 11973 | sigaction siginterrupt sigrelse strftime strptime symlink \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 11974 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Martin v. Löwis | 6aa9fdb | 2002-09-10 09:16:13 +0000 | [diff] [blame] | 11975 | truncate uname unsetenv utimes waitpid _getpty getpriority |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11976 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11977 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11978 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11979 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11980 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11982 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11983 | cat >conftest.$ac_ext <<_ACEOF |
| 11984 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11985 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11986 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11987 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11988 | #include <assert.h> |
| 11989 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11990 | #ifdef __cplusplus |
| 11991 | extern "C" |
| 11992 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11993 | /* 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] | 11994 | builtin and then its argument prototype would still apply. */ |
| 11995 | char $ac_func (); |
| 11996 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11997 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11998 | #ifdef F77_DUMMY_MAIN |
| 11999 | # ifdef __cplusplus |
| 12000 | extern "C" |
| 12001 | # endif |
| 12002 | int F77_DUMMY_MAIN() { return 1; } |
| 12003 | #endif |
| 12004 | int |
| 12005 | main () |
| 12006 | { |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12007 | /* The GNU C library defines this for functions which it implements |
| 12008 | to always fail with ENOSYS. Some functions are actually named |
| 12009 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12010 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12011 | choke me |
| 12012 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12013 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12014 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12015 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12016 | ; |
| 12017 | return 0; |
| 12018 | } |
| 12019 | _ACEOF |
| 12020 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12021 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12022 | (eval $ac_link) 2>&5 |
| 12023 | ac_status=$? |
| 12024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12025 | (exit $ac_status); } && |
| 12026 | { ac_try='test -s conftest$ac_exeext' |
| 12027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12028 | (eval $ac_try) 2>&5 |
| 12029 | ac_status=$? |
| 12030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12031 | (exit $ac_status); }; }; then |
| 12032 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12033 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12034 | echo "$as_me: failed program was:" >&5 |
| 12035 | cat conftest.$ac_ext >&5 |
| 12036 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12037 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12038 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12039 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12040 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12041 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12042 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12043 | cat >>confdefs.h <<_ACEOF |
| 12044 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12045 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12046 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12047 | fi |
| 12048 | done |
| 12049 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12050 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12051 | # check for openpty and forkpty |
| 12052 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12053 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12054 | for ac_func in openpty |
| 12055 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12056 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12057 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12058 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12059 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12061 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12062 | cat >conftest.$ac_ext <<_ACEOF |
| 12063 | #line $LINENO "configure" |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12064 | #include "confdefs.h" |
| 12065 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12066 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12067 | #include <assert.h> |
| 12068 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12069 | #ifdef __cplusplus |
| 12070 | extern "C" |
| 12071 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12072 | /* 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] | 12073 | builtin and then its argument prototype would still apply. */ |
| 12074 | char $ac_func (); |
| 12075 | char (*f) (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12076 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12077 | #ifdef F77_DUMMY_MAIN |
| 12078 | # ifdef __cplusplus |
| 12079 | extern "C" |
| 12080 | # endif |
| 12081 | int F77_DUMMY_MAIN() { return 1; } |
| 12082 | #endif |
| 12083 | int |
| 12084 | main () |
| 12085 | { |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12086 | /* The GNU C library defines this for functions which it implements |
| 12087 | to always fail with ENOSYS. Some functions are actually named |
| 12088 | something starting with __ and the normal name is an alias. */ |
| 12089 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12090 | choke me |
| 12091 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12092 | f = $ac_func; |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12093 | #endif |
| 12094 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12095 | ; |
| 12096 | return 0; |
| 12097 | } |
| 12098 | _ACEOF |
| 12099 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12100 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12101 | (eval $ac_link) 2>&5 |
| 12102 | ac_status=$? |
| 12103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12104 | (exit $ac_status); } && |
| 12105 | { ac_try='test -s conftest$ac_exeext' |
| 12106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12107 | (eval $ac_try) 2>&5 |
| 12108 | ac_status=$? |
| 12109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12110 | (exit $ac_status); }; }; then |
| 12111 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12112 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12113 | echo "$as_me: failed program was:" >&5 |
| 12114 | cat conftest.$ac_ext >&5 |
| 12115 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12116 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12117 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12118 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12119 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12120 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12121 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12122 | cat >>confdefs.h <<_ACEOF |
| 12123 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12124 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12125 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12126 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12127 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 12128 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
| 12129 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 12130 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12131 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12132 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12133 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12134 | cat >conftest.$ac_ext <<_ACEOF |
| 12135 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12136 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12137 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12138 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12139 | #ifdef __cplusplus |
| 12140 | extern "C" |
| 12141 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12142 | /* 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] | 12143 | builtin and then its argument prototype would still apply. */ |
| 12144 | char openpty (); |
| 12145 | #ifdef F77_DUMMY_MAIN |
| 12146 | # ifdef __cplusplus |
| 12147 | extern "C" |
| 12148 | # endif |
| 12149 | int F77_DUMMY_MAIN() { return 1; } |
| 12150 | #endif |
| 12151 | int |
| 12152 | main () |
| 12153 | { |
| 12154 | openpty (); |
| 12155 | ; |
| 12156 | return 0; |
| 12157 | } |
| 12158 | _ACEOF |
| 12159 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12160 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12161 | (eval $ac_link) 2>&5 |
| 12162 | ac_status=$? |
| 12163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12164 | (exit $ac_status); } && |
| 12165 | { ac_try='test -s conftest$ac_exeext' |
| 12166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12167 | (eval $ac_try) 2>&5 |
| 12168 | ac_status=$? |
| 12169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12170 | (exit $ac_status); }; }; then |
| 12171 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12172 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12173 | echo "$as_me: failed program was:" >&5 |
| 12174 | cat conftest.$ac_ext >&5 |
| 12175 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12176 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12177 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12178 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12179 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12180 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 12181 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
| 12182 | if test $ac_cv_lib_util_openpty = yes; then |
| 12183 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12184 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12185 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12186 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12187 | fi |
| 12188 | |
| 12189 | fi |
| 12190 | done |
| 12191 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12192 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12193 | for ac_func in forkpty |
| 12194 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12195 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12196 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12197 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12198 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12199 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12200 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12201 | cat >conftest.$ac_ext <<_ACEOF |
| 12202 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12203 | #include "confdefs.h" |
| 12204 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12205 | which can conflict with char $ac_func (); below. */ |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12206 | #include <assert.h> |
| 12207 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12208 | #ifdef __cplusplus |
| 12209 | extern "C" |
| 12210 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12211 | /* 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] | 12212 | builtin and then its argument prototype would still apply. */ |
| 12213 | char $ac_func (); |
| 12214 | char (*f) (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12215 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12216 | #ifdef F77_DUMMY_MAIN |
| 12217 | # ifdef __cplusplus |
| 12218 | extern "C" |
| 12219 | # endif |
| 12220 | int F77_DUMMY_MAIN() { return 1; } |
| 12221 | #endif |
| 12222 | int |
| 12223 | main () |
| 12224 | { |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12225 | /* The GNU C library defines this for functions which it implements |
| 12226 | to always fail with ENOSYS. Some functions are actually named |
| 12227 | something starting with __ and the normal name is an alias. */ |
| 12228 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12229 | choke me |
| 12230 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12231 | f = $ac_func; |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12232 | #endif |
| 12233 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12234 | ; |
| 12235 | return 0; |
| 12236 | } |
| 12237 | _ACEOF |
| 12238 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12239 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12240 | (eval $ac_link) 2>&5 |
| 12241 | ac_status=$? |
| 12242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12243 | (exit $ac_status); } && |
| 12244 | { ac_try='test -s conftest$ac_exeext' |
| 12245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12246 | (eval $ac_try) 2>&5 |
| 12247 | ac_status=$? |
| 12248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12249 | (exit $ac_status); }; }; then |
| 12250 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12251 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12252 | echo "$as_me: failed program was:" >&5 |
| 12253 | cat conftest.$ac_ext >&5 |
| 12254 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12255 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12256 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12257 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12258 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12259 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12260 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12261 | cat >>confdefs.h <<_ACEOF |
| 12262 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12263 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12264 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12265 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12266 | echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 12267 | echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6 |
| 12268 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 12269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12270 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12271 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12272 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12273 | cat >conftest.$ac_ext <<_ACEOF |
| 12274 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12275 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12276 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12277 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12278 | #ifdef __cplusplus |
| 12279 | extern "C" |
| 12280 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12281 | /* 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] | 12282 | builtin and then its argument prototype would still apply. */ |
| 12283 | char forkpty (); |
| 12284 | #ifdef F77_DUMMY_MAIN |
| 12285 | # ifdef __cplusplus |
| 12286 | extern "C" |
| 12287 | # endif |
| 12288 | int F77_DUMMY_MAIN() { return 1; } |
| 12289 | #endif |
| 12290 | int |
| 12291 | main () |
| 12292 | { |
| 12293 | forkpty (); |
| 12294 | ; |
| 12295 | return 0; |
| 12296 | } |
| 12297 | _ACEOF |
| 12298 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12299 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12300 | (eval $ac_link) 2>&5 |
| 12301 | ac_status=$? |
| 12302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12303 | (exit $ac_status); } && |
| 12304 | { ac_try='test -s conftest$ac_exeext' |
| 12305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12306 | (eval $ac_try) 2>&5 |
| 12307 | ac_status=$? |
| 12308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12309 | (exit $ac_status); }; }; then |
| 12310 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12311 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12312 | echo "$as_me: failed program was:" >&5 |
| 12313 | cat conftest.$ac_ext >&5 |
| 12314 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12315 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12316 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12317 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12318 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12319 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 12320 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6 |
| 12321 | if test $ac_cv_lib_util_forkpty = yes; then |
| 12322 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12323 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12324 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12325 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12326 | fi |
| 12327 | |
| 12328 | fi |
| 12329 | done |
| 12330 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12331 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12332 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12333 | |
| 12334 | |
| 12335 | |
| 12336 | |
| 12337 | |
| 12338 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12339 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 12340 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12341 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12342 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12343 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12344 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12345 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12346 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12347 | cat >conftest.$ac_ext <<_ACEOF |
| 12348 | #line $LINENO "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12349 | #include "confdefs.h" |
| 12350 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12351 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12352 | #include <assert.h> |
| 12353 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12354 | #ifdef __cplusplus |
| 12355 | extern "C" |
| 12356 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12357 | /* 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] | 12358 | builtin and then its argument prototype would still apply. */ |
| 12359 | char $ac_func (); |
| 12360 | char (*f) (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12361 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12362 | #ifdef F77_DUMMY_MAIN |
| 12363 | # ifdef __cplusplus |
| 12364 | extern "C" |
| 12365 | # endif |
| 12366 | int F77_DUMMY_MAIN() { return 1; } |
| 12367 | #endif |
| 12368 | int |
| 12369 | main () |
| 12370 | { |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12371 | /* The GNU C library defines this for functions which it implements |
| 12372 | to always fail with ENOSYS. Some functions are actually named |
| 12373 | something starting with __ and the normal name is an alias. */ |
| 12374 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12375 | choke me |
| 12376 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12377 | f = $ac_func; |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12378 | #endif |
| 12379 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12380 | ; |
| 12381 | return 0; |
| 12382 | } |
| 12383 | _ACEOF |
| 12384 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12385 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12386 | (eval $ac_link) 2>&5 |
| 12387 | ac_status=$? |
| 12388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12389 | (exit $ac_status); } && |
| 12390 | { ac_try='test -s conftest$ac_exeext' |
| 12391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12392 | (eval $ac_try) 2>&5 |
| 12393 | ac_status=$? |
| 12394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12395 | (exit $ac_status); }; }; then |
| 12396 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12397 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12398 | echo "$as_me: failed program was:" >&5 |
| 12399 | cat conftest.$ac_ext >&5 |
| 12400 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12401 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12402 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12403 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12404 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12405 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12406 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12407 | cat >>confdefs.h <<_ACEOF |
| 12408 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12409 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12410 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12411 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12412 | done |
| 12413 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12414 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12415 | |
| 12416 | |
| 12417 | |
| 12418 | |
| 12419 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12420 | for ac_func in dup2 getcwd strdup strerror memmove |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12421 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12422 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12423 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12424 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12425 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12426 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12427 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12428 | cat >conftest.$ac_ext <<_ACEOF |
| 12429 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12430 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12431 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12432 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12433 | #include <assert.h> |
| 12434 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12435 | #ifdef __cplusplus |
| 12436 | extern "C" |
| 12437 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12438 | /* 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] | 12439 | builtin and then its argument prototype would still apply. */ |
| 12440 | char $ac_func (); |
| 12441 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12442 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12443 | #ifdef F77_DUMMY_MAIN |
| 12444 | # ifdef __cplusplus |
| 12445 | extern "C" |
| 12446 | # endif |
| 12447 | int F77_DUMMY_MAIN() { return 1; } |
| 12448 | #endif |
| 12449 | int |
| 12450 | main () |
| 12451 | { |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12452 | /* The GNU C library defines this for functions which it implements |
| 12453 | to always fail with ENOSYS. Some functions are actually named |
| 12454 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12455 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12456 | choke me |
| 12457 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12458 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12459 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12460 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12461 | ; |
| 12462 | return 0; |
| 12463 | } |
| 12464 | _ACEOF |
| 12465 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12466 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12467 | (eval $ac_link) 2>&5 |
| 12468 | ac_status=$? |
| 12469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12470 | (exit $ac_status); } && |
| 12471 | { ac_try='test -s conftest$ac_exeext' |
| 12472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12473 | (eval $ac_try) 2>&5 |
| 12474 | ac_status=$? |
| 12475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12476 | (exit $ac_status); }; }; then |
| 12477 | eval "$as_ac_var=yes" |
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 | echo "$as_me: failed program was:" >&5 |
| 12480 | cat conftest.$ac_ext >&5 |
| 12481 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12482 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12483 | 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] | 12484 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12485 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12486 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12487 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12488 | cat >>confdefs.h <<_ACEOF |
| 12489 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12490 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12491 | |
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 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12494 | fi |
| 12495 | done |
| 12496 | |
| 12497 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12498 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12499 | for ac_func in getpgrp |
| 12500 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12501 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12502 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12503 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12504 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12505 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12506 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12507 | cat >conftest.$ac_ext <<_ACEOF |
| 12508 | #line $LINENO "configure" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12509 | #include "confdefs.h" |
| 12510 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12511 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12512 | #include <assert.h> |
| 12513 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12514 | #ifdef __cplusplus |
| 12515 | extern "C" |
| 12516 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12517 | /* 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] | 12518 | builtin and then its argument prototype would still apply. */ |
| 12519 | char $ac_func (); |
| 12520 | char (*f) (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12521 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12522 | #ifdef F77_DUMMY_MAIN |
| 12523 | # ifdef __cplusplus |
| 12524 | extern "C" |
| 12525 | # endif |
| 12526 | int F77_DUMMY_MAIN() { return 1; } |
| 12527 | #endif |
| 12528 | int |
| 12529 | main () |
| 12530 | { |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12531 | /* The GNU C library defines this for functions which it implements |
| 12532 | to always fail with ENOSYS. Some functions are actually named |
| 12533 | something starting with __ and the normal name is an alias. */ |
| 12534 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12535 | choke me |
| 12536 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12537 | f = $ac_func; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12538 | #endif |
| 12539 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12540 | ; |
| 12541 | return 0; |
| 12542 | } |
| 12543 | _ACEOF |
| 12544 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12545 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12546 | (eval $ac_link) 2>&5 |
| 12547 | ac_status=$? |
| 12548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12549 | (exit $ac_status); } && |
| 12550 | { ac_try='test -s conftest$ac_exeext' |
| 12551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12552 | (eval $ac_try) 2>&5 |
| 12553 | ac_status=$? |
| 12554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12555 | (exit $ac_status); }; }; then |
| 12556 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12557 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12558 | echo "$as_me: failed program was:" >&5 |
| 12559 | cat conftest.$ac_ext >&5 |
| 12560 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12561 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12562 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12563 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12564 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12565 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12566 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12567 | cat >>confdefs.h <<_ACEOF |
| 12568 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12569 | _ACEOF |
| 12570 | cat >conftest.$ac_ext <<_ACEOF |
| 12571 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12572 | #include "confdefs.h" |
| 12573 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12574 | #ifdef F77_DUMMY_MAIN |
| 12575 | # ifdef __cplusplus |
| 12576 | extern "C" |
| 12577 | # endif |
| 12578 | int F77_DUMMY_MAIN() { return 1; } |
| 12579 | #endif |
| 12580 | int |
| 12581 | main () |
| 12582 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12583 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12584 | ; |
| 12585 | return 0; |
| 12586 | } |
| 12587 | _ACEOF |
| 12588 | rm -f conftest.$ac_objext |
| 12589 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12590 | (eval $ac_compile) 2>&5 |
| 12591 | ac_status=$? |
| 12592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12593 | (exit $ac_status); } && |
| 12594 | { ac_try='test -s conftest.$ac_objext' |
| 12595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12596 | (eval $ac_try) 2>&5 |
| 12597 | ac_status=$? |
| 12598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12599 | (exit $ac_status); }; }; then |
| 12600 | |
| 12601 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12602 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12603 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12604 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12605 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 12606 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12607 | echo "$as_me: failed program was:" >&5 |
| 12608 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12609 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12610 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12611 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12612 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12613 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12614 | |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12615 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
| 12616 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 |
| 12617 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12619 | else |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12620 | if test "$cross_compiling" = yes; then |
| 12621 | { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 |
| 12622 | echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} |
| 12623 | { (exit 1); exit 1; }; } |
| 12624 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12625 | cat >conftest.$ac_ext <<_ACEOF |
| 12626 | #line $LINENO "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12627 | #include "confdefs.h" |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12628 | #if HAVE_UNISTD_H |
| 12629 | # include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12630 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12631 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12632 | #ifdef F77_DUMMY_MAIN |
| 12633 | # ifdef __cplusplus |
| 12634 | extern "C" |
| 12635 | # endif |
| 12636 | int F77_DUMMY_MAIN() { return 1; } |
| 12637 | #endif |
| 12638 | int |
| 12639 | main () |
| 12640 | { |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12641 | /* If this system has a BSD-style setpgrp which takes arguments, |
| 12642 | setpgrp(1, 1) will fail with ESRCH and return -1, in that case |
| 12643 | exit successfully. */ |
| 12644 | exit (setpgrp (1,1) == -1 ? 0 : 1); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12645 | ; |
| 12646 | return 0; |
| 12647 | } |
| 12648 | _ACEOF |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12649 | rm -f conftest$ac_exeext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12650 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12651 | (eval $ac_link) 2>&5 |
| 12652 | ac_status=$? |
| 12653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12654 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12656 | (eval $ac_try) 2>&5 |
| 12657 | ac_status=$? |
| 12658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12659 | (exit $ac_status); }; }; then |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12660 | ac_cv_func_setpgrp_void=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12661 | else |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12662 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12663 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12664 | cat conftest.$ac_ext >&5 |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12665 | ( exit $ac_status ) |
| 12666 | ac_cv_func_setpgrp_void=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12667 | fi |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12668 | 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] | 12669 | fi |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12670 | fi |
| 12671 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
| 12672 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 |
| 12673 | if test $ac_cv_func_setpgrp_void = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12674 | |
| 12675 | cat >>confdefs.h <<\_ACEOF |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12676 | #define SETPGRP_VOID 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12677 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12678 | |
| 12679 | fi |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12680 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12681 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12682 | for ac_func in gettimeofday |
| 12683 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12684 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12685 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12686 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12687 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12689 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12690 | cat >conftest.$ac_ext <<_ACEOF |
| 12691 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12692 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12693 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12694 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12695 | #include <assert.h> |
| 12696 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12697 | #ifdef __cplusplus |
| 12698 | extern "C" |
| 12699 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12700 | /* 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] | 12701 | builtin and then its argument prototype would still apply. */ |
| 12702 | char $ac_func (); |
| 12703 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12704 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12705 | #ifdef F77_DUMMY_MAIN |
| 12706 | # ifdef __cplusplus |
| 12707 | extern "C" |
| 12708 | # endif |
| 12709 | int F77_DUMMY_MAIN() { return 1; } |
| 12710 | #endif |
| 12711 | int |
| 12712 | main () |
| 12713 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12714 | /* The GNU C library defines this for functions which it implements |
| 12715 | to always fail with ENOSYS. Some functions are actually named |
| 12716 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12717 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12718 | choke me |
| 12719 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12720 | f = $ac_func; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12721 | #endif |
| 12722 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12723 | ; |
| 12724 | return 0; |
| 12725 | } |
| 12726 | _ACEOF |
| 12727 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12728 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12729 | (eval $ac_link) 2>&5 |
| 12730 | ac_status=$? |
| 12731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12732 | (exit $ac_status); } && |
| 12733 | { ac_try='test -s conftest$ac_exeext' |
| 12734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12735 | (eval $ac_try) 2>&5 |
| 12736 | ac_status=$? |
| 12737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12738 | (exit $ac_status); }; }; then |
| 12739 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12740 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12741 | echo "$as_me: failed program was:" >&5 |
| 12742 | cat conftest.$ac_ext >&5 |
| 12743 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12744 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12745 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12746 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12747 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12748 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12749 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12750 | cat >>confdefs.h <<_ACEOF |
| 12751 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12752 | _ACEOF |
| 12753 | cat >conftest.$ac_ext <<_ACEOF |
| 12754 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12755 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12756 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12757 | #ifdef F77_DUMMY_MAIN |
| 12758 | # ifdef __cplusplus |
| 12759 | extern "C" |
| 12760 | # endif |
| 12761 | int F77_DUMMY_MAIN() { return 1; } |
| 12762 | #endif |
| 12763 | int |
| 12764 | main () |
| 12765 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12766 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12767 | ; |
| 12768 | return 0; |
| 12769 | } |
| 12770 | _ACEOF |
| 12771 | rm -f conftest.$ac_objext |
| 12772 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12773 | (eval $ac_compile) 2>&5 |
| 12774 | ac_status=$? |
| 12775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12776 | (exit $ac_status); } && |
| 12777 | { ac_try='test -s conftest.$ac_objext' |
| 12778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12779 | (eval $ac_try) 2>&5 |
| 12780 | ac_status=$? |
| 12781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12782 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12783 | : |
| 12784 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12785 | echo "$as_me: failed program was:" >&5 |
| 12786 | cat conftest.$ac_ext >&5 |
| 12787 | |
| 12788 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12789 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12790 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12791 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12792 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12793 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12794 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12795 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12796 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12797 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12798 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12799 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12800 | echo "$as_me:$LINENO: checking for major" >&5 |
| 12801 | echo $ECHO_N "checking for major... $ECHO_C" >&6 |
| 12802 | cat >conftest.$ac_ext <<_ACEOF |
| 12803 | #line $LINENO "configure" |
| 12804 | #include "confdefs.h" |
| 12805 | |
| 12806 | #if defined(MAJOR_IN_MKDEV) |
| 12807 | #include <sys/mkdev.h> |
| 12808 | #elif defined(MAJOR_IN_SYSMACROS) |
| 12809 | #include <sys/sysmacros.h> |
| 12810 | #else |
| 12811 | #include <sys/types.h> |
| 12812 | #endif |
| 12813 | |
| 12814 | #ifdef F77_DUMMY_MAIN |
| 12815 | # ifdef __cplusplus |
| 12816 | extern "C" |
| 12817 | # endif |
| 12818 | int F77_DUMMY_MAIN() { return 1; } |
| 12819 | #endif |
| 12820 | int |
| 12821 | main () |
| 12822 | { |
| 12823 | |
| 12824 | makedev(major(0),minor(0)); |
| 12825 | |
| 12826 | ; |
| 12827 | return 0; |
| 12828 | } |
| 12829 | _ACEOF |
| 12830 | rm -f conftest.$ac_objext |
| 12831 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12832 | (eval $ac_compile) 2>&5 |
| 12833 | ac_status=$? |
| 12834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12835 | (exit $ac_status); } && |
| 12836 | { ac_try='test -s conftest.$ac_objext' |
| 12837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12838 | (eval $ac_try) 2>&5 |
| 12839 | ac_status=$? |
| 12840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12841 | (exit $ac_status); }; }; then |
| 12842 | |
| 12843 | |
| 12844 | cat >>confdefs.h <<\_ACEOF |
| 12845 | #define HAVE_DEVICE_MACROS 1 |
| 12846 | _ACEOF |
| 12847 | |
| 12848 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12849 | echo "${ECHO_T}yes" >&6 |
| 12850 | |
| 12851 | else |
| 12852 | echo "$as_me: failed program was:" >&5 |
| 12853 | cat conftest.$ac_ext >&5 |
| 12854 | |
| 12855 | echo "$as_me:$LINENO: result: no" >&5 |
| 12856 | echo "${ECHO_T}no" >&6 |
| 12857 | |
| 12858 | fi |
| 12859 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12860 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12861 | # 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] | 12862 | # for [no]getaddrinfo in netdb.h. |
| 12863 | echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 12864 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 |
| 12865 | cat >conftest.$ac_ext <<_ACEOF |
| 12866 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12867 | #include "confdefs.h" |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12868 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12869 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12870 | #include <sys/socket.h> |
| 12871 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 12872 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12873 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12874 | #ifdef F77_DUMMY_MAIN |
| 12875 | # ifdef __cplusplus |
| 12876 | extern "C" |
| 12877 | # endif |
| 12878 | int F77_DUMMY_MAIN() { return 1; } |
| 12879 | #endif |
| 12880 | int |
| 12881 | main () |
| 12882 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12883 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 12884 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12885 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12886 | ; |
| 12887 | return 0; |
| 12888 | } |
| 12889 | _ACEOF |
| 12890 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12891 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12892 | (eval $ac_link) 2>&5 |
| 12893 | ac_status=$? |
| 12894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12895 | (exit $ac_status); } && |
| 12896 | { ac_try='test -s conftest$ac_exeext' |
| 12897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12898 | (eval $ac_try) 2>&5 |
| 12899 | ac_status=$? |
| 12900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12901 | (exit $ac_status); }; }; then |
| 12902 | |
| 12903 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12904 | echo "${ECHO_T}yes" >&6 |
| 12905 | echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 12906 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12907 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12908 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 12909 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12910 | buggygetaddrinfo=yes |
| 12911 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12912 | cat >conftest.$ac_ext <<_ACEOF |
| 12913 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 12914 | #include "confdefs.h" |
| 12915 | |
| 12916 | #include <sys/types.h> |
| 12917 | #include <netdb.h> |
| 12918 | #include <string.h> |
| 12919 | #include <sys/socket.h> |
| 12920 | #include <netinet/in.h> |
| 12921 | |
| 12922 | main() |
| 12923 | { |
| 12924 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 12925 | struct addrinfo hints, *ai, *aitop; |
| 12926 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 12927 | |
| 12928 | for (passive = 0; passive <= 1; passive++) { |
| 12929 | memset(&hints, 0, sizeof(hints)); |
| 12930 | hints.ai_family = AF_UNSPEC; |
| 12931 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 12932 | hints.ai_socktype = SOCK_STREAM; |
| 12933 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 12934 | (void)gai_strerror(gaierr); |
| 12935 | goto bad; |
| 12936 | } |
| 12937 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 12938 | if (ai->ai_addr == NULL || |
| 12939 | ai->ai_addrlen == 0 || |
| 12940 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 12941 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 12942 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 12943 | goto bad; |
| 12944 | } |
| 12945 | switch (ai->ai_family) { |
| 12946 | case AF_INET: |
| 12947 | if (strcmp(strport, "54321") != 0) { |
| 12948 | goto bad; |
| 12949 | } |
| 12950 | if (passive) { |
| 12951 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 12952 | goto bad; |
| 12953 | } |
| 12954 | } else { |
| 12955 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 12956 | goto bad; |
| 12957 | } |
| 12958 | } |
| 12959 | inet4++; |
| 12960 | break; |
| 12961 | case AF_INET6: |
| 12962 | if (strcmp(strport, "54321") != 0) { |
| 12963 | goto bad; |
| 12964 | } |
| 12965 | if (passive) { |
| 12966 | if (strcmp(straddr, "::") != 0) { |
| 12967 | goto bad; |
| 12968 | } |
| 12969 | } else { |
| 12970 | if (strcmp(straddr, "::1") != 0) { |
| 12971 | goto bad; |
| 12972 | } |
| 12973 | } |
| 12974 | inet6++; |
| 12975 | break; |
| 12976 | case AF_UNSPEC: |
| 12977 | goto bad; |
| 12978 | break; |
| 12979 | default: |
| 12980 | /* another family support? */ |
| 12981 | break; |
| 12982 | } |
| 12983 | } |
| 12984 | } |
| 12985 | |
| 12986 | if (!(inet4 == 0 || inet4 == 2)) |
| 12987 | goto bad; |
| 12988 | if (!(inet6 == 0 || inet6 == 2)) |
| 12989 | goto bad; |
| 12990 | |
| 12991 | if (aitop) |
| 12992 | freeaddrinfo(aitop); |
| 12993 | exit(0); |
| 12994 | |
| 12995 | bad: |
| 12996 | if (aitop) |
| 12997 | freeaddrinfo(aitop); |
| 12998 | exit(1); |
| 12999 | } |
| 13000 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13001 | _ACEOF |
| 13002 | rm -f conftest$ac_exeext |
| 13003 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13004 | (eval $ac_link) 2>&5 |
| 13005 | ac_status=$? |
| 13006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13007 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13009 | (eval $ac_try) 2>&5 |
| 13010 | ac_status=$? |
| 13011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13012 | (exit $ac_status); }; }; then |
| 13013 | echo "$as_me:$LINENO: result: good" >&5 |
| 13014 | echo "${ECHO_T}good" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13015 | buggygetaddrinfo=no |
| 13016 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13017 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13018 | echo "$as_me: failed program was:" >&5 |
| 13019 | cat conftest.$ac_ext >&5 |
| 13020 | ( exit $ac_status ) |
| 13021 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 13022 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13023 | buggygetaddrinfo=yes |
| 13024 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13025 | 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] | 13026 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13027 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13028 | echo "$as_me: failed program was:" >&5 |
| 13029 | cat conftest.$ac_ext >&5 |
| 13030 | |
| 13031 | echo "$as_me:$LINENO: result: no" >&5 |
| 13032 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13033 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13034 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13035 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13036 | 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] | 13037 | |
| 13038 | if test "$buggygetaddrinfo" = "yes"; then |
| 13039 | if test "$ipv6" = "yes"; then |
| 13040 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 13041 | echo ' or you can specify "--disable-ipv6"'. |
| 13042 | exit 1 |
| 13043 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13044 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13045 | |
| 13046 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13047 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13048 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13049 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13050 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13051 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 13052 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13053 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13054 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13055 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13056 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13057 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13059 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13060 | cat >conftest.$ac_ext <<_ACEOF |
| 13061 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13062 | #include "confdefs.h" |
| 13063 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13064 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13065 | #include <assert.h> |
| 13066 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13067 | #ifdef __cplusplus |
| 13068 | extern "C" |
| 13069 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13070 | /* 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] | 13071 | builtin and then its argument prototype would still apply. */ |
| 13072 | char $ac_func (); |
| 13073 | char (*f) (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13074 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13075 | #ifdef F77_DUMMY_MAIN |
| 13076 | # ifdef __cplusplus |
| 13077 | extern "C" |
| 13078 | # endif |
| 13079 | int F77_DUMMY_MAIN() { return 1; } |
| 13080 | #endif |
| 13081 | int |
| 13082 | main () |
| 13083 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13084 | /* The GNU C library defines this for functions which it implements |
| 13085 | to always fail with ENOSYS. Some functions are actually named |
| 13086 | something starting with __ and the normal name is an alias. */ |
| 13087 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13088 | choke me |
| 13089 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13090 | f = $ac_func; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13091 | #endif |
| 13092 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13093 | ; |
| 13094 | return 0; |
| 13095 | } |
| 13096 | _ACEOF |
| 13097 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13098 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13099 | (eval $ac_link) 2>&5 |
| 13100 | ac_status=$? |
| 13101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13102 | (exit $ac_status); } && |
| 13103 | { ac_try='test -s conftest$ac_exeext' |
| 13104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13105 | (eval $ac_try) 2>&5 |
| 13106 | ac_status=$? |
| 13107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13108 | (exit $ac_status); }; }; then |
| 13109 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13110 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13111 | echo "$as_me: failed program was:" >&5 |
| 13112 | cat conftest.$ac_ext >&5 |
| 13113 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13114 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13115 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13116 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13117 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13118 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13119 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13120 | cat >>confdefs.h <<_ACEOF |
| 13121 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13122 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13123 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13124 | fi |
| 13125 | done |
| 13126 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13127 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13128 | # checks for structures |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13129 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 13130 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 13131 | if test "${ac_cv_header_time+set}" = set; then |
| 13132 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13133 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13134 | cat >conftest.$ac_ext <<_ACEOF |
| 13135 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13136 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13137 | #include <sys/types.h> |
| 13138 | #include <sys/time.h> |
| 13139 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13140 | |
| 13141 | #ifdef F77_DUMMY_MAIN |
| 13142 | # ifdef __cplusplus |
| 13143 | extern "C" |
| 13144 | # endif |
| 13145 | int F77_DUMMY_MAIN() { return 1; } |
| 13146 | #endif |
| 13147 | int |
| 13148 | main () |
| 13149 | { |
| 13150 | if ((struct tm *) 0) |
| 13151 | return 0; |
| 13152 | ; |
| 13153 | return 0; |
| 13154 | } |
| 13155 | _ACEOF |
| 13156 | rm -f conftest.$ac_objext |
| 13157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13158 | (eval $ac_compile) 2>&5 |
| 13159 | ac_status=$? |
| 13160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13161 | (exit $ac_status); } && |
| 13162 | { ac_try='test -s conftest.$ac_objext' |
| 13163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13164 | (eval $ac_try) 2>&5 |
| 13165 | ac_status=$? |
| 13166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13167 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13168 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13169 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13170 | echo "$as_me: failed program was:" >&5 |
| 13171 | cat conftest.$ac_ext >&5 |
| 13172 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13173 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13174 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13175 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13176 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 13177 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13178 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13179 | |
| 13180 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13181 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13182 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13183 | |
| 13184 | fi |
| 13185 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13186 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 13187 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 13188 | if test "${ac_cv_struct_tm+set}" = set; then |
| 13189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13190 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13191 | cat >conftest.$ac_ext <<_ACEOF |
| 13192 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13193 | #include "confdefs.h" |
| 13194 | #include <sys/types.h> |
| 13195 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13196 | |
| 13197 | #ifdef F77_DUMMY_MAIN |
| 13198 | # ifdef __cplusplus |
| 13199 | extern "C" |
| 13200 | # endif |
| 13201 | int F77_DUMMY_MAIN() { return 1; } |
| 13202 | #endif |
| 13203 | int |
| 13204 | main () |
| 13205 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13206 | struct tm *tp; tp->tm_sec; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13207 | ; |
| 13208 | return 0; |
| 13209 | } |
| 13210 | _ACEOF |
| 13211 | rm -f conftest.$ac_objext |
| 13212 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13213 | (eval $ac_compile) 2>&5 |
| 13214 | ac_status=$? |
| 13215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13216 | (exit $ac_status); } && |
| 13217 | { ac_try='test -s conftest.$ac_objext' |
| 13218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13219 | (eval $ac_try) 2>&5 |
| 13220 | ac_status=$? |
| 13221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13222 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13223 | ac_cv_struct_tm=time.h |
| 13224 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13225 | echo "$as_me: failed program was:" >&5 |
| 13226 | cat conftest.$ac_ext >&5 |
| 13227 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13228 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13229 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13230 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13231 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 13232 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13233 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13234 | |
| 13235 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13236 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13237 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13238 | |
| 13239 | fi |
| 13240 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13241 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 13242 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 13243 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 13244 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13245 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13246 | cat >conftest.$ac_ext <<_ACEOF |
| 13247 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13248 | #include "confdefs.h" |
| 13249 | #include <sys/types.h> |
| 13250 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13251 | |
| 13252 | |
| 13253 | #ifdef F77_DUMMY_MAIN |
| 13254 | # ifdef __cplusplus |
| 13255 | extern "C" |
| 13256 | # endif |
| 13257 | int F77_DUMMY_MAIN() { return 1; } |
| 13258 | #endif |
| 13259 | int |
| 13260 | main () |
| 13261 | { |
| 13262 | static struct tm ac_aggr; |
| 13263 | if (ac_aggr.tm_zone) |
| 13264 | return 0; |
| 13265 | ; |
| 13266 | return 0; |
| 13267 | } |
| 13268 | _ACEOF |
| 13269 | rm -f conftest.$ac_objext |
| 13270 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13271 | (eval $ac_compile) 2>&5 |
| 13272 | ac_status=$? |
| 13273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13274 | (exit $ac_status); } && |
| 13275 | { ac_try='test -s conftest.$ac_objext' |
| 13276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13277 | (eval $ac_try) 2>&5 |
| 13278 | ac_status=$? |
| 13279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13280 | (exit $ac_status); }; }; then |
| 13281 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13282 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13283 | echo "$as_me: failed program was:" >&5 |
| 13284 | cat conftest.$ac_ext >&5 |
| 13285 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13286 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13287 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13288 | fi |
| 13289 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 13290 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 13291 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 13292 | |
| 13293 | cat >>confdefs.h <<_ACEOF |
| 13294 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 13295 | _ACEOF |
| 13296 | |
| 13297 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13298 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13299 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13300 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 13301 | |
| 13302 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13303 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13304 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13305 | |
| 13306 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13307 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 13308 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 13309 | if test "${ac_cv_var_tzname+set}" = set; then |
| 13310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13311 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13312 | cat >conftest.$ac_ext <<_ACEOF |
| 13313 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13314 | #include "confdefs.h" |
| 13315 | #include <time.h> |
| 13316 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13317 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13318 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13319 | |
| 13320 | #ifdef F77_DUMMY_MAIN |
| 13321 | # ifdef __cplusplus |
| 13322 | extern "C" |
| 13323 | # endif |
| 13324 | int F77_DUMMY_MAIN() { return 1; } |
| 13325 | #endif |
| 13326 | int |
| 13327 | main () |
| 13328 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13329 | atoi(*tzname); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13330 | ; |
| 13331 | return 0; |
| 13332 | } |
| 13333 | _ACEOF |
| 13334 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13335 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13336 | (eval $ac_link) 2>&5 |
| 13337 | ac_status=$? |
| 13338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13339 | (exit $ac_status); } && |
| 13340 | { ac_try='test -s conftest$ac_exeext' |
| 13341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13342 | (eval $ac_try) 2>&5 |
| 13343 | ac_status=$? |
| 13344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13345 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13346 | ac_cv_var_tzname=yes |
| 13347 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13348 | echo "$as_me: failed program was:" >&5 |
| 13349 | cat conftest.$ac_ext >&5 |
| 13350 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13351 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13352 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13353 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13354 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 13355 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13356 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13357 | |
| 13358 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13359 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13360 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13361 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13362 | fi |
| 13363 | fi |
| 13364 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13365 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 13366 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 |
| 13367 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 13368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13369 | else |
| 13370 | cat >conftest.$ac_ext <<_ACEOF |
| 13371 | #line $LINENO "configure" |
| 13372 | #include "confdefs.h" |
| 13373 | $ac_includes_default |
| 13374 | #ifdef F77_DUMMY_MAIN |
| 13375 | # ifdef __cplusplus |
| 13376 | extern "C" |
| 13377 | # endif |
| 13378 | int F77_DUMMY_MAIN() { return 1; } |
| 13379 | #endif |
| 13380 | int |
| 13381 | main () |
| 13382 | { |
| 13383 | static struct stat ac_aggr; |
| 13384 | if (ac_aggr.st_rdev) |
| 13385 | return 0; |
| 13386 | ; |
| 13387 | return 0; |
| 13388 | } |
| 13389 | _ACEOF |
| 13390 | rm -f conftest.$ac_objext |
| 13391 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13392 | (eval $ac_compile) 2>&5 |
| 13393 | ac_status=$? |
| 13394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13395 | (exit $ac_status); } && |
| 13396 | { ac_try='test -s conftest.$ac_objext' |
| 13397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13398 | (eval $ac_try) 2>&5 |
| 13399 | ac_status=$? |
| 13400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13401 | (exit $ac_status); }; }; then |
| 13402 | ac_cv_member_struct_stat_st_rdev=yes |
| 13403 | else |
| 13404 | echo "$as_me: failed program was:" >&5 |
| 13405 | cat conftest.$ac_ext >&5 |
| 13406 | ac_cv_member_struct_stat_st_rdev=no |
| 13407 | fi |
| 13408 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13409 | fi |
| 13410 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 13411 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 |
| 13412 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 13413 | |
| 13414 | cat >>confdefs.h <<_ACEOF |
| 13415 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 13416 | _ACEOF |
| 13417 | |
| 13418 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13419 | fi |
| 13420 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13421 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 13422 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| 13423 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 13424 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13425 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13426 | cat >conftest.$ac_ext <<_ACEOF |
| 13427 | #line $LINENO "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13428 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13429 | $ac_includes_default |
| 13430 | #ifdef F77_DUMMY_MAIN |
| 13431 | # ifdef __cplusplus |
| 13432 | extern "C" |
| 13433 | # endif |
| 13434 | int F77_DUMMY_MAIN() { return 1; } |
| 13435 | #endif |
| 13436 | int |
| 13437 | main () |
| 13438 | { |
| 13439 | static struct stat ac_aggr; |
| 13440 | if (ac_aggr.st_blksize) |
| 13441 | return 0; |
| 13442 | ; |
| 13443 | return 0; |
| 13444 | } |
| 13445 | _ACEOF |
| 13446 | rm -f conftest.$ac_objext |
| 13447 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13448 | (eval $ac_compile) 2>&5 |
| 13449 | ac_status=$? |
| 13450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13451 | (exit $ac_status); } && |
| 13452 | { ac_try='test -s conftest.$ac_objext' |
| 13453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13454 | (eval $ac_try) 2>&5 |
| 13455 | ac_status=$? |
| 13456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13457 | (exit $ac_status); }; }; then |
| 13458 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13459 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13460 | echo "$as_me: failed program was:" >&5 |
| 13461 | cat conftest.$ac_ext >&5 |
| 13462 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13463 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13464 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13465 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13466 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 13467 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| 13468 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13469 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13470 | cat >>confdefs.h <<_ACEOF |
| 13471 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 13472 | _ACEOF |
| 13473 | |
| 13474 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13475 | fi |
| 13476 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13477 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 13478 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 13479 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 13480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13481 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13482 | cat >conftest.$ac_ext <<_ACEOF |
| 13483 | #line $LINENO "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13484 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13485 | $ac_includes_default |
| 13486 | #ifdef F77_DUMMY_MAIN |
| 13487 | # ifdef __cplusplus |
| 13488 | extern "C" |
| 13489 | # endif |
| 13490 | int F77_DUMMY_MAIN() { return 1; } |
| 13491 | #endif |
| 13492 | int |
| 13493 | main () |
| 13494 | { |
| 13495 | static struct stat ac_aggr; |
| 13496 | if (ac_aggr.st_blocks) |
| 13497 | return 0; |
| 13498 | ; |
| 13499 | return 0; |
| 13500 | } |
| 13501 | _ACEOF |
| 13502 | rm -f conftest.$ac_objext |
| 13503 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13504 | (eval $ac_compile) 2>&5 |
| 13505 | ac_status=$? |
| 13506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13507 | (exit $ac_status); } && |
| 13508 | { ac_try='test -s conftest.$ac_objext' |
| 13509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13510 | (eval $ac_try) 2>&5 |
| 13511 | ac_status=$? |
| 13512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13513 | (exit $ac_status); }; }; then |
| 13514 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13515 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13516 | echo "$as_me: failed program was:" >&5 |
| 13517 | cat conftest.$ac_ext >&5 |
| 13518 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13519 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13520 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13521 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13522 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 13523 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 13524 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13525 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13526 | cat >>confdefs.h <<_ACEOF |
| 13527 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 13528 | _ACEOF |
| 13529 | |
| 13530 | |
| 13531 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13532 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13533 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13534 | |
| 13535 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13536 | LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13537 | fi |
| 13538 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13539 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13540 | |
| 13541 | echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 13542 | echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6 |
| 13543 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 13544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13545 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13546 | cat >conftest.$ac_ext <<_ACEOF |
| 13547 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13548 | #include "confdefs.h" |
| 13549 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13550 | #ifdef F77_DUMMY_MAIN |
| 13551 | # ifdef __cplusplus |
| 13552 | extern "C" |
| 13553 | # endif |
| 13554 | int F77_DUMMY_MAIN() { return 1; } |
| 13555 | #endif |
| 13556 | int |
| 13557 | main () |
| 13558 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13559 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13560 | ; |
| 13561 | return 0; |
| 13562 | } |
| 13563 | _ACEOF |
| 13564 | rm -f conftest.$ac_objext |
| 13565 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13566 | (eval $ac_compile) 2>&5 |
| 13567 | ac_status=$? |
| 13568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13569 | (exit $ac_status); } && |
| 13570 | { ac_try='test -s conftest.$ac_objext' |
| 13571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13572 | (eval $ac_try) 2>&5 |
| 13573 | ac_status=$? |
| 13574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13575 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13576 | ac_cv_header_time_altzone=yes |
| 13577 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13578 | echo "$as_me: failed program was:" >&5 |
| 13579 | cat conftest.$ac_ext >&5 |
| 13580 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13581 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13582 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13583 | fi |
| 13584 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13585 | echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 13586 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13587 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13588 | |
| 13589 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13590 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13591 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13592 | |
| 13593 | fi |
| 13594 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13595 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13596 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 13597 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 13598 | cat >conftest.$ac_ext <<_ACEOF |
| 13599 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13600 | #include "confdefs.h" |
| 13601 | |
| 13602 | #include <sys/types.h> |
| 13603 | #include <sys/select.h> |
| 13604 | #include <sys/time.h> |
| 13605 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13606 | #ifdef F77_DUMMY_MAIN |
| 13607 | # ifdef __cplusplus |
| 13608 | extern "C" |
| 13609 | # endif |
| 13610 | int F77_DUMMY_MAIN() { return 1; } |
| 13611 | #endif |
| 13612 | int |
| 13613 | main () |
| 13614 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13615 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13616 | ; |
| 13617 | return 0; |
| 13618 | } |
| 13619 | _ACEOF |
| 13620 | rm -f conftest.$ac_objext |
| 13621 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13622 | (eval $ac_compile) 2>&5 |
| 13623 | ac_status=$? |
| 13624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13625 | (exit $ac_status); } && |
| 13626 | { ac_try='test -s conftest.$ac_objext' |
| 13627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13628 | (eval $ac_try) 2>&5 |
| 13629 | ac_status=$? |
| 13630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13631 | (exit $ac_status); }; }; then |
| 13632 | |
| 13633 | |
| 13634 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13635 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13636 | _ACEOF |
| 13637 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13638 | was_it_defined=yes |
| 13639 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13640 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13641 | echo "$as_me: failed program was:" >&5 |
| 13642 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13643 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13644 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13645 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 13646 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13647 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13648 | echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 13649 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6 |
| 13650 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 13651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13652 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13653 | cat >conftest.$ac_ext <<_ACEOF |
| 13654 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13655 | #include "confdefs.h" |
| 13656 | |
| 13657 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13658 | #ifdef F77_DUMMY_MAIN |
| 13659 | # ifdef __cplusplus |
| 13660 | extern "C" |
| 13661 | # endif |
| 13662 | int F77_DUMMY_MAIN() { return 1; } |
| 13663 | #endif |
| 13664 | int |
| 13665 | main () |
| 13666 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13667 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13668 | ; |
| 13669 | return 0; |
| 13670 | } |
| 13671 | _ACEOF |
| 13672 | rm -f conftest.$ac_objext |
| 13673 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13674 | (eval $ac_compile) 2>&5 |
| 13675 | ac_status=$? |
| 13676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13677 | (exit $ac_status); } && |
| 13678 | { ac_try='test -s conftest.$ac_objext' |
| 13679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13680 | (eval $ac_try) 2>&5 |
| 13681 | ac_status=$? |
| 13682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13683 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13684 | ac_cv_struct_addrinfo=yes |
| 13685 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13686 | echo "$as_me: failed program was:" >&5 |
| 13687 | cat conftest.$ac_ext >&5 |
| 13688 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13689 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13690 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13691 | fi |
| 13692 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13693 | echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 13694 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13695 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13696 | |
| 13697 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13698 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13699 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13700 | |
| 13701 | fi |
| 13702 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13703 | echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 13704 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 |
| 13705 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 13706 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13707 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13708 | cat >conftest.$ac_ext <<_ACEOF |
| 13709 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13710 | #include "confdefs.h" |
| 13711 | |
| 13712 | # include <sys/types.h> |
| 13713 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13714 | #ifdef F77_DUMMY_MAIN |
| 13715 | # ifdef __cplusplus |
| 13716 | extern "C" |
| 13717 | # endif |
| 13718 | int F77_DUMMY_MAIN() { return 1; } |
| 13719 | #endif |
| 13720 | int |
| 13721 | main () |
| 13722 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13723 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13724 | ; |
| 13725 | return 0; |
| 13726 | } |
| 13727 | _ACEOF |
| 13728 | rm -f conftest.$ac_objext |
| 13729 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13730 | (eval $ac_compile) 2>&5 |
| 13731 | ac_status=$? |
| 13732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13733 | (exit $ac_status); } && |
| 13734 | { ac_try='test -s conftest.$ac_objext' |
| 13735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13736 | (eval $ac_try) 2>&5 |
| 13737 | ac_status=$? |
| 13738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13739 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13740 | ac_cv_struct_sockaddr_storage=yes |
| 13741 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13742 | echo "$as_me: failed program was:" >&5 |
| 13743 | cat conftest.$ac_ext >&5 |
| 13744 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13745 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13746 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13747 | fi |
| 13748 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13749 | echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 13750 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13751 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13752 | |
| 13753 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13754 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13755 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13756 | |
| 13757 | fi |
| 13758 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13759 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13760 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13761 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13762 | echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 13763 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
| 13764 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 13765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13766 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13767 | cat >conftest.$ac_ext <<_ACEOF |
| 13768 | #line $LINENO "configure" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13769 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13770 | $ac_includes_default |
| 13771 | #ifdef F77_DUMMY_MAIN |
| 13772 | # ifdef __cplusplus |
| 13773 | extern "C" |
| 13774 | # endif |
| 13775 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13776 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13777 | int |
| 13778 | main () |
| 13779 | { |
| 13780 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 13781 | test_array [0] = 0 |
| 13782 | |
| 13783 | ; |
| 13784 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13785 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13786 | _ACEOF |
| 13787 | rm -f conftest.$ac_objext |
| 13788 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13789 | (eval $ac_compile) 2>&5 |
| 13790 | ac_status=$? |
| 13791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13792 | (exit $ac_status); } && |
| 13793 | { ac_try='test -s conftest.$ac_objext' |
| 13794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13795 | (eval $ac_try) 2>&5 |
| 13796 | ac_status=$? |
| 13797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13798 | (exit $ac_status); }; }; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13799 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13800 | else |
| 13801 | echo "$as_me: failed program was:" >&5 |
| 13802 | cat conftest.$ac_ext >&5 |
| 13803 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13804 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13805 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13806 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13807 | echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 13808 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13809 | 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] | 13810 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13811 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13812 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13813 | |
| 13814 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13815 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13816 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 13817 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 13818 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 13819 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13820 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13821 | ac_cv_prog_cc_stdc=no |
| 13822 | ac_save_CC=$CC |
| 13823 | cat >conftest.$ac_ext <<_ACEOF |
| 13824 | #line $LINENO "configure" |
| 13825 | #include "confdefs.h" |
| 13826 | #include <stdarg.h> |
| 13827 | #include <stdio.h> |
| 13828 | #include <sys/types.h> |
| 13829 | #include <sys/stat.h> |
| 13830 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 13831 | struct buf { int x; }; |
| 13832 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 13833 | static char *e (p, i) |
| 13834 | char **p; |
| 13835 | int i; |
| 13836 | { |
| 13837 | return p[i]; |
| 13838 | } |
| 13839 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 13840 | { |
| 13841 | char *s; |
| 13842 | va_list v; |
| 13843 | va_start (v,p); |
| 13844 | s = g (p, va_arg (v,int)); |
| 13845 | va_end (v); |
| 13846 | return s; |
| 13847 | } |
| 13848 | int test (int i, double x); |
| 13849 | struct s1 {int (*f) (int a);}; |
| 13850 | struct s2 {int (*f) (double a);}; |
| 13851 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 13852 | int argc; |
| 13853 | char **argv; |
| 13854 | #ifdef F77_DUMMY_MAIN |
| 13855 | # ifdef __cplusplus |
| 13856 | extern "C" |
| 13857 | # endif |
| 13858 | int F77_DUMMY_MAIN() { return 1; } |
| 13859 | #endif |
| 13860 | int |
| 13861 | main () |
| 13862 | { |
| 13863 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 13864 | ; |
| 13865 | return 0; |
| 13866 | } |
| 13867 | _ACEOF |
| 13868 | # Don't try gcc -ansi; that turns off useful extensions and |
| 13869 | # breaks some systems' header files. |
| 13870 | # AIX -qlanglvl=ansi |
| 13871 | # Ultrix and OSF/1 -std1 |
| 13872 | # HP-UX 10.20 and later -Ae |
| 13873 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 13874 | # SVR4 -Xc -D__EXTENSIONS__ |
| 13875 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 13876 | do |
| 13877 | CC="$ac_save_CC $ac_arg" |
| 13878 | rm -f conftest.$ac_objext |
| 13879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13880 | (eval $ac_compile) 2>&5 |
| 13881 | ac_status=$? |
| 13882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13883 | (exit $ac_status); } && |
| 13884 | { ac_try='test -s conftest.$ac_objext' |
| 13885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13886 | (eval $ac_try) 2>&5 |
| 13887 | ac_status=$? |
| 13888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13889 | (exit $ac_status); }; }; then |
| 13890 | ac_cv_prog_cc_stdc=$ac_arg |
| 13891 | break |
| 13892 | else |
| 13893 | echo "$as_me: failed program was:" >&5 |
| 13894 | cat conftest.$ac_ext >&5 |
| 13895 | fi |
| 13896 | rm -f conftest.$ac_objext |
| 13897 | done |
| 13898 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 13899 | CC=$ac_save_CC |
| 13900 | |
| 13901 | fi |
| 13902 | |
| 13903 | case "x$ac_cv_prog_cc_stdc" in |
| 13904 | x|xno) |
| 13905 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 13906 | echo "${ECHO_T}none needed" >&6 ;; |
| 13907 | *) |
| 13908 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 13909 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 13910 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 13911 | esac |
| 13912 | |
| 13913 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 13914 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 13915 | if test "${ac_cv_c_const+set}" = set; then |
| 13916 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13917 | else |
| 13918 | cat >conftest.$ac_ext <<_ACEOF |
| 13919 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13920 | #include "confdefs.h" |
| 13921 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13922 | #ifdef F77_DUMMY_MAIN |
| 13923 | # ifdef __cplusplus |
| 13924 | extern "C" |
| 13925 | # endif |
| 13926 | int F77_DUMMY_MAIN() { return 1; } |
| 13927 | #endif |
| 13928 | int |
| 13929 | main () |
| 13930 | { |
| 13931 | /* FIXME: Include the comments suggested by Paul. */ |
| 13932 | #ifndef __cplusplus |
| 13933 | /* Ultrix mips cc rejects this. */ |
| 13934 | typedef int charset[2]; |
| 13935 | const charset x; |
| 13936 | /* SunOS 4.1.1 cc rejects this. */ |
| 13937 | char const *const *ccp; |
| 13938 | char **p; |
| 13939 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 13940 | struct point {int x, y;}; |
| 13941 | static struct point const zero = {0,0}; |
| 13942 | /* AIX XL C 1.02.0.0 rejects this. |
| 13943 | It does not let you subtract one const X* pointer from another in |
| 13944 | an arm of an if-expression whose if-part is not a constant |
| 13945 | expression */ |
| 13946 | const char *g = "string"; |
| 13947 | ccp = &g + (g ? g-g : 0); |
| 13948 | /* HPUX 7.0 cc rejects these. */ |
| 13949 | ++ccp; |
| 13950 | p = (char**) ccp; |
| 13951 | ccp = (char const *const *) p; |
| 13952 | { /* SCO 3.2v4 cc rejects this. */ |
| 13953 | char *t; |
| 13954 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13955 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13956 | *t++ = 0; |
| 13957 | } |
| 13958 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 13959 | int x[] = {25, 17}; |
| 13960 | const int *foo = &x[0]; |
| 13961 | ++foo; |
| 13962 | } |
| 13963 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 13964 | typedef const int *iptr; |
| 13965 | iptr p = 0; |
| 13966 | ++p; |
| 13967 | } |
| 13968 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 13969 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 13970 | struct s { int j; const int *ap[3]; }; |
| 13971 | struct s *b; b->j = 5; |
| 13972 | } |
| 13973 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 13974 | const int foo = 10; |
| 13975 | } |
| 13976 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13977 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13978 | ; |
| 13979 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13980 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13981 | _ACEOF |
| 13982 | rm -f conftest.$ac_objext |
| 13983 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13984 | (eval $ac_compile) 2>&5 |
| 13985 | ac_status=$? |
| 13986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13987 | (exit $ac_status); } && |
| 13988 | { ac_try='test -s conftest.$ac_objext' |
| 13989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13990 | (eval $ac_try) 2>&5 |
| 13991 | ac_status=$? |
| 13992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13993 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13994 | ac_cv_c_const=yes |
| 13995 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13996 | echo "$as_me: failed program was:" >&5 |
| 13997 | cat conftest.$ac_ext >&5 |
| 13998 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13999 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14000 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14001 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14002 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 14003 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14004 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14005 | |
| 14006 | cat >>confdefs.h <<\_ACEOF |
| 14007 | #define const |
| 14008 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14009 | |
| 14010 | fi |
| 14011 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14012 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14013 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14014 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 14015 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| 14016 | cat >conftest.$ac_ext <<_ACEOF |
| 14017 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14018 | #include "confdefs.h" |
| 14019 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14020 | #ifdef F77_DUMMY_MAIN |
| 14021 | # ifdef __cplusplus |
| 14022 | extern "C" |
| 14023 | # endif |
| 14024 | int F77_DUMMY_MAIN() { return 1; } |
| 14025 | #endif |
| 14026 | int |
| 14027 | main () |
| 14028 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14029 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14030 | ; |
| 14031 | return 0; |
| 14032 | } |
| 14033 | _ACEOF |
| 14034 | rm -f conftest.$ac_objext |
| 14035 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14036 | (eval $ac_compile) 2>&5 |
| 14037 | ac_status=$? |
| 14038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14039 | (exit $ac_status); } && |
| 14040 | { ac_try='test -s conftest.$ac_objext' |
| 14041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14042 | (eval $ac_try) 2>&5 |
| 14043 | ac_status=$? |
| 14044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14045 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14046 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14047 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14048 | echo "$as_me: failed program was:" >&5 |
| 14049 | cat conftest.$ac_ext >&5 |
| 14050 | |
| 14051 | cat >>confdefs.h <<\_ACEOF |
| 14052 | #define volatile |
| 14053 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14054 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14055 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14056 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14057 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14058 | echo "$as_me:$LINENO: result: $works" >&5 |
| 14059 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14060 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14061 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14062 | echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 14063 | echo $ECHO_N "checking for working signed char... $ECHO_C" >&6 |
| 14064 | cat >conftest.$ac_ext <<_ACEOF |
| 14065 | #line $LINENO "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 14066 | #include "confdefs.h" |
| 14067 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14068 | #ifdef F77_DUMMY_MAIN |
| 14069 | # ifdef __cplusplus |
| 14070 | extern "C" |
| 14071 | # endif |
| 14072 | int F77_DUMMY_MAIN() { return 1; } |
| 14073 | #endif |
| 14074 | int |
| 14075 | main () |
| 14076 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14077 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14078 | ; |
| 14079 | return 0; |
| 14080 | } |
| 14081 | _ACEOF |
| 14082 | rm -f conftest.$ac_objext |
| 14083 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14084 | (eval $ac_compile) 2>&5 |
| 14085 | ac_status=$? |
| 14086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14087 | (exit $ac_status); } && |
| 14088 | { ac_try='test -s conftest.$ac_objext' |
| 14089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14090 | (eval $ac_try) 2>&5 |
| 14091 | ac_status=$? |
| 14092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14093 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14094 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 14095 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14096 | echo "$as_me: failed program was:" >&5 |
| 14097 | cat conftest.$ac_ext >&5 |
| 14098 | |
| 14099 | cat >>confdefs.h <<\_ACEOF |
| 14100 | #define signed |
| 14101 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14102 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14103 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14104 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14105 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14106 | echo "$as_me:$LINENO: result: $works" >&5 |
| 14107 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14108 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14109 | have_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14110 | echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 14111 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6 |
| 14112 | cat >conftest.$ac_ext <<_ACEOF |
| 14113 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14114 | #include "confdefs.h" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14115 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14116 | #ifdef F77_DUMMY_MAIN |
| 14117 | # ifdef __cplusplus |
| 14118 | extern "C" |
| 14119 | # endif |
| 14120 | int F77_DUMMY_MAIN() { return 1; } |
| 14121 | #endif |
| 14122 | int |
| 14123 | main () |
| 14124 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14125 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14126 | ; |
| 14127 | return 0; |
| 14128 | } |
| 14129 | _ACEOF |
| 14130 | rm -f conftest.$ac_objext |
| 14131 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14132 | (eval $ac_compile) 2>&5 |
| 14133 | ac_status=$? |
| 14134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14135 | (exit $ac_status); } && |
| 14136 | { ac_try='test -s conftest.$ac_objext' |
| 14137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14138 | (eval $ac_try) 2>&5 |
| 14139 | ac_status=$? |
| 14140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14141 | (exit $ac_status); }; }; then |
| 14142 | |
| 14143 | |
| 14144 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14145 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14146 | _ACEOF |
| 14147 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14148 | have_prototypes=yes |
| 14149 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14150 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14151 | echo "$as_me: failed program was:" >&5 |
| 14152 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14153 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14154 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14155 | echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 14156 | echo "${ECHO_T}$have_prototypes" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14157 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14158 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14159 | echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 14160 | echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6 |
| 14161 | cat >conftest.$ac_ext <<_ACEOF |
| 14162 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14163 | #include "confdefs.h" |
| 14164 | |
| 14165 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 14166 | int foo(int x, ...) { |
| 14167 | va_list va; |
| 14168 | va_start(va, x); |
| 14169 | va_arg(va, int); |
| 14170 | va_arg(va, char *); |
| 14171 | va_arg(va, double); |
| 14172 | return 0; |
| 14173 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14174 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14175 | #ifdef F77_DUMMY_MAIN |
| 14176 | # ifdef __cplusplus |
| 14177 | extern "C" |
| 14178 | # endif |
| 14179 | int F77_DUMMY_MAIN() { return 1; } |
| 14180 | #endif |
| 14181 | int |
| 14182 | main () |
| 14183 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 14184 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14185 | ; |
| 14186 | return 0; |
| 14187 | } |
| 14188 | _ACEOF |
| 14189 | rm -f conftest.$ac_objext |
| 14190 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14191 | (eval $ac_compile) 2>&5 |
| 14192 | ac_status=$? |
| 14193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14194 | (exit $ac_status); } && |
| 14195 | { ac_try='test -s conftest.$ac_objext' |
| 14196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14197 | (eval $ac_try) 2>&5 |
| 14198 | ac_status=$? |
| 14199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14200 | (exit $ac_status); }; }; then |
| 14201 | |
| 14202 | |
| 14203 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14204 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14205 | _ACEOF |
| 14206 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14207 | works=yes |
| 14208 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14209 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14210 | echo "$as_me: failed program was:" >&5 |
| 14211 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14212 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14213 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14214 | echo "$as_me:$LINENO: result: $works" >&5 |
| 14215 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14216 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14217 | if test "$have_prototypes" = yes; then |
| 14218 | bad_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14219 | echo "$as_me:$LINENO: checking for bad exec* prototypes" >&5 |
| 14220 | echo $ECHO_N "checking for bad exec* prototypes... $ECHO_C" >&6 |
| 14221 | cat >conftest.$ac_ext <<_ACEOF |
| 14222 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14223 | #include "confdefs.h" |
| 14224 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14225 | #ifdef F77_DUMMY_MAIN |
| 14226 | # ifdef __cplusplus |
| 14227 | extern "C" |
| 14228 | # endif |
| 14229 | int F77_DUMMY_MAIN() { return 1; } |
| 14230 | #endif |
| 14231 | int |
| 14232 | main () |
| 14233 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14234 | char **t;execve("@",t,t); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14235 | ; |
| 14236 | return 0; |
| 14237 | } |
| 14238 | _ACEOF |
| 14239 | rm -f conftest.$ac_objext |
| 14240 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14241 | (eval $ac_compile) 2>&5 |
| 14242 | ac_status=$? |
| 14243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14244 | (exit $ac_status); } && |
| 14245 | { ac_try='test -s conftest.$ac_objext' |
| 14246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14247 | (eval $ac_try) 2>&5 |
| 14248 | ac_status=$? |
| 14249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14250 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14251 | : |
| 14252 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14253 | echo "$as_me: failed program was:" >&5 |
| 14254 | cat conftest.$ac_ext >&5 |
| 14255 | |
| 14256 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14257 | #define BAD_EXEC_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14258 | _ACEOF |
| 14259 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14260 | bad_prototypes=yes |
| 14261 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14262 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14263 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14264 | echo "$as_me:$LINENO: result: $bad_prototypes" >&5 |
| 14265 | echo "${ECHO_T}$bad_prototypes" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14266 | fi |
| 14267 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14268 | # check if sockaddr has sa_len member |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14269 | echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 14270 | echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6 |
| 14271 | cat >conftest.$ac_ext <<_ACEOF |
| 14272 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14273 | #include "confdefs.h" |
| 14274 | #include <sys/types.h> |
| 14275 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14276 | #ifdef F77_DUMMY_MAIN |
| 14277 | # ifdef __cplusplus |
| 14278 | extern "C" |
| 14279 | # endif |
| 14280 | int F77_DUMMY_MAIN() { return 1; } |
| 14281 | #endif |
| 14282 | int |
| 14283 | main () |
| 14284 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14285 | struct sockaddr x; |
| 14286 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14287 | ; |
| 14288 | return 0; |
| 14289 | } |
| 14290 | _ACEOF |
| 14291 | rm -f conftest.$ac_objext |
| 14292 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14293 | (eval $ac_compile) 2>&5 |
| 14294 | ac_status=$? |
| 14295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14296 | (exit $ac_status); } && |
| 14297 | { ac_try='test -s conftest.$ac_objext' |
| 14298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14299 | (eval $ac_try) 2>&5 |
| 14300 | ac_status=$? |
| 14301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14302 | (exit $ac_status); }; }; then |
| 14303 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14304 | echo "${ECHO_T}yes" >&6 |
| 14305 | |
| 14306 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14307 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14308 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14309 | |
| 14310 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14311 | echo "$as_me: failed program was:" >&5 |
| 14312 | cat conftest.$ac_ext >&5 |
| 14313 | echo "$as_me:$LINENO: result: no" >&5 |
| 14314 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14315 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14316 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14317 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14318 | va_list_is_array=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14319 | echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 14320 | echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6 |
| 14321 | cat >conftest.$ac_ext <<_ACEOF |
| 14322 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14323 | #include "confdefs.h" |
| 14324 | |
| 14325 | #ifdef HAVE_STDARG_PROTOTYPES |
| 14326 | #include <stdarg.h> |
| 14327 | #else |
| 14328 | #include <varargs.h> |
| 14329 | #endif |
| 14330 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14331 | #ifdef F77_DUMMY_MAIN |
| 14332 | # ifdef __cplusplus |
| 14333 | extern "C" |
| 14334 | # endif |
| 14335 | int F77_DUMMY_MAIN() { return 1; } |
| 14336 | #endif |
| 14337 | int |
| 14338 | main () |
| 14339 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14340 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14341 | ; |
| 14342 | return 0; |
| 14343 | } |
| 14344 | _ACEOF |
| 14345 | rm -f conftest.$ac_objext |
| 14346 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14347 | (eval $ac_compile) 2>&5 |
| 14348 | ac_status=$? |
| 14349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14350 | (exit $ac_status); } && |
| 14351 | { ac_try='test -s conftest.$ac_objext' |
| 14352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14353 | (eval $ac_try) 2>&5 |
| 14354 | ac_status=$? |
| 14355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14356 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14357 | : |
| 14358 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14359 | echo "$as_me: failed program was:" >&5 |
| 14360 | cat conftest.$ac_ext >&5 |
| 14361 | |
| 14362 | |
| 14363 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14364 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14365 | _ACEOF |
| 14366 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14367 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14368 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14369 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14370 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14371 | echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 14372 | echo "${ECHO_T}$va_list_is_array" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14373 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14374 | # 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] | 14375 | |
| 14376 | |
| 14377 | |
| 14378 | echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 14379 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6 |
| 14380 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 14381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14382 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14383 | cat >conftest.$ac_ext <<_ACEOF |
| 14384 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14385 | #include "confdefs.h" |
| 14386 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14387 | which can conflict with char gethostbyname_r (); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14388 | #include <assert.h> |
| 14389 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14390 | #ifdef __cplusplus |
| 14391 | extern "C" |
| 14392 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14393 | /* 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] | 14394 | builtin and then its argument prototype would still apply. */ |
| 14395 | char gethostbyname_r (); |
| 14396 | char (*f) (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14397 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14398 | #ifdef F77_DUMMY_MAIN |
| 14399 | # ifdef __cplusplus |
| 14400 | extern "C" |
| 14401 | # endif |
| 14402 | int F77_DUMMY_MAIN() { return 1; } |
| 14403 | #endif |
| 14404 | int |
| 14405 | main () |
| 14406 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14407 | /* The GNU C library defines this for functions which it implements |
| 14408 | to always fail with ENOSYS. Some functions are actually named |
| 14409 | something starting with __ and the normal name is an alias. */ |
| 14410 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 14411 | choke me |
| 14412 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14413 | f = gethostbyname_r; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14414 | #endif |
| 14415 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14416 | ; |
| 14417 | return 0; |
| 14418 | } |
| 14419 | _ACEOF |
| 14420 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14421 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14422 | (eval $ac_link) 2>&5 |
| 14423 | ac_status=$? |
| 14424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14425 | (exit $ac_status); } && |
| 14426 | { ac_try='test -s conftest$ac_exeext' |
| 14427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14428 | (eval $ac_try) 2>&5 |
| 14429 | ac_status=$? |
| 14430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14431 | (exit $ac_status); }; }; then |
| 14432 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14433 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14434 | echo "$as_me: failed program was:" >&5 |
| 14435 | cat conftest.$ac_ext >&5 |
| 14436 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14437 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14438 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14439 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14440 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 14441 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6 |
| 14442 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14443 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14444 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14445 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14446 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14447 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14448 | echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 14449 | 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] | 14450 | OLD_CFLAGS=$CFLAGS |
| 14451 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14452 | cat >conftest.$ac_ext <<_ACEOF |
| 14453 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14454 | #include "confdefs.h" |
| 14455 | |
| 14456 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14457 | |
| 14458 | #ifdef F77_DUMMY_MAIN |
| 14459 | # ifdef __cplusplus |
| 14460 | extern "C" |
| 14461 | # endif |
| 14462 | int F77_DUMMY_MAIN() { return 1; } |
| 14463 | #endif |
| 14464 | int |
| 14465 | main () |
| 14466 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14467 | |
| 14468 | char *name; |
| 14469 | struct hostent *he, *res; |
| 14470 | char buffer[2048]; |
| 14471 | int buflen = 2048; |
| 14472 | int h_errnop; |
| 14473 | |
| 14474 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14475 | |
| 14476 | ; |
| 14477 | return 0; |
| 14478 | } |
| 14479 | _ACEOF |
| 14480 | rm -f conftest.$ac_objext |
| 14481 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14482 | (eval $ac_compile) 2>&5 |
| 14483 | ac_status=$? |
| 14484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14485 | (exit $ac_status); } && |
| 14486 | { ac_try='test -s conftest.$ac_objext' |
| 14487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14488 | (eval $ac_try) 2>&5 |
| 14489 | ac_status=$? |
| 14490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14491 | (exit $ac_status); }; }; then |
| 14492 | |
| 14493 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14494 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14495 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14496 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14497 | |
| 14498 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14499 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14500 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14501 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14502 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14503 | echo "${ECHO_T}yes" >&6 |
| 14504 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14505 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14506 | echo "$as_me: failed program was:" >&5 |
| 14507 | cat conftest.$ac_ext >&5 |
| 14508 | |
| 14509 | echo "$as_me:$LINENO: result: no" >&5 |
| 14510 | echo "${ECHO_T}no" >&6 |
| 14511 | echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 14512 | echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6 |
| 14513 | cat >conftest.$ac_ext <<_ACEOF |
| 14514 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14515 | #include "confdefs.h" |
| 14516 | |
| 14517 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14518 | |
| 14519 | #ifdef F77_DUMMY_MAIN |
| 14520 | # ifdef __cplusplus |
| 14521 | extern "C" |
| 14522 | # endif |
| 14523 | int F77_DUMMY_MAIN() { return 1; } |
| 14524 | #endif |
| 14525 | int |
| 14526 | main () |
| 14527 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14528 | |
| 14529 | char *name; |
| 14530 | struct hostent *he; |
| 14531 | char buffer[2048]; |
| 14532 | int buflen = 2048; |
| 14533 | int h_errnop; |
| 14534 | |
| 14535 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14536 | |
| 14537 | ; |
| 14538 | return 0; |
| 14539 | } |
| 14540 | _ACEOF |
| 14541 | rm -f conftest.$ac_objext |
| 14542 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14543 | (eval $ac_compile) 2>&5 |
| 14544 | ac_status=$? |
| 14545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14546 | (exit $ac_status); } && |
| 14547 | { ac_try='test -s conftest.$ac_objext' |
| 14548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14549 | (eval $ac_try) 2>&5 |
| 14550 | ac_status=$? |
| 14551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14552 | (exit $ac_status); }; }; then |
| 14553 | |
| 14554 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14555 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14556 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14557 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14558 | |
| 14559 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14560 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14561 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14562 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14563 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14564 | echo "${ECHO_T}yes" >&6 |
| 14565 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14566 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14567 | echo "$as_me: failed program was:" >&5 |
| 14568 | cat conftest.$ac_ext >&5 |
| 14569 | |
| 14570 | echo "$as_me:$LINENO: result: no" >&5 |
| 14571 | echo "${ECHO_T}no" >&6 |
| 14572 | echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 14573 | echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6 |
| 14574 | cat >conftest.$ac_ext <<_ACEOF |
| 14575 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14576 | #include "confdefs.h" |
| 14577 | |
| 14578 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14579 | |
| 14580 | #ifdef F77_DUMMY_MAIN |
| 14581 | # ifdef __cplusplus |
| 14582 | extern "C" |
| 14583 | # endif |
| 14584 | int F77_DUMMY_MAIN() { return 1; } |
| 14585 | #endif |
| 14586 | int |
| 14587 | main () |
| 14588 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14589 | |
| 14590 | char *name; |
| 14591 | struct hostent *he; |
| 14592 | struct hostent_data data; |
| 14593 | |
| 14594 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14595 | |
| 14596 | ; |
| 14597 | return 0; |
| 14598 | } |
| 14599 | _ACEOF |
| 14600 | rm -f conftest.$ac_objext |
| 14601 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14602 | (eval $ac_compile) 2>&5 |
| 14603 | ac_status=$? |
| 14604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14605 | (exit $ac_status); } && |
| 14606 | { ac_try='test -s conftest.$ac_objext' |
| 14607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14608 | (eval $ac_try) 2>&5 |
| 14609 | ac_status=$? |
| 14610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14611 | (exit $ac_status); }; }; then |
| 14612 | |
| 14613 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14614 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14615 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14616 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14617 | |
| 14618 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14619 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14620 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14621 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14622 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14623 | echo "${ECHO_T}yes" >&6 |
| 14624 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14625 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14626 | echo "$as_me: failed program was:" >&5 |
| 14627 | cat conftest.$ac_ext >&5 |
| 14628 | |
| 14629 | echo "$as_me:$LINENO: result: no" >&5 |
| 14630 | echo "${ECHO_T}no" >&6 |
| 14631 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14632 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14633 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14634 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14635 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14636 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14637 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14638 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14639 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14640 | CFLAGS=$OLD_CFLAGS |
| 14641 | |
| 14642 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14643 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14644 | |
| 14645 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14646 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14647 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14648 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14649 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14650 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14651 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14652 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14653 | cat >conftest.$ac_ext <<_ACEOF |
| 14654 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14655 | #include "confdefs.h" |
| 14656 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14657 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14658 | #include <assert.h> |
| 14659 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14660 | #ifdef __cplusplus |
| 14661 | extern "C" |
| 14662 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14663 | /* 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] | 14664 | builtin and then its argument prototype would still apply. */ |
| 14665 | char $ac_func (); |
| 14666 | char (*f) (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14667 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14668 | #ifdef F77_DUMMY_MAIN |
| 14669 | # ifdef __cplusplus |
| 14670 | extern "C" |
| 14671 | # endif |
| 14672 | int F77_DUMMY_MAIN() { return 1; } |
| 14673 | #endif |
| 14674 | int |
| 14675 | main () |
| 14676 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14677 | /* The GNU C library defines this for functions which it implements |
| 14678 | to always fail with ENOSYS. Some functions are actually named |
| 14679 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14680 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14681 | choke me |
| 14682 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14683 | f = $ac_func; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14684 | #endif |
| 14685 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14686 | ; |
| 14687 | return 0; |
| 14688 | } |
| 14689 | _ACEOF |
| 14690 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14691 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14692 | (eval $ac_link) 2>&5 |
| 14693 | ac_status=$? |
| 14694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14695 | (exit $ac_status); } && |
| 14696 | { ac_try='test -s conftest$ac_exeext' |
| 14697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14698 | (eval $ac_try) 2>&5 |
| 14699 | ac_status=$? |
| 14700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14701 | (exit $ac_status); }; }; then |
| 14702 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14703 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14704 | echo "$as_me: failed program was:" >&5 |
| 14705 | cat conftest.$ac_ext >&5 |
| 14706 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14707 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14708 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14709 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14710 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14711 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14712 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14713 | cat >>confdefs.h <<_ACEOF |
| 14714 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14715 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14716 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14717 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14718 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14719 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14720 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14721 | fi |
| 14722 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14723 | |
| 14724 | |
| 14725 | |
| 14726 | |
| 14727 | |
| 14728 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14729 | # checks for system services |
| 14730 | # (none yet) |
| 14731 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14732 | # Linux requires this for correct f.p. operations |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14733 | echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 14734 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6 |
| 14735 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 14736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14737 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14738 | cat >conftest.$ac_ext <<_ACEOF |
| 14739 | #line $LINENO "configure" |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14740 | #include "confdefs.h" |
| 14741 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14742 | which can conflict with char __fpu_control (); below. */ |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14743 | #include <assert.h> |
| 14744 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14745 | #ifdef __cplusplus |
| 14746 | extern "C" |
| 14747 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14748 | /* 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] | 14749 | builtin and then its argument prototype would still apply. */ |
| 14750 | char __fpu_control (); |
| 14751 | char (*f) (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14752 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14753 | #ifdef F77_DUMMY_MAIN |
| 14754 | # ifdef __cplusplus |
| 14755 | extern "C" |
| 14756 | # endif |
| 14757 | int F77_DUMMY_MAIN() { return 1; } |
| 14758 | #endif |
| 14759 | int |
| 14760 | main () |
| 14761 | { |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14762 | /* The GNU C library defines this for functions which it implements |
| 14763 | to always fail with ENOSYS. Some functions are actually named |
| 14764 | something starting with __ and the normal name is an alias. */ |
| 14765 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 14766 | choke me |
| 14767 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14768 | f = __fpu_control; |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14769 | #endif |
| 14770 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14771 | ; |
| 14772 | return 0; |
| 14773 | } |
| 14774 | _ACEOF |
| 14775 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14776 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14777 | (eval $ac_link) 2>&5 |
| 14778 | ac_status=$? |
| 14779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14780 | (exit $ac_status); } && |
| 14781 | { ac_try='test -s conftest$ac_exeext' |
| 14782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14783 | (eval $ac_try) 2>&5 |
| 14784 | ac_status=$? |
| 14785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14786 | (exit $ac_status); }; }; then |
| 14787 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14788 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14789 | echo "$as_me: failed program was:" >&5 |
| 14790 | cat conftest.$ac_ext >&5 |
| 14791 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14792 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14793 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14794 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14795 | echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 14796 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6 |
| 14797 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14798 | : |
| 14799 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14800 | |
| 14801 | echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 14802 | echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6 |
| 14803 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 14804 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14805 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14806 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14807 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14808 | cat >conftest.$ac_ext <<_ACEOF |
| 14809 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14810 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14811 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14812 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14813 | #ifdef __cplusplus |
| 14814 | extern "C" |
| 14815 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14816 | /* 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] | 14817 | builtin and then its argument prototype would still apply. */ |
| 14818 | char __fpu_control (); |
| 14819 | #ifdef F77_DUMMY_MAIN |
| 14820 | # ifdef __cplusplus |
| 14821 | extern "C" |
| 14822 | # endif |
| 14823 | int F77_DUMMY_MAIN() { return 1; } |
| 14824 | #endif |
| 14825 | int |
| 14826 | main () |
| 14827 | { |
| 14828 | __fpu_control (); |
| 14829 | ; |
| 14830 | return 0; |
| 14831 | } |
| 14832 | _ACEOF |
| 14833 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14834 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14835 | (eval $ac_link) 2>&5 |
| 14836 | ac_status=$? |
| 14837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14838 | (exit $ac_status); } && |
| 14839 | { ac_try='test -s conftest$ac_exeext' |
| 14840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14841 | (eval $ac_try) 2>&5 |
| 14842 | ac_status=$? |
| 14843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14844 | (exit $ac_status); }; }; then |
| 14845 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14846 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14847 | echo "$as_me: failed program was:" >&5 |
| 14848 | cat conftest.$ac_ext >&5 |
| 14849 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14850 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14851 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 14852 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14853 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14854 | echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 14855 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6 |
| 14856 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 14857 | cat >>confdefs.h <<_ACEOF |
| 14858 | #define HAVE_LIBIEEE 1 |
| 14859 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14860 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14861 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14862 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14863 | fi |
| 14864 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14865 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14866 | fi |
| 14867 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14868 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14869 | # Check for --with-fpectl |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14870 | echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 14871 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6 |
| 14872 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14873 | # Check whether --with-fpectl or --without-fpectl was given. |
| 14874 | if test "${with_fpectl+set}" = set; then |
| 14875 | withval="$with_fpectl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14876 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14877 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14878 | then |
| 14879 | |
| 14880 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14881 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14882 | _ACEOF |
| 14883 | |
| 14884 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14885 | echo "${ECHO_T}yes" >&6 |
| 14886 | else echo "$as_me:$LINENO: result: no" >&5 |
| 14887 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14888 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 14889 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14890 | echo "$as_me:$LINENO: result: no" >&5 |
| 14891 | echo "${ECHO_T}no" >&6 |
| 14892 | fi; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14893 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14894 | # check for --with-libm=... |
| 14895 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 14896 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 14897 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 14898 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 14899 | *) LIBM=-lm |
| 14900 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14901 | echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 14902 | echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6 |
| 14903 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14904 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14905 | if test "${with_libm+set}" = set; then |
| 14906 | withval="$with_libm" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14907 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14908 | if test "$withval" = no |
| 14909 | then LIBM= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14910 | echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 14911 | echo "${ECHO_T}force LIBM empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14912 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14913 | then LIBM=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14914 | echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 14915 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6 |
| 14916 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 14917 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 14918 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14919 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14920 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14921 | echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 14922 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6 |
| 14923 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14924 | |
| 14925 | # check for --with-libc=... |
| 14926 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14927 | echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 14928 | echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6 |
| 14929 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14930 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14931 | if test "${with_libc+set}" = set; then |
| 14932 | withval="$with_libc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14933 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14934 | if test "$withval" = no |
| 14935 | then LIBC= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14936 | echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 14937 | echo "${ECHO_T}force LIBC empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14938 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14939 | then LIBC=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14940 | echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 14941 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6 |
| 14942 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 14943 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 14944 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14945 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 14946 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14947 | echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 14948 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6 |
| 14949 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14950 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14951 | # check for hypot() in math library |
| 14952 | LIBS_SAVE=$LIBS |
| 14953 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14954 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14955 | for ac_func in hypot |
| 14956 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14957 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14958 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14959 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14960 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14961 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14962 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14963 | cat >conftest.$ac_ext <<_ACEOF |
| 14964 | #line $LINENO "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14965 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14966 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14967 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14968 | #include <assert.h> |
| 14969 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14970 | #ifdef __cplusplus |
| 14971 | extern "C" |
| 14972 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14973 | /* 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] | 14974 | builtin and then its argument prototype would still apply. */ |
| 14975 | char $ac_func (); |
| 14976 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14977 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14978 | #ifdef F77_DUMMY_MAIN |
| 14979 | # ifdef __cplusplus |
| 14980 | extern "C" |
| 14981 | # endif |
| 14982 | int F77_DUMMY_MAIN() { return 1; } |
| 14983 | #endif |
| 14984 | int |
| 14985 | main () |
| 14986 | { |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14987 | /* The GNU C library defines this for functions which it implements |
| 14988 | to always fail with ENOSYS. Some functions are actually named |
| 14989 | something starting with __ and the normal name is an alias. */ |
| 14990 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 14991 | choke me |
| 14992 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14993 | f = $ac_func; |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 14994 | #endif |
| 14995 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14996 | ; |
| 14997 | return 0; |
| 14998 | } |
| 14999 | _ACEOF |
| 15000 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15001 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15002 | (eval $ac_link) 2>&5 |
| 15003 | ac_status=$? |
| 15004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15005 | (exit $ac_status); } && |
| 15006 | { ac_try='test -s conftest$ac_exeext' |
| 15007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15008 | (eval $ac_try) 2>&5 |
| 15009 | ac_status=$? |
| 15010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15011 | (exit $ac_status); }; }; then |
| 15012 | eval "$as_ac_var=yes" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 15013 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15014 | echo "$as_me: failed program was:" >&5 |
| 15015 | cat conftest.$ac_ext >&5 |
| 15016 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15017 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15018 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15019 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15020 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15021 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15022 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15023 | cat >>confdefs.h <<_ACEOF |
| 15024 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15025 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15026 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15027 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15028 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 15029 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 15030 | done |
| 15031 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15032 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15033 | LIBS=$LIBS_SAVE |
| 15034 | |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15035 | # check whether malloc(0) returns NULL or not |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15036 | echo "$as_me:$LINENO: checking what malloc(0) returns" >&5 |
| 15037 | echo $ECHO_N "checking what malloc(0) returns... $ECHO_C" >&6 |
| 15038 | if test "${ac_cv_malloc_zero+set}" = set; then |
| 15039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15040 | else |
| 15041 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15042 | ac_cv_malloc_zero=nonnull |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15043 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15044 | cat >conftest.$ac_ext <<_ACEOF |
| 15045 | #line $LINENO "configure" |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15046 | #include "confdefs.h" |
| 15047 | #include <stdio.h> |
| 15048 | #ifdef HAVE_STDLIB |
| 15049 | #include <stdlib.h> |
| 15050 | #else |
| 15051 | char *malloc(), *realloc(); |
| 15052 | int *free(); |
| 15053 | #endif |
| 15054 | main() { |
| 15055 | char *p; |
| 15056 | p = malloc(0); |
| 15057 | if (p == NULL) exit(1); |
| 15058 | p = realloc(p, 0); |
| 15059 | if (p == NULL) exit(1); |
| 15060 | free(p); |
| 15061 | exit(0); |
| 15062 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15063 | _ACEOF |
| 15064 | rm -f conftest$ac_exeext |
| 15065 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15066 | (eval $ac_link) 2>&5 |
| 15067 | ac_status=$? |
| 15068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15069 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15071 | (eval $ac_try) 2>&5 |
| 15072 | ac_status=$? |
| 15073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15074 | (exit $ac_status); }; }; then |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15075 | ac_cv_malloc_zero=nonnull |
| 15076 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15077 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15078 | echo "$as_me: failed program was:" >&5 |
| 15079 | cat conftest.$ac_ext >&5 |
| 15080 | ( exit $ac_status ) |
| 15081 | ac_cv_malloc_zero=null |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15082 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15083 | 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] | 15084 | fi |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15085 | fi |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15086 | # XXX arm cross-compile? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15087 | echo "$as_me:$LINENO: result: $ac_cv_malloc_zero" >&5 |
| 15088 | echo "${ECHO_T}$ac_cv_malloc_zero" >&6 |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15089 | if test "$ac_cv_malloc_zero" = null |
| 15090 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15091 | |
| 15092 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15093 | #define MALLOC_ZERO_RETURNS_NULL 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15094 | _ACEOF |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15095 | |
| 15096 | fi |
| 15097 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15098 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15099 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 15100 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 15101 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 15102 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 15103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15104 | fi |
| 15105 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 15106 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15107 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15108 | # Is the header compilable? |
| 15109 | echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 15110 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 |
| 15111 | cat >conftest.$ac_ext <<_ACEOF |
| 15112 | #line $LINENO "configure" |
| 15113 | #include "confdefs.h" |
| 15114 | $ac_includes_default |
| 15115 | #include <wchar.h> |
| 15116 | _ACEOF |
| 15117 | rm -f conftest.$ac_objext |
| 15118 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15119 | (eval $ac_compile) 2>&5 |
| 15120 | ac_status=$? |
| 15121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15122 | (exit $ac_status); } && |
| 15123 | { ac_try='test -s conftest.$ac_objext' |
| 15124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15125 | (eval $ac_try) 2>&5 |
| 15126 | ac_status=$? |
| 15127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15128 | (exit $ac_status); }; }; then |
| 15129 | ac_header_compiler=yes |
| 15130 | else |
| 15131 | echo "$as_me: failed program was:" >&5 |
| 15132 | cat conftest.$ac_ext >&5 |
| 15133 | ac_header_compiler=no |
| 15134 | fi |
| 15135 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15136 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15137 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 15138 | |
| 15139 | # Is the header present? |
| 15140 | echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 15141 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 |
| 15142 | cat >conftest.$ac_ext <<_ACEOF |
| 15143 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15144 | #include "confdefs.h" |
| 15145 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15146 | _ACEOF |
| 15147 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 15148 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 15149 | ac_status=$? |
| 15150 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 15151 | rm -f conftest.er1 |
| 15152 | cat conftest.err >&5 |
| 15153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15154 | (exit $ac_status); } >/dev/null; then |
| 15155 | if test -s conftest.err; then |
| 15156 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15157 | else |
| 15158 | ac_cpp_err= |
| 15159 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15160 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15161 | ac_cpp_err=yes |
| 15162 | fi |
| 15163 | if test -z "$ac_cpp_err"; then |
| 15164 | ac_header_preproc=yes |
| 15165 | else |
| 15166 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15167 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15168 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15169 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15170 | rm -f conftest.err conftest.$ac_ext |
| 15171 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15172 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 15173 | |
| 15174 | # So? What about this header? |
| 15175 | case $ac_header_compiler:$ac_header_preproc in |
| 15176 | yes:no ) |
| 15177 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15178 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15179 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 15180 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};; |
| 15181 | no:yes ) |
| 15182 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 15183 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 15184 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 15185 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 15186 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 15187 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};; |
| 15188 | esac |
| 15189 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 15190 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 15191 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 15192 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15193 | else |
| 15194 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15195 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15196 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 15197 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
| 15198 | |
| 15199 | fi |
| 15200 | if test $ac_cv_header_wchar_h = yes; then |
| 15201 | |
| 15202 | |
| 15203 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15204 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15205 | _ACEOF |
| 15206 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15207 | wchar_h="yes" |
| 15208 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15209 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15210 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15211 | |
| 15212 | fi |
| 15213 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15214 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15215 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15216 | # determine wchar_t size |
| 15217 | if test "$wchar_h" = yes |
| 15218 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15219 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 15220 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 |
| 15221 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 15222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15223 | else |
| 15224 | cat >conftest.$ac_ext <<_ACEOF |
| 15225 | #line $LINENO "configure" |
| 15226 | #include "confdefs.h" |
| 15227 | #include <wchar.h> |
| 15228 | |
| 15229 | #ifdef F77_DUMMY_MAIN |
| 15230 | # ifdef __cplusplus |
| 15231 | extern "C" |
| 15232 | # endif |
| 15233 | int F77_DUMMY_MAIN() { return 1; } |
| 15234 | #endif |
| 15235 | int |
| 15236 | main () |
| 15237 | { |
| 15238 | if ((wchar_t *) 0) |
| 15239 | return 0; |
| 15240 | if (sizeof (wchar_t)) |
| 15241 | return 0; |
| 15242 | ; |
| 15243 | return 0; |
| 15244 | } |
| 15245 | _ACEOF |
| 15246 | rm -f conftest.$ac_objext |
| 15247 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15248 | (eval $ac_compile) 2>&5 |
| 15249 | ac_status=$? |
| 15250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15251 | (exit $ac_status); } && |
| 15252 | { ac_try='test -s conftest.$ac_objext' |
| 15253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15254 | (eval $ac_try) 2>&5 |
| 15255 | ac_status=$? |
| 15256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15257 | (exit $ac_status); }; }; then |
| 15258 | ac_cv_type_wchar_t=yes |
| 15259 | else |
| 15260 | echo "$as_me: failed program was:" >&5 |
| 15261 | cat conftest.$ac_ext >&5 |
| 15262 | ac_cv_type_wchar_t=no |
| 15263 | fi |
| 15264 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15265 | fi |
| 15266 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 15267 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 |
| 15268 | |
| 15269 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 15270 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 |
| 15271 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 15272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15273 | else |
| 15274 | if test "$ac_cv_type_wchar_t" = yes; then |
| 15275 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 15276 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 15277 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 15278 | # This bug is HP SR number 8606223364. |
| 15279 | if test "$cross_compiling" = yes; then |
| 15280 | # Depending upon the size, compute the lo and hi bounds. |
| 15281 | cat >conftest.$ac_ext <<_ACEOF |
| 15282 | #line $LINENO "configure" |
| 15283 | #include "confdefs.h" |
| 15284 | #include <wchar.h> |
| 15285 | |
| 15286 | #ifdef F77_DUMMY_MAIN |
| 15287 | # ifdef __cplusplus |
| 15288 | extern "C" |
| 15289 | # endif |
| 15290 | int F77_DUMMY_MAIN() { return 1; } |
| 15291 | #endif |
| 15292 | int |
| 15293 | main () |
| 15294 | { |
| 15295 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; |
| 15296 | test_array [0] = 0 |
| 15297 | |
| 15298 | ; |
| 15299 | return 0; |
| 15300 | } |
| 15301 | _ACEOF |
| 15302 | rm -f conftest.$ac_objext |
| 15303 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15304 | (eval $ac_compile) 2>&5 |
| 15305 | ac_status=$? |
| 15306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15307 | (exit $ac_status); } && |
| 15308 | { ac_try='test -s conftest.$ac_objext' |
| 15309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15310 | (eval $ac_try) 2>&5 |
| 15311 | ac_status=$? |
| 15312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15313 | (exit $ac_status); }; }; then |
| 15314 | ac_lo=0 ac_mid=0 |
| 15315 | while :; do |
| 15316 | cat >conftest.$ac_ext <<_ACEOF |
| 15317 | #line $LINENO "configure" |
| 15318 | #include "confdefs.h" |
| 15319 | #include <wchar.h> |
| 15320 | |
| 15321 | #ifdef F77_DUMMY_MAIN |
| 15322 | # ifdef __cplusplus |
| 15323 | extern "C" |
| 15324 | # endif |
| 15325 | int F77_DUMMY_MAIN() { return 1; } |
| 15326 | #endif |
| 15327 | int |
| 15328 | main () |
| 15329 | { |
| 15330 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 15331 | test_array [0] = 0 |
| 15332 | |
| 15333 | ; |
| 15334 | return 0; |
| 15335 | } |
| 15336 | _ACEOF |
| 15337 | rm -f conftest.$ac_objext |
| 15338 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15339 | (eval $ac_compile) 2>&5 |
| 15340 | ac_status=$? |
| 15341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15342 | (exit $ac_status); } && |
| 15343 | { ac_try='test -s conftest.$ac_objext' |
| 15344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15345 | (eval $ac_try) 2>&5 |
| 15346 | ac_status=$? |
| 15347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15348 | (exit $ac_status); }; }; then |
| 15349 | ac_hi=$ac_mid; break |
| 15350 | else |
| 15351 | echo "$as_me: failed program was:" >&5 |
| 15352 | cat conftest.$ac_ext >&5 |
| 15353 | ac_lo=`expr $ac_mid + 1` |
| 15354 | if test $ac_lo -le $ac_mid; then |
| 15355 | ac_lo= ac_hi= |
| 15356 | break |
| 15357 | fi |
| 15358 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 15359 | fi |
| 15360 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15361 | done |
| 15362 | else |
| 15363 | echo "$as_me: failed program was:" >&5 |
| 15364 | cat conftest.$ac_ext >&5 |
| 15365 | cat >conftest.$ac_ext <<_ACEOF |
| 15366 | #line $LINENO "configure" |
| 15367 | #include "confdefs.h" |
| 15368 | #include <wchar.h> |
| 15369 | |
| 15370 | #ifdef F77_DUMMY_MAIN |
| 15371 | # ifdef __cplusplus |
| 15372 | extern "C" |
| 15373 | # endif |
| 15374 | int F77_DUMMY_MAIN() { return 1; } |
| 15375 | #endif |
| 15376 | int |
| 15377 | main () |
| 15378 | { |
| 15379 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; |
| 15380 | test_array [0] = 0 |
| 15381 | |
| 15382 | ; |
| 15383 | return 0; |
| 15384 | } |
| 15385 | _ACEOF |
| 15386 | rm -f conftest.$ac_objext |
| 15387 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15388 | (eval $ac_compile) 2>&5 |
| 15389 | ac_status=$? |
| 15390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15391 | (exit $ac_status); } && |
| 15392 | { ac_try='test -s conftest.$ac_objext' |
| 15393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15394 | (eval $ac_try) 2>&5 |
| 15395 | ac_status=$? |
| 15396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15397 | (exit $ac_status); }; }; then |
| 15398 | ac_hi=-1 ac_mid=-1 |
| 15399 | while :; do |
| 15400 | cat >conftest.$ac_ext <<_ACEOF |
| 15401 | #line $LINENO "configure" |
| 15402 | #include "confdefs.h" |
| 15403 | #include <wchar.h> |
| 15404 | |
| 15405 | #ifdef F77_DUMMY_MAIN |
| 15406 | # ifdef __cplusplus |
| 15407 | extern "C" |
| 15408 | # endif |
| 15409 | int F77_DUMMY_MAIN() { return 1; } |
| 15410 | #endif |
| 15411 | int |
| 15412 | main () |
| 15413 | { |
| 15414 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; |
| 15415 | test_array [0] = 0 |
| 15416 | |
| 15417 | ; |
| 15418 | return 0; |
| 15419 | } |
| 15420 | _ACEOF |
| 15421 | rm -f conftest.$ac_objext |
| 15422 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15423 | (eval $ac_compile) 2>&5 |
| 15424 | ac_status=$? |
| 15425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15426 | (exit $ac_status); } && |
| 15427 | { ac_try='test -s conftest.$ac_objext' |
| 15428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15429 | (eval $ac_try) 2>&5 |
| 15430 | ac_status=$? |
| 15431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15432 | (exit $ac_status); }; }; then |
| 15433 | ac_lo=$ac_mid; break |
| 15434 | else |
| 15435 | echo "$as_me: failed program was:" >&5 |
| 15436 | cat conftest.$ac_ext >&5 |
| 15437 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 15438 | if test $ac_mid -le $ac_hi; then |
| 15439 | ac_lo= ac_hi= |
| 15440 | break |
| 15441 | fi |
| 15442 | ac_mid=`expr 2 '*' $ac_mid` |
| 15443 | fi |
| 15444 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15445 | done |
| 15446 | else |
| 15447 | echo "$as_me: failed program was:" >&5 |
| 15448 | cat conftest.$ac_ext >&5 |
| 15449 | ac_lo= ac_hi= |
| 15450 | fi |
| 15451 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15452 | fi |
| 15453 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15454 | # Binary search between lo and hi bounds. |
| 15455 | while test "x$ac_lo" != "x$ac_hi"; do |
| 15456 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 15457 | cat >conftest.$ac_ext <<_ACEOF |
| 15458 | #line $LINENO "configure" |
| 15459 | #include "confdefs.h" |
| 15460 | #include <wchar.h> |
| 15461 | |
| 15462 | #ifdef F77_DUMMY_MAIN |
| 15463 | # ifdef __cplusplus |
| 15464 | extern "C" |
| 15465 | # endif |
| 15466 | int F77_DUMMY_MAIN() { return 1; } |
| 15467 | #endif |
| 15468 | int |
| 15469 | main () |
| 15470 | { |
| 15471 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 15472 | test_array [0] = 0 |
| 15473 | |
| 15474 | ; |
| 15475 | return 0; |
| 15476 | } |
| 15477 | _ACEOF |
| 15478 | rm -f conftest.$ac_objext |
| 15479 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15480 | (eval $ac_compile) 2>&5 |
| 15481 | ac_status=$? |
| 15482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15483 | (exit $ac_status); } && |
| 15484 | { ac_try='test -s conftest.$ac_objext' |
| 15485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15486 | (eval $ac_try) 2>&5 |
| 15487 | ac_status=$? |
| 15488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15489 | (exit $ac_status); }; }; then |
| 15490 | ac_hi=$ac_mid |
| 15491 | else |
| 15492 | echo "$as_me: failed program was:" >&5 |
| 15493 | cat conftest.$ac_ext >&5 |
| 15494 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 15495 | fi |
| 15496 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15497 | done |
| 15498 | case $ac_lo in |
| 15499 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
| 15500 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5 |
| 15501 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;} |
| 15502 | { (exit 1); exit 1; }; } ;; |
| 15503 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15504 | else |
| 15505 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15506 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 15507 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 15508 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15509 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15510 | cat >conftest.$ac_ext <<_ACEOF |
| 15511 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15512 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15513 | #include <wchar.h> |
| 15514 | |
| 15515 | long longval () { return (long) (sizeof (wchar_t)); } |
| 15516 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15517 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15518 | #include <stdlib.h> |
| 15519 | #ifdef F77_DUMMY_MAIN |
| 15520 | # ifdef __cplusplus |
| 15521 | extern "C" |
| 15522 | # endif |
| 15523 | int F77_DUMMY_MAIN() { return 1; } |
| 15524 | #endif |
| 15525 | int |
| 15526 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15527 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15528 | |
| 15529 | FILE *f = fopen ("conftest.val", "w"); |
| 15530 | if (! f) |
| 15531 | exit (1); |
| 15532 | if (((long) (sizeof (wchar_t))) < 0) |
| 15533 | { |
| 15534 | long i = longval (); |
| 15535 | if (i != ((long) (sizeof (wchar_t)))) |
| 15536 | exit (1); |
| 15537 | fprintf (f, "%ld\n", i); |
| 15538 | } |
| 15539 | else |
| 15540 | { |
| 15541 | unsigned long i = ulongval (); |
| 15542 | if (i != ((long) (sizeof (wchar_t)))) |
| 15543 | exit (1); |
| 15544 | fprintf (f, "%lu\n", i); |
| 15545 | } |
| 15546 | exit (ferror (f) || fclose (f) != 0); |
| 15547 | |
| 15548 | ; |
| 15549 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15550 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15551 | _ACEOF |
| 15552 | rm -f conftest$ac_exeext |
| 15553 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15554 | (eval $ac_link) 2>&5 |
| 15555 | ac_status=$? |
| 15556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15557 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15559 | (eval $ac_try) 2>&5 |
| 15560 | ac_status=$? |
| 15561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15562 | (exit $ac_status); }; }; then |
| 15563 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15564 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15565 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15566 | echo "$as_me: failed program was:" >&5 |
| 15567 | cat conftest.$ac_ext >&5 |
| 15568 | ( exit $ac_status ) |
| 15569 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5 |
| 15570 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;} |
| 15571 | { (exit 1); exit 1; }; } |
| 15572 | fi |
| 15573 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15574 | fi |
| 15575 | fi |
| 15576 | rm -f conftest.val |
| 15577 | else |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15578 | ac_cv_sizeof_wchar_t=0 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15579 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15580 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15581 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 15582 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 |
| 15583 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15584 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15585 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15586 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15587 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15588 | fi |
| 15589 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15590 | echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 15591 | 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] | 15592 | # Check whether --enable-unicode or --disable-unicode was given. |
| 15593 | if test "${enable_unicode+set}" = set; then |
| 15594 | enableval="$enable_unicode" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15595 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15596 | else |
| 15597 | enable_unicode=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15598 | fi; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15599 | |
| 15600 | if test $enable_unicode = yes |
| 15601 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 15602 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
| 15603 | enable_unicode="ucs2" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15604 | fi |
| 15605 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 15606 | |
| 15607 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15608 | case "$enable_unicode" in |
| 15609 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15610 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15611 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15612 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15613 | |
| 15614 | ;; |
| 15615 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15616 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15617 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15618 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15619 | |
| 15620 | ;; |
| 15621 | esac |
| 15622 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15623 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15624 | |
| 15625 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 15626 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15627 | if test "$enable_unicode" = "no" |
| 15628 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 15629 | UNICODE_OBJS="" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15630 | echo "$as_me:$LINENO: result: not used" >&5 |
| 15631 | echo "${ECHO_T}not used" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15632 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 15633 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15634 | |
| 15635 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15636 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15637 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15638 | |
| 15639 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" |
| 15640 | then |
| 15641 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15642 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15643 | cat >>confdefs.h <<\_ACEOF |
| 15644 | #define HAVE_USABLE_WCHAR_T 1 |
| 15645 | _ACEOF |
| 15646 | |
| 15647 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15648 | #define PY_UNICODE_TYPE wchar_t |
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 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 15652 | then |
| 15653 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15654 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15655 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15656 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15657 | |
| 15658 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 15659 | then |
| 15660 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15661 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15662 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15663 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15664 | |
| 15665 | else |
| 15666 | PY_UNICODE_TYPE="no type found" |
| 15667 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15668 | echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 15669 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15670 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15671 | |
| 15672 | # check for endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15673 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 15674 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 15675 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 15676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15677 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15678 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 15679 | cat >conftest.$ac_ext <<_ACEOF |
| 15680 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15681 | #include "confdefs.h" |
| 15682 | #include <sys/types.h> |
| 15683 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15684 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15685 | #ifdef F77_DUMMY_MAIN |
| 15686 | # ifdef __cplusplus |
| 15687 | extern "C" |
| 15688 | # endif |
| 15689 | int F77_DUMMY_MAIN() { return 1; } |
| 15690 | #endif |
| 15691 | int |
| 15692 | main () |
| 15693 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15694 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 15695 | bogus endian macros |
| 15696 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15697 | |
| 15698 | ; |
| 15699 | return 0; |
| 15700 | } |
| 15701 | _ACEOF |
| 15702 | rm -f conftest.$ac_objext |
| 15703 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15704 | (eval $ac_compile) 2>&5 |
| 15705 | ac_status=$? |
| 15706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15707 | (exit $ac_status); } && |
| 15708 | { ac_try='test -s conftest.$ac_objext' |
| 15709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15710 | (eval $ac_try) 2>&5 |
| 15711 | ac_status=$? |
| 15712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15713 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15714 | # 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] | 15715 | cat >conftest.$ac_ext <<_ACEOF |
| 15716 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15717 | #include "confdefs.h" |
| 15718 | #include <sys/types.h> |
| 15719 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15720 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15721 | #ifdef F77_DUMMY_MAIN |
| 15722 | # ifdef __cplusplus |
| 15723 | extern "C" |
| 15724 | # endif |
| 15725 | int F77_DUMMY_MAIN() { return 1; } |
| 15726 | #endif |
| 15727 | int |
| 15728 | main () |
| 15729 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15730 | #if BYTE_ORDER != BIG_ENDIAN |
| 15731 | not big endian |
| 15732 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15733 | |
| 15734 | ; |
| 15735 | return 0; |
| 15736 | } |
| 15737 | _ACEOF |
| 15738 | rm -f conftest.$ac_objext |
| 15739 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15740 | (eval $ac_compile) 2>&5 |
| 15741 | ac_status=$? |
| 15742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15743 | (exit $ac_status); } && |
| 15744 | { ac_try='test -s conftest.$ac_objext' |
| 15745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15746 | (eval $ac_try) 2>&5 |
| 15747 | ac_status=$? |
| 15748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15749 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15750 | ac_cv_c_bigendian=yes |
| 15751 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15752 | echo "$as_me: failed program was:" >&5 |
| 15753 | cat conftest.$ac_ext >&5 |
| 15754 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15755 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15756 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15757 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15758 | echo "$as_me: failed program was:" >&5 |
| 15759 | cat conftest.$ac_ext >&5 |
| 15760 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15761 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15762 | # try to guess the endianess by grep'ing values into an object file |
| 15763 | ac_cv_c_bigendian=unknown |
| 15764 | cat >conftest.$ac_ext <<_ACEOF |
| 15765 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15766 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15767 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 15768 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 15769 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 15770 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 15771 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 15772 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 15773 | #ifdef F77_DUMMY_MAIN |
| 15774 | # ifdef __cplusplus |
| 15775 | extern "C" |
| 15776 | # endif |
| 15777 | int F77_DUMMY_MAIN() { return 1; } |
| 15778 | #endif |
| 15779 | int |
| 15780 | main () |
| 15781 | { |
| 15782 | _ascii (); _ebcdic (); |
| 15783 | ; |
| 15784 | return 0; |
| 15785 | } |
| 15786 | _ACEOF |
| 15787 | rm -f conftest.$ac_objext |
| 15788 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15789 | (eval $ac_compile) 2>&5 |
| 15790 | ac_status=$? |
| 15791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15792 | (exit $ac_status); } && |
| 15793 | { ac_try='test -s conftest.$ac_objext' |
| 15794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15795 | (eval $ac_try) 2>&5 |
| 15796 | ac_status=$? |
| 15797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15798 | (exit $ac_status); }; }; then |
| 15799 | if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 15800 | ac_cv_c_bigendian=yes |
| 15801 | fi |
| 15802 | if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 15803 | if test "$ac_cv_c_bigendian" = unknown; then |
| 15804 | ac_cv_c_bigendian=no |
| 15805 | else |
| 15806 | # finding both strings is unlikely to happen, but who knows? |
| 15807 | ac_cv_c_bigendian=unknown |
| 15808 | fi |
| 15809 | fi |
| 15810 | else |
| 15811 | echo "$as_me: failed program was:" >&5 |
| 15812 | cat conftest.$ac_ext >&5 |
| 15813 | fi |
| 15814 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15815 | else |
| 15816 | cat >conftest.$ac_ext <<_ACEOF |
| 15817 | #line $LINENO "configure" |
| 15818 | #include "confdefs.h" |
| 15819 | int |
| 15820 | main () |
| 15821 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15822 | /* Are we little or big endian? From Harbison&Steele. */ |
| 15823 | union |
| 15824 | { |
| 15825 | long l; |
| 15826 | char c[sizeof (long)]; |
| 15827 | } u; |
| 15828 | u.l = 1; |
| 15829 | exit (u.c[sizeof (long) - 1] == 1); |
| 15830 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15831 | _ACEOF |
| 15832 | rm -f conftest$ac_exeext |
| 15833 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15834 | (eval $ac_link) 2>&5 |
| 15835 | ac_status=$? |
| 15836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15837 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15839 | (eval $ac_try) 2>&5 |
| 15840 | ac_status=$? |
| 15841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15842 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15843 | ac_cv_c_bigendian=no |
| 15844 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15845 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15846 | echo "$as_me: failed program was:" >&5 |
| 15847 | cat conftest.$ac_ext >&5 |
| 15848 | ( exit $ac_status ) |
| 15849 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15850 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15851 | 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] | 15852 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15853 | fi |
| 15854 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15855 | fi |
| 15856 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 15857 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 15858 | case $ac_cv_c_bigendian in |
| 15859 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 15860 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15861 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15862 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15863 | _ACEOF |
| 15864 | ;; |
| 15865 | no) |
| 15866 | ;; |
| 15867 | *) |
| 15868 | { { echo "$as_me:$LINENO: error: unknown endianess |
| 15869 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 15870 | echo "$as_me: error: unknown endianess |
| 15871 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 15872 | { (exit 1); exit 1; }; } ;; |
| 15873 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15874 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15875 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15876 | # Check whether right shifting a negative integer extends the sign bit |
| 15877 | # 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] | 15878 | echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 15879 | echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6 |
| 15880 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 15881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15882 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15883 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15884 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15885 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15886 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15887 | cat >conftest.$ac_ext <<_ACEOF |
| 15888 | #line $LINENO "configure" |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15889 | #include "confdefs.h" |
| 15890 | |
| 15891 | int main() |
| 15892 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15893 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15894 | } |
| 15895 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15896 | _ACEOF |
| 15897 | rm -f conftest$ac_exeext |
| 15898 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15899 | (eval $ac_link) 2>&5 |
| 15900 | ac_status=$? |
| 15901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15902 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15904 | (eval $ac_try) 2>&5 |
| 15905 | ac_status=$? |
| 15906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15907 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15908 | ac_cv_rshift_extends_sign=yes |
| 15909 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15910 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15911 | echo "$as_me: failed program was:" >&5 |
| 15912 | cat conftest.$ac_ext >&5 |
| 15913 | ( exit $ac_status ) |
| 15914 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15915 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15916 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15917 | fi |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15918 | fi |
| 15919 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15920 | echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 15921 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 15922 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15923 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15924 | |
| 15925 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15926 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15927 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15928 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15929 | fi |
| 15930 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15931 | # check for getc_unlocked and related locking functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15932 | echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 15933 | echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6 |
| 15934 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 15935 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15936 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15937 | |
| 15938 | cat >conftest.$ac_ext <<_ACEOF |
| 15939 | #line $LINENO "configure" |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15940 | #include "confdefs.h" |
| 15941 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15942 | #ifdef F77_DUMMY_MAIN |
| 15943 | # ifdef __cplusplus |
| 15944 | extern "C" |
| 15945 | # endif |
| 15946 | int F77_DUMMY_MAIN() { return 1; } |
| 15947 | #endif |
| 15948 | int |
| 15949 | main () |
| 15950 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15951 | |
| 15952 | FILE *f = fopen("/dev/null", "r"); |
| 15953 | flockfile(f); |
| 15954 | getc_unlocked(f); |
| 15955 | funlockfile(f); |
| 15956 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15957 | ; |
| 15958 | return 0; |
| 15959 | } |
| 15960 | _ACEOF |
| 15961 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15962 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15963 | (eval $ac_link) 2>&5 |
| 15964 | ac_status=$? |
| 15965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15966 | (exit $ac_status); } && |
| 15967 | { ac_try='test -s conftest$ac_exeext' |
| 15968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15969 | (eval $ac_try) 2>&5 |
| 15970 | ac_status=$? |
| 15971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15972 | (exit $ac_status); }; }; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15973 | ac_cv_have_getc_unlocked=yes |
| 15974 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15975 | echo "$as_me: failed program was:" >&5 |
| 15976 | cat conftest.$ac_ext >&5 |
| 15977 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15978 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15979 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15980 | fi |
| 15981 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15982 | echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 15983 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15984 | if test "$ac_cv_have_getc_unlocked" = yes |
| 15985 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15986 | |
| 15987 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15988 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15989 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 15990 | |
| 15991 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 15992 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 15993 | # check for readline 4.0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15994 | echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 15995 | echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6 |
| 15996 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 15997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 15998 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15999 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16000 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16001 | cat >conftest.$ac_ext <<_ACEOF |
| 16002 | #line $LINENO "configure" |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16003 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16004 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16005 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16006 | #ifdef __cplusplus |
| 16007 | extern "C" |
| 16008 | #endif |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16009 | /* 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] | 16010 | builtin and then its argument prototype would still apply. */ |
| 16011 | char rl_pre_input_hook (); |
| 16012 | #ifdef F77_DUMMY_MAIN |
| 16013 | # ifdef __cplusplus |
| 16014 | extern "C" |
| 16015 | # endif |
| 16016 | int F77_DUMMY_MAIN() { return 1; } |
| 16017 | #endif |
| 16018 | int |
| 16019 | main () |
| 16020 | { |
| 16021 | rl_pre_input_hook (); |
| 16022 | ; |
| 16023 | return 0; |
| 16024 | } |
| 16025 | _ACEOF |
| 16026 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16027 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16028 | (eval $ac_link) 2>&5 |
| 16029 | ac_status=$? |
| 16030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16031 | (exit $ac_status); } && |
| 16032 | { ac_try='test -s conftest$ac_exeext' |
| 16033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16034 | (eval $ac_try) 2>&5 |
| 16035 | ac_status=$? |
| 16036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16037 | (exit $ac_status); }; }; then |
| 16038 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16039 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16040 | echo "$as_me: failed program was:" >&5 |
| 16041 | cat conftest.$ac_ext >&5 |
| 16042 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16043 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16044 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16045 | LIBS=$ac_check_lib_save_LIBS |
| 16046 | fi |
| 16047 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 16048 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6 |
| 16049 | 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] | 16050 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16051 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16052 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16053 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16054 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16055 | fi |
| 16056 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16057 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16058 | # check for readline 4.2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16059 | echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 16060 | echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6 |
| 16061 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 16062 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16063 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16064 | ac_check_lib_save_LIBS=$LIBS |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16065 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16066 | cat >conftest.$ac_ext <<_ACEOF |
| 16067 | #line $LINENO "configure" |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16068 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16069 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16070 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16071 | #ifdef __cplusplus |
| 16072 | extern "C" |
| 16073 | #endif |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16074 | /* 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] | 16075 | builtin and then its argument prototype would still apply. */ |
| 16076 | char rl_completion_matches (); |
| 16077 | #ifdef F77_DUMMY_MAIN |
| 16078 | # ifdef __cplusplus |
| 16079 | extern "C" |
| 16080 | # endif |
| 16081 | int F77_DUMMY_MAIN() { return 1; } |
| 16082 | #endif |
| 16083 | int |
| 16084 | main () |
| 16085 | { |
| 16086 | rl_completion_matches (); |
| 16087 | ; |
| 16088 | return 0; |
| 16089 | } |
| 16090 | _ACEOF |
| 16091 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16092 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16093 | (eval $ac_link) 2>&5 |
| 16094 | ac_status=$? |
| 16095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16096 | (exit $ac_status); } && |
| 16097 | { ac_try='test -s conftest$ac_exeext' |
| 16098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16099 | (eval $ac_try) 2>&5 |
| 16100 | ac_status=$? |
| 16101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16102 | (exit $ac_status); }; }; then |
| 16103 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16104 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16105 | echo "$as_me: failed program was:" >&5 |
| 16106 | cat conftest.$ac_ext >&5 |
| 16107 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16108 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16109 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16110 | LIBS=$ac_check_lib_save_LIBS |
| 16111 | fi |
| 16112 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 16113 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6 |
| 16114 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16115 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16116 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16117 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16118 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16119 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16120 | fi |
| 16121 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16122 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16123 | echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 16124 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6 |
| 16125 | if test "${ac_cv_broken_nice+set}" = set; then |
| 16126 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16127 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16128 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16129 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 16130 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16131 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16132 | cat >conftest.$ac_ext <<_ACEOF |
| 16133 | #line $LINENO "configure" |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16134 | #include "confdefs.h" |
| 16135 | |
| 16136 | int main() |
| 16137 | { |
| 16138 | int val1 = nice(1); |
| 16139 | if (val1 != -1 && val1 == nice(2)) |
| 16140 | exit(0); |
| 16141 | exit(1); |
| 16142 | } |
| 16143 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16144 | _ACEOF |
| 16145 | rm -f conftest$ac_exeext |
| 16146 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16147 | (eval $ac_link) 2>&5 |
| 16148 | ac_status=$? |
| 16149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16150 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16152 | (eval $ac_try) 2>&5 |
| 16153 | ac_status=$? |
| 16154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16155 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16156 | ac_cv_broken_nice=yes |
| 16157 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16158 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16159 | echo "$as_me: failed program was:" >&5 |
| 16160 | cat conftest.$ac_ext >&5 |
| 16161 | ( exit $ac_status ) |
| 16162 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16163 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16164 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 16165 | fi |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16166 | fi |
| 16167 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16168 | echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 16169 | echo "${ECHO_T}$ac_cv_broken_nice" >&6 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16170 | if test "$ac_cv_broken_nice" = yes |
| 16171 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16172 | |
| 16173 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16174 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16175 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16176 | |
| 16177 | fi |
| 16178 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16179 | # Look for subsecond timestamps in struct stat |
| 16180 | echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 16181 | echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6 |
| 16182 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
| 16183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16184 | else |
| 16185 | cat >conftest.$ac_ext <<_ACEOF |
| 16186 | #line $LINENO "configure" |
| 16187 | #include "confdefs.h" |
| 16188 | #include <sys/stat.h> |
| 16189 | #ifdef F77_DUMMY_MAIN |
| 16190 | # ifdef __cplusplus |
| 16191 | extern "C" |
| 16192 | # endif |
| 16193 | int F77_DUMMY_MAIN() { return 1; } |
| 16194 | #endif |
| 16195 | int |
| 16196 | main () |
| 16197 | { |
| 16198 | |
| 16199 | struct stat st; |
| 16200 | st.st_mtim.tv_nsec = 1; |
| 16201 | |
| 16202 | ; |
| 16203 | return 0; |
| 16204 | } |
| 16205 | _ACEOF |
| 16206 | rm -f conftest.$ac_objext |
| 16207 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16208 | (eval $ac_compile) 2>&5 |
| 16209 | ac_status=$? |
| 16210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16211 | (exit $ac_status); } && |
| 16212 | { ac_try='test -s conftest.$ac_objext' |
| 16213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16214 | (eval $ac_try) 2>&5 |
| 16215 | ac_status=$? |
| 16216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16217 | (exit $ac_status); }; }; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 16218 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16219 | else |
| 16220 | echo "$as_me: failed program was:" >&5 |
| 16221 | cat conftest.$ac_ext >&5 |
| 16222 | ac_cv_stat_tv_nsec=no |
| 16223 | fi |
| 16224 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16225 | fi |
| 16226 | |
| 16227 | echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 16228 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6 |
| 16229 | if test "$ac_cv_stat_tv_nsec" = yes |
| 16230 | then |
| 16231 | |
| 16232 | cat >>confdefs.h <<\_ACEOF |
| 16233 | #define HAVE_STAT_TV_NSEC 1 |
| 16234 | _ACEOF |
| 16235 | |
| 16236 | fi |
| 16237 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16238 | # 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] | 16239 | echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 16240 | echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6 |
| 16241 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 16242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16243 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16244 | cat >conftest.$ac_ext <<_ACEOF |
| 16245 | #line $LINENO "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16246 | #include "confdefs.h" |
| 16247 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16248 | #ifdef F77_DUMMY_MAIN |
| 16249 | # ifdef __cplusplus |
| 16250 | extern "C" |
| 16251 | # endif |
| 16252 | int F77_DUMMY_MAIN() { return 1; } |
| 16253 | #endif |
| 16254 | int |
| 16255 | main () |
| 16256 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16257 | |
| 16258 | int rtn; |
| 16259 | rtn = mvwdelch(0,0,0); |
| 16260 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16261 | ; |
| 16262 | return 0; |
| 16263 | } |
| 16264 | _ACEOF |
| 16265 | rm -f conftest.$ac_objext |
| 16266 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16267 | (eval $ac_compile) 2>&5 |
| 16268 | ac_status=$? |
| 16269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16270 | (exit $ac_status); } && |
| 16271 | { ac_try='test -s conftest.$ac_objext' |
| 16272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16273 | (eval $ac_try) 2>&5 |
| 16274 | ac_status=$? |
| 16275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16276 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16277 | ac_cv_mvwdelch_is_expression=yes |
| 16278 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16279 | echo "$as_me: failed program was:" >&5 |
| 16280 | cat conftest.$ac_ext >&5 |
| 16281 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16282 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16283 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16284 | fi |
| 16285 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16286 | echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 16287 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16288 | |
| 16289 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 16290 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16291 | |
| 16292 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16293 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16294 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16295 | |
| 16296 | fi |
| 16297 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16298 | echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 16299 | echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6 |
| 16300 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 16301 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16302 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16303 | cat >conftest.$ac_ext <<_ACEOF |
| 16304 | #line $LINENO "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16305 | #include "confdefs.h" |
| 16306 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16307 | #ifdef F77_DUMMY_MAIN |
| 16308 | # ifdef __cplusplus |
| 16309 | extern "C" |
| 16310 | # endif |
| 16311 | int F77_DUMMY_MAIN() { return 1; } |
| 16312 | #endif |
| 16313 | int |
| 16314 | main () |
| 16315 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16316 | |
| 16317 | WINDOW *w; |
| 16318 | w->_flags = 0; |
| 16319 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16320 | ; |
| 16321 | return 0; |
| 16322 | } |
| 16323 | _ACEOF |
| 16324 | rm -f conftest.$ac_objext |
| 16325 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16326 | (eval $ac_compile) 2>&5 |
| 16327 | ac_status=$? |
| 16328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16329 | (exit $ac_status); } && |
| 16330 | { ac_try='test -s conftest.$ac_objext' |
| 16331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16332 | (eval $ac_try) 2>&5 |
| 16333 | ac_status=$? |
| 16334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16335 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16336 | ac_cv_window_has_flags=yes |
| 16337 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16338 | echo "$as_me: failed program was:" >&5 |
| 16339 | cat conftest.$ac_ext >&5 |
| 16340 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16341 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16342 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16343 | fi |
| 16344 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16345 | echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 16346 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16347 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16348 | |
| 16349 | if test "$ac_cv_window_has_flags" = yes |
| 16350 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16351 | |
| 16352 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16353 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16354 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16355 | |
| 16356 | fi |
| 16357 | |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16358 | # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS! |
| 16359 | # Add sys/socket.h to confdefs.h |
| 16360 | cat >> confdefs.h <<\EOF |
| 16361 | #ifdef HAVE_SYS_SOCKET_H |
| 16362 | #include <sys/socket.h> |
| 16363 | #endif |
| 16364 | EOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16365 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 16366 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 16367 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 16368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16369 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16370 | cat >conftest.$ac_ext <<_ACEOF |
| 16371 | #line $LINENO "configure" |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16372 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16373 | $ac_includes_default |
| 16374 | #ifdef F77_DUMMY_MAIN |
| 16375 | # ifdef __cplusplus |
| 16376 | extern "C" |
| 16377 | # endif |
| 16378 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16379 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16380 | int |
| 16381 | main () |
| 16382 | { |
| 16383 | if ((socklen_t *) 0) |
| 16384 | return 0; |
| 16385 | if (sizeof (socklen_t)) |
| 16386 | return 0; |
| 16387 | ; |
| 16388 | return 0; |
| 16389 | } |
| 16390 | _ACEOF |
| 16391 | rm -f conftest.$ac_objext |
| 16392 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16393 | (eval $ac_compile) 2>&5 |
| 16394 | ac_status=$? |
| 16395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16396 | (exit $ac_status); } && |
| 16397 | { ac_try='test -s conftest.$ac_objext' |
| 16398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16399 | (eval $ac_try) 2>&5 |
| 16400 | ac_status=$? |
| 16401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16402 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16403 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16404 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16405 | echo "$as_me: failed program was:" >&5 |
| 16406 | cat conftest.$ac_ext >&5 |
| 16407 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16408 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16409 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16410 | fi |
| 16411 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 16412 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| 16413 | if test $ac_cv_type_socklen_t = yes; then |
| 16414 | : |
| 16415 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16416 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16417 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16418 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16419 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16420 | |
| 16421 | fi |
| 16422 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16423 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16424 | #AC_MSG_CHECKING(for Modules/Setup) |
| 16425 | #if test ! -f Modules/Setup ; then |
| 16426 | # if test ! -d Modules ; then |
| 16427 | # mkdir Modules |
| 16428 | # fi |
| 16429 | # cp "$srcdir/Modules/Setup.dist" Modules/Setup |
| 16430 | # AC_MSG_RESULT(creating) |
| 16431 | #else |
| 16432 | # AC_MSG_RESULT(already exists) |
| 16433 | #fi |
| 16434 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16435 | |
| 16436 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 16437 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 16438 | do |
| 16439 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 16440 | done |
| 16441 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16442 | |
Jack Jansen | 0b06be7 | 2002-06-21 14:48:38 +0000 | [diff] [blame] | 16443 | SRCDIRS="Parser Grammar Objects Python Modules Mac Mac/Python" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16444 | echo "$as_me:$LINENO: checking for build directories" >&5 |
| 16445 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16446 | for dir in $SRCDIRS; do |
| 16447 | if test ! -d $dir; then |
| 16448 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 16449 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16450 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16451 | echo "$as_me:$LINENO: result: done" >&5 |
| 16452 | echo "${ECHO_T}done" >&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 16453 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16454 | # generate output files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16455 | ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config" |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 16456 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16457 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16458 | # This file is a shell script that caches the results of configure |
| 16459 | # 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] | 16460 | # scripts and configure runs, see configure's option --config-cache. |
| 16461 | # It is not useful on other systems. If it contains results you don't |
| 16462 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16463 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16464 | # config.status only pays attention to the cache file if you give it |
| 16465 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16466 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16467 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
| 16468 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 16469 | # following values. |
| 16470 | |
| 16471 | _ACEOF |
| 16472 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 16473 | # The following way of writing the cache mishandles newlines in values, |
| 16474 | # but we know of no workaround that is simple, portable, and efficient. |
| 16475 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16476 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 16477 | # 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] | 16478 | { |
| 16479 | (set) 2>&1 | |
| 16480 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 16481 | *ac_space=\ *) |
| 16482 | # `set' does not quote correctly, so add quotes (double-quote |
| 16483 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 16484 | sed -n \ |
| 16485 | "s/'/'\\\\''/g; |
| 16486 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 16487 | ;; |
| 16488 | *) |
| 16489 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 16490 | sed -n \ |
| 16491 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 16492 | ;; |
| 16493 | esac; |
| 16494 | } | |
| 16495 | sed ' |
| 16496 | t clear |
| 16497 | : clear |
| 16498 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 16499 | t end |
| 16500 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 16501 | : end' >>confcache |
| 16502 | if cmp -s $cache_file confcache; then :; else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16503 | if test -w $cache_file; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16504 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 16505 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16506 | else |
| 16507 | echo "not updating unwritable cache $cache_file" |
| 16508 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16509 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16510 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16511 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16512 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 16513 | # Let make expand exec_prefix. |
| 16514 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16515 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16516 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 16517 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 16518 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 16519 | # (actually we leave an empty line to preserve line numbers). |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16520 | if test "x$srcdir" = x.; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16521 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 16522 | s/:*\$(srcdir):*/:/; |
| 16523 | s/:*\${srcdir}:*/:/; |
| 16524 | s/:*@srcdir@:*/:/; |
| 16525 | s/^\([^=]*=[ ]*\):*/\1/; |
| 16526 | s/:*$//; |
| 16527 | s/^[^=]*=[ ]*$//; |
| 16528 | }' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16529 | fi |
| 16530 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16531 | DEFS=-DHAVE_CONFIG_H |
| 16532 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16533 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16534 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16535 | ac_clean_files_save=$ac_clean_files |
| 16536 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 16537 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 16538 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 16539 | cat >$CONFIG_STATUS <<_ACEOF |
| 16540 | #! $SHELL |
| 16541 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16542 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16543 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16544 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16545 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16546 | debug=false |
| 16547 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 16548 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16549 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16550 | cat >>$CONFIG_STATUS <<\_ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16551 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16552 | ## --------------------- ## |
| 16553 | ## M4sh Initialization. ## |
| 16554 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16555 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16556 | # Be Bourne compatible |
| 16557 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16558 | emulate sh |
| 16559 | NULLCMD=: |
| 16560 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 16561 | set -o posix |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16562 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16563 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16564 | # NLS nuisances. |
| 16565 | # Support unset when possible. |
| 16566 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 16567 | as_unset=unset |
| 16568 | else |
| 16569 | as_unset=false |
| 16570 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16571 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16572 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && |
| 16573 | { $as_unset LANG || test "${LANG+set}" != set; } || |
| 16574 | { LANG=C; export LANG; } |
| 16575 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && |
| 16576 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || |
| 16577 | { LC_ALL=C; export LC_ALL; } |
| 16578 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && |
| 16579 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || |
| 16580 | { LC_TIME=C; export LC_TIME; } |
| 16581 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && |
| 16582 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || |
| 16583 | { LC_CTYPE=C; export LC_CTYPE; } |
| 16584 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && |
| 16585 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || |
| 16586 | { LANGUAGE=C; export LANGUAGE; } |
| 16587 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && |
| 16588 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || |
| 16589 | { LC_COLLATE=C; export LC_COLLATE; } |
| 16590 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && |
| 16591 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || |
| 16592 | { LC_NUMERIC=C; export LC_NUMERIC; } |
| 16593 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && |
| 16594 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || |
| 16595 | { LC_MESSAGES=C; export LC_MESSAGES; } |
| 16596 | |
| 16597 | |
| 16598 | # Name of the executable. |
| 16599 | as_me=`(basename "$0") 2>/dev/null || |
| 16600 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 16601 | X"$0" : 'X\(//\)$' \| \ |
| 16602 | X"$0" : 'X\(/\)$' \| \ |
| 16603 | . : '\(.\)' 2>/dev/null || |
| 16604 | echo X/"$0" | |
| 16605 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 16606 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 16607 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 16608 | s/.*/./; q'` |
| 16609 | |
| 16610 | # PATH needs CR, and LINENO needs CR and PATH. |
| 16611 | # Avoid depending upon Character Ranges. |
| 16612 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 16613 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 16614 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 16615 | as_cr_digits='0123456789' |
| 16616 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 16617 | |
| 16618 | # The user is always right. |
| 16619 | if test "${PATH_SEPARATOR+set}" != set; then |
| 16620 | echo "#! /bin/sh" >conftest.sh |
| 16621 | echo "exit 0" >>conftest.sh |
| 16622 | chmod +x conftest.sh |
| 16623 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
| 16624 | PATH_SEPARATOR=';' |
| 16625 | else |
| 16626 | PATH_SEPARATOR=: |
| 16627 | fi |
| 16628 | rm -f conftest.sh |
| 16629 | fi |
| 16630 | |
| 16631 | |
| 16632 | as_lineno_1=$LINENO |
| 16633 | as_lineno_2=$LINENO |
| 16634 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 16635 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 16636 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 16637 | # Find who we are. Look in the path if we contain no path at all |
| 16638 | # relative or not. |
| 16639 | case $0 in |
| 16640 | *[\\/]* ) as_myself=$0 ;; |
| 16641 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16642 | for as_dir in $PATH |
| 16643 | do |
| 16644 | IFS=$as_save_IFS |
| 16645 | test -z "$as_dir" && as_dir=. |
| 16646 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 16647 | done |
| 16648 | |
| 16649 | ;; |
| 16650 | esac |
| 16651 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 16652 | # in which case we are not to be found in the path. |
| 16653 | if test "x$as_myself" = x; then |
| 16654 | as_myself=$0 |
| 16655 | fi |
| 16656 | if test ! -f "$as_myself"; then |
| 16657 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 16658 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 16659 | { (exit 1); exit 1; }; } |
| 16660 | fi |
| 16661 | case $CONFIG_SHELL in |
| 16662 | '') |
| 16663 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16664 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 16665 | do |
| 16666 | IFS=$as_save_IFS |
| 16667 | test -z "$as_dir" && as_dir=. |
| 16668 | for as_base in sh bash ksh sh5; do |
| 16669 | case $as_dir in |
| 16670 | /*) |
| 16671 | if ("$as_dir/$as_base" -c ' |
| 16672 | as_lineno_1=$LINENO |
| 16673 | as_lineno_2=$LINENO |
| 16674 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 16675 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 16676 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 16677 | CONFIG_SHELL=$as_dir/$as_base |
| 16678 | export CONFIG_SHELL |
| 16679 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 16680 | fi;; |
| 16681 | esac |
| 16682 | done |
| 16683 | done |
| 16684 | ;; |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16685 | esac |
| 16686 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16687 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 16688 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 16689 | # line-number line before each line; the second 'sed' does the real |
| 16690 | # work. The second script uses 'N' to pair each line-number line |
| 16691 | # with the numbered line, and appends trailing '-' during |
| 16692 | # substitution so that $LINENO is not a special case at line end. |
| 16693 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 16694 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 16695 | sed '=' <$as_myself | |
| 16696 | sed ' |
| 16697 | N |
| 16698 | s,$,-, |
| 16699 | : loop |
| 16700 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 16701 | t loop |
| 16702 | s,-$,, |
| 16703 | s,^['$as_cr_digits']*\n,, |
| 16704 | ' >$as_me.lineno && |
| 16705 | chmod +x $as_me.lineno || |
| 16706 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 16707 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 16708 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16709 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16710 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 16711 | # (the dirname of $[0] is not the place where we might find the |
| 16712 | # original and so on. Autoconf is especially sensible to this). |
| 16713 | . ./$as_me.lineno |
| 16714 | # Exit status is that of the last command. |
| 16715 | exit |
| 16716 | } |
| 16717 | |
| 16718 | |
| 16719 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 16720 | *c*,-n*) ECHO_N= ECHO_C=' |
| 16721 | ' ECHO_T=' ' ;; |
| 16722 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 16723 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 16724 | esac |
| 16725 | |
| 16726 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 16727 | as_expr=expr |
| 16728 | else |
| 16729 | as_expr=false |
| 16730 | fi |
| 16731 | |
| 16732 | rm -f conf$$ conf$$.exe conf$$.file |
| 16733 | echo >conf$$.file |
| 16734 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 16735 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 16736 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 16737 | if test -f conf$$.exe; then |
| 16738 | # Don't use ln at all; we don't have any links |
| 16739 | as_ln_s='cp -p' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16740 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16741 | as_ln_s='ln -s' |
| 16742 | fi |
| 16743 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 16744 | as_ln_s=ln |
| 16745 | else |
| 16746 | as_ln_s='cp -p' |
| 16747 | fi |
| 16748 | rm -f conf$$ conf$$.exe conf$$.file |
| 16749 | |
| 16750 | as_executable_p="test -f" |
| 16751 | |
| 16752 | # Sed expression to map a string onto a valid CPP name. |
| 16753 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 16754 | |
| 16755 | # Sed expression to map a string onto a valid variable name. |
| 16756 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 16757 | |
| 16758 | |
| 16759 | # IFS |
| 16760 | # We need space, tab and new line, in precisely that order. |
| 16761 | as_nl=' |
| 16762 | ' |
| 16763 | IFS=" $as_nl" |
| 16764 | |
| 16765 | # CDPATH. |
| 16766 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
| 16767 | |
| 16768 | exec 6>&1 |
| 16769 | |
| 16770 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 16771 | # report actual input values of CONFIG_FILES etc. instead of their |
| 16772 | # values after options handling. Logging --version etc. is OK. |
| 16773 | exec 5>>config.log |
| 16774 | { |
| 16775 | echo |
| 16776 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 16777 | ## Running $as_me. ## |
| 16778 | _ASBOX |
| 16779 | } >&5 |
| 16780 | cat >&5 <<_CSEOF |
| 16781 | |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 16782 | This file was extended by python $as_me 2.3, which was |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16783 | generated by GNU Autoconf 2.53. Invocation command line was |
| 16784 | |
| 16785 | CONFIG_FILES = $CONFIG_FILES |
| 16786 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 16787 | CONFIG_LINKS = $CONFIG_LINKS |
| 16788 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 16789 | $ $0 $@ |
| 16790 | |
| 16791 | _CSEOF |
| 16792 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 16793 | echo >&5 |
| 16794 | _ACEOF |
| 16795 | |
| 16796 | # Files that config.status was made for. |
| 16797 | if test -n "$ac_config_files"; then |
| 16798 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 16799 | fi |
| 16800 | |
| 16801 | if test -n "$ac_config_headers"; then |
| 16802 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 16803 | fi |
| 16804 | |
| 16805 | if test -n "$ac_config_links"; then |
| 16806 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 16807 | fi |
| 16808 | |
| 16809 | if test -n "$ac_config_commands"; then |
| 16810 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 16811 | fi |
| 16812 | |
| 16813 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16814 | |
| 16815 | ac_cs_usage="\ |
| 16816 | \`$as_me' instantiates files from templates according to the |
| 16817 | current configuration. |
| 16818 | |
| 16819 | Usage: $0 [OPTIONS] [FILE]... |
| 16820 | |
| 16821 | -h, --help print this help, then exit |
| 16822 | -V, --version print version number, then exit |
| 16823 | -d, --debug don't remove temporary files |
| 16824 | --recheck update $as_me by reconfiguring in the same conditions |
| 16825 | --file=FILE[:TEMPLATE] |
| 16826 | instantiate the configuration file FILE |
| 16827 | --header=FILE[:TEMPLATE] |
| 16828 | instantiate the configuration header FILE |
| 16829 | |
| 16830 | Configuration files: |
| 16831 | $config_files |
| 16832 | |
| 16833 | Configuration headers: |
| 16834 | $config_headers |
| 16835 | |
| 16836 | Report bugs to <bug-autoconf@gnu.org>." |
| 16837 | _ACEOF |
| 16838 | |
| 16839 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16840 | ac_cs_version="\\ |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 16841 | python config.status 2.3 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16842 | configured by $0, generated by GNU Autoconf 2.53, |
| 16843 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 16844 | |
| 16845 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 16846 | Free Software Foundation, Inc. |
| 16847 | This config.status script is free software; the Free Software Foundation |
| 16848 | gives unlimited permission to copy, distribute and modify it." |
| 16849 | srcdir=$srcdir |
| 16850 | INSTALL="$INSTALL" |
| 16851 | _ACEOF |
| 16852 | |
| 16853 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16854 | # If no file are specified by the user, then we need to provide default |
| 16855 | # value. By we need to know if files were specified by the user. |
| 16856 | ac_need_defaults=: |
| 16857 | while test $# != 0 |
| 16858 | do |
| 16859 | case $1 in |
| 16860 | --*=*) |
| 16861 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 16862 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 16863 | shift |
| 16864 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} |
| 16865 | shift |
| 16866 | ;; |
| 16867 | -*);; |
| 16868 | *) # This is not an option, so the user has probably given explicit |
| 16869 | # arguments. |
| 16870 | ac_need_defaults=false;; |
| 16871 | esac |
| 16872 | |
| 16873 | case $1 in |
| 16874 | # Handling of the options. |
| 16875 | _ACEOF |
| 16876 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16877 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 16878 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
| 16879 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; |
| 16880 | _ACEOF |
| 16881 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16882 | --version | --vers* | -V ) |
| 16883 | echo "$ac_cs_version"; exit 0 ;; |
| 16884 | --he | --h) |
| 16885 | # Conflict between --help and --header |
| 16886 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 16887 | Try \`$0 --help' for more information." >&5 |
| 16888 | echo "$as_me: error: ambiguous option: $1 |
| 16889 | Try \`$0 --help' for more information." >&2;} |
| 16890 | { (exit 1); exit 1; }; };; |
| 16891 | --help | --hel | -h ) |
| 16892 | echo "$ac_cs_usage"; exit 0 ;; |
| 16893 | --debug | --d* | -d ) |
| 16894 | debug=: ;; |
| 16895 | --file | --fil | --fi | --f ) |
| 16896 | shift |
| 16897 | CONFIG_FILES="$CONFIG_FILES $1" |
| 16898 | ac_need_defaults=false;; |
| 16899 | --header | --heade | --head | --hea ) |
| 16900 | shift |
| 16901 | CONFIG_HEADERS="$CONFIG_HEADERS $1" |
| 16902 | ac_need_defaults=false;; |
| 16903 | |
| 16904 | # This is an error. |
| 16905 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 16906 | Try \`$0 --help' for more information." >&5 |
| 16907 | echo "$as_me: error: unrecognized option: $1 |
| 16908 | Try \`$0 --help' for more information." >&2;} |
| 16909 | { (exit 1); exit 1; }; } ;; |
| 16910 | |
| 16911 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 16912 | |
| 16913 | esac |
| 16914 | shift |
| 16915 | done |
| 16916 | |
| 16917 | _ACEOF |
| 16918 | |
| 16919 | |
| 16920 | |
| 16921 | |
| 16922 | |
| 16923 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16924 | for ac_config_target in $ac_config_targets |
| 16925 | do |
| 16926 | case "$ac_config_target" in |
| 16927 | # Handling of arguments. |
| 16928 | "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 16929 | "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 16930 | "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 16931 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 16932 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 16933 | { (exit 1); exit 1; }; };; |
| 16934 | esac |
| 16935 | done |
| 16936 | |
| 16937 | # If the user did not use the arguments to specify the items to instantiate, |
| 16938 | # then the envvar interface is used. Set only those that are not. |
| 16939 | # We use the long form for the default assignment because of an extremely |
| 16940 | # bizarre bug on SunOS 4.1.3. |
| 16941 | if $ac_need_defaults; then |
| 16942 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 16943 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 16944 | fi |
| 16945 | |
| 16946 | # Create a temporary directory, and hook for its removal unless debugging. |
| 16947 | $debug || |
| 16948 | { |
| 16949 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 16950 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 16951 | } |
| 16952 | |
| 16953 | # Create a (secure) tmp directory for tmp files. |
| 16954 | : ${TMPDIR=/tmp} |
| 16955 | { |
| 16956 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && |
| 16957 | test -n "$tmp" && test -d "$tmp" |
| 16958 | } || |
| 16959 | { |
| 16960 | tmp=$TMPDIR/cs$$-$RANDOM |
| 16961 | (umask 077 && mkdir $tmp) |
| 16962 | } || |
| 16963 | { |
| 16964 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
| 16965 | { (exit 1); exit 1; } |
| 16966 | } |
| 16967 | |
| 16968 | _ACEOF |
| 16969 | |
| 16970 | cat >>$CONFIG_STATUS <<_ACEOF |
| 16971 | |
| 16972 | # |
| 16973 | # CONFIG_FILES section. |
| 16974 | # |
| 16975 | |
| 16976 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 16977 | # This happens for instance when ./config.status config.h |
| 16978 | if test -n "\$CONFIG_FILES"; then |
| 16979 | # Protect against being on the right side of a sed subst in config.status. |
| 16980 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 16981 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 16982 | s,@SHELL@,$SHELL,;t t |
| 16983 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 16984 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 16985 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 16986 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 16987 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 16988 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 16989 | s,@exec_prefix@,$exec_prefix,;t t |
| 16990 | s,@prefix@,$prefix,;t t |
| 16991 | s,@program_transform_name@,$program_transform_name,;t t |
| 16992 | s,@bindir@,$bindir,;t t |
| 16993 | s,@sbindir@,$sbindir,;t t |
| 16994 | s,@libexecdir@,$libexecdir,;t t |
| 16995 | s,@datadir@,$datadir,;t t |
| 16996 | s,@sysconfdir@,$sysconfdir,;t t |
| 16997 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 16998 | s,@localstatedir@,$localstatedir,;t t |
| 16999 | s,@libdir@,$libdir,;t t |
| 17000 | s,@includedir@,$includedir,;t t |
| 17001 | s,@oldincludedir@,$oldincludedir,;t t |
| 17002 | s,@infodir@,$infodir,;t t |
| 17003 | s,@mandir@,$mandir,;t t |
| 17004 | s,@build_alias@,$build_alias,;t t |
| 17005 | s,@host_alias@,$host_alias,;t t |
| 17006 | s,@target_alias@,$target_alias,;t t |
| 17007 | s,@DEFS@,$DEFS,;t t |
| 17008 | s,@ECHO_C@,$ECHO_C,;t t |
| 17009 | s,@ECHO_N@,$ECHO_N,;t t |
| 17010 | s,@ECHO_T@,$ECHO_T,;t t |
| 17011 | s,@LIBS@,$LIBS,;t t |
| 17012 | s,@VERSION@,$VERSION,;t t |
| 17013 | s,@SOVERSION@,$SOVERSION,;t t |
| 17014 | s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t |
| 17015 | s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t |
| 17016 | s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t |
| 17017 | s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t |
| 17018 | s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t |
| 17019 | s,@MACHDEP@,$MACHDEP,;t t |
| 17020 | s,@SGI_ABI@,$SGI_ABI,;t t |
| 17021 | s,@CXX@,$CXX,;t t |
| 17022 | s,@MAINOBJ@,$MAINOBJ,;t t |
| 17023 | s,@EXEEXT@,$EXEEXT,;t t |
| 17024 | s,@CC@,$CC,;t t |
| 17025 | s,@CFLAGS@,$CFLAGS,;t t |
| 17026 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 17027 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 17028 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 17029 | s,@OBJEXT@,$OBJEXT,;t t |
| 17030 | s,@CPP@,$CPP,;t t |
| 17031 | s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t |
| 17032 | s,@LIBRARY@,$LIBRARY,;t t |
| 17033 | s,@LDLIBRARY@,$LDLIBRARY,;t t |
| 17034 | s,@DLLLIBRARY@,$DLLLIBRARY,;t t |
| 17035 | s,@BLDLIBRARY@,$BLDLIBRARY,;t t |
| 17036 | s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t |
| 17037 | s,@INSTSONAME@,$INSTSONAME,;t t |
| 17038 | s,@RUNSHARED@,$RUNSHARED,;t t |
| 17039 | s,@LINKCC@,$LINKCC,;t t |
| 17040 | s,@RANLIB@,$RANLIB,;t t |
| 17041 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 17042 | s,@AR@,$AR,;t t |
| 17043 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 17044 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 17045 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 17046 | s,@LN@,$LN,;t t |
| 17047 | s,@OPT@,$OPT,;t t |
| 17048 | s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t |
| 17049 | s,@SO@,$SO,;t t |
| 17050 | s,@LDSHARED@,$LDSHARED,;t t |
| 17051 | s,@BLDSHARED@,$BLDSHARED,;t t |
| 17052 | s,@CCSHARED@,$CCSHARED,;t t |
| 17053 | s,@LINKFORSHARED@,$LINKFORSHARED,;t t |
| 17054 | s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 17055 | s,@SHLIBS@,$SHLIBS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17056 | s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t |
| 17057 | s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t |
| 17058 | s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t |
| 17059 | s,@LDLAST@,$LDLAST,;t t |
| 17060 | s,@THREADOBJ@,$THREADOBJ,;t t |
| 17061 | s,@DLINCLDIR@,$DLINCLDIR,;t t |
| 17062 | s,@DYNLOADFILE@,$DYNLOADFILE,;t t |
| 17063 | s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t |
| 17064 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 17065 | s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t |
| 17066 | s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t |
| 17067 | s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t |
| 17068 | s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t |
| 17069 | s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t |
| 17070 | s,@LIBM@,$LIBM,;t t |
| 17071 | s,@LIBC@,$LIBC,;t t |
| 17072 | s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t |
| 17073 | s,@THREADHEADERS@,$THREADHEADERS,;t t |
| 17074 | s,@SRCDIRS@,$SRCDIRS,;t t |
| 17075 | CEOF |
| 17076 | |
| 17077 | _ACEOF |
| 17078 | |
| 17079 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17080 | # Split the substitutions into bite-sized pieces for seds with |
| 17081 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 17082 | ac_max_sed_lines=48 |
| 17083 | ac_sed_frag=1 # Number of current file. |
| 17084 | ac_beg=1 # First line for current file. |
| 17085 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 17086 | ac_more_lines=: |
| 17087 | ac_sed_cmds= |
| 17088 | while $ac_more_lines; do |
| 17089 | if test $ac_beg -gt 1; then |
| 17090 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 17091 | else |
| 17092 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 17093 | fi |
| 17094 | if test ! -s $tmp/subs.frag; then |
| 17095 | ac_more_lines=false |
| 17096 | else |
| 17097 | # The purpose of the label and of the branching condition is to |
| 17098 | # speed up the sed processing (if there are no `@' at all, there |
| 17099 | # is no need to browse any of the substitutions). |
| 17100 | # These are the two extra sed commands mentioned above. |
| 17101 | (echo ':t |
| 17102 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 17103 | if test -z "$ac_sed_cmds"; then |
| 17104 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 17105 | else |
| 17106 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 17107 | fi |
| 17108 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 17109 | ac_beg=$ac_end |
| 17110 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 17111 | fi |
| 17112 | done |
| 17113 | if test -z "$ac_sed_cmds"; then |
| 17114 | ac_sed_cmds=cat |
| 17115 | fi |
| 17116 | fi # test -n "$CONFIG_FILES" |
| 17117 | |
| 17118 | _ACEOF |
| 17119 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17120 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 17121 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 17122 | case $ac_file in |
| 17123 | - | *:- | *:-:* ) # input from stdin |
| 17124 | cat >$tmp/stdin |
| 17125 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17126 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17127 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17128 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17129 | * ) ac_file_in=$ac_file.in ;; |
| 17130 | esac |
| 17131 | |
| 17132 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 17133 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 17134 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17135 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 17136 | X"$ac_file" : 'X\(//\)$' \| \ |
| 17137 | X"$ac_file" : 'X\(/\)' \| \ |
| 17138 | . : '\(.\)' 2>/dev/null || |
| 17139 | echo X"$ac_file" | |
| 17140 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 17141 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 17142 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 17143 | /^X\(\/\).*/{ s//\1/; q; } |
| 17144 | s/.*/./; q'` |
| 17145 | { case "$ac_dir" in |
| 17146 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 17147 | *) as_incr_dir=.;; |
| 17148 | esac |
| 17149 | as_dummy="$ac_dir" |
| 17150 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 17151 | case $as_mkdir_dir in |
| 17152 | # Skip DOS drivespec |
| 17153 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 17154 | *) |
| 17155 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 17156 | test -d "$as_incr_dir" || |
| 17157 | mkdir "$as_incr_dir" || |
| 17158 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 17159 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 17160 | { (exit 1); exit 1; }; } |
| 17161 | ;; |
| 17162 | esac |
| 17163 | done; } |
| 17164 | |
| 17165 | ac_builddir=. |
| 17166 | |
| 17167 | if test "$ac_dir" != .; then |
| 17168 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 17169 | # A "../" for each directory in $ac_dir_suffix. |
| 17170 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 17171 | else |
| 17172 | ac_dir_suffix= ac_top_builddir= |
| 17173 | fi |
| 17174 | |
| 17175 | case $srcdir in |
| 17176 | .) # No --srcdir option. We are building in place. |
| 17177 | ac_srcdir=. |
| 17178 | if test -z "$ac_top_builddir"; then |
| 17179 | ac_top_srcdir=. |
| 17180 | else |
| 17181 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 17182 | fi ;; |
| 17183 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 17184 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 17185 | ac_top_srcdir=$srcdir ;; |
| 17186 | *) # Relative path. |
| 17187 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 17188 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 17189 | esac |
| 17190 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 17191 | # absolute. |
| 17192 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
Martin v. Löwis | e482658 | 2002-10-26 13:33:00 +0000 | [diff] [blame] | 17193 | 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] | 17194 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 17195 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 17196 | |
| 17197 | |
| 17198 | case $INSTALL in |
| 17199 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 17200 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 17201 | esac |
| 17202 | |
| 17203 | if test x"$ac_file" != x-; then |
| 17204 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 17205 | echo "$as_me: creating $ac_file" >&6;} |
| 17206 | rm -f "$ac_file" |
| 17207 | fi |
| 17208 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 17209 | # use $as_me), people would be surprised to read: |
| 17210 | # /* config.h. Generated by config.status. */ |
| 17211 | if test x"$ac_file" = x-; then |
| 17212 | configure_input= |
| 17213 | else |
| 17214 | configure_input="$ac_file. " |
| 17215 | fi |
| 17216 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 17217 | sed 's,.*/,,'` by configure." |
| 17218 | |
| 17219 | # First look for the input files in the build tree, otherwise in the |
| 17220 | # src tree. |
| 17221 | ac_file_inputs=`IFS=: |
| 17222 | for f in $ac_file_in; do |
| 17223 | case $f in |
| 17224 | -) echo $tmp/stdin ;; |
| 17225 | [\\/$]*) |
| 17226 | # Absolute (can't be DOS-style, as IFS=:) |
| 17227 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 17228 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17229 | { (exit 1); exit 1; }; } |
| 17230 | echo $f;; |
| 17231 | *) # Relative |
| 17232 | if test -f "$f"; then |
| 17233 | # Build tree |
| 17234 | echo $f |
| 17235 | elif test -f "$srcdir/$f"; then |
| 17236 | # Source tree |
| 17237 | echo $srcdir/$f |
| 17238 | else |
| 17239 | # /dev/null tree |
| 17240 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 17241 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17242 | { (exit 1); exit 1; }; } |
| 17243 | fi;; |
| 17244 | esac |
| 17245 | done` || { (exit 1); exit 1; } |
| 17246 | _ACEOF |
| 17247 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17248 | sed "$ac_vpsub |
| 17249 | $extrasub |
| 17250 | _ACEOF |
| 17251 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17252 | :t |
| 17253 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 17254 | s,@configure_input@,$configure_input,;t t |
| 17255 | s,@srcdir@,$ac_srcdir,;t t |
| 17256 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 17257 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 17258 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 17259 | s,@builddir@,$ac_builddir,;t t |
| 17260 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 17261 | s,@top_builddir@,$ac_top_builddir,;t t |
| 17262 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 17263 | s,@INSTALL@,$ac_INSTALL,;t t |
| 17264 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 17265 | rm -f $tmp/stdin |
| 17266 | if test x"$ac_file" != x-; then |
| 17267 | mv $tmp/out $ac_file |
| 17268 | else |
| 17269 | cat $tmp/out |
| 17270 | rm -f $tmp/out |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17271 | fi |
| 17272 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17273 | done |
| 17274 | _ACEOF |
| 17275 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17276 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17277 | # |
| 17278 | # CONFIG_HEADER section. |
| 17279 | # |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17280 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17281 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 17282 | # 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] | 17283 | # |
| 17284 | # ac_d sets the value in "#define NAME VALUE" lines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17285 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 17286 | ac_dB='[ ].*$,\1#\2' |
| 17287 | ac_dC=' ' |
| 17288 | ac_dD=',;t' |
| 17289 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 17290 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 17291 | ac_uB='$,\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17292 | ac_uC=' ' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17293 | ac_uD=',;t' |
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 | 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] | 17296 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17297 | case $ac_file in |
| 17298 | - | *:- | *:-:* ) # input from stdin |
| 17299 | cat >$tmp/stdin |
| 17300 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17301 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17302 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17303 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17304 | * ) ac_file_in=$ac_file.in ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17305 | esac |
| 17306 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17307 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 17308 | echo "$as_me: creating $ac_file" >&6;} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17309 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17310 | # First look for the input files in the build tree, otherwise in the |
| 17311 | # src tree. |
| 17312 | ac_file_inputs=`IFS=: |
| 17313 | for f in $ac_file_in; do |
| 17314 | case $f in |
| 17315 | -) echo $tmp/stdin ;; |
| 17316 | [\\/$]*) |
| 17317 | # Absolute (can't be DOS-style, as IFS=:) |
| 17318 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 17319 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17320 | { (exit 1); exit 1; }; } |
| 17321 | echo $f;; |
| 17322 | *) # Relative |
| 17323 | if test -f "$f"; then |
| 17324 | # Build tree |
| 17325 | echo $f |
| 17326 | elif test -f "$srcdir/$f"; then |
| 17327 | # Source tree |
| 17328 | echo $srcdir/$f |
| 17329 | else |
| 17330 | # /dev/null tree |
| 17331 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 17332 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17333 | { (exit 1); exit 1; }; } |
| 17334 | fi;; |
| 17335 | esac |
| 17336 | done` || { (exit 1); exit 1; } |
| 17337 | # Remove the trailing spaces. |
| 17338 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17339 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17340 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17341 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17342 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 17343 | # `conftest.undefs', that substitutes the proper values into |
| 17344 | # config.h.in to produce config.h. The first handles `#define' |
| 17345 | # templates, and the second `#undef' templates. |
| 17346 | # And first: Protect against being on the right side of a sed subst in |
| 17347 | # config.status. Protect against being in an unquoted here document |
| 17348 | # in config.status. |
| 17349 | rm -f conftest.defines conftest.undefs |
| 17350 | # Using a here document instead of a string reduces the quoting nightmare. |
| 17351 | # Putting comments in sed scripts is not portable. |
| 17352 | # |
| 17353 | # `end' is used to avoid that the second main sed command (meant for |
| 17354 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 17355 | # See the Autoconf documentation for `clear'. |
| 17356 | cat >confdef2sed.sed <<\_ACEOF |
| 17357 | s/[\\&,]/\\&/g |
| 17358 | s,[\\$`],\\&,g |
| 17359 | t clear |
| 17360 | : clear |
| 17361 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 17362 | t end |
| 17363 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 17364 | : end |
| 17365 | _ACEOF |
| 17366 | # If some macros were called several times there might be several times |
| 17367 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 17368 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 17369 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 17370 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 17371 | rm -f confdef2sed.sed |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17372 | |
| 17373 | # This sed command replaces #undef with comments. This is necessary, for |
| 17374 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 17375 | # 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] | 17376 | cat >>conftest.undefs <<\_ACEOF |
| 17377 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 17378 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17379 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17380 | # Break up conftest.defines because some shells have a limit on the size |
| 17381 | # of here documents, and old seds have small limits too (100 cmds). |
| 17382 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 17383 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 17384 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 17385 | echo ' :' >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17386 | rm -f conftest.tail |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17387 | while grep . conftest.defines >/dev/null |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17388 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17389 | # Write a limited-size here document to $tmp/defines.sed. |
| 17390 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 17391 | # Speed up: don't consider the non `#define' lines. |
| 17392 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 17393 | # Work around the forget-to-reset-the-flag bug. |
| 17394 | echo 't clr' >>$CONFIG_STATUS |
| 17395 | echo ': clr' >>$CONFIG_STATUS |
| 17396 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17397 | echo 'CEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17398 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 17399 | rm -f $tmp/in |
| 17400 | mv $tmp/out $tmp/in |
| 17401 | ' >>$CONFIG_STATUS |
| 17402 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 17403 | rm -f conftest.defines |
| 17404 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17405 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17406 | rm -f conftest.defines |
| 17407 | echo ' fi # egrep' >>$CONFIG_STATUS |
| 17408 | echo >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17409 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17410 | # Break up conftest.undefs because some shells have a limit on the size |
| 17411 | # of here documents, and old seds have small limits too (100 cmds). |
| 17412 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 17413 | rm -f conftest.tail |
| 17414 | while grep . conftest.undefs >/dev/null |
| 17415 | do |
| 17416 | # Write a limited-size here document to $tmp/undefs.sed. |
| 17417 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 17418 | # Speed up: don't consider the non `#undef' |
| 17419 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 17420 | # Work around the forget-to-reset-the-flag bug. |
| 17421 | echo 't clr' >>$CONFIG_STATUS |
| 17422 | echo ': clr' >>$CONFIG_STATUS |
| 17423 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 17424 | echo 'CEOF |
| 17425 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 17426 | rm -f $tmp/in |
| 17427 | mv $tmp/out $tmp/in |
| 17428 | ' >>$CONFIG_STATUS |
| 17429 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 17430 | rm -f conftest.undefs |
| 17431 | mv conftest.tail conftest.undefs |
| 17432 | done |
| 17433 | rm -f conftest.undefs |
| 17434 | |
| 17435 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17436 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 17437 | # use $as_me), people would be surprised to read: |
| 17438 | # /* config.h. Generated by config.status. */ |
| 17439 | if test x"$ac_file" = x-; then |
| 17440 | echo "/* Generated by configure. */" >$tmp/config.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17441 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17442 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17443 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17444 | cat $tmp/in >>$tmp/config.h |
| 17445 | rm -f $tmp/in |
| 17446 | if test x"$ac_file" != x-; then |
| 17447 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then |
| 17448 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 17449 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 17450 | else |
| 17451 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 17452 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17453 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 17454 | X"$ac_file" : 'X\(//\)$' \| \ |
| 17455 | X"$ac_file" : 'X\(/\)' \| \ |
| 17456 | . : '\(.\)' 2>/dev/null || |
| 17457 | echo X"$ac_file" | |
| 17458 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 17459 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 17460 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 17461 | /^X\(\/\).*/{ s//\1/; q; } |
| 17462 | s/.*/./; q'` |
| 17463 | { case "$ac_dir" in |
| 17464 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 17465 | *) as_incr_dir=.;; |
| 17466 | esac |
| 17467 | as_dummy="$ac_dir" |
| 17468 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 17469 | case $as_mkdir_dir in |
| 17470 | # Skip DOS drivespec |
| 17471 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 17472 | *) |
| 17473 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 17474 | test -d "$as_incr_dir" || |
| 17475 | mkdir "$as_incr_dir" || |
| 17476 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 17477 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 17478 | { (exit 1); exit 1; }; } |
| 17479 | ;; |
| 17480 | esac |
| 17481 | done; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17482 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17483 | rm -f $ac_file |
| 17484 | mv $tmp/config.h $ac_file |
| 17485 | fi |
| 17486 | else |
| 17487 | cat $tmp/config.h |
| 17488 | rm -f $tmp/config.h |
| 17489 | fi |
| 17490 | done |
| 17491 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17492 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17493 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17494 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17495 | { (exit 0); exit 0; } |
| 17496 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17497 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17498 | ac_clean_files=$ac_clean_files_save |
| 17499 | |
| 17500 | |
| 17501 | # configure is writing to config.log, and then calls config.status. |
| 17502 | # config.status does its own redirection, appending to config.log. |
| 17503 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 17504 | # by configure, so config.status won't be able to write to it; its |
| 17505 | # output is simply discarded. So we exec the FD to /dev/null, |
| 17506 | # effectively closing config.log, so it can be properly (re)opened and |
| 17507 | # appended to by config.status. When coming back to configure, we |
| 17508 | # need to make the FD available again. |
| 17509 | if test "$no_create" != yes; then |
| 17510 | ac_cs_success=: |
| 17511 | exec 5>/dev/null |
| 17512 | $SHELL $CONFIG_STATUS || ac_cs_success=false |
| 17513 | exec 5>>config.log |
| 17514 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 17515 | # would make configure fail if this is the last instruction. |
| 17516 | $ac_cs_success || { (exit 1); exit 1; } |
| 17517 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17518 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17519 | |
| 17520 | echo "creating Setup" |
| 17521 | if test ! -f Modules/Setup |
| 17522 | then |
| 17523 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 17524 | fi |
| 17525 | |
| 17526 | echo "creating Setup.local" |
| 17527 | if test ! -f Modules/Setup.local |
| 17528 | then |
| 17529 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 17530 | fi |
| 17531 | |
| 17532 | echo "creating Makefile" |
| 17533 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 17534 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 17535 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 17536 | mv config.c Modules |