Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 2 | # From configure.in Revision: 1.365 . |
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 | e327120 | 2002-11-07 07:42:30 +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 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1257 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1258 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1259 | |
Martin v. Löwis | e482658 | 2002-10-26 13:33:00 +0000 | [diff] [blame] | 1260 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires definition |
| 1261 | # of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else several APIs |
| 1262 | # are not declared. Since this is also needed in some cases for HP-UX, |
| 1263 | # we define it globally. |
| 1264 | |
| 1265 | cat >>confdefs.h <<\_ACEOF |
| 1266 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 1267 | _ACEOF |
| 1268 | |
| 1269 | |
| 1270 | cat >>confdefs.h <<\_ACEOF |
| 1271 | #define _POSIX_C_SOURCE 199506L |
| 1272 | _ACEOF |
| 1273 | |
| 1274 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1275 | # Arguments passed to configure. |
| 1276 | |
| 1277 | CONFIG_ARGS="$ac_configure_args" |
| 1278 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1279 | # Check whether --enable-framework or --disable-framework was given. |
| 1280 | if test "${enable_framework+set}" = set; then |
| 1281 | enableval="$enable_framework" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1282 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1283 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1284 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1285 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1286 | esac |
| 1287 | case $enableval in |
| 1288 | no) |
| 1289 | PYTHONFRAMEWORK= |
| 1290 | PYTHONFRAMEWORKDIR=no-framework |
| 1291 | PYTHONFRAMEWORKPREFIX= |
| 1292 | PYTHONFRAMEWORKINSTALLDIR= |
| 1293 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1294 | ;; |
| 1295 | *) |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1296 | PYTHONFRAMEWORK=Python |
| 1297 | PYTHONFRAMEWORKDIR=Python.framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1298 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1299 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
| 1300 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1301 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1302 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1303 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1304 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1305 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1306 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1307 | PYTHONFRAMEWORKPREFIX= |
| 1308 | PYTHONFRAMEWORKINSTALLDIR= |
| 1309 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1310 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1311 | fi; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1312 | |
| 1313 | |
| 1314 | |
| 1315 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1316 | |
| 1317 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1318 | ## AC_HELP_STRING(--with-dyld, |
| 1319 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1320 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1321 | # Set name for machine-dependent library files |
| 1322 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1323 | echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 1324 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1325 | if test -z "$MACHDEP" |
| 1326 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1327 | ac_sys_system=`uname -s` |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 1328 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \ |
| 1329 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1330 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1331 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1332 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1333 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1334 | ac_md_system=`echo $ac_sys_system | |
| 1335 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 1336 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 1337 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1338 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1339 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 1340 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 1341 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 1342 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 1343 | atheos*) MACHDEP="atheos";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1344 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1345 | esac |
| 1346 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1347 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1348 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 1349 | # disable features if it is defined, without any means to access these |
| 1350 | # features as extensions. For these systems, we skip the definition of |
| 1351 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 1352 | # some feature, make sure there is no alternative way to access this |
| 1353 | # feature. Also, when using wildcards, make sure you have verified the |
| 1354 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 1355 | # wildcard, and that the wildcard does not include future systems |
| 1356 | # (which may remove their limitations). |
| 1357 | case $ac_sys_system/$ac_sys_release in |
| 1358 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 1359 | # even though select is a POSIX function. Reported by J. Ribbens. |
| 1360 | OpenBSD/2.* | OpenBSD/3.[012]) |
| 1361 | define_xopen_source=no;; |
| 1362 | esac |
| 1363 | |
| 1364 | if test $define_xopen_source = yes |
| 1365 | then |
| 1366 | cat >>confdefs.h <<\_ACEOF |
| 1367 | #define _XOPEN_SOURCE 500 |
| 1368 | _ACEOF |
| 1369 | |
| 1370 | fi |
| 1371 | |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1372 | # |
| 1373 | # SGI compilers allow the specification of the both the ABI and the |
| 1374 | # ISA on the command line. Depending on the values of these switches, |
| 1375 | # different and often incompatable code will be generated. |
| 1376 | # |
| 1377 | # The SGI_ABI variable can be used to modify the CC and LDFLAGS and |
| 1378 | # thus supply support for various ABI/ISA combinations. The MACHDEP |
| 1379 | # variable is also adjusted. |
| 1380 | # |
| 1381 | |
| 1382 | if test ! -z "$SGI_ABI" |
| 1383 | then |
| 1384 | CC="cc $SGI_ABI" |
| 1385 | LDFLAGS="$SGI_ABI $LDFLAGS" |
| 1386 | MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` |
| 1387 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1388 | echo "$as_me:$LINENO: result: $MACHDEP" >&5 |
| 1389 | echo "${ECHO_T}$MACHDEP" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1390 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1391 | # checks for alternative programs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1392 | echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 1393 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6 |
| 1394 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1395 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1396 | if test "${with_gcc+set}" = set; then |
| 1397 | withval="$with_gcc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1398 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1399 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1400 | no) CC=cc |
| 1401 | without_gcc=yes;; |
| 1402 | yes) CC=gcc |
| 1403 | without_gcc=no;; |
| 1404 | *) CC=$withval |
| 1405 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1406 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1407 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1408 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1409 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1410 | AIX*) CC=cc_r |
| 1411 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1412 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1413 | case $BE_HOST_CPU in |
| 1414 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1415 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1416 | without_gcc=yes |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 1417 | OPT="-O -export pragma" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1418 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1419 | ;; |
| 1420 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1421 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1422 | without_gcc=no |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1423 | OPT=-O |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1424 | ;; |
| 1425 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1426 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 1427 | echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
| 1428 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1429 | ;; |
| 1430 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1431 | AR="\$(srcdir)/Modules/ar_beos" |
| 1432 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1433 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1434 | Monterey*) |
| 1435 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1436 | without_gcc=;; |
| 1437 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1438 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1439 | fi; |
| 1440 | echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 1441 | echo "${ECHO_T}$without_gcc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1442 | |
| 1443 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1444 | |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1445 | MAINOBJ=python.o |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1446 | echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5 |
| 1447 | echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6 |
| 1448 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1449 | # Check whether --with-cxx or --without-cxx was given. |
| 1450 | if test "${with_cxx+set}" = set; then |
| 1451 | withval="$with_cxx" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1452 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1453 | check_cxx=no |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1454 | case $withval in |
| 1455 | no) CXX= |
| 1456 | with_cxx=no;; |
| 1457 | *) CXX=$withval |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1458 | MAINOBJ=ccpython.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1459 | with_cxx=$withval;; |
| 1460 | esac |
| 1461 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1462 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1463 | with_cxx=no |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1464 | check_cxx=yes |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1465 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1466 | fi; |
| 1467 | echo "$as_me:$LINENO: result: $with_cxx" >&5 |
| 1468 | echo "${ECHO_T}$with_cxx" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1469 | |
| 1470 | if test "$with_cxx" = "yes" |
| 1471 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1472 | { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5 |
| 1473 | echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;} |
| 1474 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1475 | fi |
| 1476 | |
| 1477 | |
| 1478 | |
| 1479 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1480 | if test "$check_cxx" = "yes" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1481 | then |
| 1482 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 1483 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1484 | # 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] | 1485 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1486 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1487 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1488 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 1489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1490 | else |
| 1491 | if test -n "$CXX"; then |
| 1492 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 1493 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1494 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1495 | for as_dir in $PATH |
| 1496 | do |
| 1497 | IFS=$as_save_IFS |
| 1498 | test -z "$as_dir" && as_dir=. |
| 1499 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1500 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1501 | ac_cv_prog_CXX="$ac_prog" |
| 1502 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1503 | break 2 |
| 1504 | fi |
| 1505 | done |
| 1506 | done |
| 1507 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1508 | fi |
| 1509 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1510 | CXX=$ac_cv_prog_CXX |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1511 | if test -n "$CXX"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1512 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 1513 | echo "${ECHO_T}$CXX" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1514 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1515 | echo "$as_me:$LINENO: result: no" >&5 |
| 1516 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1517 | fi |
| 1518 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1519 | test -n "$CXX" && break |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1520 | done |
| 1521 | test -n "$CXX" || CXX="notfound" |
| 1522 | |
| 1523 | if test "$CXX" = "notfound" |
| 1524 | then |
| 1525 | CXX= |
| 1526 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1527 | ac_ext=cc |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1528 | ac_cpp='$CXXCPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1529 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1530 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1531 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 1532 | cat >conftest.$ac_ext <<_ACEOF |
| 1533 | #line $LINENO "configure" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1534 | #include "confdefs.h" |
| 1535 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1536 | #ifdef F77_DUMMY_MAIN |
| 1537 | # ifdef __cplusplus |
| 1538 | extern "C" |
| 1539 | # endif |
| 1540 | int F77_DUMMY_MAIN() { return 1; } |
| 1541 | #endif |
| 1542 | int |
| 1543 | main () |
| 1544 | { |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1545 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1546 | ; |
| 1547 | return 0; |
| 1548 | } |
| 1549 | _ACEOF |
| 1550 | ac_clean_files_save=$ac_clean_files |
| 1551 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 1552 | # Try to create an executable without -o first, disregard a.out. |
| 1553 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1554 | # of exeext. |
| 1555 | echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 |
| 1556 | echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 |
| 1557 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1558 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1559 | (eval $ac_link_default) 2>&5 |
| 1560 | ac_status=$? |
| 1561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1562 | (exit $ac_status); }; then |
| 1563 | # Find the output, starting from the most likely. This scheme is |
| 1564 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1565 | # resort. |
| 1566 | |
| 1567 | # Be careful to initialize this variable, since it used to be cached. |
| 1568 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1569 | ac_cv_exeext= |
| 1570 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; |
| 1571 | ls a.out conftest 2>/dev/null; |
| 1572 | ls a.* conftest.* 2>/dev/null`; do |
| 1573 | case $ac_file in |
| 1574 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
| 1575 | a.out ) # We found the default executable, but exeext='' is most |
| 1576 | # certainly right. |
| 1577 | break;; |
| 1578 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1579 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 1580 | export ac_cv_exeext |
| 1581 | break;; |
| 1582 | * ) break;; |
| 1583 | esac |
| 1584 | done |
| 1585 | else |
| 1586 | echo "$as_me: failed program was:" >&5 |
| 1587 | cat conftest.$ac_ext >&5 |
| 1588 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables" >&5 |
| 1589 | echo "$as_me: error: C++ compiler cannot create executables" >&2;} |
| 1590 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1591 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1592 | |
| 1593 | ac_exeext=$ac_cv_exeext |
| 1594 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1595 | echo "${ECHO_T}$ac_file" >&6 |
| 1596 | |
| 1597 | # Check the compiler produces executables we can run. If not, either |
| 1598 | # the compiler is broken, or we cross compile. |
| 1599 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
| 1600 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
| 1601 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1602 | # If not cross compiling, check that we can run a simple program. |
| 1603 | if test "$cross_compiling" != yes; then |
| 1604 | if { ac_try='./$ac_file' |
| 1605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1606 | (eval $ac_try) 2>&5 |
| 1607 | ac_status=$? |
| 1608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1609 | (exit $ac_status); }; }; then |
| 1610 | cross_compiling=no |
| 1611 | else |
| 1612 | if test "$cross_compiling" = maybe; then |
| 1613 | cross_compiling=yes |
| 1614 | else |
| 1615 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
| 1616 | If you meant to cross compile, use \`--host'." >&5 |
| 1617 | echo "$as_me: error: cannot run C++ compiled programs. |
| 1618 | If you meant to cross compile, use \`--host'." >&2;} |
| 1619 | { (exit 1); exit 1; }; } |
| 1620 | fi |
| 1621 | fi |
| 1622 | fi |
| 1623 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1624 | echo "${ECHO_T}yes" >&6 |
| 1625 | |
| 1626 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 1627 | ac_clean_files=$ac_clean_files_save |
| 1628 | # Check the compiler produces executables we can run. If not, either |
| 1629 | # the compiler is broken, or we cross compile. |
| 1630 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1631 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1632 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1633 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1634 | |
| 1635 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1636 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1637 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1638 | (eval $ac_link) 2>&5 |
| 1639 | ac_status=$? |
| 1640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1641 | (exit $ac_status); }; then |
| 1642 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1643 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1644 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1645 | # `rm'. |
| 1646 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
| 1647 | case $ac_file in |
| 1648 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 1649 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1650 | export ac_cv_exeext |
| 1651 | break;; |
| 1652 | * ) break;; |
| 1653 | esac |
| 1654 | done |
| 1655 | else |
| 1656 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 1657 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
| 1658 | { (exit 1); exit 1; }; } |
| 1659 | fi |
| 1660 | |
| 1661 | rm -f conftest$ac_cv_exeext |
| 1662 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1663 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1664 | |
| 1665 | rm -f conftest.$ac_ext |
| 1666 | EXEEXT=$ac_cv_exeext |
| 1667 | ac_exeext=$EXEEXT |
| 1668 | |
| 1669 | ac_ext=c |
| 1670 | ac_cpp='$CPP $CPPFLAGS' |
| 1671 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1672 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1673 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1674 | |
| 1675 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1676 | |
| 1677 | fi |
| 1678 | fi |
| 1679 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1680 | # If the user switches compilers, we can't believe the cache |
| 1681 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 1682 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1683 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
| 1684 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
| 1685 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
| 1686 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 1687 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1688 | fi |
| 1689 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1690 | ac_ext=c |
| 1691 | ac_cpp='$CPP $CPPFLAGS' |
| 1692 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1693 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1694 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1695 | if test -n "$ac_tool_prefix"; then |
| 1696 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1697 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1698 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1699 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1700 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1702 | else |
| 1703 | if test -n "$CC"; then |
| 1704 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1705 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1707 | for as_dir in $PATH |
| 1708 | do |
| 1709 | IFS=$as_save_IFS |
| 1710 | test -z "$as_dir" && as_dir=. |
| 1711 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1712 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1713 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1714 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1715 | break 2 |
| 1716 | fi |
| 1717 | done |
| 1718 | done |
| 1719 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1720 | fi |
| 1721 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1722 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1723 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1724 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1725 | echo "${ECHO_T}$CC" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1726 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1727 | echo "$as_me:$LINENO: result: no" >&5 |
| 1728 | echo "${ECHO_T}no" >&6 |
| 1729 | fi |
| 1730 | |
| 1731 | fi |
| 1732 | if test -z "$ac_cv_prog_CC"; then |
| 1733 | ac_ct_CC=$CC |
| 1734 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1735 | set dummy gcc; ac_word=$2 |
| 1736 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1737 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1738 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1739 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1740 | else |
| 1741 | if test -n "$ac_ct_CC"; then |
| 1742 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1743 | else |
| 1744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1745 | for as_dir in $PATH |
| 1746 | do |
| 1747 | IFS=$as_save_IFS |
| 1748 | test -z "$as_dir" && as_dir=. |
| 1749 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1750 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1751 | ac_cv_prog_ac_ct_CC="gcc" |
| 1752 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1753 | break 2 |
| 1754 | fi |
| 1755 | done |
| 1756 | done |
| 1757 | |
| 1758 | fi |
| 1759 | fi |
| 1760 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1761 | if test -n "$ac_ct_CC"; then |
| 1762 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1763 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1764 | else |
| 1765 | echo "$as_me:$LINENO: result: no" >&5 |
| 1766 | echo "${ECHO_T}no" >&6 |
| 1767 | fi |
| 1768 | |
| 1769 | CC=$ac_ct_CC |
| 1770 | else |
| 1771 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1772 | fi |
| 1773 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1774 | if test -z "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1775 | if test -n "$ac_tool_prefix"; then |
| 1776 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1777 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1778 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1779 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1780 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1782 | else |
| 1783 | if test -n "$CC"; then |
| 1784 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1785 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1787 | for as_dir in $PATH |
| 1788 | do |
| 1789 | IFS=$as_save_IFS |
| 1790 | test -z "$as_dir" && as_dir=. |
| 1791 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1792 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1793 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1794 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1795 | break 2 |
| 1796 | fi |
| 1797 | done |
| 1798 | done |
| 1799 | |
| 1800 | fi |
| 1801 | fi |
| 1802 | CC=$ac_cv_prog_CC |
| 1803 | if test -n "$CC"; then |
| 1804 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1805 | echo "${ECHO_T}$CC" >&6 |
| 1806 | else |
| 1807 | echo "$as_me:$LINENO: result: no" >&5 |
| 1808 | echo "${ECHO_T}no" >&6 |
| 1809 | fi |
| 1810 | |
| 1811 | fi |
| 1812 | if test -z "$ac_cv_prog_CC"; then |
| 1813 | ac_ct_CC=$CC |
| 1814 | # Extract the first word of "cc", so it can be a program name with args. |
| 1815 | set dummy cc; ac_word=$2 |
| 1816 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1817 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1818 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1819 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1820 | else |
| 1821 | if test -n "$ac_ct_CC"; then |
| 1822 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1823 | else |
| 1824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1825 | for as_dir in $PATH |
| 1826 | do |
| 1827 | IFS=$as_save_IFS |
| 1828 | test -z "$as_dir" && as_dir=. |
| 1829 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1830 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1831 | ac_cv_prog_ac_ct_CC="cc" |
| 1832 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1833 | break 2 |
| 1834 | fi |
| 1835 | done |
| 1836 | done |
| 1837 | |
| 1838 | fi |
| 1839 | fi |
| 1840 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1841 | if test -n "$ac_ct_CC"; then |
| 1842 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1843 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1844 | else |
| 1845 | echo "$as_me:$LINENO: result: no" >&5 |
| 1846 | echo "${ECHO_T}no" >&6 |
| 1847 | fi |
| 1848 | |
| 1849 | CC=$ac_ct_CC |
| 1850 | else |
| 1851 | CC="$ac_cv_prog_CC" |
| 1852 | fi |
| 1853 | |
| 1854 | fi |
| 1855 | if test -z "$CC"; then |
| 1856 | # Extract the first word of "cc", so it can be a program name with args. |
| 1857 | set dummy cc; ac_word=$2 |
| 1858 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1859 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1860 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1861 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1862 | else |
| 1863 | if test -n "$CC"; then |
| 1864 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1865 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1866 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1868 | for as_dir in $PATH |
| 1869 | do |
| 1870 | IFS=$as_save_IFS |
| 1871 | test -z "$as_dir" && as_dir=. |
| 1872 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1873 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1874 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1875 | ac_prog_rejected=yes |
| 1876 | continue |
| 1877 | fi |
| 1878 | ac_cv_prog_CC="cc" |
| 1879 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1880 | break 2 |
| 1881 | fi |
| 1882 | done |
| 1883 | done |
| 1884 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1885 | if test $ac_prog_rejected = yes; then |
| 1886 | # We found a bogon in the path, so make sure we never use it. |
| 1887 | set dummy $ac_cv_prog_CC |
| 1888 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1889 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1890 | # We chose a different compiler from the bogus one. |
| 1891 | # However, it has the same basename, so the bogon will be chosen |
| 1892 | # first if we set CC to just the basename; use the full file name. |
| 1893 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1894 | set dummy "$as_dir/$ac_word" ${1+"$@"} |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1895 | shift |
| 1896 | ac_cv_prog_CC="$@" |
| 1897 | fi |
| 1898 | fi |
| 1899 | fi |
| 1900 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1901 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1902 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1903 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1904 | echo "${ECHO_T}$CC" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1905 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1906 | echo "$as_me:$LINENO: result: no" >&5 |
| 1907 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1908 | fi |
| 1909 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1910 | fi |
| 1911 | if test -z "$CC"; then |
| 1912 | if test -n "$ac_tool_prefix"; then |
| 1913 | for ac_prog in cl |
| 1914 | do |
| 1915 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1916 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1917 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1918 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1919 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1921 | else |
| 1922 | if test -n "$CC"; then |
| 1923 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1924 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1925 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1926 | for as_dir in $PATH |
| 1927 | do |
| 1928 | IFS=$as_save_IFS |
| 1929 | test -z "$as_dir" && as_dir=. |
| 1930 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1931 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1932 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1933 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1934 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1935 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1936 | done |
| 1937 | done |
| 1938 | |
| 1939 | fi |
| 1940 | fi |
| 1941 | CC=$ac_cv_prog_CC |
| 1942 | if test -n "$CC"; then |
| 1943 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1944 | echo "${ECHO_T}$CC" >&6 |
| 1945 | else |
| 1946 | echo "$as_me:$LINENO: result: no" >&5 |
| 1947 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1948 | fi |
| 1949 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1950 | test -n "$CC" && break |
| 1951 | done |
| 1952 | fi |
| 1953 | if test -z "$CC"; then |
| 1954 | ac_ct_CC=$CC |
| 1955 | for ac_prog in cl |
| 1956 | do |
| 1957 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1958 | set dummy $ac_prog; ac_word=$2 |
| 1959 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1960 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1961 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1962 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1963 | else |
| 1964 | if test -n "$ac_ct_CC"; then |
| 1965 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1966 | else |
| 1967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1968 | for as_dir in $PATH |
| 1969 | do |
| 1970 | IFS=$as_save_IFS |
| 1971 | test -z "$as_dir" && as_dir=. |
| 1972 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1973 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1974 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1975 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1976 | break 2 |
| 1977 | fi |
| 1978 | done |
| 1979 | done |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1980 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1981 | fi |
| 1982 | fi |
| 1983 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1984 | if test -n "$ac_ct_CC"; then |
| 1985 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1986 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1987 | else |
| 1988 | echo "$as_me:$LINENO: result: no" >&5 |
| 1989 | echo "${ECHO_T}no" >&6 |
| 1990 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1991 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1992 | test -n "$ac_ct_CC" && break |
| 1993 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1994 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1995 | CC=$ac_ct_CC |
| 1996 | fi |
| 1997 | |
| 1998 | fi |
| 1999 | |
| 2000 | |
| 2001 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 |
| 2002 | echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} |
| 2003 | { (exit 1); exit 1; }; } |
| 2004 | |
| 2005 | # Provide some information about the compiler. |
| 2006 | echo "$as_me:$LINENO:" \ |
| 2007 | "checking for C compiler version" >&5 |
| 2008 | ac_compiler=`set X $ac_compile; echo $2` |
| 2009 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2010 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2011 | ac_status=$? |
| 2012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2013 | (exit $ac_status); } |
| 2014 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2015 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2016 | ac_status=$? |
| 2017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2018 | (exit $ac_status); } |
| 2019 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2020 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2021 | ac_status=$? |
| 2022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2023 | (exit $ac_status); } |
| 2024 | |
| 2025 | cat >conftest.$ac_ext <<_ACEOF |
| 2026 | #line $LINENO "configure" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2027 | #include "confdefs.h" |
| 2028 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2029 | #ifdef F77_DUMMY_MAIN |
| 2030 | # ifdef __cplusplus |
| 2031 | extern "C" |
| 2032 | # endif |
| 2033 | int F77_DUMMY_MAIN() { return 1; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2034 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2035 | int |
| 2036 | main () |
| 2037 | { |
| 2038 | |
| 2039 | ; |
| 2040 | return 0; |
| 2041 | } |
| 2042 | _ACEOF |
| 2043 | ac_clean_files_save=$ac_clean_files |
| 2044 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 2045 | # Try to create an executable without -o first, disregard a.out. |
| 2046 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2047 | # of exeext. |
| 2048 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
| 2049 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 2050 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2051 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2052 | (eval $ac_link_default) 2>&5 |
| 2053 | ac_status=$? |
| 2054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2055 | (exit $ac_status); }; then |
| 2056 | # Find the output, starting from the most likely. This scheme is |
| 2057 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2058 | # resort. |
| 2059 | |
| 2060 | # Be careful to initialize this variable, since it used to be cached. |
| 2061 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2062 | ac_cv_exeext= |
| 2063 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; |
| 2064 | ls a.out conftest 2>/dev/null; |
| 2065 | ls a.* conftest.* 2>/dev/null`; do |
| 2066 | case $ac_file in |
| 2067 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
| 2068 | a.out ) # We found the default executable, but exeext='' is most |
| 2069 | # certainly right. |
| 2070 | break;; |
| 2071 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2072 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 2073 | export ac_cv_exeext |
| 2074 | break;; |
| 2075 | * ) break;; |
| 2076 | esac |
| 2077 | done |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2078 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2079 | echo "$as_me: failed program was:" >&5 |
| 2080 | cat conftest.$ac_ext >&5 |
| 2081 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 |
| 2082 | echo "$as_me: error: C compiler cannot create executables" >&2;} |
| 2083 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2084 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2085 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2086 | ac_exeext=$ac_cv_exeext |
| 2087 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2088 | echo "${ECHO_T}$ac_file" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2089 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2090 | # Check the compiler produces executables we can run. If not, either |
| 2091 | # the compiler is broken, or we cross compile. |
| 2092 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2093 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2094 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2095 | # If not cross compiling, check that we can run a simple program. |
| 2096 | if test "$cross_compiling" != yes; then |
| 2097 | if { ac_try='./$ac_file' |
| 2098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2099 | (eval $ac_try) 2>&5 |
| 2100 | ac_status=$? |
| 2101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2102 | (exit $ac_status); }; }; then |
| 2103 | cross_compiling=no |
| 2104 | else |
| 2105 | if test "$cross_compiling" = maybe; then |
| 2106 | cross_compiling=yes |
| 2107 | else |
| 2108 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2109 | If you meant to cross compile, use \`--host'." >&5 |
| 2110 | echo "$as_me: error: cannot run C compiled programs. |
| 2111 | If you meant to cross compile, use \`--host'." >&2;} |
| 2112 | { (exit 1); exit 1; }; } |
| 2113 | fi |
| 2114 | fi |
| 2115 | fi |
| 2116 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2117 | echo "${ECHO_T}yes" >&6 |
| 2118 | |
| 2119 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 2120 | ac_clean_files=$ac_clean_files_save |
| 2121 | # Check the compiler produces executables we can run. If not, either |
| 2122 | # the compiler is broken, or we cross compile. |
| 2123 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2124 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2125 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2126 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2127 | |
| 2128 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2129 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2130 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2131 | (eval $ac_link) 2>&5 |
| 2132 | ac_status=$? |
| 2133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2134 | (exit $ac_status); }; then |
| 2135 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2136 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2137 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2138 | # `rm'. |
| 2139 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
| 2140 | case $ac_file in |
| 2141 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 2142 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2143 | export ac_cv_exeext |
| 2144 | break;; |
| 2145 | * ) break;; |
| 2146 | esac |
| 2147 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2148 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2149 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 2150 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
| 2151 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2152 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2153 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2154 | rm -f conftest$ac_cv_exeext |
| 2155 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2156 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2157 | |
| 2158 | rm -f conftest.$ac_ext |
| 2159 | EXEEXT=$ac_cv_exeext |
| 2160 | ac_exeext=$EXEEXT |
| 2161 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2162 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2163 | if test "${ac_cv_objext+set}" = set; then |
| 2164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2165 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2166 | cat >conftest.$ac_ext <<_ACEOF |
| 2167 | #line $LINENO "configure" |
| 2168 | #include "confdefs.h" |
| 2169 | |
| 2170 | #ifdef F77_DUMMY_MAIN |
| 2171 | # ifdef __cplusplus |
| 2172 | extern "C" |
| 2173 | # endif |
| 2174 | int F77_DUMMY_MAIN() { return 1; } |
| 2175 | #endif |
| 2176 | int |
| 2177 | main () |
| 2178 | { |
| 2179 | |
| 2180 | ; |
| 2181 | return 0; |
| 2182 | } |
| 2183 | _ACEOF |
| 2184 | rm -f conftest.o conftest.obj |
| 2185 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2186 | (eval $ac_compile) 2>&5 |
| 2187 | ac_status=$? |
| 2188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2189 | (exit $ac_status); }; then |
| 2190 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2191 | case $ac_file in |
| 2192 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 2193 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2194 | break;; |
| 2195 | esac |
| 2196 | done |
| 2197 | else |
| 2198 | echo "$as_me: failed program was:" >&5 |
| 2199 | cat conftest.$ac_ext >&5 |
| 2200 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 |
| 2201 | echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} |
| 2202 | { (exit 1); exit 1; }; } |
| 2203 | fi |
| 2204 | |
| 2205 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2206 | fi |
| 2207 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2208 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2209 | OBJEXT=$ac_cv_objext |
| 2210 | ac_objext=$OBJEXT |
| 2211 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2212 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2213 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2214 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2215 | else |
| 2216 | cat >conftest.$ac_ext <<_ACEOF |
| 2217 | #line $LINENO "configure" |
| 2218 | #include "confdefs.h" |
| 2219 | |
| 2220 | #ifdef F77_DUMMY_MAIN |
| 2221 | # ifdef __cplusplus |
| 2222 | extern "C" |
| 2223 | # endif |
| 2224 | int F77_DUMMY_MAIN() { return 1; } |
| 2225 | #endif |
| 2226 | int |
| 2227 | main () |
| 2228 | { |
| 2229 | #ifndef __GNUC__ |
| 2230 | choke me |
| 2231 | #endif |
| 2232 | |
| 2233 | ; |
| 2234 | return 0; |
| 2235 | } |
| 2236 | _ACEOF |
| 2237 | rm -f conftest.$ac_objext |
| 2238 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2239 | (eval $ac_compile) 2>&5 |
| 2240 | ac_status=$? |
| 2241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2242 | (exit $ac_status); } && |
| 2243 | { ac_try='test -s conftest.$ac_objext' |
| 2244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2245 | (eval $ac_try) 2>&5 |
| 2246 | ac_status=$? |
| 2247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2248 | (exit $ac_status); }; }; then |
| 2249 | ac_compiler_gnu=yes |
| 2250 | else |
| 2251 | echo "$as_me: failed program was:" >&5 |
| 2252 | cat conftest.$ac_ext >&5 |
| 2253 | ac_compiler_gnu=no |
| 2254 | fi |
| 2255 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2256 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2257 | |
| 2258 | fi |
| 2259 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2260 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2261 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2262 | ac_test_CFLAGS=${CFLAGS+set} |
| 2263 | ac_save_CFLAGS=$CFLAGS |
| 2264 | CFLAGS="-g" |
| 2265 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2266 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2267 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2269 | else |
| 2270 | cat >conftest.$ac_ext <<_ACEOF |
| 2271 | #line $LINENO "configure" |
| 2272 | #include "confdefs.h" |
| 2273 | |
| 2274 | #ifdef F77_DUMMY_MAIN |
| 2275 | # ifdef __cplusplus |
| 2276 | extern "C" |
| 2277 | # endif |
| 2278 | int F77_DUMMY_MAIN() { return 1; } |
| 2279 | #endif |
| 2280 | int |
| 2281 | main () |
| 2282 | { |
| 2283 | |
| 2284 | ; |
| 2285 | return 0; |
| 2286 | } |
| 2287 | _ACEOF |
| 2288 | rm -f conftest.$ac_objext |
| 2289 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2290 | (eval $ac_compile) 2>&5 |
| 2291 | ac_status=$? |
| 2292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2293 | (exit $ac_status); } && |
| 2294 | { ac_try='test -s conftest.$ac_objext' |
| 2295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2296 | (eval $ac_try) 2>&5 |
| 2297 | ac_status=$? |
| 2298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2299 | (exit $ac_status); }; }; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2300 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2301 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2302 | echo "$as_me: failed program was:" >&5 |
| 2303 | cat conftest.$ac_ext >&5 |
| 2304 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2305 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2306 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2307 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2308 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2309 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2310 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2311 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2312 | elif test $ac_cv_prog_cc_g = yes; then |
| 2313 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2314 | CFLAGS="-g -O2" |
| 2315 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2316 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2317 | fi |
| 2318 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2319 | if test "$GCC" = yes; then |
| 2320 | CFLAGS="-O2" |
| 2321 | else |
| 2322 | CFLAGS= |
| 2323 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2324 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2325 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2326 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2327 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2328 | # the declaration of exit, since it's the most demanding environment. |
| 2329 | cat >conftest.$ac_ext <<_ACEOF |
| 2330 | #ifndef __cplusplus |
| 2331 | choke me |
| 2332 | #endif |
| 2333 | _ACEOF |
| 2334 | rm -f conftest.$ac_objext |
| 2335 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2336 | (eval $ac_compile) 2>&5 |
| 2337 | ac_status=$? |
| 2338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2339 | (exit $ac_status); } && |
| 2340 | { ac_try='test -s conftest.$ac_objext' |
| 2341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2342 | (eval $ac_try) 2>&5 |
| 2343 | ac_status=$? |
| 2344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2345 | (exit $ac_status); }; }; then |
| 2346 | for ac_declaration in \ |
| 2347 | ''\ |
| 2348 | '#include <stdlib.h>' \ |
| 2349 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2350 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2351 | 'extern "C" void exit (int) throw ();' \ |
| 2352 | 'extern "C" void exit (int);' \ |
| 2353 | 'void exit (int);' |
| 2354 | do |
| 2355 | cat >conftest.$ac_ext <<_ACEOF |
| 2356 | #line $LINENO "configure" |
| 2357 | #include "confdefs.h" |
| 2358 | #include <stdlib.h> |
| 2359 | $ac_declaration |
| 2360 | #ifdef F77_DUMMY_MAIN |
| 2361 | # ifdef __cplusplus |
| 2362 | extern "C" |
| 2363 | # endif |
| 2364 | int F77_DUMMY_MAIN() { return 1; } |
| 2365 | #endif |
| 2366 | int |
| 2367 | main () |
| 2368 | { |
| 2369 | exit (42); |
| 2370 | ; |
| 2371 | return 0; |
| 2372 | } |
| 2373 | _ACEOF |
| 2374 | rm -f conftest.$ac_objext |
| 2375 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2376 | (eval $ac_compile) 2>&5 |
| 2377 | ac_status=$? |
| 2378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2379 | (exit $ac_status); } && |
| 2380 | { ac_try='test -s conftest.$ac_objext' |
| 2381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2382 | (eval $ac_try) 2>&5 |
| 2383 | ac_status=$? |
| 2384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2385 | (exit $ac_status); }; }; then |
| 2386 | : |
| 2387 | else |
| 2388 | echo "$as_me: failed program was:" >&5 |
| 2389 | cat conftest.$ac_ext >&5 |
| 2390 | continue |
| 2391 | fi |
| 2392 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2393 | cat >conftest.$ac_ext <<_ACEOF |
| 2394 | #line $LINENO "configure" |
| 2395 | #include "confdefs.h" |
| 2396 | $ac_declaration |
| 2397 | #ifdef F77_DUMMY_MAIN |
| 2398 | # ifdef __cplusplus |
| 2399 | extern "C" |
| 2400 | # endif |
| 2401 | int F77_DUMMY_MAIN() { return 1; } |
| 2402 | #endif |
| 2403 | int |
| 2404 | main () |
| 2405 | { |
| 2406 | exit (42); |
| 2407 | ; |
| 2408 | return 0; |
| 2409 | } |
| 2410 | _ACEOF |
| 2411 | rm -f conftest.$ac_objext |
| 2412 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2413 | (eval $ac_compile) 2>&5 |
| 2414 | ac_status=$? |
| 2415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2416 | (exit $ac_status); } && |
| 2417 | { ac_try='test -s conftest.$ac_objext' |
| 2418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2419 | (eval $ac_try) 2>&5 |
| 2420 | ac_status=$? |
| 2421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2422 | (exit $ac_status); }; }; then |
| 2423 | break |
| 2424 | else |
| 2425 | echo "$as_me: failed program was:" >&5 |
| 2426 | cat conftest.$ac_ext >&5 |
| 2427 | fi |
| 2428 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2429 | done |
| 2430 | rm -f conftest* |
| 2431 | if test -n "$ac_declaration"; then |
| 2432 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2433 | echo $ac_declaration >>confdefs.h |
| 2434 | echo '#endif' >>confdefs.h |
| 2435 | fi |
| 2436 | |
| 2437 | else |
| 2438 | echo "$as_me: failed program was:" >&5 |
| 2439 | cat conftest.$ac_ext >&5 |
| 2440 | fi |
| 2441 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2442 | ac_ext=c |
| 2443 | ac_cpp='$CPP $CPPFLAGS' |
| 2444 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2445 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2446 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2447 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2448 | |
| 2449 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2450 | |
| 2451 | ac_ext=c |
| 2452 | ac_cpp='$CPP $CPPFLAGS' |
| 2453 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2454 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2455 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2456 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2457 | 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] | 2458 | # On Suns, sometimes $CPP names a directory. |
| 2459 | if test -n "$CPP" && test -d "$CPP"; then |
| 2460 | CPP= |
| 2461 | fi |
| 2462 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2463 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2465 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2466 | # Double quotes because CPP needs to be expanded |
| 2467 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2468 | do |
| 2469 | ac_preproc_ok=false |
| 2470 | for ac_c_preproc_warn_flag in '' yes |
| 2471 | do |
| 2472 | # Use a header file that comes with gcc, so configuring glibc |
| 2473 | # with a fresh cross-compiler works. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2474 | # 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] | 2475 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2476 | cat >conftest.$ac_ext <<_ACEOF |
| 2477 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2478 | #include "confdefs.h" |
| 2479 | #include <assert.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2480 | Syntax error |
| 2481 | _ACEOF |
| 2482 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2483 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2484 | ac_status=$? |
| 2485 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2486 | rm -f conftest.er1 |
| 2487 | cat conftest.err >&5 |
| 2488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2489 | (exit $ac_status); } >/dev/null; then |
| 2490 | if test -s conftest.err; then |
| 2491 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2492 | else |
| 2493 | ac_cpp_err= |
| 2494 | fi |
| 2495 | else |
| 2496 | ac_cpp_err=yes |
| 2497 | fi |
| 2498 | if test -z "$ac_cpp_err"; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2499 | : |
| 2500 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2501 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2502 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2503 | # Broken: fails on valid input. |
| 2504 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2505 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2506 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2507 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2508 | # OK, works on sane cases. Now check whether non-existent headers |
| 2509 | # can be detected and how. |
| 2510 | cat >conftest.$ac_ext <<_ACEOF |
| 2511 | #line $LINENO "configure" |
| 2512 | #include "confdefs.h" |
| 2513 | #include <ac_nonexistent.h> |
| 2514 | _ACEOF |
| 2515 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2516 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2517 | ac_status=$? |
| 2518 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2519 | rm -f conftest.er1 |
| 2520 | cat conftest.err >&5 |
| 2521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2522 | (exit $ac_status); } >/dev/null; then |
| 2523 | if test -s conftest.err; then |
| 2524 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2525 | else |
| 2526 | ac_cpp_err= |
| 2527 | fi |
| 2528 | else |
| 2529 | ac_cpp_err=yes |
| 2530 | fi |
| 2531 | if test -z "$ac_cpp_err"; then |
| 2532 | # Broken: success on invalid input. |
| 2533 | continue |
| 2534 | else |
| 2535 | echo "$as_me: failed program was:" >&5 |
| 2536 | cat conftest.$ac_ext >&5 |
| 2537 | # Passes both tests. |
| 2538 | ac_preproc_ok=: |
| 2539 | break |
| 2540 | fi |
| 2541 | rm -f conftest.err conftest.$ac_ext |
| 2542 | |
| 2543 | done |
| 2544 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2545 | rm -f conftest.err conftest.$ac_ext |
| 2546 | if $ac_preproc_ok; then |
| 2547 | break |
| 2548 | fi |
| 2549 | |
| 2550 | done |
| 2551 | ac_cv_prog_CPP=$CPP |
| 2552 | |
| 2553 | fi |
| 2554 | CPP=$ac_cv_prog_CPP |
| 2555 | else |
| 2556 | ac_cv_prog_CPP=$CPP |
| 2557 | fi |
| 2558 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2559 | echo "${ECHO_T}$CPP" >&6 |
| 2560 | ac_preproc_ok=false |
| 2561 | for ac_c_preproc_warn_flag in '' yes |
| 2562 | do |
| 2563 | # Use a header file that comes with gcc, so configuring glibc |
| 2564 | # with a fresh cross-compiler works. |
| 2565 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2566 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2567 | cat >conftest.$ac_ext <<_ACEOF |
| 2568 | #line $LINENO "configure" |
| 2569 | #include "confdefs.h" |
| 2570 | #include <assert.h> |
| 2571 | Syntax error |
| 2572 | _ACEOF |
| 2573 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2574 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2575 | ac_status=$? |
| 2576 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2577 | rm -f conftest.er1 |
| 2578 | cat conftest.err >&5 |
| 2579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2580 | (exit $ac_status); } >/dev/null; then |
| 2581 | if test -s conftest.err; then |
| 2582 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2583 | else |
| 2584 | ac_cpp_err= |
| 2585 | fi |
| 2586 | else |
| 2587 | ac_cpp_err=yes |
| 2588 | fi |
| 2589 | if test -z "$ac_cpp_err"; then |
| 2590 | : |
| 2591 | else |
| 2592 | echo "$as_me: failed program was:" >&5 |
| 2593 | cat conftest.$ac_ext >&5 |
| 2594 | # Broken: fails on valid input. |
| 2595 | continue |
| 2596 | fi |
| 2597 | rm -f conftest.err conftest.$ac_ext |
| 2598 | |
| 2599 | # OK, works on sane cases. Now check whether non-existent headers |
| 2600 | # can be detected and how. |
| 2601 | cat >conftest.$ac_ext <<_ACEOF |
| 2602 | #line $LINENO "configure" |
| 2603 | #include "confdefs.h" |
| 2604 | #include <ac_nonexistent.h> |
| 2605 | _ACEOF |
| 2606 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2607 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2608 | ac_status=$? |
| 2609 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2610 | rm -f conftest.er1 |
| 2611 | cat conftest.err >&5 |
| 2612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2613 | (exit $ac_status); } >/dev/null; then |
| 2614 | if test -s conftest.err; then |
| 2615 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2616 | else |
| 2617 | ac_cpp_err= |
| 2618 | fi |
| 2619 | else |
| 2620 | ac_cpp_err=yes |
| 2621 | fi |
| 2622 | if test -z "$ac_cpp_err"; then |
| 2623 | # Broken: success on invalid input. |
| 2624 | continue |
| 2625 | else |
| 2626 | echo "$as_me: failed program was:" >&5 |
| 2627 | cat conftest.$ac_ext >&5 |
| 2628 | # Passes both tests. |
| 2629 | ac_preproc_ok=: |
| 2630 | break |
| 2631 | fi |
| 2632 | rm -f conftest.err conftest.$ac_ext |
| 2633 | |
| 2634 | done |
| 2635 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2636 | rm -f conftest.err conftest.$ac_ext |
| 2637 | if $ac_preproc_ok; then |
| 2638 | : |
| 2639 | else |
| 2640 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
| 2641 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
| 2642 | { (exit 1); exit 1; }; } |
| 2643 | fi |
| 2644 | |
| 2645 | ac_ext=c |
| 2646 | ac_cpp='$CPP $CPPFLAGS' |
| 2647 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2648 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2649 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2650 | |
| 2651 | |
| 2652 | |
| 2653 | echo "$as_me:$LINENO: checking for AIX" >&5 |
| 2654 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 2655 | cat >conftest.$ac_ext <<_ACEOF |
| 2656 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2657 | #include "confdefs.h" |
| 2658 | #ifdef _AIX |
| 2659 | yes |
| 2660 | #endif |
| 2661 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2662 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2663 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2664 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2665 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2666 | echo "${ECHO_T}yes" >&6 |
| 2667 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2668 | #define _ALL_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2669 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2670 | |
| 2671 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2672 | echo "$as_me:$LINENO: result: no" >&5 |
| 2673 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2674 | fi |
| 2675 | rm -f conftest* |
| 2676 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2677 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2678 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 2679 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 2680 | if test "${ac_cv_header_stdc+set}" = set; then |
| 2681 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2682 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2683 | cat >conftest.$ac_ext <<_ACEOF |
| 2684 | #line $LINENO "configure" |
| 2685 | #include "confdefs.h" |
| 2686 | #include <stdlib.h> |
| 2687 | #include <stdarg.h> |
| 2688 | #include <string.h> |
| 2689 | #include <float.h> |
| 2690 | |
| 2691 | _ACEOF |
| 2692 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2693 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2694 | ac_status=$? |
| 2695 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2696 | rm -f conftest.er1 |
| 2697 | cat conftest.err >&5 |
| 2698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2699 | (exit $ac_status); } >/dev/null; then |
| 2700 | if test -s conftest.err; then |
| 2701 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2702 | else |
| 2703 | ac_cpp_err= |
| 2704 | fi |
| 2705 | else |
| 2706 | ac_cpp_err=yes |
| 2707 | fi |
| 2708 | if test -z "$ac_cpp_err"; then |
| 2709 | ac_cv_header_stdc=yes |
| 2710 | else |
| 2711 | echo "$as_me: failed program was:" >&5 |
| 2712 | cat conftest.$ac_ext >&5 |
| 2713 | ac_cv_header_stdc=no |
| 2714 | fi |
| 2715 | rm -f conftest.err conftest.$ac_ext |
| 2716 | |
| 2717 | if test $ac_cv_header_stdc = yes; then |
| 2718 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 2719 | cat >conftest.$ac_ext <<_ACEOF |
| 2720 | #line $LINENO "configure" |
| 2721 | #include "confdefs.h" |
| 2722 | #include <string.h> |
| 2723 | |
| 2724 | _ACEOF |
| 2725 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2726 | egrep "memchr" >/dev/null 2>&1; then |
| 2727 | : |
| 2728 | else |
| 2729 | ac_cv_header_stdc=no |
| 2730 | fi |
| 2731 | rm -f conftest* |
| 2732 | |
| 2733 | fi |
| 2734 | |
| 2735 | if test $ac_cv_header_stdc = yes; then |
| 2736 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 2737 | cat >conftest.$ac_ext <<_ACEOF |
| 2738 | #line $LINENO "configure" |
| 2739 | #include "confdefs.h" |
| 2740 | #include <stdlib.h> |
| 2741 | |
| 2742 | _ACEOF |
| 2743 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2744 | egrep "free" >/dev/null 2>&1; then |
| 2745 | : |
| 2746 | else |
| 2747 | ac_cv_header_stdc=no |
| 2748 | fi |
| 2749 | rm -f conftest* |
| 2750 | |
| 2751 | fi |
| 2752 | |
| 2753 | if test $ac_cv_header_stdc = yes; then |
| 2754 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 2755 | if test "$cross_compiling" = yes; then |
| 2756 | : |
| 2757 | else |
| 2758 | cat >conftest.$ac_ext <<_ACEOF |
| 2759 | #line $LINENO "configure" |
| 2760 | #include "confdefs.h" |
| 2761 | #include <ctype.h> |
| 2762 | #if ((' ' & 0x0FF) == 0x020) |
| 2763 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 2764 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 2765 | #else |
| 2766 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 2767 | || ('j' <= (c) && (c) <= 'r') \ |
| 2768 | || ('s' <= (c) && (c) <= 'z')) |
| 2769 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 2770 | #endif |
| 2771 | |
| 2772 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 2773 | int |
| 2774 | main () |
| 2775 | { |
| 2776 | int i; |
| 2777 | for (i = 0; i < 256; i++) |
| 2778 | if (XOR (islower (i), ISLOWER (i)) |
| 2779 | || toupper (i) != TOUPPER (i)) |
| 2780 | exit(2); |
| 2781 | exit (0); |
| 2782 | } |
| 2783 | _ACEOF |
| 2784 | rm -f conftest$ac_exeext |
| 2785 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2786 | (eval $ac_link) 2>&5 |
| 2787 | ac_status=$? |
| 2788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2789 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 2790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2791 | (eval $ac_try) 2>&5 |
| 2792 | ac_status=$? |
| 2793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2794 | (exit $ac_status); }; }; then |
| 2795 | : |
| 2796 | else |
| 2797 | echo "$as_me: program exited with status $ac_status" >&5 |
| 2798 | echo "$as_me: failed program was:" >&5 |
| 2799 | cat conftest.$ac_ext >&5 |
| 2800 | ( exit $ac_status ) |
| 2801 | ac_cv_header_stdc=no |
| 2802 | fi |
| 2803 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 2804 | fi |
| 2805 | fi |
| 2806 | fi |
| 2807 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 2808 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 2809 | if test $ac_cv_header_stdc = yes; then |
| 2810 | |
| 2811 | cat >>confdefs.h <<\_ACEOF |
| 2812 | #define STDC_HEADERS 1 |
| 2813 | _ACEOF |
| 2814 | |
| 2815 | fi |
| 2816 | |
| 2817 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 2818 | |
| 2819 | |
| 2820 | |
| 2821 | |
| 2822 | |
| 2823 | |
| 2824 | |
| 2825 | |
| 2826 | |
| 2827 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 2828 | inttypes.h stdint.h unistd.h |
| 2829 | do |
| 2830 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 2831 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 2832 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 2833 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 2834 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2835 | else |
| 2836 | cat >conftest.$ac_ext <<_ACEOF |
| 2837 | #line $LINENO "configure" |
| 2838 | #include "confdefs.h" |
| 2839 | $ac_includes_default |
| 2840 | |
| 2841 | #include <$ac_header> |
| 2842 | _ACEOF |
| 2843 | rm -f conftest.$ac_objext |
| 2844 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2845 | (eval $ac_compile) 2>&5 |
| 2846 | ac_status=$? |
| 2847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2848 | (exit $ac_status); } && |
| 2849 | { ac_try='test -s conftest.$ac_objext' |
| 2850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2851 | (eval $ac_try) 2>&5 |
| 2852 | ac_status=$? |
| 2853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2854 | (exit $ac_status); }; }; then |
| 2855 | eval "$as_ac_Header=yes" |
| 2856 | else |
| 2857 | echo "$as_me: failed program was:" >&5 |
| 2858 | cat conftest.$ac_ext >&5 |
| 2859 | eval "$as_ac_Header=no" |
| 2860 | fi |
| 2861 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2862 | fi |
| 2863 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 2864 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 2865 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 2866 | cat >>confdefs.h <<_ACEOF |
| 2867 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 2868 | _ACEOF |
| 2869 | |
| 2870 | fi |
| 2871 | |
| 2872 | done |
| 2873 | |
| 2874 | |
| 2875 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2876 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 2877 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 2878 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2880 | fi |
| 2881 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 2882 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 2883 | else |
| 2884 | # Is the header compilable? |
| 2885 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5 |
| 2886 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 |
| 2887 | cat >conftest.$ac_ext <<_ACEOF |
| 2888 | #line $LINENO "configure" |
| 2889 | #include "confdefs.h" |
| 2890 | $ac_includes_default |
| 2891 | #include <minix/config.h> |
| 2892 | _ACEOF |
| 2893 | rm -f conftest.$ac_objext |
| 2894 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2895 | (eval $ac_compile) 2>&5 |
| 2896 | ac_status=$? |
| 2897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2898 | (exit $ac_status); } && |
| 2899 | { ac_try='test -s conftest.$ac_objext' |
| 2900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2901 | (eval $ac_try) 2>&5 |
| 2902 | ac_status=$? |
| 2903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2904 | (exit $ac_status); }; }; then |
| 2905 | ac_header_compiler=yes |
| 2906 | else |
| 2907 | echo "$as_me: failed program was:" >&5 |
| 2908 | cat conftest.$ac_ext >&5 |
| 2909 | ac_header_compiler=no |
| 2910 | fi |
| 2911 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2912 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 2913 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 2914 | |
| 2915 | # Is the header present? |
| 2916 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5 |
| 2917 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 |
| 2918 | cat >conftest.$ac_ext <<_ACEOF |
| 2919 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2920 | #include "confdefs.h" |
| 2921 | #include <minix/config.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2922 | _ACEOF |
| 2923 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2924 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2925 | ac_status=$? |
| 2926 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2927 | rm -f conftest.er1 |
| 2928 | cat conftest.err >&5 |
| 2929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2930 | (exit $ac_status); } >/dev/null; then |
| 2931 | if test -s conftest.err; then |
| 2932 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2933 | else |
| 2934 | ac_cpp_err= |
| 2935 | fi |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2936 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2937 | ac_cpp_err=yes |
| 2938 | fi |
| 2939 | if test -z "$ac_cpp_err"; then |
| 2940 | ac_header_preproc=yes |
| 2941 | else |
| 2942 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2943 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2944 | ac_header_preproc=no |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2945 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2946 | rm -f conftest.err conftest.$ac_ext |
| 2947 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 2948 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 2949 | |
| 2950 | # So? What about this header? |
| 2951 | case $ac_header_compiler:$ac_header_preproc in |
| 2952 | yes:no ) |
| 2953 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 2954 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 2955 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 2956 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};; |
| 2957 | no:yes ) |
| 2958 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 |
| 2959 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} |
| 2960 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 |
| 2961 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} |
| 2962 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 2963 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};; |
| 2964 | esac |
| 2965 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 2966 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 2967 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2969 | else |
| 2970 | ac_cv_header_minix_config_h=$ac_header_preproc |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2971 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2972 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 2973 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 2974 | |
| 2975 | fi |
| 2976 | if test $ac_cv_header_minix_config_h = yes; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2977 | MINIX=yes |
| 2978 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2979 | MINIX= |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2980 | fi |
| 2981 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2982 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2983 | if test "$MINIX" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2984 | |
| 2985 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2986 | #define _POSIX_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2987 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2988 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2989 | |
| 2990 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2991 | #define _POSIX_1_SOURCE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2992 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2993 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2994 | |
| 2995 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2996 | #define _MINIX 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2997 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2998 | |
| 2999 | fi |
| 3000 | |
| 3001 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3002 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3003 | echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3004 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3005 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3006 | # Check whether --with-suffix or --without-suffix was given. |
| 3007 | if test "${with_suffix+set}" = set; then |
| 3008 | withval="$with_suffix" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3009 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3010 | case $withval in |
| 3011 | no) EXEEXT=;; |
| 3012 | yes) EXEEXT=.exe;; |
| 3013 | *) EXEEXT=$withval;; |
| 3014 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3015 | fi; |
| 3016 | echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3017 | echo "${ECHO_T}$EXEEXT" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3018 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3019 | # Test whether we're running on a non-case-sensitive system, in which |
| 3020 | # case we give a warning if no ext is given |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3021 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3022 | echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3023 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6 |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3024 | if test ! -d CaseSensitiveTestDir; then |
| 3025 | mkdir CaseSensitiveTestDir |
| 3026 | fi |
| 3027 | |
| 3028 | if test -d casesensitivetestdir |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3029 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3030 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3031 | echo "${ECHO_T}yes" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3032 | BUILDEXEEXT=.exe |
| 3033 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3034 | echo "$as_me:$LINENO: result: no" >&5 |
| 3035 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3036 | BUILDEXEEXT=$EXEEXT |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3037 | fi |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3038 | rmdir CaseSensitiveTestDir |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 3039 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 3040 | case $MACHDEP in |
| 3041 | bsdos*) |
| 3042 | case $CC in |
| 3043 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3044 | esac;; |
| 3045 | esac |
| 3046 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3047 | case $ac_sys_system in |
| 3048 | hp*|HP*) |
| 3049 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 3050 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3051 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3052 | Monterey*) |
| 3053 | case $CC in |
| 3054 | cc) CC="$CC -Wl,-Bexport";; |
| 3055 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3056 | SunOS*) |
| 3057 | # 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] | 3058 | |
| 3059 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3060 | #define __EXTENSIONS__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3061 | _ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3062 | |
| 3063 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3064 | esac |
| 3065 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3066 | |
| 3067 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3068 | echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3069 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3070 | if test -z "$LIBRARY" |
| 3071 | then |
| 3072 | LIBRARY='libpython$(VERSION).a' |
| 3073 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3074 | echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3075 | echo "${ECHO_T}$LIBRARY" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3076 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3077 | # 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] | 3078 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3079 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3080 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3081 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3082 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3083 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3084 | # DLLLIBRARY is the shared (i.e., DLL) library. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3085 | # |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3086 | # RUNSHARED is used to run shared python without installed libraries |
| 3087 | # |
| 3088 | # INSTSONAME is the name of the shared library that will be use to install |
| 3089 | # on the system - some systems like version suffix, others don't |
| 3090 | |
| 3091 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3092 | |
| 3093 | |
| 3094 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3095 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3096 | LDLIBRARY="$LIBRARY" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3097 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 09bdf72 | 2002-05-08 08:51:29 +0000 | [diff] [blame] | 3098 | INSTSONAME='$(LDLIBRARY)' |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 3099 | DLLLIBRARY='' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3100 | LDLIBRARYDIR='' |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3101 | RUNSHARED='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3102 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3103 | # 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] | 3104 | # If CXX is set, and if it is needed to link a main function that was |
| 3105 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3106 | # python might then depend on the C++ runtime |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3107 | # 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] | 3108 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3109 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3110 | echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3111 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3112 | if test -z "$LINKCC" |
| 3113 | then |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3114 | if test -z "$CXX"; then |
| 3115 | LINKCC="\$(PURIFY) \$(CC)" |
| 3116 | else |
Martin v. Löwis | 1931ca7 | 2002-06-01 21:39:58 +0000 | [diff] [blame] | 3117 | 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] | 3118 | $CXX -c conftest.$ac_ext 2>&5 |
| 3119 | if $CC -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 3120 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 3121 | then |
| 3122 | LINKCC="\$(PURIFY) \$(CC)" |
| 3123 | else |
| 3124 | LINKCC="\$(PURIFY) \$(CXX)" |
| 3125 | fi |
| 3126 | rm -fr conftest* |
| 3127 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3128 | case $ac_sys_system in |
| 3129 | AIX*) |
Jack Jansen | 524a098 | 2002-03-12 15:25:52 +0000 | [diff] [blame] | 3130 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp \"\" \$(LIBRARY); $LINKCC";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 3131 | dgux*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3132 | LINKCC="LD_RUN_PATH=$libdir $LINKCC";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3133 | Monterey64*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3134 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3135 | esac |
| 3136 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3137 | echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3138 | echo "${ECHO_T}$LINKCC" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3139 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3140 | echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 3141 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3142 | # Check whether --enable-shared or --disable-shared was given. |
| 3143 | if test "${enable_shared+set}" = set; then |
| 3144 | enableval="$enable_shared" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3145 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3146 | fi; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3147 | |
| 3148 | if test -z "$enable_shared" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3149 | then |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3150 | case $ac_sys_system in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3151 | CYGWIN* | atheos*) |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3152 | enable_shared="yes";; |
| 3153 | *) |
| 3154 | enable_shared="no";; |
| 3155 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3156 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3157 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 3158 | echo "${ECHO_T}$enable_shared" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3159 | |
| 3160 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3161 | echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 3162 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3163 | |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 3164 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 3165 | # library that we build, but we do not want to link against it (we |
| 3166 | # will find it with a -framework option). For this reason there is an |
| 3167 | # extra variable BLDLIBRARY against which Python and the extension |
| 3168 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 3169 | # LDLIBRARY, but empty for MacOSX framework builds. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3170 | if test "$enable_framework" |
| 3171 | then |
| 3172 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 3173 | LDLIBRARYDIR='$(PYTHONFRAMEWORKDIR)' |
| 3174 | BLDLIBRARY='' |
| 3175 | else |
| 3176 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3177 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3178 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3179 | # Other platforms follow |
| 3180 | if test $enable_shared = "yes"; then |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 3181 | |
| 3182 | cat >>confdefs.h <<\_ACEOF |
| 3183 | #define Py_ENABLE_SHARED 1 |
| 3184 | _ACEOF |
| 3185 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3186 | case $ac_sys_system in |
| 3187 | BeOS*) |
| 3188 | LDLIBRARY='libpython$(VERSION).so' |
| 3189 | ;; |
| 3190 | CYGWIN*) |
| 3191 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3192 | DLLLIBRARY='libpython$(VERSION).dll' |
| 3193 | ;; |
| 3194 | SunOS*) |
| 3195 | LDLIBRARY='libpython$(VERSION).so' |
| 3196 | BLDLIBRARY='-Wl,-rpath,$(LIBDIR) -L. -lpython$(VERSION)' |
| 3197 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3198 | ;; |
Martin v. Löwis | 1bc894b | 2002-07-30 20:19:58 +0000 | [diff] [blame] | 3199 | Linux*|GNU*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3200 | LDLIBRARY='libpython$(VERSION).so' |
| 3201 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3202 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3203 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 3204 | ;; |
| 3205 | hp*|HP*) |
| 3206 | LDLIBRARY='libpython$(VERSION).sl' |
| 3207 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| 3208 | RUNSHARED=SHLIB_PATH=`pwd`:$SHLIB_PATH |
| 3209 | ;; |
| 3210 | OSF*) |
| 3211 | LDLIBRARY='libpython$(VERSION).so' |
| 3212 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| 3213 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3214 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3215 | atheos*) |
| 3216 | LDLIBRARY='libpython$(VERSION).so' |
| 3217 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3218 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 3219 | ;; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3220 | esac |
| 3221 | # DG/UX requires some fancy ld contortions to produce a .so from an .a |
| 3222 | case $MACHDEP in |
| 3223 | dguxR4) |
| 3224 | LDLIBRARY='libpython$(VERSION).so' |
| 3225 | OPT="$OPT -pic" |
| 3226 | ;; |
| 3227 | esac |
| 3228 | fi |
| 3229 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3230 | echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 3231 | echo "${ECHO_T}$LDLIBRARY" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3232 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3233 | if test -n "$ac_tool_prefix"; then |
| 3234 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3235 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3236 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3237 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3238 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3239 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3240 | else |
| 3241 | if test -n "$RANLIB"; then |
| 3242 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3243 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3245 | for as_dir in $PATH |
| 3246 | do |
| 3247 | IFS=$as_save_IFS |
| 3248 | test -z "$as_dir" && as_dir=. |
| 3249 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3250 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3251 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3252 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3253 | break 2 |
| 3254 | fi |
| 3255 | done |
| 3256 | done |
| 3257 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3258 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3259 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3260 | RANLIB=$ac_cv_prog_RANLIB |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3261 | if test -n "$RANLIB"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3262 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3263 | echo "${ECHO_T}$RANLIB" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3264 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3265 | echo "$as_me:$LINENO: result: no" >&5 |
| 3266 | echo "${ECHO_T}no" >&6 |
| 3267 | fi |
| 3268 | |
| 3269 | fi |
| 3270 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3271 | ac_ct_RANLIB=$RANLIB |
| 3272 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3273 | set dummy ranlib; ac_word=$2 |
| 3274 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3275 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3276 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3277 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3278 | else |
| 3279 | if test -n "$ac_ct_RANLIB"; then |
| 3280 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3281 | else |
| 3282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3283 | for as_dir in $PATH |
| 3284 | do |
| 3285 | IFS=$as_save_IFS |
| 3286 | test -z "$as_dir" && as_dir=. |
| 3287 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3288 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3289 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3290 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3291 | break 2 |
| 3292 | fi |
| 3293 | done |
| 3294 | done |
| 3295 | |
| 3296 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3297 | fi |
| 3298 | fi |
| 3299 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3300 | if test -n "$ac_ct_RANLIB"; then |
| 3301 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3302 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3303 | else |
| 3304 | echo "$as_me:$LINENO: result: no" >&5 |
| 3305 | echo "${ECHO_T}no" >&6 |
| 3306 | fi |
| 3307 | |
| 3308 | RANLIB=$ac_ct_RANLIB |
| 3309 | else |
| 3310 | RANLIB="$ac_cv_prog_RANLIB" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3311 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3312 | |
| 3313 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3314 | for ac_prog in ar aal |
| 3315 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3316 | # 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] | 3317 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3318 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3319 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3320 | if test "${ac_cv_prog_AR+set}" = set; then |
| 3321 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3322 | else |
| 3323 | if test -n "$AR"; then |
| 3324 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3325 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3326 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3327 | for as_dir in $PATH |
| 3328 | do |
| 3329 | IFS=$as_save_IFS |
| 3330 | test -z "$as_dir" && as_dir=. |
| 3331 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3332 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3333 | ac_cv_prog_AR="$ac_prog" |
| 3334 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3335 | break 2 |
| 3336 | fi |
| 3337 | done |
| 3338 | done |
| 3339 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3340 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3341 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3342 | AR=$ac_cv_prog_AR |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3343 | if test -n "$AR"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3344 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 3345 | echo "${ECHO_T}$AR" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3346 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3347 | echo "$as_me:$LINENO: result: no" >&5 |
| 3348 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3349 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3350 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3351 | test -n "$AR" && break |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3352 | done |
| 3353 | test -n "$AR" || AR="ar" |
| 3354 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3355 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3356 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 3357 | bsdos*|hp*|HP*) |
| 3358 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3359 | if test -z "$INSTALL" |
| 3360 | then |
| 3361 | INSTALL="${srcdir}/install-sh -c" |
| 3362 | fi |
| 3363 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3364 | ac_aux_dir= |
| 3365 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 3366 | if test -f $ac_dir/install-sh; then |
| 3367 | ac_aux_dir=$ac_dir |
| 3368 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3369 | break |
| 3370 | elif test -f $ac_dir/install.sh; then |
| 3371 | ac_aux_dir=$ac_dir |
| 3372 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3373 | break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3374 | elif test -f $ac_dir/shtool; then |
| 3375 | ac_aux_dir=$ac_dir |
| 3376 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3377 | break |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3378 | fi |
| 3379 | done |
| 3380 | if test -z "$ac_aux_dir"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3381 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 3382 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 3383 | { (exit 1); exit 1; }; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3384 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3385 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 3386 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 3387 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3388 | |
| 3389 | # Find a good install program. We prefer a C program (faster), |
| 3390 | # so one script is as good as another. But avoid the broken or |
| 3391 | # incompatible versions: |
| 3392 | # SysV /etc/install, /usr/sbin/install |
| 3393 | # SunOS /usr/etc/install |
| 3394 | # IRIX /sbin/install |
| 3395 | # AIX /bin/install |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3396 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3397 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3398 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3399 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3400 | # ./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] | 3401 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 3402 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3403 | if test -z "$INSTALL"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3404 | if test "${ac_cv_path_install+set}" = set; then |
| 3405 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3406 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3408 | for as_dir in $PATH |
| 3409 | do |
| 3410 | IFS=$as_save_IFS |
| 3411 | test -z "$as_dir" && as_dir=. |
| 3412 | # Account for people who put trailing slashes in PATH elements. |
| 3413 | case $as_dir/ in |
| 3414 | ./ | .// | /cC/* | \ |
| 3415 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3416 | /usr/ucb/* ) ;; |
| 3417 | *) |
| 3418 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3419 | # Don't use installbsd from OSF since it installs stuff as root |
| 3420 | # by default. |
| 3421 | for ac_prog in ginstall scoinst install; do |
| 3422 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3423 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3424 | if test $ac_prog = install && |
| 3425 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3426 | # AIX install. It has an incompatible calling convention. |
| 3427 | : |
| 3428 | elif test $ac_prog = install && |
| 3429 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3430 | # program-specific install script used by HP pwplus--don't use. |
| 3431 | : |
| 3432 | else |
| 3433 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3434 | break 3 |
| 3435 | fi |
| 3436 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3437 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3438 | done |
| 3439 | ;; |
| 3440 | esac |
| 3441 | done |
| 3442 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3443 | |
| 3444 | fi |
| 3445 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3446 | INSTALL=$ac_cv_path_install |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3447 | else |
| 3448 | # As a last resort, use the slow shell script. We don't cache a |
| 3449 | # path for INSTALL within a source directory, because that will |
| 3450 | # break other packages using the cache if that directory is |
| 3451 | # removed, or if the path is relative. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3452 | INSTALL=$ac_install_sh |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3453 | fi |
| 3454 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3455 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 3456 | echo "${ECHO_T}$INSTALL" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3457 | |
| 3458 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3459 | # It thinks the first close brace ends the variable substitution. |
| 3460 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3461 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3462 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3463 | |
| 3464 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3465 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3466 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3467 | # Not every filesystem supports hard links |
| 3468 | |
| 3469 | if test -z "$LN" ; then |
| 3470 | case $ac_sys_system in |
| 3471 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3472 | CYGWIN*) LN="ln -s";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3473 | atheos*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3474 | *) LN=ln;; |
| 3475 | esac |
| 3476 | fi |
| 3477 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3478 | # Check for --with-pydebug |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3479 | echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 3480 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6 |
| 3481 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3482 | # Check whether --with-pydebug or --without-pydebug was given. |
| 3483 | if test "${with_pydebug+set}" = set; then |
| 3484 | withval="$with_pydebug" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3485 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3486 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3487 | then |
| 3488 | |
| 3489 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3490 | #define Py_DEBUG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3491 | _ACEOF |
| 3492 | |
| 3493 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3494 | echo "${ECHO_T}yes" >&6; |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 3495 | Py_DEBUG='true' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3496 | else echo "$as_me:$LINENO: result: no" >&5 |
| 3497 | echo "${ECHO_T}no" >&6; Py_DEBUG='false' |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3498 | fi |
| 3499 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3500 | echo "$as_me:$LINENO: result: no" >&5 |
| 3501 | echo "${ECHO_T}no" >&6 |
| 3502 | fi; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3503 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3504 | # Optimizer/debugger flags |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3505 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3506 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3507 | then |
Neal Norwitz | d957f39 | 2002-09-25 21:26:19 +0000 | [diff] [blame] | 3508 | case $GCC in |
Guido van Rossum | edca74a | 1997-07-18 23:29:40 +0000 | [diff] [blame] | 3509 | yes) |
| 3510 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3511 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3512 | if test "$Py_DEBUG" = 'true' ; then |
| 3513 | # Optimization messes up debuggers, so turn it off for |
| 3514 | # debug builds. |
| 3515 | OPT="-g -Wall -Wstrict-prototypes" |
| 3516 | else |
| 3517 | OPT="-g -O3 -Wall -Wstrict-prototypes" |
| 3518 | fi;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3519 | *) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3520 | OPT="-O3 -Wall -Wstrict-prototypes";; |
| 3521 | esac |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3522 | case $ac_sys_system in |
| 3523 | SCO_SV*) OPT="$OPT -m486 -DSCO5";; |
| 3524 | esac |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3525 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3526 | *) |
| 3527 | case $ac_sys_system in |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 3528 | OpenUNIX*|UnixWare*) |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3529 | OPT="-O -K pentium,host,inline,loop_unroll,alloca ";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3530 | SCO_SV*) |
| 3531 | CFLAGS="$CFLAGS -belf" |
| 3532 | OPT="-belf -O -Ki486 -DSCO5";; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3533 | *) |
| 3534 | OPT="-O";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3535 | esac |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3536 | esac |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3537 | case $ac_sys_system in |
| 3538 | Darwin*) |
Jack Jansen | 524a098 | 2002-03-12 15:25:52 +0000 | [diff] [blame] | 3539 | OPT="$OPT -Wno-long-double -no-cpp-precomp";; |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3540 | esac |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3541 | fi |
| 3542 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 3543 | if test "$Py_DEBUG" = 'true'; then |
| 3544 | : |
| 3545 | else |
| 3546 | OPT="-DNDEBUG $OPT" |
| 3547 | fi |
| 3548 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3549 | # The current (beta) Monterey compiler dies with optimizations |
| 3550 | case $ac_sys_system in |
| 3551 | Monterey*) OPT="";; |
| 3552 | esac |
| 3553 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3554 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3555 | then |
| 3556 | OPT="$OPT $ac_arch_flags" |
| 3557 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3558 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3559 | echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 3560 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6 |
| 3561 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 3562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3563 | else |
| 3564 | ac_save_cc="$CC" |
| 3565 | CC="$CC -OPT:Olimit=0" |
| 3566 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3567 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3568 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3569 | cat >conftest.$ac_ext <<_ACEOF |
| 3570 | #line $LINENO "configure" |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3571 | #include "confdefs.h" |
| 3572 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3573 | _ACEOF |
| 3574 | rm -f conftest$ac_exeext |
| 3575 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3576 | (eval $ac_link) 2>&5 |
| 3577 | ac_status=$? |
| 3578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3579 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3581 | (eval $ac_try) 2>&5 |
| 3582 | ac_status=$? |
| 3583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3584 | (exit $ac_status); }; }; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3585 | ac_cv_opt_olimit_ok=yes |
| 3586 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3587 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3588 | echo "$as_me: failed program was:" >&5 |
| 3589 | cat conftest.$ac_ext >&5 |
| 3590 | ( exit $ac_status ) |
| 3591 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3592 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3593 | 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] | 3594 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3595 | CC="$ac_save_cc" |
| 3596 | fi |
| 3597 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3598 | echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 3599 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 3600 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3601 | case $ac_sys_system in |
| 3602 | Darwin*) OPT="$OPT" ;; |
| 3603 | *) OPT="$OPT -OPT:Olimit=0";; |
| 3604 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3605 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3606 | echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 3607 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6 |
| 3608 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 3609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3610 | else |
| 3611 | ac_save_cc="$CC" |
| 3612 | CC="$CC -Olimit 1500" |
| 3613 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3614 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3615 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3616 | cat >conftest.$ac_ext <<_ACEOF |
| 3617 | #line $LINENO "configure" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3618 | #include "confdefs.h" |
| 3619 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3620 | _ACEOF |
| 3621 | rm -f conftest$ac_exeext |
| 3622 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3623 | (eval $ac_link) 2>&5 |
| 3624 | ac_status=$? |
| 3625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3626 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3628 | (eval $ac_try) 2>&5 |
| 3629 | ac_status=$? |
| 3630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3631 | (exit $ac_status); }; }; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3632 | ac_cv_olimit_ok=yes |
| 3633 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3634 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3635 | echo "$as_me: failed program was:" >&5 |
| 3636 | cat conftest.$ac_ext >&5 |
| 3637 | ( exit $ac_status ) |
| 3638 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 3639 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3640 | 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] | 3641 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3642 | CC="$ac_save_cc" |
| 3643 | fi |
| 3644 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3645 | echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 3646 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3647 | if test $ac_cv_olimit_ok = yes; then |
| 3648 | OPT="$OPT -Olimit 1500" |
| 3649 | fi |
| 3650 | fi |
| 3651 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3652 | # On some compilers, pthreads are available without further options |
| 3653 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 3654 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 3655 | # So we have to see first whether pthreads are available without |
| 3656 | # options before we can check whether -Kpthread improves anything. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3657 | echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 3658 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6 |
| 3659 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 3660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3661 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3662 | if test "$cross_compiling" = yes; then |
| 3663 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3664 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3665 | cat >conftest.$ac_ext <<_ACEOF |
| 3666 | #line $LINENO "configure" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3667 | #include "confdefs.h" |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3668 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3669 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3670 | |
| 3671 | void* routine(void* p){return NULL;} |
| 3672 | |
| 3673 | int main(){ |
| 3674 | pthread_t p; |
| 3675 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3676 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3677 | (void)pthread_detach(p); |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3678 | return 0; |
| 3679 | } |
| 3680 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3681 | _ACEOF |
| 3682 | rm -f conftest$ac_exeext |
| 3683 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3684 | (eval $ac_link) 2>&5 |
| 3685 | ac_status=$? |
| 3686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3687 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3689 | (eval $ac_try) 2>&5 |
| 3690 | ac_status=$? |
| 3691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3692 | (exit $ac_status); }; }; then |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3693 | ac_cv_pthread_is_default=yes |
| 3694 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3695 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3696 | echo "$as_me: failed program was:" >&5 |
| 3697 | cat conftest.$ac_ext >&5 |
| 3698 | ( exit $ac_status ) |
| 3699 | ac_cv_pthread_is_default=no |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3700 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3701 | 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] | 3702 | fi |
| 3703 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3704 | fi |
| 3705 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3706 | echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 3707 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3708 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3709 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3710 | if test $ac_cv_pthread_is_default = yes |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3711 | then |
| 3712 | ac_cv_kpthread=no |
| 3713 | else |
| 3714 | # -Kpthread, if available, provides the right #defines |
| 3715 | # and linker options to make pthread_create available |
| 3716 | # Some compilers won't report that they do not support -Kpthread, |
| 3717 | # so we need to run a program to see whether it really made the |
| 3718 | # function available. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3719 | echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 3720 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6 |
| 3721 | if test "${ac_cv_kpthread+set}" = set; then |
| 3722 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3723 | else |
| 3724 | ac_save_cc="$CC" |
| 3725 | CC="$CC -Kpthread" |
| 3726 | if test "$cross_compiling" = yes; then |
| 3727 | ac_cv_kpthread=no |
| 3728 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3729 | cat >conftest.$ac_ext <<_ACEOF |
| 3730 | #line $LINENO "configure" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3731 | #include "confdefs.h" |
| 3732 | |
| 3733 | #include <pthread.h> |
| 3734 | |
| 3735 | void* routine(void* p){return NULL;} |
| 3736 | |
| 3737 | int main(){ |
| 3738 | pthread_t p; |
| 3739 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3740 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3741 | (void)pthread_detach(p); |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3742 | return 0; |
| 3743 | } |
| 3744 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3745 | _ACEOF |
| 3746 | rm -f conftest$ac_exeext |
| 3747 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3748 | (eval $ac_link) 2>&5 |
| 3749 | ac_status=$? |
| 3750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3751 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3753 | (eval $ac_try) 2>&5 |
| 3754 | ac_status=$? |
| 3755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3756 | (exit $ac_status); }; }; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3757 | ac_cv_kpthread=yes |
| 3758 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3759 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3760 | echo "$as_me: failed program was:" >&5 |
| 3761 | cat conftest.$ac_ext >&5 |
| 3762 | ( exit $ac_status ) |
| 3763 | ac_cv_kpthread=no |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3764 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3765 | 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] | 3766 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3767 | CC="$ac_save_cc" |
| 3768 | fi |
| 3769 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3770 | echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 3771 | echo "${ECHO_T}$ac_cv_kpthread" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3772 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3773 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3774 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3775 | # checks for header files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3776 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3777 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3778 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3780 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3781 | cat >conftest.$ac_ext <<_ACEOF |
| 3782 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3783 | #include "confdefs.h" |
| 3784 | #include <stdlib.h> |
| 3785 | #include <stdarg.h> |
| 3786 | #include <string.h> |
| 3787 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3788 | |
| 3789 | _ACEOF |
| 3790 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3791 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3792 | ac_status=$? |
| 3793 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 3794 | rm -f conftest.er1 |
| 3795 | cat conftest.err >&5 |
| 3796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3797 | (exit $ac_status); } >/dev/null; then |
| 3798 | if test -s conftest.err; then |
| 3799 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3800 | else |
| 3801 | ac_cpp_err= |
| 3802 | fi |
| 3803 | else |
| 3804 | ac_cpp_err=yes |
| 3805 | fi |
| 3806 | if test -z "$ac_cpp_err"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3807 | ac_cv_header_stdc=yes |
| 3808 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3809 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3810 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3811 | ac_cv_header_stdc=no |
| 3812 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3813 | rm -f conftest.err conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3814 | |
| 3815 | if test $ac_cv_header_stdc = yes; then |
| 3816 | # 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] | 3817 | cat >conftest.$ac_ext <<_ACEOF |
| 3818 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3819 | #include "confdefs.h" |
| 3820 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3821 | |
| 3822 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3823 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3824 | egrep "memchr" >/dev/null 2>&1; then |
| 3825 | : |
| 3826 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3827 | ac_cv_header_stdc=no |
| 3828 | fi |
| 3829 | rm -f conftest* |
| 3830 | |
| 3831 | fi |
| 3832 | |
| 3833 | if test $ac_cv_header_stdc = yes; then |
| 3834 | # 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] | 3835 | cat >conftest.$ac_ext <<_ACEOF |
| 3836 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3837 | #include "confdefs.h" |
| 3838 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3839 | |
| 3840 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3841 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3842 | egrep "free" >/dev/null 2>&1; then |
| 3843 | : |
| 3844 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3845 | ac_cv_header_stdc=no |
| 3846 | fi |
| 3847 | rm -f conftest* |
| 3848 | |
| 3849 | fi |
| 3850 | |
| 3851 | if test $ac_cv_header_stdc = yes; then |
| 3852 | # /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] | 3853 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3854 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3855 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3856 | cat >conftest.$ac_ext <<_ACEOF |
| 3857 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3858 | #include "confdefs.h" |
| 3859 | #include <ctype.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3860 | #if ((' ' & 0x0FF) == 0x020) |
| 3861 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3862 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3863 | #else |
| 3864 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 3865 | || ('j' <= (c) && (c) <= 'r') \ |
| 3866 | || ('s' <= (c) && (c) <= 'z')) |
| 3867 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3868 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3869 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3870 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3871 | int |
| 3872 | main () |
| 3873 | { |
| 3874 | int i; |
| 3875 | for (i = 0; i < 256; i++) |
| 3876 | if (XOR (islower (i), ISLOWER (i)) |
| 3877 | || toupper (i) != TOUPPER (i)) |
| 3878 | exit(2); |
| 3879 | exit (0); |
| 3880 | } |
| 3881 | _ACEOF |
| 3882 | rm -f conftest$ac_exeext |
| 3883 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3884 | (eval $ac_link) 2>&5 |
| 3885 | ac_status=$? |
| 3886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3887 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3889 | (eval $ac_try) 2>&5 |
| 3890 | ac_status=$? |
| 3891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3892 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3893 | : |
| 3894 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3895 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3896 | echo "$as_me: failed program was:" >&5 |
| 3897 | cat conftest.$ac_ext >&5 |
| 3898 | ( exit $ac_status ) |
| 3899 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3900 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3901 | 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] | 3902 | fi |
| 3903 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3904 | fi |
| 3905 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3906 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3907 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3908 | |
| 3909 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3910 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3911 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3912 | |
| 3913 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3914 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3915 | |
| 3916 | |
| 3917 | |
| 3918 | |
| 3919 | |
| 3920 | |
| 3921 | |
| 3922 | |
| 3923 | |
| 3924 | |
| 3925 | |
| 3926 | |
| 3927 | |
| 3928 | |
| 3929 | |
| 3930 | |
| 3931 | |
| 3932 | |
| 3933 | |
| 3934 | |
| 3935 | |
| 3936 | |
| 3937 | |
| 3938 | |
| 3939 | |
| 3940 | |
| 3941 | |
| 3942 | |
| 3943 | |
| 3944 | |
| 3945 | |
| 3946 | |
| 3947 | |
| 3948 | |
| 3949 | |
| 3950 | |
| 3951 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3952 | 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] | 3953 | libintl.h locale.h ncurses.h poll.h pthread.h \ |
Eric S. Raymond | d2d75d3 | 2001-01-16 15:26:34 +0000 | [diff] [blame] | 3954 | 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] | 3955 | 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] | 3956 | 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] | 3957 | 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] | 3958 | sys/resource.h netpacket/packet.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3959 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3960 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3961 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3962 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3963 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3964 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3966 | fi |
| 3967 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3968 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3969 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3970 | # Is the header compilable? |
| 3971 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 3972 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 3973 | cat >conftest.$ac_ext <<_ACEOF |
| 3974 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3975 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3976 | $ac_includes_default |
| 3977 | #include <$ac_header> |
| 3978 | _ACEOF |
| 3979 | rm -f conftest.$ac_objext |
| 3980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3981 | (eval $ac_compile) 2>&5 |
| 3982 | ac_status=$? |
| 3983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3984 | (exit $ac_status); } && |
| 3985 | { ac_try='test -s conftest.$ac_objext' |
| 3986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3987 | (eval $ac_try) 2>&5 |
| 3988 | ac_status=$? |
| 3989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3990 | (exit $ac_status); }; }; then |
| 3991 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3992 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3993 | echo "$as_me: failed program was:" >&5 |
| 3994 | cat conftest.$ac_ext >&5 |
| 3995 | ac_header_compiler=no |
| 3996 | fi |
| 3997 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3998 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 3999 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4000 | |
| 4001 | # Is the header present? |
| 4002 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4003 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4004 | cat >conftest.$ac_ext <<_ACEOF |
| 4005 | #line $LINENO "configure" |
| 4006 | #include "confdefs.h" |
| 4007 | #include <$ac_header> |
| 4008 | _ACEOF |
| 4009 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4010 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4011 | ac_status=$? |
| 4012 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 4013 | rm -f conftest.er1 |
| 4014 | cat conftest.err >&5 |
| 4015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4016 | (exit $ac_status); } >/dev/null; then |
| 4017 | if test -s conftest.err; then |
| 4018 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4019 | else |
| 4020 | ac_cpp_err= |
| 4021 | fi |
| 4022 | else |
| 4023 | ac_cpp_err=yes |
| 4024 | fi |
| 4025 | if test -z "$ac_cpp_err"; then |
| 4026 | ac_header_preproc=yes |
| 4027 | else |
| 4028 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4029 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4030 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4031 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4032 | rm -f conftest.err conftest.$ac_ext |
| 4033 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4034 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4035 | |
| 4036 | # So? What about this header? |
| 4037 | case $ac_header_compiler:$ac_header_preproc in |
| 4038 | yes:no ) |
| 4039 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4040 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4041 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4042 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 4043 | no:yes ) |
| 4044 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4045 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 4046 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4047 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4048 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4049 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 4050 | esac |
| 4051 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4052 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4053 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4054 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4055 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4056 | eval "$as_ac_Header=$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4057 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4058 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4059 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4060 | |
| 4061 | fi |
| 4062 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4063 | cat >>confdefs.h <<_ACEOF |
| 4064 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4065 | _ACEOF |
| 4066 | |
| 4067 | fi |
| 4068 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4069 | done |
| 4070 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4071 | |
| 4072 | |
| 4073 | |
| 4074 | |
| 4075 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4076 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4077 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 4078 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 4079 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 4080 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 4081 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4083 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4084 | cat >conftest.$ac_ext <<_ACEOF |
| 4085 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4086 | #include "confdefs.h" |
| 4087 | #include <sys/types.h> |
| 4088 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4089 | |
| 4090 | #ifdef F77_DUMMY_MAIN |
| 4091 | # ifdef __cplusplus |
| 4092 | extern "C" |
| 4093 | # endif |
| 4094 | int F77_DUMMY_MAIN() { return 1; } |
| 4095 | #endif |
| 4096 | int |
| 4097 | main () |
| 4098 | { |
| 4099 | if ((DIR *) 0) |
| 4100 | return 0; |
| 4101 | ; |
| 4102 | return 0; |
| 4103 | } |
| 4104 | _ACEOF |
| 4105 | rm -f conftest.$ac_objext |
| 4106 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4107 | (eval $ac_compile) 2>&5 |
| 4108 | ac_status=$? |
| 4109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4110 | (exit $ac_status); } && |
| 4111 | { ac_try='test -s conftest.$ac_objext' |
| 4112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4113 | (eval $ac_try) 2>&5 |
| 4114 | ac_status=$? |
| 4115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4116 | (exit $ac_status); }; }; then |
| 4117 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4118 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4119 | echo "$as_me: failed program was:" >&5 |
| 4120 | cat conftest.$ac_ext >&5 |
| 4121 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4122 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4123 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4124 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4125 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4126 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4127 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4128 | cat >>confdefs.h <<_ACEOF |
| 4129 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 4130 | _ACEOF |
| 4131 | |
| 4132 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4133 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4134 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4135 | done |
| 4136 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 4137 | if test $ac_header_dirent = dirent.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4138 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4139 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4140 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4142 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4143 | ac_func_search_save_LIBS=$LIBS |
| 4144 | ac_cv_search_opendir=no |
| 4145 | cat >conftest.$ac_ext <<_ACEOF |
| 4146 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4147 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4148 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4149 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4150 | #ifdef __cplusplus |
| 4151 | extern "C" |
| 4152 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4153 | /* 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] | 4154 | builtin and then its argument prototype would still apply. */ |
| 4155 | char opendir (); |
| 4156 | #ifdef F77_DUMMY_MAIN |
| 4157 | # ifdef __cplusplus |
| 4158 | extern "C" |
| 4159 | # endif |
| 4160 | int F77_DUMMY_MAIN() { return 1; } |
| 4161 | #endif |
| 4162 | int |
| 4163 | main () |
| 4164 | { |
| 4165 | opendir (); |
| 4166 | ; |
| 4167 | return 0; |
| 4168 | } |
| 4169 | _ACEOF |
| 4170 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4171 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4172 | (eval $ac_link) 2>&5 |
| 4173 | ac_status=$? |
| 4174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4175 | (exit $ac_status); } && |
| 4176 | { ac_try='test -s conftest$ac_exeext' |
| 4177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4178 | (eval $ac_try) 2>&5 |
| 4179 | ac_status=$? |
| 4180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4181 | (exit $ac_status); }; }; then |
| 4182 | ac_cv_search_opendir="none required" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4183 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4184 | echo "$as_me: failed program was:" >&5 |
| 4185 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4186 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4187 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4188 | if test "$ac_cv_search_opendir" = no; then |
| 4189 | for ac_lib in dir; do |
| 4190 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4191 | cat >conftest.$ac_ext <<_ACEOF |
| 4192 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4193 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4194 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4195 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4196 | #ifdef __cplusplus |
| 4197 | extern "C" |
| 4198 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4199 | /* 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] | 4200 | builtin and then its argument prototype would still apply. */ |
| 4201 | char opendir (); |
| 4202 | #ifdef F77_DUMMY_MAIN |
| 4203 | # ifdef __cplusplus |
| 4204 | extern "C" |
| 4205 | # endif |
| 4206 | int F77_DUMMY_MAIN() { return 1; } |
| 4207 | #endif |
| 4208 | int |
| 4209 | main () |
| 4210 | { |
| 4211 | opendir (); |
| 4212 | ; |
| 4213 | return 0; |
| 4214 | } |
| 4215 | _ACEOF |
| 4216 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4217 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4218 | (eval $ac_link) 2>&5 |
| 4219 | ac_status=$? |
| 4220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4221 | (exit $ac_status); } && |
| 4222 | { ac_try='test -s conftest$ac_exeext' |
| 4223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4224 | (eval $ac_try) 2>&5 |
| 4225 | ac_status=$? |
| 4226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4227 | (exit $ac_status); }; }; then |
| 4228 | ac_cv_search_opendir="-l$ac_lib" |
| 4229 | break |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4230 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4231 | echo "$as_me: failed program was:" >&5 |
| 4232 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4233 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4234 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4235 | done |
| 4236 | fi |
| 4237 | LIBS=$ac_func_search_save_LIBS |
| 4238 | fi |
| 4239 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4240 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4241 | if test "$ac_cv_search_opendir" != no; then |
| 4242 | 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] | 4243 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4244 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4245 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4246 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4247 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4248 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4249 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4250 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4251 | else |
| 4252 | ac_func_search_save_LIBS=$LIBS |
| 4253 | ac_cv_search_opendir=no |
| 4254 | cat >conftest.$ac_ext <<_ACEOF |
| 4255 | #line $LINENO "configure" |
| 4256 | #include "confdefs.h" |
| 4257 | |
| 4258 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4259 | #ifdef __cplusplus |
| 4260 | extern "C" |
| 4261 | #endif |
| 4262 | /* We use char because int might match the return type of a gcc2 |
| 4263 | builtin and then its argument prototype would still apply. */ |
| 4264 | char opendir (); |
| 4265 | #ifdef F77_DUMMY_MAIN |
| 4266 | # ifdef __cplusplus |
| 4267 | extern "C" |
| 4268 | # endif |
| 4269 | int F77_DUMMY_MAIN() { return 1; } |
| 4270 | #endif |
| 4271 | int |
| 4272 | main () |
| 4273 | { |
| 4274 | opendir (); |
| 4275 | ; |
| 4276 | return 0; |
| 4277 | } |
| 4278 | _ACEOF |
| 4279 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4280 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4281 | (eval $ac_link) 2>&5 |
| 4282 | ac_status=$? |
| 4283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4284 | (exit $ac_status); } && |
| 4285 | { ac_try='test -s conftest$ac_exeext' |
| 4286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4287 | (eval $ac_try) 2>&5 |
| 4288 | ac_status=$? |
| 4289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4290 | (exit $ac_status); }; }; then |
| 4291 | ac_cv_search_opendir="none required" |
| 4292 | else |
| 4293 | echo "$as_me: failed program was:" >&5 |
| 4294 | cat conftest.$ac_ext >&5 |
| 4295 | fi |
| 4296 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4297 | if test "$ac_cv_search_opendir" = no; then |
| 4298 | for ac_lib in x; do |
| 4299 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4300 | cat >conftest.$ac_ext <<_ACEOF |
| 4301 | #line $LINENO "configure" |
| 4302 | #include "confdefs.h" |
| 4303 | |
| 4304 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4305 | #ifdef __cplusplus |
| 4306 | extern "C" |
| 4307 | #endif |
| 4308 | /* We use char because int might match the return type of a gcc2 |
| 4309 | builtin and then its argument prototype would still apply. */ |
| 4310 | char opendir (); |
| 4311 | #ifdef F77_DUMMY_MAIN |
| 4312 | # ifdef __cplusplus |
| 4313 | extern "C" |
| 4314 | # endif |
| 4315 | int F77_DUMMY_MAIN() { return 1; } |
| 4316 | #endif |
| 4317 | int |
| 4318 | main () |
| 4319 | { |
| 4320 | opendir (); |
| 4321 | ; |
| 4322 | return 0; |
| 4323 | } |
| 4324 | _ACEOF |
| 4325 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4326 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4327 | (eval $ac_link) 2>&5 |
| 4328 | ac_status=$? |
| 4329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4330 | (exit $ac_status); } && |
| 4331 | { ac_try='test -s conftest$ac_exeext' |
| 4332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4333 | (eval $ac_try) 2>&5 |
| 4334 | ac_status=$? |
| 4335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4336 | (exit $ac_status); }; }; then |
| 4337 | ac_cv_search_opendir="-l$ac_lib" |
| 4338 | break |
| 4339 | else |
| 4340 | echo "$as_me: failed program was:" >&5 |
| 4341 | cat conftest.$ac_ext >&5 |
| 4342 | fi |
| 4343 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4344 | done |
| 4345 | fi |
| 4346 | LIBS=$ac_func_search_save_LIBS |
| 4347 | fi |
| 4348 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4349 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4350 | if test "$ac_cv_search_opendir" != no; then |
| 4351 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 4352 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4353 | fi |
| 4354 | |
| 4355 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4356 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4357 | echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 4358 | echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6 |
| 4359 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
| 4360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4361 | else |
| 4362 | cat >conftest.$ac_ext <<_ACEOF |
| 4363 | #line $LINENO "configure" |
| 4364 | #include "confdefs.h" |
| 4365 | #include <sys/types.h> |
| 4366 | #ifdef F77_DUMMY_MAIN |
| 4367 | # ifdef __cplusplus |
| 4368 | extern "C" |
| 4369 | # endif |
| 4370 | int F77_DUMMY_MAIN() { return 1; } |
| 4371 | #endif |
| 4372 | int |
| 4373 | main () |
| 4374 | { |
| 4375 | return makedev(0, 0); |
| 4376 | ; |
| 4377 | return 0; |
| 4378 | } |
| 4379 | _ACEOF |
| 4380 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4381 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4382 | (eval $ac_link) 2>&5 |
| 4383 | ac_status=$? |
| 4384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4385 | (exit $ac_status); } && |
| 4386 | { ac_try='test -s conftest$ac_exeext' |
| 4387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4388 | (eval $ac_try) 2>&5 |
| 4389 | ac_status=$? |
| 4390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4391 | (exit $ac_status); }; }; then |
| 4392 | ac_cv_header_sys_types_h_makedev=yes |
| 4393 | else |
| 4394 | echo "$as_me: failed program was:" >&5 |
| 4395 | cat conftest.$ac_ext >&5 |
| 4396 | ac_cv_header_sys_types_h_makedev=no |
| 4397 | fi |
| 4398 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4399 | |
| 4400 | fi |
| 4401 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 4402 | echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6 |
| 4403 | |
| 4404 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 4405 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4406 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 4407 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 4408 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4409 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4410 | fi |
| 4411 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 4412 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 4413 | else |
| 4414 | # Is the header compilable? |
| 4415 | echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 4416 | echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6 |
| 4417 | cat >conftest.$ac_ext <<_ACEOF |
| 4418 | #line $LINENO "configure" |
| 4419 | #include "confdefs.h" |
| 4420 | $ac_includes_default |
| 4421 | #include <sys/mkdev.h> |
| 4422 | _ACEOF |
| 4423 | rm -f conftest.$ac_objext |
| 4424 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4425 | (eval $ac_compile) 2>&5 |
| 4426 | ac_status=$? |
| 4427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4428 | (exit $ac_status); } && |
| 4429 | { ac_try='test -s conftest.$ac_objext' |
| 4430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4431 | (eval $ac_try) 2>&5 |
| 4432 | ac_status=$? |
| 4433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4434 | (exit $ac_status); }; }; then |
| 4435 | ac_header_compiler=yes |
| 4436 | else |
| 4437 | echo "$as_me: failed program was:" >&5 |
| 4438 | cat conftest.$ac_ext >&5 |
| 4439 | ac_header_compiler=no |
| 4440 | fi |
| 4441 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4442 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4443 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4444 | |
| 4445 | # Is the header present? |
| 4446 | echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 4447 | echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6 |
| 4448 | cat >conftest.$ac_ext <<_ACEOF |
| 4449 | #line $LINENO "configure" |
| 4450 | #include "confdefs.h" |
| 4451 | #include <sys/mkdev.h> |
| 4452 | _ACEOF |
| 4453 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4454 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4455 | ac_status=$? |
| 4456 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 4457 | rm -f conftest.er1 |
| 4458 | cat conftest.err >&5 |
| 4459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4460 | (exit $ac_status); } >/dev/null; then |
| 4461 | if test -s conftest.err; then |
| 4462 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4463 | else |
| 4464 | ac_cpp_err= |
| 4465 | fi |
| 4466 | else |
| 4467 | ac_cpp_err=yes |
| 4468 | fi |
| 4469 | if test -z "$ac_cpp_err"; then |
| 4470 | ac_header_preproc=yes |
| 4471 | else |
| 4472 | echo "$as_me: failed program was:" >&5 |
| 4473 | cat conftest.$ac_ext >&5 |
| 4474 | ac_header_preproc=no |
| 4475 | fi |
| 4476 | rm -f conftest.err conftest.$ac_ext |
| 4477 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4478 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4479 | |
| 4480 | # So? What about this header? |
| 4481 | case $ac_header_compiler:$ac_header_preproc in |
| 4482 | yes:no ) |
| 4483 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4484 | echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4485 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 4486 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};; |
| 4487 | no:yes ) |
| 4488 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 4489 | echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
| 4490 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 4491 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 4492 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 4493 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};; |
| 4494 | esac |
| 4495 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 4496 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 4497 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4498 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4499 | else |
| 4500 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 4501 | fi |
| 4502 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 4503 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 4504 | |
| 4505 | fi |
| 4506 | if test $ac_cv_header_sys_mkdev_h = yes; then |
| 4507 | |
| 4508 | cat >>confdefs.h <<\_ACEOF |
| 4509 | #define MAJOR_IN_MKDEV 1 |
| 4510 | _ACEOF |
| 4511 | |
| 4512 | fi |
| 4513 | |
| 4514 | |
| 4515 | |
| 4516 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 4517 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4518 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 4519 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 4520 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4522 | fi |
| 4523 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 4524 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 4525 | else |
| 4526 | # Is the header compilable? |
| 4527 | echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 4528 | echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6 |
| 4529 | cat >conftest.$ac_ext <<_ACEOF |
| 4530 | #line $LINENO "configure" |
| 4531 | #include "confdefs.h" |
| 4532 | $ac_includes_default |
| 4533 | #include <sys/sysmacros.h> |
| 4534 | _ACEOF |
| 4535 | rm -f conftest.$ac_objext |
| 4536 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4537 | (eval $ac_compile) 2>&5 |
| 4538 | ac_status=$? |
| 4539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4540 | (exit $ac_status); } && |
| 4541 | { ac_try='test -s conftest.$ac_objext' |
| 4542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4543 | (eval $ac_try) 2>&5 |
| 4544 | ac_status=$? |
| 4545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4546 | (exit $ac_status); }; }; then |
| 4547 | ac_header_compiler=yes |
| 4548 | else |
| 4549 | echo "$as_me: failed program was:" >&5 |
| 4550 | cat conftest.$ac_ext >&5 |
| 4551 | ac_header_compiler=no |
| 4552 | fi |
| 4553 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4554 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4555 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4556 | |
| 4557 | # Is the header present? |
| 4558 | echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 4559 | echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6 |
| 4560 | cat >conftest.$ac_ext <<_ACEOF |
| 4561 | #line $LINENO "configure" |
| 4562 | #include "confdefs.h" |
| 4563 | #include <sys/sysmacros.h> |
| 4564 | _ACEOF |
| 4565 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4566 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4567 | ac_status=$? |
| 4568 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 4569 | rm -f conftest.er1 |
| 4570 | cat conftest.err >&5 |
| 4571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4572 | (exit $ac_status); } >/dev/null; then |
| 4573 | if test -s conftest.err; then |
| 4574 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4575 | else |
| 4576 | ac_cpp_err= |
| 4577 | fi |
| 4578 | else |
| 4579 | ac_cpp_err=yes |
| 4580 | fi |
| 4581 | if test -z "$ac_cpp_err"; then |
| 4582 | ac_header_preproc=yes |
| 4583 | else |
| 4584 | echo "$as_me: failed program was:" >&5 |
| 4585 | cat conftest.$ac_ext >&5 |
| 4586 | ac_header_preproc=no |
| 4587 | fi |
| 4588 | rm -f conftest.err conftest.$ac_ext |
| 4589 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4590 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4591 | |
| 4592 | # So? What about this header? |
| 4593 | case $ac_header_compiler:$ac_header_preproc in |
| 4594 | yes:no ) |
| 4595 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4596 | echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4597 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 4598 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};; |
| 4599 | no:yes ) |
| 4600 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 4601 | echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
| 4602 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 4603 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 4604 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 4605 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};; |
| 4606 | esac |
| 4607 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 4608 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 4609 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4611 | else |
| 4612 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 4613 | fi |
| 4614 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 4615 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 4616 | |
| 4617 | fi |
| 4618 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
| 4619 | |
| 4620 | cat >>confdefs.h <<\_ACEOF |
| 4621 | #define MAJOR_IN_SYSMACROS 1 |
| 4622 | _ACEOF |
| 4623 | |
| 4624 | fi |
| 4625 | |
| 4626 | |
| 4627 | fi |
| 4628 | fi |
| 4629 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4630 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4631 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4632 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4633 | echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 4634 | echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6 |
| 4635 | cat >conftest.$ac_ext <<_ACEOF |
| 4636 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4637 | #include "confdefs.h" |
| 4638 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4639 | |
| 4640 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4641 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4642 | egrep "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4643 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4644 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4645 | |
| 4646 | |
| 4647 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4648 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4649 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4650 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 4651 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4652 | fi |
| 4653 | rm -f conftest* |
| 4654 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4655 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 4656 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4657 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 4658 | # Check whether using makedev requires defining _OSF_SOURCE |
| 4659 | echo "$as_me:$LINENO: checking for makedev" >&5 |
| 4660 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6 |
| 4661 | cat >conftest.$ac_ext <<_ACEOF |
| 4662 | #line $LINENO "configure" |
| 4663 | #include "confdefs.h" |
| 4664 | #include <sys/types.h> |
| 4665 | #ifdef F77_DUMMY_MAIN |
| 4666 | # ifdef __cplusplus |
| 4667 | extern "C" |
| 4668 | # endif |
| 4669 | int F77_DUMMY_MAIN() { return 1; } |
| 4670 | #endif |
| 4671 | int |
| 4672 | main () |
| 4673 | { |
| 4674 | makedev(0, 0) |
| 4675 | ; |
| 4676 | return 0; |
| 4677 | } |
| 4678 | _ACEOF |
| 4679 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4680 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4681 | (eval $ac_link) 2>&5 |
| 4682 | ac_status=$? |
| 4683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4684 | (exit $ac_status); } && |
| 4685 | { ac_try='test -s conftest$ac_exeext' |
| 4686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4687 | (eval $ac_try) 2>&5 |
| 4688 | ac_status=$? |
| 4689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4690 | (exit $ac_status); }; }; then |
| 4691 | ac_cv_has_makedev=yes |
| 4692 | else |
| 4693 | echo "$as_me: failed program was:" >&5 |
| 4694 | cat conftest.$ac_ext >&5 |
| 4695 | ac_cv_has_makedev=no |
| 4696 | fi |
| 4697 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4698 | if test "$ac_cv_has_makedev" = "no"; then |
| 4699 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 4700 | cat >conftest.$ac_ext <<_ACEOF |
| 4701 | #line $LINENO "configure" |
| 4702 | #include "confdefs.h" |
| 4703 | |
| 4704 | #define _OSF_SOURCE 1 |
| 4705 | #include <sys/types.h> |
| 4706 | |
| 4707 | #ifdef F77_DUMMY_MAIN |
| 4708 | # ifdef __cplusplus |
| 4709 | extern "C" |
| 4710 | # endif |
| 4711 | int F77_DUMMY_MAIN() { return 1; } |
| 4712 | #endif |
| 4713 | int |
| 4714 | main () |
| 4715 | { |
| 4716 | makedev(0, 0) |
| 4717 | ; |
| 4718 | return 0; |
| 4719 | } |
| 4720 | _ACEOF |
| 4721 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4722 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4723 | (eval $ac_link) 2>&5 |
| 4724 | ac_status=$? |
| 4725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4726 | (exit $ac_status); } && |
| 4727 | { ac_try='test -s conftest$ac_exeext' |
| 4728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4729 | (eval $ac_try) 2>&5 |
| 4730 | ac_status=$? |
| 4731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4732 | (exit $ac_status); }; }; then |
| 4733 | ac_cv_has_makedev=yes |
| 4734 | else |
| 4735 | echo "$as_me: failed program was:" >&5 |
| 4736 | cat conftest.$ac_ext >&5 |
| 4737 | ac_cv_has_makedev=no |
| 4738 | fi |
| 4739 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4740 | if test "$ac_cv_has_makedev" = "yes"; then |
| 4741 | |
| 4742 | cat >>confdefs.h <<\_ACEOF |
| 4743 | #define _OSF_SOURCE 1 |
| 4744 | _ACEOF |
| 4745 | |
| 4746 | fi |
| 4747 | fi |
| 4748 | echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 4749 | echo "${ECHO_T}$ac_cv_has_makedev" >&6 |
| 4750 | if test "$ac_cv_has_makedev" = "yes"; then |
| 4751 | |
| 4752 | cat >>confdefs.h <<\_ACEOF |
| 4753 | #define HAVE_MAKEDEV 1 |
| 4754 | _ACEOF |
| 4755 | |
| 4756 | fi |
| 4757 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 4758 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 4759 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 4760 | # defined, but the compiler does not support pragma redefine_extname, |
| 4761 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 4762 | # structures (such as rlimit64) without declaring them. As a |
| 4763 | # work-around, disable LFS on such configurations |
| 4764 | |
| 4765 | use_lfs=yes |
| 4766 | echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 4767 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6 |
| 4768 | cat >conftest.$ac_ext <<_ACEOF |
| 4769 | #line $LINENO "configure" |
| 4770 | #include "confdefs.h" |
| 4771 | |
| 4772 | #define _LARGEFILE_SOURCE 1 |
| 4773 | #define _FILE_OFFSET_BITS 64 |
| 4774 | #include <sys/resource.h> |
| 4775 | |
| 4776 | #ifdef F77_DUMMY_MAIN |
| 4777 | # ifdef __cplusplus |
| 4778 | extern "C" |
| 4779 | # endif |
| 4780 | int F77_DUMMY_MAIN() { return 1; } |
| 4781 | #endif |
| 4782 | int |
| 4783 | main () |
| 4784 | { |
| 4785 | struct rlimit foo; |
| 4786 | ; |
| 4787 | return 0; |
| 4788 | } |
| 4789 | _ACEOF |
| 4790 | rm -f conftest.$ac_objext |
| 4791 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4792 | (eval $ac_compile) 2>&5 |
| 4793 | ac_status=$? |
| 4794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4795 | (exit $ac_status); } && |
| 4796 | { ac_try='test -s conftest.$ac_objext' |
| 4797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4798 | (eval $ac_try) 2>&5 |
| 4799 | ac_status=$? |
| 4800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4801 | (exit $ac_status); }; }; then |
| 4802 | sol_lfs_bug=no |
| 4803 | else |
| 4804 | echo "$as_me: failed program was:" >&5 |
| 4805 | cat conftest.$ac_ext >&5 |
| 4806 | sol_lfs_bug=yes |
| 4807 | fi |
| 4808 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4809 | echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 4810 | echo "${ECHO_T}$sol_lfs_bug" >&6 |
| 4811 | if test "$sol_lfs_bug" = "yes"; then |
| 4812 | use_lfs=no |
| 4813 | fi |
| 4814 | |
| 4815 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4816 | # Two defines needed to enable largefile support on various platforms |
| 4817 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4818 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4819 | cat >>confdefs.h <<\_ACEOF |
| 4820 | #define _LARGEFILE_SOURCE 1 |
| 4821 | _ACEOF |
| 4822 | |
| 4823 | |
| 4824 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4825 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4826 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4827 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 4828 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4829 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 4830 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 4831 | cat >> confdefs.h <<\EOF |
| 4832 | #if defined(SCO_DS) |
| 4833 | #undef _OFF_T |
| 4834 | #endif |
| 4835 | EOF |
| 4836 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4837 | # Type availability checks |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4838 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 4839 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 4840 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 4841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4842 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4843 | cat >conftest.$ac_ext <<_ACEOF |
| 4844 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4845 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4846 | $ac_includes_default |
| 4847 | #ifdef F77_DUMMY_MAIN |
| 4848 | # ifdef __cplusplus |
| 4849 | extern "C" |
| 4850 | # endif |
| 4851 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4852 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4853 | int |
| 4854 | main () |
| 4855 | { |
| 4856 | if ((mode_t *) 0) |
| 4857 | return 0; |
| 4858 | if (sizeof (mode_t)) |
| 4859 | return 0; |
| 4860 | ; |
| 4861 | return 0; |
| 4862 | } |
| 4863 | _ACEOF |
| 4864 | rm -f conftest.$ac_objext |
| 4865 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4866 | (eval $ac_compile) 2>&5 |
| 4867 | ac_status=$? |
| 4868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4869 | (exit $ac_status); } && |
| 4870 | { ac_try='test -s conftest.$ac_objext' |
| 4871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4872 | (eval $ac_try) 2>&5 |
| 4873 | ac_status=$? |
| 4874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4875 | (exit $ac_status); }; }; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4876 | ac_cv_type_mode_t=yes |
| 4877 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4878 | echo "$as_me: failed program was:" >&5 |
| 4879 | cat conftest.$ac_ext >&5 |
| 4880 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4881 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4882 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4883 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4884 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 4885 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 4886 | if test $ac_cv_type_mode_t = yes; then |
| 4887 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4888 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4889 | |
| 4890 | cat >>confdefs.h <<_ACEOF |
| 4891 | #define mode_t int |
| 4892 | _ACEOF |
| 4893 | |
| 4894 | fi |
| 4895 | |
| 4896 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 4897 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 4898 | if test "${ac_cv_type_off_t+set}" = set; then |
| 4899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4900 | else |
| 4901 | cat >conftest.$ac_ext <<_ACEOF |
| 4902 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4903 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4904 | $ac_includes_default |
| 4905 | #ifdef F77_DUMMY_MAIN |
| 4906 | # ifdef __cplusplus |
| 4907 | extern "C" |
| 4908 | # endif |
| 4909 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4910 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4911 | int |
| 4912 | main () |
| 4913 | { |
| 4914 | if ((off_t *) 0) |
| 4915 | return 0; |
| 4916 | if (sizeof (off_t)) |
| 4917 | return 0; |
| 4918 | ; |
| 4919 | return 0; |
| 4920 | } |
| 4921 | _ACEOF |
| 4922 | rm -f conftest.$ac_objext |
| 4923 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4924 | (eval $ac_compile) 2>&5 |
| 4925 | ac_status=$? |
| 4926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4927 | (exit $ac_status); } && |
| 4928 | { ac_try='test -s conftest.$ac_objext' |
| 4929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4930 | (eval $ac_try) 2>&5 |
| 4931 | ac_status=$? |
| 4932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4933 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4934 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4935 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4936 | echo "$as_me: failed program was:" >&5 |
| 4937 | cat conftest.$ac_ext >&5 |
| 4938 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4939 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4940 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4941 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4942 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 4943 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 4944 | if test $ac_cv_type_off_t = yes; then |
| 4945 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4946 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4947 | |
| 4948 | cat >>confdefs.h <<_ACEOF |
| 4949 | #define off_t long |
| 4950 | _ACEOF |
| 4951 | |
| 4952 | fi |
| 4953 | |
| 4954 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 4955 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 4956 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 4957 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4958 | else |
| 4959 | cat >conftest.$ac_ext <<_ACEOF |
| 4960 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4961 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4962 | $ac_includes_default |
| 4963 | #ifdef F77_DUMMY_MAIN |
| 4964 | # ifdef __cplusplus |
| 4965 | extern "C" |
| 4966 | # endif |
| 4967 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4968 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4969 | int |
| 4970 | main () |
| 4971 | { |
| 4972 | if ((pid_t *) 0) |
| 4973 | return 0; |
| 4974 | if (sizeof (pid_t)) |
| 4975 | return 0; |
| 4976 | ; |
| 4977 | return 0; |
| 4978 | } |
| 4979 | _ACEOF |
| 4980 | rm -f conftest.$ac_objext |
| 4981 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4982 | (eval $ac_compile) 2>&5 |
| 4983 | ac_status=$? |
| 4984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4985 | (exit $ac_status); } && |
| 4986 | { ac_try='test -s conftest.$ac_objext' |
| 4987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4988 | (eval $ac_try) 2>&5 |
| 4989 | ac_status=$? |
| 4990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4991 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4992 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4993 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4994 | echo "$as_me: failed program was:" >&5 |
| 4995 | cat conftest.$ac_ext >&5 |
| 4996 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4997 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4998 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4999 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5000 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 5001 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 5002 | if test $ac_cv_type_pid_t = yes; then |
| 5003 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5004 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5005 | |
| 5006 | cat >>confdefs.h <<_ACEOF |
| 5007 | #define pid_t int |
| 5008 | _ACEOF |
| 5009 | |
| 5010 | fi |
| 5011 | |
| 5012 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 5013 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 5014 | if test "${ac_cv_type_signal+set}" = set; then |
| 5015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5016 | else |
| 5017 | cat >conftest.$ac_ext <<_ACEOF |
| 5018 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5019 | #include "confdefs.h" |
| 5020 | #include <sys/types.h> |
| 5021 | #include <signal.h> |
| 5022 | #ifdef signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5023 | # undef signal |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5024 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5025 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5026 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 5027 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5028 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5029 | #endif |
| 5030 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5031 | #ifdef F77_DUMMY_MAIN |
| 5032 | # ifdef __cplusplus |
| 5033 | extern "C" |
| 5034 | # endif |
| 5035 | int F77_DUMMY_MAIN() { return 1; } |
| 5036 | #endif |
| 5037 | int |
| 5038 | main () |
| 5039 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5040 | int i; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5041 | ; |
| 5042 | return 0; |
| 5043 | } |
| 5044 | _ACEOF |
| 5045 | rm -f conftest.$ac_objext |
| 5046 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5047 | (eval $ac_compile) 2>&5 |
| 5048 | ac_status=$? |
| 5049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5050 | (exit $ac_status); } && |
| 5051 | { ac_try='test -s conftest.$ac_objext' |
| 5052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5053 | (eval $ac_try) 2>&5 |
| 5054 | ac_status=$? |
| 5055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5056 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5057 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5058 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5059 | echo "$as_me: failed program was:" >&5 |
| 5060 | cat conftest.$ac_ext >&5 |
| 5061 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5062 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5063 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5064 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5065 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 5066 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5067 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5068 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5069 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5070 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5071 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5072 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5073 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 5074 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 5075 | if test "${ac_cv_type_size_t+set}" = set; then |
| 5076 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5077 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5078 | cat >conftest.$ac_ext <<_ACEOF |
| 5079 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5080 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5081 | $ac_includes_default |
| 5082 | #ifdef F77_DUMMY_MAIN |
| 5083 | # ifdef __cplusplus |
| 5084 | extern "C" |
| 5085 | # endif |
| 5086 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5087 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5088 | int |
| 5089 | main () |
| 5090 | { |
| 5091 | if ((size_t *) 0) |
| 5092 | return 0; |
| 5093 | if (sizeof (size_t)) |
| 5094 | return 0; |
| 5095 | ; |
| 5096 | return 0; |
| 5097 | } |
| 5098 | _ACEOF |
| 5099 | rm -f conftest.$ac_objext |
| 5100 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5101 | (eval $ac_compile) 2>&5 |
| 5102 | ac_status=$? |
| 5103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5104 | (exit $ac_status); } && |
| 5105 | { ac_try='test -s conftest.$ac_objext' |
| 5106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5107 | (eval $ac_try) 2>&5 |
| 5108 | ac_status=$? |
| 5109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5110 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5111 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5112 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5113 | echo "$as_me: failed program was:" >&5 |
| 5114 | cat conftest.$ac_ext >&5 |
| 5115 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5116 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5117 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5118 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5119 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 5120 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 5121 | if test $ac_cv_type_size_t = yes; then |
| 5122 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5123 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5124 | |
| 5125 | cat >>confdefs.h <<_ACEOF |
| 5126 | #define size_t unsigned |
| 5127 | _ACEOF |
| 5128 | |
| 5129 | fi |
| 5130 | |
| 5131 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 5132 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 5133 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 5134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5135 | else |
| 5136 | cat >conftest.$ac_ext <<_ACEOF |
| 5137 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5138 | #include "confdefs.h" |
| 5139 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5140 | |
| 5141 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5142 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5143 | egrep "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5144 | ac_cv_type_uid_t=yes |
| 5145 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5146 | ac_cv_type_uid_t=no |
| 5147 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5148 | rm -f conftest* |
| 5149 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5150 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5151 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 5152 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5153 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5154 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5155 | cat >>confdefs.h <<\_ACEOF |
| 5156 | #define uid_t int |
| 5157 | _ACEOF |
| 5158 | |
| 5159 | |
| 5160 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5161 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5162 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5163 | |
| 5164 | fi |
| 5165 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5166 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5167 | # Sizes of various common basic types |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5168 | echo "$as_me:$LINENO: checking for int" >&5 |
| 5169 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
| 5170 | if test "${ac_cv_type_int+set}" = set; then |
| 5171 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5172 | else |
| 5173 | cat >conftest.$ac_ext <<_ACEOF |
| 5174 | #line $LINENO "configure" |
| 5175 | #include "confdefs.h" |
| 5176 | $ac_includes_default |
| 5177 | #ifdef F77_DUMMY_MAIN |
| 5178 | # ifdef __cplusplus |
| 5179 | extern "C" |
| 5180 | # endif |
| 5181 | int F77_DUMMY_MAIN() { return 1; } |
| 5182 | #endif |
| 5183 | int |
| 5184 | main () |
| 5185 | { |
| 5186 | if ((int *) 0) |
| 5187 | return 0; |
| 5188 | if (sizeof (int)) |
| 5189 | return 0; |
| 5190 | ; |
| 5191 | return 0; |
| 5192 | } |
| 5193 | _ACEOF |
| 5194 | rm -f conftest.$ac_objext |
| 5195 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5196 | (eval $ac_compile) 2>&5 |
| 5197 | ac_status=$? |
| 5198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5199 | (exit $ac_status); } && |
| 5200 | { ac_try='test -s conftest.$ac_objext' |
| 5201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5202 | (eval $ac_try) 2>&5 |
| 5203 | ac_status=$? |
| 5204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5205 | (exit $ac_status); }; }; then |
| 5206 | ac_cv_type_int=yes |
| 5207 | else |
| 5208 | echo "$as_me: failed program was:" >&5 |
| 5209 | cat conftest.$ac_ext >&5 |
| 5210 | ac_cv_type_int=no |
| 5211 | fi |
| 5212 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5213 | fi |
| 5214 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 5215 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
| 5216 | |
| 5217 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 5218 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 5219 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 5220 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5221 | else |
| 5222 | if test "$ac_cv_type_int" = yes; then |
| 5223 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5224 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5225 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5226 | # This bug is HP SR number 8606223364. |
| 5227 | if test "$cross_compiling" = yes; then |
| 5228 | # Depending upon the size, compute the lo and hi bounds. |
| 5229 | cat >conftest.$ac_ext <<_ACEOF |
| 5230 | #line $LINENO "configure" |
| 5231 | #include "confdefs.h" |
| 5232 | $ac_includes_default |
| 5233 | #ifdef F77_DUMMY_MAIN |
| 5234 | # ifdef __cplusplus |
| 5235 | extern "C" |
| 5236 | # endif |
| 5237 | int F77_DUMMY_MAIN() { return 1; } |
| 5238 | #endif |
| 5239 | int |
| 5240 | main () |
| 5241 | { |
| 5242 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
| 5243 | test_array [0] = 0 |
| 5244 | |
| 5245 | ; |
| 5246 | return 0; |
| 5247 | } |
| 5248 | _ACEOF |
| 5249 | rm -f conftest.$ac_objext |
| 5250 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5251 | (eval $ac_compile) 2>&5 |
| 5252 | ac_status=$? |
| 5253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5254 | (exit $ac_status); } && |
| 5255 | { ac_try='test -s conftest.$ac_objext' |
| 5256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5257 | (eval $ac_try) 2>&5 |
| 5258 | ac_status=$? |
| 5259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5260 | (exit $ac_status); }; }; then |
| 5261 | ac_lo=0 ac_mid=0 |
| 5262 | while :; do |
| 5263 | cat >conftest.$ac_ext <<_ACEOF |
| 5264 | #line $LINENO "configure" |
| 5265 | #include "confdefs.h" |
| 5266 | $ac_includes_default |
| 5267 | #ifdef F77_DUMMY_MAIN |
| 5268 | # ifdef __cplusplus |
| 5269 | extern "C" |
| 5270 | # endif |
| 5271 | int F77_DUMMY_MAIN() { return 1; } |
| 5272 | #endif |
| 5273 | int |
| 5274 | main () |
| 5275 | { |
| 5276 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 5277 | test_array [0] = 0 |
| 5278 | |
| 5279 | ; |
| 5280 | return 0; |
| 5281 | } |
| 5282 | _ACEOF |
| 5283 | rm -f conftest.$ac_objext |
| 5284 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5285 | (eval $ac_compile) 2>&5 |
| 5286 | ac_status=$? |
| 5287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5288 | (exit $ac_status); } && |
| 5289 | { ac_try='test -s conftest.$ac_objext' |
| 5290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5291 | (eval $ac_try) 2>&5 |
| 5292 | ac_status=$? |
| 5293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5294 | (exit $ac_status); }; }; then |
| 5295 | ac_hi=$ac_mid; break |
| 5296 | else |
| 5297 | echo "$as_me: failed program was:" >&5 |
| 5298 | cat conftest.$ac_ext >&5 |
| 5299 | ac_lo=`expr $ac_mid + 1` |
| 5300 | if test $ac_lo -le $ac_mid; then |
| 5301 | ac_lo= ac_hi= |
| 5302 | break |
| 5303 | fi |
| 5304 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5305 | fi |
| 5306 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5307 | done |
| 5308 | else |
| 5309 | echo "$as_me: failed program was:" >&5 |
| 5310 | cat conftest.$ac_ext >&5 |
| 5311 | cat >conftest.$ac_ext <<_ACEOF |
| 5312 | #line $LINENO "configure" |
| 5313 | #include "confdefs.h" |
| 5314 | $ac_includes_default |
| 5315 | #ifdef F77_DUMMY_MAIN |
| 5316 | # ifdef __cplusplus |
| 5317 | extern "C" |
| 5318 | # endif |
| 5319 | int F77_DUMMY_MAIN() { return 1; } |
| 5320 | #endif |
| 5321 | int |
| 5322 | main () |
| 5323 | { |
| 5324 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
| 5325 | test_array [0] = 0 |
| 5326 | |
| 5327 | ; |
| 5328 | return 0; |
| 5329 | } |
| 5330 | _ACEOF |
| 5331 | rm -f conftest.$ac_objext |
| 5332 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5333 | (eval $ac_compile) 2>&5 |
| 5334 | ac_status=$? |
| 5335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5336 | (exit $ac_status); } && |
| 5337 | { ac_try='test -s conftest.$ac_objext' |
| 5338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5339 | (eval $ac_try) 2>&5 |
| 5340 | ac_status=$? |
| 5341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5342 | (exit $ac_status); }; }; then |
| 5343 | ac_hi=-1 ac_mid=-1 |
| 5344 | while :; do |
| 5345 | cat >conftest.$ac_ext <<_ACEOF |
| 5346 | #line $LINENO "configure" |
| 5347 | #include "confdefs.h" |
| 5348 | $ac_includes_default |
| 5349 | #ifdef F77_DUMMY_MAIN |
| 5350 | # ifdef __cplusplus |
| 5351 | extern "C" |
| 5352 | # endif |
| 5353 | int F77_DUMMY_MAIN() { return 1; } |
| 5354 | #endif |
| 5355 | int |
| 5356 | main () |
| 5357 | { |
| 5358 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
| 5359 | test_array [0] = 0 |
| 5360 | |
| 5361 | ; |
| 5362 | return 0; |
| 5363 | } |
| 5364 | _ACEOF |
| 5365 | rm -f conftest.$ac_objext |
| 5366 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5367 | (eval $ac_compile) 2>&5 |
| 5368 | ac_status=$? |
| 5369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5370 | (exit $ac_status); } && |
| 5371 | { ac_try='test -s conftest.$ac_objext' |
| 5372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5373 | (eval $ac_try) 2>&5 |
| 5374 | ac_status=$? |
| 5375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5376 | (exit $ac_status); }; }; then |
| 5377 | ac_lo=$ac_mid; break |
| 5378 | else |
| 5379 | echo "$as_me: failed program was:" >&5 |
| 5380 | cat conftest.$ac_ext >&5 |
| 5381 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5382 | if test $ac_mid -le $ac_hi; then |
| 5383 | ac_lo= ac_hi= |
| 5384 | break |
| 5385 | fi |
| 5386 | ac_mid=`expr 2 '*' $ac_mid` |
| 5387 | fi |
| 5388 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5389 | done |
| 5390 | else |
| 5391 | echo "$as_me: failed program was:" >&5 |
| 5392 | cat conftest.$ac_ext >&5 |
| 5393 | ac_lo= ac_hi= |
| 5394 | fi |
| 5395 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5396 | fi |
| 5397 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5398 | # Binary search between lo and hi bounds. |
| 5399 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5400 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5401 | cat >conftest.$ac_ext <<_ACEOF |
| 5402 | #line $LINENO "configure" |
| 5403 | #include "confdefs.h" |
| 5404 | $ac_includes_default |
| 5405 | #ifdef F77_DUMMY_MAIN |
| 5406 | # ifdef __cplusplus |
| 5407 | extern "C" |
| 5408 | # endif |
| 5409 | int F77_DUMMY_MAIN() { return 1; } |
| 5410 | #endif |
| 5411 | int |
| 5412 | main () |
| 5413 | { |
| 5414 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 5415 | test_array [0] = 0 |
| 5416 | |
| 5417 | ; |
| 5418 | return 0; |
| 5419 | } |
| 5420 | _ACEOF |
| 5421 | rm -f conftest.$ac_objext |
| 5422 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5423 | (eval $ac_compile) 2>&5 |
| 5424 | ac_status=$? |
| 5425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5426 | (exit $ac_status); } && |
| 5427 | { ac_try='test -s conftest.$ac_objext' |
| 5428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5429 | (eval $ac_try) 2>&5 |
| 5430 | ac_status=$? |
| 5431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5432 | (exit $ac_status); }; }; then |
| 5433 | ac_hi=$ac_mid |
| 5434 | else |
| 5435 | echo "$as_me: failed program was:" >&5 |
| 5436 | cat conftest.$ac_ext >&5 |
| 5437 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5438 | fi |
| 5439 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5440 | done |
| 5441 | case $ac_lo in |
| 5442 | ?*) ac_cv_sizeof_int=$ac_lo;; |
| 5443 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 |
| 5444 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} |
| 5445 | { (exit 1); exit 1; }; } ;; |
| 5446 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5447 | else |
| 5448 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5449 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 5450 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 5451 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5452 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5453 | cat >conftest.$ac_ext <<_ACEOF |
| 5454 | #line $LINENO "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5455 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5456 | $ac_includes_default |
| 5457 | long longval () { return (long) (sizeof (int)); } |
| 5458 | unsigned long ulongval () { return (long) (sizeof (int)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5459 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5460 | #include <stdlib.h> |
| 5461 | #ifdef F77_DUMMY_MAIN |
| 5462 | # ifdef __cplusplus |
| 5463 | extern "C" |
| 5464 | # endif |
| 5465 | int F77_DUMMY_MAIN() { return 1; } |
| 5466 | #endif |
| 5467 | int |
| 5468 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5469 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5470 | |
| 5471 | FILE *f = fopen ("conftest.val", "w"); |
| 5472 | if (! f) |
| 5473 | exit (1); |
| 5474 | if (((long) (sizeof (int))) < 0) |
| 5475 | { |
| 5476 | long i = longval (); |
| 5477 | if (i != ((long) (sizeof (int)))) |
| 5478 | exit (1); |
| 5479 | fprintf (f, "%ld\n", i); |
| 5480 | } |
| 5481 | else |
| 5482 | { |
| 5483 | unsigned long i = ulongval (); |
| 5484 | if (i != ((long) (sizeof (int)))) |
| 5485 | exit (1); |
| 5486 | fprintf (f, "%lu\n", i); |
| 5487 | } |
| 5488 | exit (ferror (f) || fclose (f) != 0); |
| 5489 | |
| 5490 | ; |
| 5491 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5492 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5493 | _ACEOF |
| 5494 | rm -f conftest$ac_exeext |
| 5495 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5496 | (eval $ac_link) 2>&5 |
| 5497 | ac_status=$? |
| 5498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5499 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5501 | (eval $ac_try) 2>&5 |
| 5502 | ac_status=$? |
| 5503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5504 | (exit $ac_status); }; }; then |
| 5505 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5506 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5507 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5508 | echo "$as_me: failed program was:" >&5 |
| 5509 | cat conftest.$ac_ext >&5 |
| 5510 | ( exit $ac_status ) |
| 5511 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 |
| 5512 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} |
| 5513 | { (exit 1); exit 1; }; } |
| 5514 | fi |
| 5515 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5516 | fi |
| 5517 | fi |
| 5518 | rm -f conftest.val |
| 5519 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5520 | ac_cv_sizeof_int=0 |
| 5521 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5522 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5523 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 5524 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 5525 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5526 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5527 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5528 | |
| 5529 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5530 | echo "$as_me:$LINENO: checking for long" >&5 |
| 5531 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 5532 | if test "${ac_cv_type_long+set}" = set; then |
| 5533 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5534 | else |
| 5535 | cat >conftest.$ac_ext <<_ACEOF |
| 5536 | #line $LINENO "configure" |
| 5537 | #include "confdefs.h" |
| 5538 | $ac_includes_default |
| 5539 | #ifdef F77_DUMMY_MAIN |
| 5540 | # ifdef __cplusplus |
| 5541 | extern "C" |
| 5542 | # endif |
| 5543 | int F77_DUMMY_MAIN() { return 1; } |
| 5544 | #endif |
| 5545 | int |
| 5546 | main () |
| 5547 | { |
| 5548 | if ((long *) 0) |
| 5549 | return 0; |
| 5550 | if (sizeof (long)) |
| 5551 | return 0; |
| 5552 | ; |
| 5553 | return 0; |
| 5554 | } |
| 5555 | _ACEOF |
| 5556 | rm -f conftest.$ac_objext |
| 5557 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5558 | (eval $ac_compile) 2>&5 |
| 5559 | ac_status=$? |
| 5560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5561 | (exit $ac_status); } && |
| 5562 | { ac_try='test -s conftest.$ac_objext' |
| 5563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5564 | (eval $ac_try) 2>&5 |
| 5565 | ac_status=$? |
| 5566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5567 | (exit $ac_status); }; }; then |
| 5568 | ac_cv_type_long=yes |
| 5569 | else |
| 5570 | echo "$as_me: failed program was:" >&5 |
| 5571 | cat conftest.$ac_ext >&5 |
| 5572 | ac_cv_type_long=no |
| 5573 | fi |
| 5574 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5575 | fi |
| 5576 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 5577 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 5578 | |
| 5579 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 5580 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 5581 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 5582 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5583 | else |
| 5584 | if test "$ac_cv_type_long" = yes; then |
| 5585 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5586 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5587 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5588 | # This bug is HP SR number 8606223364. |
| 5589 | if test "$cross_compiling" = yes; then |
| 5590 | # Depending upon the size, compute the lo and hi bounds. |
| 5591 | cat >conftest.$ac_ext <<_ACEOF |
| 5592 | #line $LINENO "configure" |
| 5593 | #include "confdefs.h" |
| 5594 | $ac_includes_default |
| 5595 | #ifdef F77_DUMMY_MAIN |
| 5596 | # ifdef __cplusplus |
| 5597 | extern "C" |
| 5598 | # endif |
| 5599 | int F77_DUMMY_MAIN() { return 1; } |
| 5600 | #endif |
| 5601 | int |
| 5602 | main () |
| 5603 | { |
| 5604 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 5605 | test_array [0] = 0 |
| 5606 | |
| 5607 | ; |
| 5608 | return 0; |
| 5609 | } |
| 5610 | _ACEOF |
| 5611 | rm -f conftest.$ac_objext |
| 5612 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5613 | (eval $ac_compile) 2>&5 |
| 5614 | ac_status=$? |
| 5615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5616 | (exit $ac_status); } && |
| 5617 | { ac_try='test -s conftest.$ac_objext' |
| 5618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5619 | (eval $ac_try) 2>&5 |
| 5620 | ac_status=$? |
| 5621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5622 | (exit $ac_status); }; }; then |
| 5623 | ac_lo=0 ac_mid=0 |
| 5624 | while :; do |
| 5625 | cat >conftest.$ac_ext <<_ACEOF |
| 5626 | #line $LINENO "configure" |
| 5627 | #include "confdefs.h" |
| 5628 | $ac_includes_default |
| 5629 | #ifdef F77_DUMMY_MAIN |
| 5630 | # ifdef __cplusplus |
| 5631 | extern "C" |
| 5632 | # endif |
| 5633 | int F77_DUMMY_MAIN() { return 1; } |
| 5634 | #endif |
| 5635 | int |
| 5636 | main () |
| 5637 | { |
| 5638 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 5639 | test_array [0] = 0 |
| 5640 | |
| 5641 | ; |
| 5642 | return 0; |
| 5643 | } |
| 5644 | _ACEOF |
| 5645 | rm -f conftest.$ac_objext |
| 5646 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5647 | (eval $ac_compile) 2>&5 |
| 5648 | ac_status=$? |
| 5649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5650 | (exit $ac_status); } && |
| 5651 | { ac_try='test -s conftest.$ac_objext' |
| 5652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5653 | (eval $ac_try) 2>&5 |
| 5654 | ac_status=$? |
| 5655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5656 | (exit $ac_status); }; }; then |
| 5657 | ac_hi=$ac_mid; break |
| 5658 | else |
| 5659 | echo "$as_me: failed program was:" >&5 |
| 5660 | cat conftest.$ac_ext >&5 |
| 5661 | ac_lo=`expr $ac_mid + 1` |
| 5662 | if test $ac_lo -le $ac_mid; then |
| 5663 | ac_lo= ac_hi= |
| 5664 | break |
| 5665 | fi |
| 5666 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5667 | fi |
| 5668 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5669 | done |
| 5670 | else |
| 5671 | echo "$as_me: failed program was:" >&5 |
| 5672 | cat conftest.$ac_ext >&5 |
| 5673 | cat >conftest.$ac_ext <<_ACEOF |
| 5674 | #line $LINENO "configure" |
| 5675 | #include "confdefs.h" |
| 5676 | $ac_includes_default |
| 5677 | #ifdef F77_DUMMY_MAIN |
| 5678 | # ifdef __cplusplus |
| 5679 | extern "C" |
| 5680 | # endif |
| 5681 | int F77_DUMMY_MAIN() { return 1; } |
| 5682 | #endif |
| 5683 | int |
| 5684 | main () |
| 5685 | { |
| 5686 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 5687 | test_array [0] = 0 |
| 5688 | |
| 5689 | ; |
| 5690 | return 0; |
| 5691 | } |
| 5692 | _ACEOF |
| 5693 | rm -f conftest.$ac_objext |
| 5694 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5695 | (eval $ac_compile) 2>&5 |
| 5696 | ac_status=$? |
| 5697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5698 | (exit $ac_status); } && |
| 5699 | { ac_try='test -s conftest.$ac_objext' |
| 5700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5701 | (eval $ac_try) 2>&5 |
| 5702 | ac_status=$? |
| 5703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5704 | (exit $ac_status); }; }; then |
| 5705 | ac_hi=-1 ac_mid=-1 |
| 5706 | while :; do |
| 5707 | cat >conftest.$ac_ext <<_ACEOF |
| 5708 | #line $LINENO "configure" |
| 5709 | #include "confdefs.h" |
| 5710 | $ac_includes_default |
| 5711 | #ifdef F77_DUMMY_MAIN |
| 5712 | # ifdef __cplusplus |
| 5713 | extern "C" |
| 5714 | # endif |
| 5715 | int F77_DUMMY_MAIN() { return 1; } |
| 5716 | #endif |
| 5717 | int |
| 5718 | main () |
| 5719 | { |
| 5720 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 5721 | test_array [0] = 0 |
| 5722 | |
| 5723 | ; |
| 5724 | return 0; |
| 5725 | } |
| 5726 | _ACEOF |
| 5727 | rm -f conftest.$ac_objext |
| 5728 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5729 | (eval $ac_compile) 2>&5 |
| 5730 | ac_status=$? |
| 5731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5732 | (exit $ac_status); } && |
| 5733 | { ac_try='test -s conftest.$ac_objext' |
| 5734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5735 | (eval $ac_try) 2>&5 |
| 5736 | ac_status=$? |
| 5737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5738 | (exit $ac_status); }; }; then |
| 5739 | ac_lo=$ac_mid; break |
| 5740 | else |
| 5741 | echo "$as_me: failed program was:" >&5 |
| 5742 | cat conftest.$ac_ext >&5 |
| 5743 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5744 | if test $ac_mid -le $ac_hi; then |
| 5745 | ac_lo= ac_hi= |
| 5746 | break |
| 5747 | fi |
| 5748 | ac_mid=`expr 2 '*' $ac_mid` |
| 5749 | fi |
| 5750 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5751 | done |
| 5752 | else |
| 5753 | echo "$as_me: failed program was:" >&5 |
| 5754 | cat conftest.$ac_ext >&5 |
| 5755 | ac_lo= ac_hi= |
| 5756 | fi |
| 5757 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5758 | fi |
| 5759 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5760 | # Binary search between lo and hi bounds. |
| 5761 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5762 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5763 | cat >conftest.$ac_ext <<_ACEOF |
| 5764 | #line $LINENO "configure" |
| 5765 | #include "confdefs.h" |
| 5766 | $ac_includes_default |
| 5767 | #ifdef F77_DUMMY_MAIN |
| 5768 | # ifdef __cplusplus |
| 5769 | extern "C" |
| 5770 | # endif |
| 5771 | int F77_DUMMY_MAIN() { return 1; } |
| 5772 | #endif |
| 5773 | int |
| 5774 | main () |
| 5775 | { |
| 5776 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 5777 | test_array [0] = 0 |
| 5778 | |
| 5779 | ; |
| 5780 | return 0; |
| 5781 | } |
| 5782 | _ACEOF |
| 5783 | rm -f conftest.$ac_objext |
| 5784 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5785 | (eval $ac_compile) 2>&5 |
| 5786 | ac_status=$? |
| 5787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5788 | (exit $ac_status); } && |
| 5789 | { ac_try='test -s conftest.$ac_objext' |
| 5790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5791 | (eval $ac_try) 2>&5 |
| 5792 | ac_status=$? |
| 5793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5794 | (exit $ac_status); }; }; then |
| 5795 | ac_hi=$ac_mid |
| 5796 | else |
| 5797 | echo "$as_me: failed program was:" >&5 |
| 5798 | cat conftest.$ac_ext >&5 |
| 5799 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5800 | fi |
| 5801 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5802 | done |
| 5803 | case $ac_lo in |
| 5804 | ?*) ac_cv_sizeof_long=$ac_lo;; |
| 5805 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 |
| 5806 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} |
| 5807 | { (exit 1); exit 1; }; } ;; |
| 5808 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5809 | else |
| 5810 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5811 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 5812 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 5813 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5814 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5815 | cat >conftest.$ac_ext <<_ACEOF |
| 5816 | #line $LINENO "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5817 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5818 | $ac_includes_default |
| 5819 | long longval () { return (long) (sizeof (long)); } |
| 5820 | unsigned long ulongval () { return (long) (sizeof (long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5821 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5822 | #include <stdlib.h> |
| 5823 | #ifdef F77_DUMMY_MAIN |
| 5824 | # ifdef __cplusplus |
| 5825 | extern "C" |
| 5826 | # endif |
| 5827 | int F77_DUMMY_MAIN() { return 1; } |
| 5828 | #endif |
| 5829 | int |
| 5830 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5831 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5832 | |
| 5833 | FILE *f = fopen ("conftest.val", "w"); |
| 5834 | if (! f) |
| 5835 | exit (1); |
| 5836 | if (((long) (sizeof (long))) < 0) |
| 5837 | { |
| 5838 | long i = longval (); |
| 5839 | if (i != ((long) (sizeof (long)))) |
| 5840 | exit (1); |
| 5841 | fprintf (f, "%ld\n", i); |
| 5842 | } |
| 5843 | else |
| 5844 | { |
| 5845 | unsigned long i = ulongval (); |
| 5846 | if (i != ((long) (sizeof (long)))) |
| 5847 | exit (1); |
| 5848 | fprintf (f, "%lu\n", i); |
| 5849 | } |
| 5850 | exit (ferror (f) || fclose (f) != 0); |
| 5851 | |
| 5852 | ; |
| 5853 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5854 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5855 | _ACEOF |
| 5856 | rm -f conftest$ac_exeext |
| 5857 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5858 | (eval $ac_link) 2>&5 |
| 5859 | ac_status=$? |
| 5860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5861 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5863 | (eval $ac_try) 2>&5 |
| 5864 | ac_status=$? |
| 5865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5866 | (exit $ac_status); }; }; then |
| 5867 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5868 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5869 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5870 | echo "$as_me: failed program was:" >&5 |
| 5871 | cat conftest.$ac_ext >&5 |
| 5872 | ( exit $ac_status ) |
| 5873 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 |
| 5874 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} |
| 5875 | { (exit 1); exit 1; }; } |
| 5876 | fi |
| 5877 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5878 | fi |
| 5879 | fi |
| 5880 | rm -f conftest.val |
| 5881 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5882 | ac_cv_sizeof_long=0 |
| 5883 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5884 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5885 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 5886 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 5887 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5888 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5889 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5890 | |
| 5891 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5892 | echo "$as_me:$LINENO: checking for void *" >&5 |
| 5893 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
| 5894 | if test "${ac_cv_type_void_p+set}" = set; then |
| 5895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5896 | else |
| 5897 | cat >conftest.$ac_ext <<_ACEOF |
| 5898 | #line $LINENO "configure" |
| 5899 | #include "confdefs.h" |
| 5900 | $ac_includes_default |
| 5901 | #ifdef F77_DUMMY_MAIN |
| 5902 | # ifdef __cplusplus |
| 5903 | extern "C" |
| 5904 | # endif |
| 5905 | int F77_DUMMY_MAIN() { return 1; } |
| 5906 | #endif |
| 5907 | int |
| 5908 | main () |
| 5909 | { |
| 5910 | if ((void * *) 0) |
| 5911 | return 0; |
| 5912 | if (sizeof (void *)) |
| 5913 | return 0; |
| 5914 | ; |
| 5915 | return 0; |
| 5916 | } |
| 5917 | _ACEOF |
| 5918 | rm -f conftest.$ac_objext |
| 5919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5920 | (eval $ac_compile) 2>&5 |
| 5921 | ac_status=$? |
| 5922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5923 | (exit $ac_status); } && |
| 5924 | { ac_try='test -s conftest.$ac_objext' |
| 5925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5926 | (eval $ac_try) 2>&5 |
| 5927 | ac_status=$? |
| 5928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5929 | (exit $ac_status); }; }; then |
| 5930 | ac_cv_type_void_p=yes |
| 5931 | else |
| 5932 | echo "$as_me: failed program was:" >&5 |
| 5933 | cat conftest.$ac_ext >&5 |
| 5934 | ac_cv_type_void_p=no |
| 5935 | fi |
| 5936 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5937 | fi |
| 5938 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 5939 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
| 5940 | |
| 5941 | echo "$as_me:$LINENO: checking size of void *" >&5 |
| 5942 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
| 5943 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 5944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5945 | else |
| 5946 | if test "$ac_cv_type_void_p" = yes; then |
| 5947 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5948 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5949 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5950 | # This bug is HP SR number 8606223364. |
| 5951 | if test "$cross_compiling" = yes; then |
| 5952 | # Depending upon the size, compute the lo and hi bounds. |
| 5953 | cat >conftest.$ac_ext <<_ACEOF |
| 5954 | #line $LINENO "configure" |
| 5955 | #include "confdefs.h" |
| 5956 | $ac_includes_default |
| 5957 | #ifdef F77_DUMMY_MAIN |
| 5958 | # ifdef __cplusplus |
| 5959 | extern "C" |
| 5960 | # endif |
| 5961 | int F77_DUMMY_MAIN() { return 1; } |
| 5962 | #endif |
| 5963 | int |
| 5964 | main () |
| 5965 | { |
| 5966 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
| 5967 | test_array [0] = 0 |
| 5968 | |
| 5969 | ; |
| 5970 | return 0; |
| 5971 | } |
| 5972 | _ACEOF |
| 5973 | rm -f conftest.$ac_objext |
| 5974 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5975 | (eval $ac_compile) 2>&5 |
| 5976 | ac_status=$? |
| 5977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5978 | (exit $ac_status); } && |
| 5979 | { ac_try='test -s conftest.$ac_objext' |
| 5980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5981 | (eval $ac_try) 2>&5 |
| 5982 | ac_status=$? |
| 5983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5984 | (exit $ac_status); }; }; then |
| 5985 | ac_lo=0 ac_mid=0 |
| 5986 | while :; do |
| 5987 | cat >conftest.$ac_ext <<_ACEOF |
| 5988 | #line $LINENO "configure" |
| 5989 | #include "confdefs.h" |
| 5990 | $ac_includes_default |
| 5991 | #ifdef F77_DUMMY_MAIN |
| 5992 | # ifdef __cplusplus |
| 5993 | extern "C" |
| 5994 | # endif |
| 5995 | int F77_DUMMY_MAIN() { return 1; } |
| 5996 | #endif |
| 5997 | int |
| 5998 | main () |
| 5999 | { |
| 6000 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 6001 | test_array [0] = 0 |
| 6002 | |
| 6003 | ; |
| 6004 | return 0; |
| 6005 | } |
| 6006 | _ACEOF |
| 6007 | rm -f conftest.$ac_objext |
| 6008 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6009 | (eval $ac_compile) 2>&5 |
| 6010 | ac_status=$? |
| 6011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6012 | (exit $ac_status); } && |
| 6013 | { ac_try='test -s conftest.$ac_objext' |
| 6014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6015 | (eval $ac_try) 2>&5 |
| 6016 | ac_status=$? |
| 6017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6018 | (exit $ac_status); }; }; then |
| 6019 | ac_hi=$ac_mid; break |
| 6020 | else |
| 6021 | echo "$as_me: failed program was:" >&5 |
| 6022 | cat conftest.$ac_ext >&5 |
| 6023 | ac_lo=`expr $ac_mid + 1` |
| 6024 | if test $ac_lo -le $ac_mid; then |
| 6025 | ac_lo= ac_hi= |
| 6026 | break |
| 6027 | fi |
| 6028 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6029 | fi |
| 6030 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6031 | done |
| 6032 | else |
| 6033 | echo "$as_me: failed program was:" >&5 |
| 6034 | cat conftest.$ac_ext >&5 |
| 6035 | cat >conftest.$ac_ext <<_ACEOF |
| 6036 | #line $LINENO "configure" |
| 6037 | #include "confdefs.h" |
| 6038 | $ac_includes_default |
| 6039 | #ifdef F77_DUMMY_MAIN |
| 6040 | # ifdef __cplusplus |
| 6041 | extern "C" |
| 6042 | # endif |
| 6043 | int F77_DUMMY_MAIN() { return 1; } |
| 6044 | #endif |
| 6045 | int |
| 6046 | main () |
| 6047 | { |
| 6048 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
| 6049 | test_array [0] = 0 |
| 6050 | |
| 6051 | ; |
| 6052 | return 0; |
| 6053 | } |
| 6054 | _ACEOF |
| 6055 | rm -f conftest.$ac_objext |
| 6056 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6057 | (eval $ac_compile) 2>&5 |
| 6058 | ac_status=$? |
| 6059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6060 | (exit $ac_status); } && |
| 6061 | { ac_try='test -s conftest.$ac_objext' |
| 6062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6063 | (eval $ac_try) 2>&5 |
| 6064 | ac_status=$? |
| 6065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6066 | (exit $ac_status); }; }; then |
| 6067 | ac_hi=-1 ac_mid=-1 |
| 6068 | while :; do |
| 6069 | cat >conftest.$ac_ext <<_ACEOF |
| 6070 | #line $LINENO "configure" |
| 6071 | #include "confdefs.h" |
| 6072 | $ac_includes_default |
| 6073 | #ifdef F77_DUMMY_MAIN |
| 6074 | # ifdef __cplusplus |
| 6075 | extern "C" |
| 6076 | # endif |
| 6077 | int F77_DUMMY_MAIN() { return 1; } |
| 6078 | #endif |
| 6079 | int |
| 6080 | main () |
| 6081 | { |
| 6082 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
| 6083 | test_array [0] = 0 |
| 6084 | |
| 6085 | ; |
| 6086 | return 0; |
| 6087 | } |
| 6088 | _ACEOF |
| 6089 | rm -f conftest.$ac_objext |
| 6090 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6091 | (eval $ac_compile) 2>&5 |
| 6092 | ac_status=$? |
| 6093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6094 | (exit $ac_status); } && |
| 6095 | { ac_try='test -s conftest.$ac_objext' |
| 6096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6097 | (eval $ac_try) 2>&5 |
| 6098 | ac_status=$? |
| 6099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6100 | (exit $ac_status); }; }; then |
| 6101 | ac_lo=$ac_mid; break |
| 6102 | else |
| 6103 | echo "$as_me: failed program was:" >&5 |
| 6104 | cat conftest.$ac_ext >&5 |
| 6105 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6106 | if test $ac_mid -le $ac_hi; then |
| 6107 | ac_lo= ac_hi= |
| 6108 | break |
| 6109 | fi |
| 6110 | ac_mid=`expr 2 '*' $ac_mid` |
| 6111 | fi |
| 6112 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6113 | done |
| 6114 | else |
| 6115 | echo "$as_me: failed program was:" >&5 |
| 6116 | cat conftest.$ac_ext >&5 |
| 6117 | ac_lo= ac_hi= |
| 6118 | fi |
| 6119 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6120 | fi |
| 6121 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6122 | # Binary search between lo and hi bounds. |
| 6123 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6124 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6125 | cat >conftest.$ac_ext <<_ACEOF |
| 6126 | #line $LINENO "configure" |
| 6127 | #include "confdefs.h" |
| 6128 | $ac_includes_default |
| 6129 | #ifdef F77_DUMMY_MAIN |
| 6130 | # ifdef __cplusplus |
| 6131 | extern "C" |
| 6132 | # endif |
| 6133 | int F77_DUMMY_MAIN() { return 1; } |
| 6134 | #endif |
| 6135 | int |
| 6136 | main () |
| 6137 | { |
| 6138 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 6139 | test_array [0] = 0 |
| 6140 | |
| 6141 | ; |
| 6142 | return 0; |
| 6143 | } |
| 6144 | _ACEOF |
| 6145 | rm -f conftest.$ac_objext |
| 6146 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6147 | (eval $ac_compile) 2>&5 |
| 6148 | ac_status=$? |
| 6149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6150 | (exit $ac_status); } && |
| 6151 | { ac_try='test -s conftest.$ac_objext' |
| 6152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6153 | (eval $ac_try) 2>&5 |
| 6154 | ac_status=$? |
| 6155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6156 | (exit $ac_status); }; }; then |
| 6157 | ac_hi=$ac_mid |
| 6158 | else |
| 6159 | echo "$as_me: failed program was:" >&5 |
| 6160 | cat conftest.$ac_ext >&5 |
| 6161 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6162 | fi |
| 6163 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6164 | done |
| 6165 | case $ac_lo in |
| 6166 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
| 6167 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 |
| 6168 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} |
| 6169 | { (exit 1); exit 1; }; } ;; |
| 6170 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6171 | else |
| 6172 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6173 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6174 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6175 | { (exit 1); exit 1; }; } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6176 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6177 | cat >conftest.$ac_ext <<_ACEOF |
| 6178 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6179 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6180 | $ac_includes_default |
| 6181 | long longval () { return (long) (sizeof (void *)); } |
| 6182 | unsigned long ulongval () { return (long) (sizeof (void *)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6183 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6184 | #include <stdlib.h> |
| 6185 | #ifdef F77_DUMMY_MAIN |
| 6186 | # ifdef __cplusplus |
| 6187 | extern "C" |
| 6188 | # endif |
| 6189 | int F77_DUMMY_MAIN() { return 1; } |
| 6190 | #endif |
| 6191 | int |
| 6192 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6193 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6194 | |
| 6195 | FILE *f = fopen ("conftest.val", "w"); |
| 6196 | if (! f) |
| 6197 | exit (1); |
| 6198 | if (((long) (sizeof (void *))) < 0) |
| 6199 | { |
| 6200 | long i = longval (); |
| 6201 | if (i != ((long) (sizeof (void *)))) |
| 6202 | exit (1); |
| 6203 | fprintf (f, "%ld\n", i); |
| 6204 | } |
| 6205 | else |
| 6206 | { |
| 6207 | unsigned long i = ulongval (); |
| 6208 | if (i != ((long) (sizeof (void *)))) |
| 6209 | exit (1); |
| 6210 | fprintf (f, "%lu\n", i); |
| 6211 | } |
| 6212 | exit (ferror (f) || fclose (f) != 0); |
| 6213 | |
| 6214 | ; |
| 6215 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6216 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6217 | _ACEOF |
| 6218 | rm -f conftest$ac_exeext |
| 6219 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6220 | (eval $ac_link) 2>&5 |
| 6221 | ac_status=$? |
| 6222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6223 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6225 | (eval $ac_try) 2>&5 |
| 6226 | ac_status=$? |
| 6227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6228 | (exit $ac_status); }; }; then |
| 6229 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6230 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6231 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6232 | echo "$as_me: failed program was:" >&5 |
| 6233 | cat conftest.$ac_ext >&5 |
| 6234 | ( exit $ac_status ) |
| 6235 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 |
| 6236 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} |
| 6237 | { (exit 1); exit 1; }; } |
| 6238 | fi |
| 6239 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6240 | fi |
| 6241 | fi |
| 6242 | rm -f conftest.val |
| 6243 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6244 | ac_cv_sizeof_void_p=0 |
| 6245 | fi |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6246 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6247 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 6248 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
| 6249 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6250 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6251 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6252 | |
| 6253 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6254 | echo "$as_me:$LINENO: checking for char" >&5 |
| 6255 | echo $ECHO_N "checking for char... $ECHO_C" >&6 |
| 6256 | if test "${ac_cv_type_char+set}" = set; then |
| 6257 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6258 | else |
| 6259 | cat >conftest.$ac_ext <<_ACEOF |
| 6260 | #line $LINENO "configure" |
| 6261 | #include "confdefs.h" |
| 6262 | $ac_includes_default |
| 6263 | #ifdef F77_DUMMY_MAIN |
| 6264 | # ifdef __cplusplus |
| 6265 | extern "C" |
| 6266 | # endif |
| 6267 | int F77_DUMMY_MAIN() { return 1; } |
| 6268 | #endif |
| 6269 | int |
| 6270 | main () |
| 6271 | { |
| 6272 | if ((char *) 0) |
| 6273 | return 0; |
| 6274 | if (sizeof (char)) |
| 6275 | return 0; |
| 6276 | ; |
| 6277 | return 0; |
| 6278 | } |
| 6279 | _ACEOF |
| 6280 | rm -f conftest.$ac_objext |
| 6281 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6282 | (eval $ac_compile) 2>&5 |
| 6283 | ac_status=$? |
| 6284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6285 | (exit $ac_status); } && |
| 6286 | { ac_try='test -s conftest.$ac_objext' |
| 6287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6288 | (eval $ac_try) 2>&5 |
| 6289 | ac_status=$? |
| 6290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6291 | (exit $ac_status); }; }; then |
| 6292 | ac_cv_type_char=yes |
| 6293 | else |
| 6294 | echo "$as_me: failed program was:" >&5 |
| 6295 | cat conftest.$ac_ext >&5 |
| 6296 | ac_cv_type_char=no |
| 6297 | fi |
| 6298 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6299 | fi |
| 6300 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
| 6301 | echo "${ECHO_T}$ac_cv_type_char" >&6 |
| 6302 | |
| 6303 | echo "$as_me:$LINENO: checking size of char" >&5 |
| 6304 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 |
| 6305 | if test "${ac_cv_sizeof_char+set}" = set; then |
| 6306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6307 | else |
| 6308 | if test "$ac_cv_type_char" = yes; then |
| 6309 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6310 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6311 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6312 | # This bug is HP SR number 8606223364. |
| 6313 | if test "$cross_compiling" = yes; then |
| 6314 | # Depending upon the size, compute the lo and hi bounds. |
| 6315 | cat >conftest.$ac_ext <<_ACEOF |
| 6316 | #line $LINENO "configure" |
| 6317 | #include "confdefs.h" |
| 6318 | $ac_includes_default |
| 6319 | #ifdef F77_DUMMY_MAIN |
| 6320 | # ifdef __cplusplus |
| 6321 | extern "C" |
| 6322 | # endif |
| 6323 | int F77_DUMMY_MAIN() { return 1; } |
| 6324 | #endif |
| 6325 | int |
| 6326 | main () |
| 6327 | { |
| 6328 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
| 6329 | test_array [0] = 0 |
| 6330 | |
| 6331 | ; |
| 6332 | return 0; |
| 6333 | } |
| 6334 | _ACEOF |
| 6335 | rm -f conftest.$ac_objext |
| 6336 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6337 | (eval $ac_compile) 2>&5 |
| 6338 | ac_status=$? |
| 6339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6340 | (exit $ac_status); } && |
| 6341 | { ac_try='test -s conftest.$ac_objext' |
| 6342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6343 | (eval $ac_try) 2>&5 |
| 6344 | ac_status=$? |
| 6345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6346 | (exit $ac_status); }; }; then |
| 6347 | ac_lo=0 ac_mid=0 |
| 6348 | while :; do |
| 6349 | cat >conftest.$ac_ext <<_ACEOF |
| 6350 | #line $LINENO "configure" |
| 6351 | #include "confdefs.h" |
| 6352 | $ac_includes_default |
| 6353 | #ifdef F77_DUMMY_MAIN |
| 6354 | # ifdef __cplusplus |
| 6355 | extern "C" |
| 6356 | # endif |
| 6357 | int F77_DUMMY_MAIN() { return 1; } |
| 6358 | #endif |
| 6359 | int |
| 6360 | main () |
| 6361 | { |
| 6362 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 6363 | test_array [0] = 0 |
| 6364 | |
| 6365 | ; |
| 6366 | return 0; |
| 6367 | } |
| 6368 | _ACEOF |
| 6369 | rm -f conftest.$ac_objext |
| 6370 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6371 | (eval $ac_compile) 2>&5 |
| 6372 | ac_status=$? |
| 6373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6374 | (exit $ac_status); } && |
| 6375 | { ac_try='test -s conftest.$ac_objext' |
| 6376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6377 | (eval $ac_try) 2>&5 |
| 6378 | ac_status=$? |
| 6379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6380 | (exit $ac_status); }; }; then |
| 6381 | ac_hi=$ac_mid; break |
| 6382 | else |
| 6383 | echo "$as_me: failed program was:" >&5 |
| 6384 | cat conftest.$ac_ext >&5 |
| 6385 | ac_lo=`expr $ac_mid + 1` |
| 6386 | if test $ac_lo -le $ac_mid; then |
| 6387 | ac_lo= ac_hi= |
| 6388 | break |
| 6389 | fi |
| 6390 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6391 | fi |
| 6392 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6393 | done |
| 6394 | else |
| 6395 | echo "$as_me: failed program was:" >&5 |
| 6396 | cat conftest.$ac_ext >&5 |
| 6397 | cat >conftest.$ac_ext <<_ACEOF |
| 6398 | #line $LINENO "configure" |
| 6399 | #include "confdefs.h" |
| 6400 | $ac_includes_default |
| 6401 | #ifdef F77_DUMMY_MAIN |
| 6402 | # ifdef __cplusplus |
| 6403 | extern "C" |
| 6404 | # endif |
| 6405 | int F77_DUMMY_MAIN() { return 1; } |
| 6406 | #endif |
| 6407 | int |
| 6408 | main () |
| 6409 | { |
| 6410 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
| 6411 | test_array [0] = 0 |
| 6412 | |
| 6413 | ; |
| 6414 | return 0; |
| 6415 | } |
| 6416 | _ACEOF |
| 6417 | rm -f conftest.$ac_objext |
| 6418 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6419 | (eval $ac_compile) 2>&5 |
| 6420 | ac_status=$? |
| 6421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6422 | (exit $ac_status); } && |
| 6423 | { ac_try='test -s conftest.$ac_objext' |
| 6424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6425 | (eval $ac_try) 2>&5 |
| 6426 | ac_status=$? |
| 6427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6428 | (exit $ac_status); }; }; then |
| 6429 | ac_hi=-1 ac_mid=-1 |
| 6430 | while :; do |
| 6431 | cat >conftest.$ac_ext <<_ACEOF |
| 6432 | #line $LINENO "configure" |
| 6433 | #include "confdefs.h" |
| 6434 | $ac_includes_default |
| 6435 | #ifdef F77_DUMMY_MAIN |
| 6436 | # ifdef __cplusplus |
| 6437 | extern "C" |
| 6438 | # endif |
| 6439 | int F77_DUMMY_MAIN() { return 1; } |
| 6440 | #endif |
| 6441 | int |
| 6442 | main () |
| 6443 | { |
| 6444 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
| 6445 | test_array [0] = 0 |
| 6446 | |
| 6447 | ; |
| 6448 | return 0; |
| 6449 | } |
| 6450 | _ACEOF |
| 6451 | rm -f conftest.$ac_objext |
| 6452 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6453 | (eval $ac_compile) 2>&5 |
| 6454 | ac_status=$? |
| 6455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6456 | (exit $ac_status); } && |
| 6457 | { ac_try='test -s conftest.$ac_objext' |
| 6458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6459 | (eval $ac_try) 2>&5 |
| 6460 | ac_status=$? |
| 6461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6462 | (exit $ac_status); }; }; then |
| 6463 | ac_lo=$ac_mid; break |
| 6464 | else |
| 6465 | echo "$as_me: failed program was:" >&5 |
| 6466 | cat conftest.$ac_ext >&5 |
| 6467 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6468 | if test $ac_mid -le $ac_hi; then |
| 6469 | ac_lo= ac_hi= |
| 6470 | break |
| 6471 | fi |
| 6472 | ac_mid=`expr 2 '*' $ac_mid` |
| 6473 | fi |
| 6474 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6475 | done |
| 6476 | else |
| 6477 | echo "$as_me: failed program was:" >&5 |
| 6478 | cat conftest.$ac_ext >&5 |
| 6479 | ac_lo= ac_hi= |
| 6480 | fi |
| 6481 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6482 | fi |
| 6483 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6484 | # Binary search between lo and hi bounds. |
| 6485 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6486 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6487 | cat >conftest.$ac_ext <<_ACEOF |
| 6488 | #line $LINENO "configure" |
| 6489 | #include "confdefs.h" |
| 6490 | $ac_includes_default |
| 6491 | #ifdef F77_DUMMY_MAIN |
| 6492 | # ifdef __cplusplus |
| 6493 | extern "C" |
| 6494 | # endif |
| 6495 | int F77_DUMMY_MAIN() { return 1; } |
| 6496 | #endif |
| 6497 | int |
| 6498 | main () |
| 6499 | { |
| 6500 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 6501 | test_array [0] = 0 |
| 6502 | |
| 6503 | ; |
| 6504 | return 0; |
| 6505 | } |
| 6506 | _ACEOF |
| 6507 | rm -f conftest.$ac_objext |
| 6508 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6509 | (eval $ac_compile) 2>&5 |
| 6510 | ac_status=$? |
| 6511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6512 | (exit $ac_status); } && |
| 6513 | { ac_try='test -s conftest.$ac_objext' |
| 6514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6515 | (eval $ac_try) 2>&5 |
| 6516 | ac_status=$? |
| 6517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6518 | (exit $ac_status); }; }; then |
| 6519 | ac_hi=$ac_mid |
| 6520 | else |
| 6521 | echo "$as_me: failed program was:" >&5 |
| 6522 | cat conftest.$ac_ext >&5 |
| 6523 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6524 | fi |
| 6525 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6526 | done |
| 6527 | case $ac_lo in |
| 6528 | ?*) ac_cv_sizeof_char=$ac_lo;; |
| 6529 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 |
| 6530 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} |
| 6531 | { (exit 1); exit 1; }; } ;; |
| 6532 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6533 | else |
| 6534 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6535 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6536 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6537 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6538 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6539 | cat >conftest.$ac_ext <<_ACEOF |
| 6540 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6541 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6542 | $ac_includes_default |
| 6543 | long longval () { return (long) (sizeof (char)); } |
| 6544 | unsigned long ulongval () { return (long) (sizeof (char)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6545 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6546 | #include <stdlib.h> |
| 6547 | #ifdef F77_DUMMY_MAIN |
| 6548 | # ifdef __cplusplus |
| 6549 | extern "C" |
| 6550 | # endif |
| 6551 | int F77_DUMMY_MAIN() { return 1; } |
| 6552 | #endif |
| 6553 | int |
| 6554 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6555 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6556 | |
| 6557 | FILE *f = fopen ("conftest.val", "w"); |
| 6558 | if (! f) |
| 6559 | exit (1); |
| 6560 | if (((long) (sizeof (char))) < 0) |
| 6561 | { |
| 6562 | long i = longval (); |
| 6563 | if (i != ((long) (sizeof (char)))) |
| 6564 | exit (1); |
| 6565 | fprintf (f, "%ld\n", i); |
| 6566 | } |
| 6567 | else |
| 6568 | { |
| 6569 | unsigned long i = ulongval (); |
| 6570 | if (i != ((long) (sizeof (char)))) |
| 6571 | exit (1); |
| 6572 | fprintf (f, "%lu\n", i); |
| 6573 | } |
| 6574 | exit (ferror (f) || fclose (f) != 0); |
| 6575 | |
| 6576 | ; |
| 6577 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6578 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6579 | _ACEOF |
| 6580 | rm -f conftest$ac_exeext |
| 6581 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6582 | (eval $ac_link) 2>&5 |
| 6583 | ac_status=$? |
| 6584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6585 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6587 | (eval $ac_try) 2>&5 |
| 6588 | ac_status=$? |
| 6589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6590 | (exit $ac_status); }; }; then |
| 6591 | ac_cv_sizeof_char=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6592 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6593 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6594 | echo "$as_me: failed program was:" >&5 |
| 6595 | cat conftest.$ac_ext >&5 |
| 6596 | ( exit $ac_status ) |
| 6597 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 |
| 6598 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} |
| 6599 | { (exit 1); exit 1; }; } |
| 6600 | fi |
| 6601 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6602 | fi |
| 6603 | fi |
| 6604 | rm -f conftest.val |
| 6605 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6606 | ac_cv_sizeof_char=0 |
| 6607 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6608 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6609 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
| 6610 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 |
| 6611 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6612 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6613 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6614 | |
| 6615 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6616 | echo "$as_me:$LINENO: checking for short" >&5 |
| 6617 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
| 6618 | if test "${ac_cv_type_short+set}" = set; then |
| 6619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6620 | else |
| 6621 | cat >conftest.$ac_ext <<_ACEOF |
| 6622 | #line $LINENO "configure" |
| 6623 | #include "confdefs.h" |
| 6624 | $ac_includes_default |
| 6625 | #ifdef F77_DUMMY_MAIN |
| 6626 | # ifdef __cplusplus |
| 6627 | extern "C" |
| 6628 | # endif |
| 6629 | int F77_DUMMY_MAIN() { return 1; } |
| 6630 | #endif |
| 6631 | int |
| 6632 | main () |
| 6633 | { |
| 6634 | if ((short *) 0) |
| 6635 | return 0; |
| 6636 | if (sizeof (short)) |
| 6637 | return 0; |
| 6638 | ; |
| 6639 | return 0; |
| 6640 | } |
| 6641 | _ACEOF |
| 6642 | rm -f conftest.$ac_objext |
| 6643 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6644 | (eval $ac_compile) 2>&5 |
| 6645 | ac_status=$? |
| 6646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6647 | (exit $ac_status); } && |
| 6648 | { ac_try='test -s conftest.$ac_objext' |
| 6649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6650 | (eval $ac_try) 2>&5 |
| 6651 | ac_status=$? |
| 6652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6653 | (exit $ac_status); }; }; then |
| 6654 | ac_cv_type_short=yes |
| 6655 | else |
| 6656 | echo "$as_me: failed program was:" >&5 |
| 6657 | cat conftest.$ac_ext >&5 |
| 6658 | ac_cv_type_short=no |
| 6659 | fi |
| 6660 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6661 | fi |
| 6662 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 6663 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
| 6664 | |
| 6665 | echo "$as_me:$LINENO: checking size of short" >&5 |
| 6666 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
| 6667 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 6668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6669 | else |
| 6670 | if test "$ac_cv_type_short" = yes; then |
| 6671 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6672 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6673 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6674 | # This bug is HP SR number 8606223364. |
| 6675 | if test "$cross_compiling" = yes; then |
| 6676 | # Depending upon the size, compute the lo and hi bounds. |
| 6677 | cat >conftest.$ac_ext <<_ACEOF |
| 6678 | #line $LINENO "configure" |
| 6679 | #include "confdefs.h" |
| 6680 | $ac_includes_default |
| 6681 | #ifdef F77_DUMMY_MAIN |
| 6682 | # ifdef __cplusplus |
| 6683 | extern "C" |
| 6684 | # endif |
| 6685 | int F77_DUMMY_MAIN() { return 1; } |
| 6686 | #endif |
| 6687 | int |
| 6688 | main () |
| 6689 | { |
| 6690 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
| 6691 | test_array [0] = 0 |
| 6692 | |
| 6693 | ; |
| 6694 | return 0; |
| 6695 | } |
| 6696 | _ACEOF |
| 6697 | rm -f conftest.$ac_objext |
| 6698 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6699 | (eval $ac_compile) 2>&5 |
| 6700 | ac_status=$? |
| 6701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6702 | (exit $ac_status); } && |
| 6703 | { ac_try='test -s conftest.$ac_objext' |
| 6704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6705 | (eval $ac_try) 2>&5 |
| 6706 | ac_status=$? |
| 6707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6708 | (exit $ac_status); }; }; then |
| 6709 | ac_lo=0 ac_mid=0 |
| 6710 | while :; do |
| 6711 | cat >conftest.$ac_ext <<_ACEOF |
| 6712 | #line $LINENO "configure" |
| 6713 | #include "confdefs.h" |
| 6714 | $ac_includes_default |
| 6715 | #ifdef F77_DUMMY_MAIN |
| 6716 | # ifdef __cplusplus |
| 6717 | extern "C" |
| 6718 | # endif |
| 6719 | int F77_DUMMY_MAIN() { return 1; } |
| 6720 | #endif |
| 6721 | int |
| 6722 | main () |
| 6723 | { |
| 6724 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 6725 | test_array [0] = 0 |
| 6726 | |
| 6727 | ; |
| 6728 | return 0; |
| 6729 | } |
| 6730 | _ACEOF |
| 6731 | rm -f conftest.$ac_objext |
| 6732 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6733 | (eval $ac_compile) 2>&5 |
| 6734 | ac_status=$? |
| 6735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6736 | (exit $ac_status); } && |
| 6737 | { ac_try='test -s conftest.$ac_objext' |
| 6738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6739 | (eval $ac_try) 2>&5 |
| 6740 | ac_status=$? |
| 6741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6742 | (exit $ac_status); }; }; then |
| 6743 | ac_hi=$ac_mid; break |
| 6744 | else |
| 6745 | echo "$as_me: failed program was:" >&5 |
| 6746 | cat conftest.$ac_ext >&5 |
| 6747 | ac_lo=`expr $ac_mid + 1` |
| 6748 | if test $ac_lo -le $ac_mid; then |
| 6749 | ac_lo= ac_hi= |
| 6750 | break |
| 6751 | fi |
| 6752 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6753 | fi |
| 6754 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6755 | done |
| 6756 | else |
| 6757 | echo "$as_me: failed program was:" >&5 |
| 6758 | cat conftest.$ac_ext >&5 |
| 6759 | cat >conftest.$ac_ext <<_ACEOF |
| 6760 | #line $LINENO "configure" |
| 6761 | #include "confdefs.h" |
| 6762 | $ac_includes_default |
| 6763 | #ifdef F77_DUMMY_MAIN |
| 6764 | # ifdef __cplusplus |
| 6765 | extern "C" |
| 6766 | # endif |
| 6767 | int F77_DUMMY_MAIN() { return 1; } |
| 6768 | #endif |
| 6769 | int |
| 6770 | main () |
| 6771 | { |
| 6772 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
| 6773 | test_array [0] = 0 |
| 6774 | |
| 6775 | ; |
| 6776 | return 0; |
| 6777 | } |
| 6778 | _ACEOF |
| 6779 | rm -f conftest.$ac_objext |
| 6780 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6781 | (eval $ac_compile) 2>&5 |
| 6782 | ac_status=$? |
| 6783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6784 | (exit $ac_status); } && |
| 6785 | { ac_try='test -s conftest.$ac_objext' |
| 6786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6787 | (eval $ac_try) 2>&5 |
| 6788 | ac_status=$? |
| 6789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6790 | (exit $ac_status); }; }; then |
| 6791 | ac_hi=-1 ac_mid=-1 |
| 6792 | while :; do |
| 6793 | cat >conftest.$ac_ext <<_ACEOF |
| 6794 | #line $LINENO "configure" |
| 6795 | #include "confdefs.h" |
| 6796 | $ac_includes_default |
| 6797 | #ifdef F77_DUMMY_MAIN |
| 6798 | # ifdef __cplusplus |
| 6799 | extern "C" |
| 6800 | # endif |
| 6801 | int F77_DUMMY_MAIN() { return 1; } |
| 6802 | #endif |
| 6803 | int |
| 6804 | main () |
| 6805 | { |
| 6806 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
| 6807 | test_array [0] = 0 |
| 6808 | |
| 6809 | ; |
| 6810 | return 0; |
| 6811 | } |
| 6812 | _ACEOF |
| 6813 | rm -f conftest.$ac_objext |
| 6814 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6815 | (eval $ac_compile) 2>&5 |
| 6816 | ac_status=$? |
| 6817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6818 | (exit $ac_status); } && |
| 6819 | { ac_try='test -s conftest.$ac_objext' |
| 6820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6821 | (eval $ac_try) 2>&5 |
| 6822 | ac_status=$? |
| 6823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6824 | (exit $ac_status); }; }; then |
| 6825 | ac_lo=$ac_mid; break |
| 6826 | else |
| 6827 | echo "$as_me: failed program was:" >&5 |
| 6828 | cat conftest.$ac_ext >&5 |
| 6829 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6830 | if test $ac_mid -le $ac_hi; then |
| 6831 | ac_lo= ac_hi= |
| 6832 | break |
| 6833 | fi |
| 6834 | ac_mid=`expr 2 '*' $ac_mid` |
| 6835 | fi |
| 6836 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6837 | done |
| 6838 | else |
| 6839 | echo "$as_me: failed program was:" >&5 |
| 6840 | cat conftest.$ac_ext >&5 |
| 6841 | ac_lo= ac_hi= |
| 6842 | fi |
| 6843 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6844 | fi |
| 6845 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6846 | # Binary search between lo and hi bounds. |
| 6847 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6848 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6849 | cat >conftest.$ac_ext <<_ACEOF |
| 6850 | #line $LINENO "configure" |
| 6851 | #include "confdefs.h" |
| 6852 | $ac_includes_default |
| 6853 | #ifdef F77_DUMMY_MAIN |
| 6854 | # ifdef __cplusplus |
| 6855 | extern "C" |
| 6856 | # endif |
| 6857 | int F77_DUMMY_MAIN() { return 1; } |
| 6858 | #endif |
| 6859 | int |
| 6860 | main () |
| 6861 | { |
| 6862 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 6863 | test_array [0] = 0 |
| 6864 | |
| 6865 | ; |
| 6866 | return 0; |
| 6867 | } |
| 6868 | _ACEOF |
| 6869 | rm -f conftest.$ac_objext |
| 6870 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6871 | (eval $ac_compile) 2>&5 |
| 6872 | ac_status=$? |
| 6873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6874 | (exit $ac_status); } && |
| 6875 | { ac_try='test -s conftest.$ac_objext' |
| 6876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6877 | (eval $ac_try) 2>&5 |
| 6878 | ac_status=$? |
| 6879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6880 | (exit $ac_status); }; }; then |
| 6881 | ac_hi=$ac_mid |
| 6882 | else |
| 6883 | echo "$as_me: failed program was:" >&5 |
| 6884 | cat conftest.$ac_ext >&5 |
| 6885 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6886 | fi |
| 6887 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6888 | done |
| 6889 | case $ac_lo in |
| 6890 | ?*) ac_cv_sizeof_short=$ac_lo;; |
| 6891 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 |
| 6892 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} |
| 6893 | { (exit 1); exit 1; }; } ;; |
| 6894 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6895 | else |
| 6896 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6897 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6898 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6899 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6900 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6901 | cat >conftest.$ac_ext <<_ACEOF |
| 6902 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6903 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6904 | $ac_includes_default |
| 6905 | long longval () { return (long) (sizeof (short)); } |
| 6906 | unsigned long ulongval () { return (long) (sizeof (short)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6907 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6908 | #include <stdlib.h> |
| 6909 | #ifdef F77_DUMMY_MAIN |
| 6910 | # ifdef __cplusplus |
| 6911 | extern "C" |
| 6912 | # endif |
| 6913 | int F77_DUMMY_MAIN() { return 1; } |
| 6914 | #endif |
| 6915 | int |
| 6916 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6917 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6918 | |
| 6919 | FILE *f = fopen ("conftest.val", "w"); |
| 6920 | if (! f) |
| 6921 | exit (1); |
| 6922 | if (((long) (sizeof (short))) < 0) |
| 6923 | { |
| 6924 | long i = longval (); |
| 6925 | if (i != ((long) (sizeof (short)))) |
| 6926 | exit (1); |
| 6927 | fprintf (f, "%ld\n", i); |
| 6928 | } |
| 6929 | else |
| 6930 | { |
| 6931 | unsigned long i = ulongval (); |
| 6932 | if (i != ((long) (sizeof (short)))) |
| 6933 | exit (1); |
| 6934 | fprintf (f, "%lu\n", i); |
| 6935 | } |
| 6936 | exit (ferror (f) || fclose (f) != 0); |
| 6937 | |
| 6938 | ; |
| 6939 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6940 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6941 | _ACEOF |
| 6942 | rm -f conftest$ac_exeext |
| 6943 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6944 | (eval $ac_link) 2>&5 |
| 6945 | ac_status=$? |
| 6946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6947 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6949 | (eval $ac_try) 2>&5 |
| 6950 | ac_status=$? |
| 6951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6952 | (exit $ac_status); }; }; then |
| 6953 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6954 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6955 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6956 | echo "$as_me: failed program was:" >&5 |
| 6957 | cat conftest.$ac_ext >&5 |
| 6958 | ( exit $ac_status ) |
| 6959 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 |
| 6960 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} |
| 6961 | { (exit 1); exit 1; }; } |
| 6962 | fi |
| 6963 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6964 | fi |
| 6965 | fi |
| 6966 | rm -f conftest.val |
| 6967 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6968 | ac_cv_sizeof_short=0 |
| 6969 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6970 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6971 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 6972 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
| 6973 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6974 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6975 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6976 | |
| 6977 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6978 | echo "$as_me:$LINENO: checking for float" >&5 |
| 6979 | echo $ECHO_N "checking for float... $ECHO_C" >&6 |
| 6980 | if test "${ac_cv_type_float+set}" = set; then |
| 6981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6982 | else |
| 6983 | cat >conftest.$ac_ext <<_ACEOF |
| 6984 | #line $LINENO "configure" |
| 6985 | #include "confdefs.h" |
| 6986 | $ac_includes_default |
| 6987 | #ifdef F77_DUMMY_MAIN |
| 6988 | # ifdef __cplusplus |
| 6989 | extern "C" |
| 6990 | # endif |
| 6991 | int F77_DUMMY_MAIN() { return 1; } |
| 6992 | #endif |
| 6993 | int |
| 6994 | main () |
| 6995 | { |
| 6996 | if ((float *) 0) |
| 6997 | return 0; |
| 6998 | if (sizeof (float)) |
| 6999 | return 0; |
| 7000 | ; |
| 7001 | return 0; |
| 7002 | } |
| 7003 | _ACEOF |
| 7004 | rm -f conftest.$ac_objext |
| 7005 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7006 | (eval $ac_compile) 2>&5 |
| 7007 | ac_status=$? |
| 7008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7009 | (exit $ac_status); } && |
| 7010 | { ac_try='test -s conftest.$ac_objext' |
| 7011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7012 | (eval $ac_try) 2>&5 |
| 7013 | ac_status=$? |
| 7014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7015 | (exit $ac_status); }; }; then |
| 7016 | ac_cv_type_float=yes |
| 7017 | else |
| 7018 | echo "$as_me: failed program was:" >&5 |
| 7019 | cat conftest.$ac_ext >&5 |
| 7020 | ac_cv_type_float=no |
| 7021 | fi |
| 7022 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7023 | fi |
| 7024 | echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 7025 | echo "${ECHO_T}$ac_cv_type_float" >&6 |
| 7026 | |
| 7027 | echo "$as_me:$LINENO: checking size of float" >&5 |
| 7028 | echo $ECHO_N "checking size of float... $ECHO_C" >&6 |
| 7029 | if test "${ac_cv_sizeof_float+set}" = set; then |
| 7030 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7031 | else |
| 7032 | if test "$ac_cv_type_float" = yes; then |
| 7033 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7034 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7035 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7036 | # This bug is HP SR number 8606223364. |
| 7037 | if test "$cross_compiling" = yes; then |
| 7038 | # Depending upon the size, compute the lo and hi bounds. |
| 7039 | cat >conftest.$ac_ext <<_ACEOF |
| 7040 | #line $LINENO "configure" |
| 7041 | #include "confdefs.h" |
| 7042 | $ac_includes_default |
| 7043 | #ifdef F77_DUMMY_MAIN |
| 7044 | # ifdef __cplusplus |
| 7045 | extern "C" |
| 7046 | # endif |
| 7047 | int F77_DUMMY_MAIN() { return 1; } |
| 7048 | #endif |
| 7049 | int |
| 7050 | main () |
| 7051 | { |
| 7052 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)]; |
| 7053 | test_array [0] = 0 |
| 7054 | |
| 7055 | ; |
| 7056 | return 0; |
| 7057 | } |
| 7058 | _ACEOF |
| 7059 | rm -f conftest.$ac_objext |
| 7060 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7061 | (eval $ac_compile) 2>&5 |
| 7062 | ac_status=$? |
| 7063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7064 | (exit $ac_status); } && |
| 7065 | { ac_try='test -s conftest.$ac_objext' |
| 7066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7067 | (eval $ac_try) 2>&5 |
| 7068 | ac_status=$? |
| 7069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7070 | (exit $ac_status); }; }; then |
| 7071 | ac_lo=0 ac_mid=0 |
| 7072 | while :; do |
| 7073 | cat >conftest.$ac_ext <<_ACEOF |
| 7074 | #line $LINENO "configure" |
| 7075 | #include "confdefs.h" |
| 7076 | $ac_includes_default |
| 7077 | #ifdef F77_DUMMY_MAIN |
| 7078 | # ifdef __cplusplus |
| 7079 | extern "C" |
| 7080 | # endif |
| 7081 | int F77_DUMMY_MAIN() { return 1; } |
| 7082 | #endif |
| 7083 | int |
| 7084 | main () |
| 7085 | { |
| 7086 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 7087 | test_array [0] = 0 |
| 7088 | |
| 7089 | ; |
| 7090 | return 0; |
| 7091 | } |
| 7092 | _ACEOF |
| 7093 | rm -f conftest.$ac_objext |
| 7094 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7095 | (eval $ac_compile) 2>&5 |
| 7096 | ac_status=$? |
| 7097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7098 | (exit $ac_status); } && |
| 7099 | { ac_try='test -s conftest.$ac_objext' |
| 7100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7101 | (eval $ac_try) 2>&5 |
| 7102 | ac_status=$? |
| 7103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7104 | (exit $ac_status); }; }; then |
| 7105 | ac_hi=$ac_mid; break |
| 7106 | else |
| 7107 | echo "$as_me: failed program was:" >&5 |
| 7108 | cat conftest.$ac_ext >&5 |
| 7109 | ac_lo=`expr $ac_mid + 1` |
| 7110 | if test $ac_lo -le $ac_mid; then |
| 7111 | ac_lo= ac_hi= |
| 7112 | break |
| 7113 | fi |
| 7114 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7115 | fi |
| 7116 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7117 | done |
| 7118 | else |
| 7119 | echo "$as_me: failed program was:" >&5 |
| 7120 | cat conftest.$ac_ext >&5 |
| 7121 | cat >conftest.$ac_ext <<_ACEOF |
| 7122 | #line $LINENO "configure" |
| 7123 | #include "confdefs.h" |
| 7124 | $ac_includes_default |
| 7125 | #ifdef F77_DUMMY_MAIN |
| 7126 | # ifdef __cplusplus |
| 7127 | extern "C" |
| 7128 | # endif |
| 7129 | int F77_DUMMY_MAIN() { return 1; } |
| 7130 | #endif |
| 7131 | int |
| 7132 | main () |
| 7133 | { |
| 7134 | static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)]; |
| 7135 | test_array [0] = 0 |
| 7136 | |
| 7137 | ; |
| 7138 | return 0; |
| 7139 | } |
| 7140 | _ACEOF |
| 7141 | rm -f conftest.$ac_objext |
| 7142 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7143 | (eval $ac_compile) 2>&5 |
| 7144 | ac_status=$? |
| 7145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7146 | (exit $ac_status); } && |
| 7147 | { ac_try='test -s conftest.$ac_objext' |
| 7148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7149 | (eval $ac_try) 2>&5 |
| 7150 | ac_status=$? |
| 7151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7152 | (exit $ac_status); }; }; then |
| 7153 | ac_hi=-1 ac_mid=-1 |
| 7154 | while :; do |
| 7155 | cat >conftest.$ac_ext <<_ACEOF |
| 7156 | #line $LINENO "configure" |
| 7157 | #include "confdefs.h" |
| 7158 | $ac_includes_default |
| 7159 | #ifdef F77_DUMMY_MAIN |
| 7160 | # ifdef __cplusplus |
| 7161 | extern "C" |
| 7162 | # endif |
| 7163 | int F77_DUMMY_MAIN() { return 1; } |
| 7164 | #endif |
| 7165 | int |
| 7166 | main () |
| 7167 | { |
| 7168 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)]; |
| 7169 | test_array [0] = 0 |
| 7170 | |
| 7171 | ; |
| 7172 | return 0; |
| 7173 | } |
| 7174 | _ACEOF |
| 7175 | rm -f conftest.$ac_objext |
| 7176 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7177 | (eval $ac_compile) 2>&5 |
| 7178 | ac_status=$? |
| 7179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7180 | (exit $ac_status); } && |
| 7181 | { ac_try='test -s conftest.$ac_objext' |
| 7182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7183 | (eval $ac_try) 2>&5 |
| 7184 | ac_status=$? |
| 7185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7186 | (exit $ac_status); }; }; then |
| 7187 | ac_lo=$ac_mid; break |
| 7188 | else |
| 7189 | echo "$as_me: failed program was:" >&5 |
| 7190 | cat conftest.$ac_ext >&5 |
| 7191 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7192 | if test $ac_mid -le $ac_hi; then |
| 7193 | ac_lo= ac_hi= |
| 7194 | break |
| 7195 | fi |
| 7196 | ac_mid=`expr 2 '*' $ac_mid` |
| 7197 | fi |
| 7198 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7199 | done |
| 7200 | else |
| 7201 | echo "$as_me: failed program was:" >&5 |
| 7202 | cat conftest.$ac_ext >&5 |
| 7203 | ac_lo= ac_hi= |
| 7204 | fi |
| 7205 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7206 | fi |
| 7207 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7208 | # Binary search between lo and hi bounds. |
| 7209 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7210 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7211 | cat >conftest.$ac_ext <<_ACEOF |
| 7212 | #line $LINENO "configure" |
| 7213 | #include "confdefs.h" |
| 7214 | $ac_includes_default |
| 7215 | #ifdef F77_DUMMY_MAIN |
| 7216 | # ifdef __cplusplus |
| 7217 | extern "C" |
| 7218 | # endif |
| 7219 | int F77_DUMMY_MAIN() { return 1; } |
| 7220 | #endif |
| 7221 | int |
| 7222 | main () |
| 7223 | { |
| 7224 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 7225 | test_array [0] = 0 |
| 7226 | |
| 7227 | ; |
| 7228 | return 0; |
| 7229 | } |
| 7230 | _ACEOF |
| 7231 | rm -f conftest.$ac_objext |
| 7232 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7233 | (eval $ac_compile) 2>&5 |
| 7234 | ac_status=$? |
| 7235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7236 | (exit $ac_status); } && |
| 7237 | { ac_try='test -s conftest.$ac_objext' |
| 7238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7239 | (eval $ac_try) 2>&5 |
| 7240 | ac_status=$? |
| 7241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7242 | (exit $ac_status); }; }; then |
| 7243 | ac_hi=$ac_mid |
| 7244 | else |
| 7245 | echo "$as_me: failed program was:" >&5 |
| 7246 | cat conftest.$ac_ext >&5 |
| 7247 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7248 | fi |
| 7249 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7250 | done |
| 7251 | case $ac_lo in |
| 7252 | ?*) ac_cv_sizeof_float=$ac_lo;; |
| 7253 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5 |
| 7254 | echo "$as_me: error: cannot compute sizeof (float), 77" >&2;} |
| 7255 | { (exit 1); exit 1; }; } ;; |
| 7256 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7257 | else |
| 7258 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7259 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7260 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7261 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7262 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7263 | cat >conftest.$ac_ext <<_ACEOF |
| 7264 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7265 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7266 | $ac_includes_default |
| 7267 | long longval () { return (long) (sizeof (float)); } |
| 7268 | unsigned long ulongval () { return (long) (sizeof (float)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7269 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7270 | #include <stdlib.h> |
| 7271 | #ifdef F77_DUMMY_MAIN |
| 7272 | # ifdef __cplusplus |
| 7273 | extern "C" |
| 7274 | # endif |
| 7275 | int F77_DUMMY_MAIN() { return 1; } |
| 7276 | #endif |
| 7277 | int |
| 7278 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7279 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7280 | |
| 7281 | FILE *f = fopen ("conftest.val", "w"); |
| 7282 | if (! f) |
| 7283 | exit (1); |
| 7284 | if (((long) (sizeof (float))) < 0) |
| 7285 | { |
| 7286 | long i = longval (); |
| 7287 | if (i != ((long) (sizeof (float)))) |
| 7288 | exit (1); |
| 7289 | fprintf (f, "%ld\n", i); |
| 7290 | } |
| 7291 | else |
| 7292 | { |
| 7293 | unsigned long i = ulongval (); |
| 7294 | if (i != ((long) (sizeof (float)))) |
| 7295 | exit (1); |
| 7296 | fprintf (f, "%lu\n", i); |
| 7297 | } |
| 7298 | exit (ferror (f) || fclose (f) != 0); |
| 7299 | |
| 7300 | ; |
| 7301 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7302 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7303 | _ACEOF |
| 7304 | rm -f conftest$ac_exeext |
| 7305 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7306 | (eval $ac_link) 2>&5 |
| 7307 | ac_status=$? |
| 7308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7309 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7311 | (eval $ac_try) 2>&5 |
| 7312 | ac_status=$? |
| 7313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7314 | (exit $ac_status); }; }; then |
| 7315 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7316 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7317 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7318 | echo "$as_me: failed program was:" >&5 |
| 7319 | cat conftest.$ac_ext >&5 |
| 7320 | ( exit $ac_status ) |
| 7321 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5 |
| 7322 | echo "$as_me: error: cannot compute sizeof (float), 77" >&2;} |
| 7323 | { (exit 1); exit 1; }; } |
| 7324 | fi |
| 7325 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7326 | fi |
| 7327 | fi |
| 7328 | rm -f conftest.val |
| 7329 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7330 | ac_cv_sizeof_float=0 |
| 7331 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7332 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7333 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 7334 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6 |
| 7335 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7336 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7337 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7338 | |
| 7339 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7340 | echo "$as_me:$LINENO: checking for double" >&5 |
| 7341 | echo $ECHO_N "checking for double... $ECHO_C" >&6 |
| 7342 | if test "${ac_cv_type_double+set}" = set; then |
| 7343 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7344 | else |
| 7345 | cat >conftest.$ac_ext <<_ACEOF |
| 7346 | #line $LINENO "configure" |
| 7347 | #include "confdefs.h" |
| 7348 | $ac_includes_default |
| 7349 | #ifdef F77_DUMMY_MAIN |
| 7350 | # ifdef __cplusplus |
| 7351 | extern "C" |
| 7352 | # endif |
| 7353 | int F77_DUMMY_MAIN() { return 1; } |
| 7354 | #endif |
| 7355 | int |
| 7356 | main () |
| 7357 | { |
| 7358 | if ((double *) 0) |
| 7359 | return 0; |
| 7360 | if (sizeof (double)) |
| 7361 | return 0; |
| 7362 | ; |
| 7363 | return 0; |
| 7364 | } |
| 7365 | _ACEOF |
| 7366 | rm -f conftest.$ac_objext |
| 7367 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7368 | (eval $ac_compile) 2>&5 |
| 7369 | ac_status=$? |
| 7370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7371 | (exit $ac_status); } && |
| 7372 | { ac_try='test -s conftest.$ac_objext' |
| 7373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7374 | (eval $ac_try) 2>&5 |
| 7375 | ac_status=$? |
| 7376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7377 | (exit $ac_status); }; }; then |
| 7378 | ac_cv_type_double=yes |
| 7379 | else |
| 7380 | echo "$as_me: failed program was:" >&5 |
| 7381 | cat conftest.$ac_ext >&5 |
| 7382 | ac_cv_type_double=no |
| 7383 | fi |
| 7384 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7385 | fi |
| 7386 | echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 7387 | echo "${ECHO_T}$ac_cv_type_double" >&6 |
| 7388 | |
| 7389 | echo "$as_me:$LINENO: checking size of double" >&5 |
| 7390 | echo $ECHO_N "checking size of double... $ECHO_C" >&6 |
| 7391 | if test "${ac_cv_sizeof_double+set}" = set; then |
| 7392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7393 | else |
| 7394 | if test "$ac_cv_type_double" = yes; then |
| 7395 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7396 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7397 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7398 | # This bug is HP SR number 8606223364. |
| 7399 | if test "$cross_compiling" = yes; then |
| 7400 | # Depending upon the size, compute the lo and hi bounds. |
| 7401 | cat >conftest.$ac_ext <<_ACEOF |
| 7402 | #line $LINENO "configure" |
| 7403 | #include "confdefs.h" |
| 7404 | $ac_includes_default |
| 7405 | #ifdef F77_DUMMY_MAIN |
| 7406 | # ifdef __cplusplus |
| 7407 | extern "C" |
| 7408 | # endif |
| 7409 | int F77_DUMMY_MAIN() { return 1; } |
| 7410 | #endif |
| 7411 | int |
| 7412 | main () |
| 7413 | { |
| 7414 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)]; |
| 7415 | test_array [0] = 0 |
| 7416 | |
| 7417 | ; |
| 7418 | return 0; |
| 7419 | } |
| 7420 | _ACEOF |
| 7421 | rm -f conftest.$ac_objext |
| 7422 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7423 | (eval $ac_compile) 2>&5 |
| 7424 | ac_status=$? |
| 7425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7426 | (exit $ac_status); } && |
| 7427 | { ac_try='test -s conftest.$ac_objext' |
| 7428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7429 | (eval $ac_try) 2>&5 |
| 7430 | ac_status=$? |
| 7431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7432 | (exit $ac_status); }; }; then |
| 7433 | ac_lo=0 ac_mid=0 |
| 7434 | while :; do |
| 7435 | cat >conftest.$ac_ext <<_ACEOF |
| 7436 | #line $LINENO "configure" |
| 7437 | #include "confdefs.h" |
| 7438 | $ac_includes_default |
| 7439 | #ifdef F77_DUMMY_MAIN |
| 7440 | # ifdef __cplusplus |
| 7441 | extern "C" |
| 7442 | # endif |
| 7443 | int F77_DUMMY_MAIN() { return 1; } |
| 7444 | #endif |
| 7445 | int |
| 7446 | main () |
| 7447 | { |
| 7448 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 7449 | test_array [0] = 0 |
| 7450 | |
| 7451 | ; |
| 7452 | return 0; |
| 7453 | } |
| 7454 | _ACEOF |
| 7455 | rm -f conftest.$ac_objext |
| 7456 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7457 | (eval $ac_compile) 2>&5 |
| 7458 | ac_status=$? |
| 7459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7460 | (exit $ac_status); } && |
| 7461 | { ac_try='test -s conftest.$ac_objext' |
| 7462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7463 | (eval $ac_try) 2>&5 |
| 7464 | ac_status=$? |
| 7465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7466 | (exit $ac_status); }; }; then |
| 7467 | ac_hi=$ac_mid; break |
| 7468 | else |
| 7469 | echo "$as_me: failed program was:" >&5 |
| 7470 | cat conftest.$ac_ext >&5 |
| 7471 | ac_lo=`expr $ac_mid + 1` |
| 7472 | if test $ac_lo -le $ac_mid; then |
| 7473 | ac_lo= ac_hi= |
| 7474 | break |
| 7475 | fi |
| 7476 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7477 | fi |
| 7478 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7479 | done |
| 7480 | else |
| 7481 | echo "$as_me: failed program was:" >&5 |
| 7482 | cat conftest.$ac_ext >&5 |
| 7483 | cat >conftest.$ac_ext <<_ACEOF |
| 7484 | #line $LINENO "configure" |
| 7485 | #include "confdefs.h" |
| 7486 | $ac_includes_default |
| 7487 | #ifdef F77_DUMMY_MAIN |
| 7488 | # ifdef __cplusplus |
| 7489 | extern "C" |
| 7490 | # endif |
| 7491 | int F77_DUMMY_MAIN() { return 1; } |
| 7492 | #endif |
| 7493 | int |
| 7494 | main () |
| 7495 | { |
| 7496 | static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)]; |
| 7497 | test_array [0] = 0 |
| 7498 | |
| 7499 | ; |
| 7500 | return 0; |
| 7501 | } |
| 7502 | _ACEOF |
| 7503 | rm -f conftest.$ac_objext |
| 7504 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7505 | (eval $ac_compile) 2>&5 |
| 7506 | ac_status=$? |
| 7507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7508 | (exit $ac_status); } && |
| 7509 | { ac_try='test -s conftest.$ac_objext' |
| 7510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7511 | (eval $ac_try) 2>&5 |
| 7512 | ac_status=$? |
| 7513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7514 | (exit $ac_status); }; }; then |
| 7515 | ac_hi=-1 ac_mid=-1 |
| 7516 | while :; do |
| 7517 | cat >conftest.$ac_ext <<_ACEOF |
| 7518 | #line $LINENO "configure" |
| 7519 | #include "confdefs.h" |
| 7520 | $ac_includes_default |
| 7521 | #ifdef F77_DUMMY_MAIN |
| 7522 | # ifdef __cplusplus |
| 7523 | extern "C" |
| 7524 | # endif |
| 7525 | int F77_DUMMY_MAIN() { return 1; } |
| 7526 | #endif |
| 7527 | int |
| 7528 | main () |
| 7529 | { |
| 7530 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)]; |
| 7531 | test_array [0] = 0 |
| 7532 | |
| 7533 | ; |
| 7534 | return 0; |
| 7535 | } |
| 7536 | _ACEOF |
| 7537 | rm -f conftest.$ac_objext |
| 7538 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7539 | (eval $ac_compile) 2>&5 |
| 7540 | ac_status=$? |
| 7541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7542 | (exit $ac_status); } && |
| 7543 | { ac_try='test -s conftest.$ac_objext' |
| 7544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7545 | (eval $ac_try) 2>&5 |
| 7546 | ac_status=$? |
| 7547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7548 | (exit $ac_status); }; }; then |
| 7549 | ac_lo=$ac_mid; break |
| 7550 | else |
| 7551 | echo "$as_me: failed program was:" >&5 |
| 7552 | cat conftest.$ac_ext >&5 |
| 7553 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7554 | if test $ac_mid -le $ac_hi; then |
| 7555 | ac_lo= ac_hi= |
| 7556 | break |
| 7557 | fi |
| 7558 | ac_mid=`expr 2 '*' $ac_mid` |
| 7559 | fi |
| 7560 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7561 | done |
| 7562 | else |
| 7563 | echo "$as_me: failed program was:" >&5 |
| 7564 | cat conftest.$ac_ext >&5 |
| 7565 | ac_lo= ac_hi= |
| 7566 | fi |
| 7567 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7568 | fi |
| 7569 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7570 | # Binary search between lo and hi bounds. |
| 7571 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7572 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7573 | cat >conftest.$ac_ext <<_ACEOF |
| 7574 | #line $LINENO "configure" |
| 7575 | #include "confdefs.h" |
| 7576 | $ac_includes_default |
| 7577 | #ifdef F77_DUMMY_MAIN |
| 7578 | # ifdef __cplusplus |
| 7579 | extern "C" |
| 7580 | # endif |
| 7581 | int F77_DUMMY_MAIN() { return 1; } |
| 7582 | #endif |
| 7583 | int |
| 7584 | main () |
| 7585 | { |
| 7586 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 7587 | test_array [0] = 0 |
| 7588 | |
| 7589 | ; |
| 7590 | return 0; |
| 7591 | } |
| 7592 | _ACEOF |
| 7593 | rm -f conftest.$ac_objext |
| 7594 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7595 | (eval $ac_compile) 2>&5 |
| 7596 | ac_status=$? |
| 7597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7598 | (exit $ac_status); } && |
| 7599 | { ac_try='test -s conftest.$ac_objext' |
| 7600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7601 | (eval $ac_try) 2>&5 |
| 7602 | ac_status=$? |
| 7603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7604 | (exit $ac_status); }; }; then |
| 7605 | ac_hi=$ac_mid |
| 7606 | else |
| 7607 | echo "$as_me: failed program was:" >&5 |
| 7608 | cat conftest.$ac_ext >&5 |
| 7609 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7610 | fi |
| 7611 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7612 | done |
| 7613 | case $ac_lo in |
| 7614 | ?*) ac_cv_sizeof_double=$ac_lo;; |
| 7615 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5 |
| 7616 | echo "$as_me: error: cannot compute sizeof (double), 77" >&2;} |
| 7617 | { (exit 1); exit 1; }; } ;; |
| 7618 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7619 | else |
| 7620 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7621 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7622 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7623 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7624 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7625 | cat >conftest.$ac_ext <<_ACEOF |
| 7626 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7627 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7628 | $ac_includes_default |
| 7629 | long longval () { return (long) (sizeof (double)); } |
| 7630 | unsigned long ulongval () { return (long) (sizeof (double)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7631 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7632 | #include <stdlib.h> |
| 7633 | #ifdef F77_DUMMY_MAIN |
| 7634 | # ifdef __cplusplus |
| 7635 | extern "C" |
| 7636 | # endif |
| 7637 | int F77_DUMMY_MAIN() { return 1; } |
| 7638 | #endif |
| 7639 | int |
| 7640 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7641 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7642 | |
| 7643 | FILE *f = fopen ("conftest.val", "w"); |
| 7644 | if (! f) |
| 7645 | exit (1); |
| 7646 | if (((long) (sizeof (double))) < 0) |
| 7647 | { |
| 7648 | long i = longval (); |
| 7649 | if (i != ((long) (sizeof (double)))) |
| 7650 | exit (1); |
| 7651 | fprintf (f, "%ld\n", i); |
| 7652 | } |
| 7653 | else |
| 7654 | { |
| 7655 | unsigned long i = ulongval (); |
| 7656 | if (i != ((long) (sizeof (double)))) |
| 7657 | exit (1); |
| 7658 | fprintf (f, "%lu\n", i); |
| 7659 | } |
| 7660 | exit (ferror (f) || fclose (f) != 0); |
| 7661 | |
| 7662 | ; |
| 7663 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7664 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7665 | _ACEOF |
| 7666 | rm -f conftest$ac_exeext |
| 7667 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7668 | (eval $ac_link) 2>&5 |
| 7669 | ac_status=$? |
| 7670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7671 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7673 | (eval $ac_try) 2>&5 |
| 7674 | ac_status=$? |
| 7675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7676 | (exit $ac_status); }; }; then |
| 7677 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7678 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7679 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7680 | echo "$as_me: failed program was:" >&5 |
| 7681 | cat conftest.$ac_ext >&5 |
| 7682 | ( exit $ac_status ) |
| 7683 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5 |
| 7684 | echo "$as_me: error: cannot compute sizeof (double), 77" >&2;} |
| 7685 | { (exit 1); exit 1; }; } |
| 7686 | fi |
| 7687 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7688 | fi |
| 7689 | fi |
| 7690 | rm -f conftest.val |
| 7691 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7692 | ac_cv_sizeof_double=0 |
| 7693 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7694 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7695 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 7696 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6 |
| 7697 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7698 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7699 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7700 | |
| 7701 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7702 | echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 7703 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6 |
| 7704 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 7705 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7706 | else |
| 7707 | cat >conftest.$ac_ext <<_ACEOF |
| 7708 | #line $LINENO "configure" |
| 7709 | #include "confdefs.h" |
| 7710 | $ac_includes_default |
| 7711 | #ifdef F77_DUMMY_MAIN |
| 7712 | # ifdef __cplusplus |
| 7713 | extern "C" |
| 7714 | # endif |
| 7715 | int F77_DUMMY_MAIN() { return 1; } |
| 7716 | #endif |
| 7717 | int |
| 7718 | main () |
| 7719 | { |
| 7720 | if ((fpos_t *) 0) |
| 7721 | return 0; |
| 7722 | if (sizeof (fpos_t)) |
| 7723 | return 0; |
| 7724 | ; |
| 7725 | return 0; |
| 7726 | } |
| 7727 | _ACEOF |
| 7728 | rm -f conftest.$ac_objext |
| 7729 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7730 | (eval $ac_compile) 2>&5 |
| 7731 | ac_status=$? |
| 7732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7733 | (exit $ac_status); } && |
| 7734 | { ac_try='test -s conftest.$ac_objext' |
| 7735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7736 | (eval $ac_try) 2>&5 |
| 7737 | ac_status=$? |
| 7738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7739 | (exit $ac_status); }; }; then |
| 7740 | ac_cv_type_fpos_t=yes |
| 7741 | else |
| 7742 | echo "$as_me: failed program was:" >&5 |
| 7743 | cat conftest.$ac_ext >&5 |
| 7744 | ac_cv_type_fpos_t=no |
| 7745 | fi |
| 7746 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7747 | fi |
| 7748 | echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 7749 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6 |
| 7750 | |
| 7751 | echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 7752 | echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6 |
| 7753 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| 7754 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7755 | else |
| 7756 | if test "$ac_cv_type_fpos_t" = yes; then |
| 7757 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7758 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7759 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7760 | # This bug is HP SR number 8606223364. |
| 7761 | if test "$cross_compiling" = yes; then |
| 7762 | # Depending upon the size, compute the lo and hi bounds. |
| 7763 | cat >conftest.$ac_ext <<_ACEOF |
| 7764 | #line $LINENO "configure" |
| 7765 | #include "confdefs.h" |
| 7766 | $ac_includes_default |
| 7767 | #ifdef F77_DUMMY_MAIN |
| 7768 | # ifdef __cplusplus |
| 7769 | extern "C" |
| 7770 | # endif |
| 7771 | int F77_DUMMY_MAIN() { return 1; } |
| 7772 | #endif |
| 7773 | int |
| 7774 | main () |
| 7775 | { |
| 7776 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)]; |
| 7777 | test_array [0] = 0 |
| 7778 | |
| 7779 | ; |
| 7780 | return 0; |
| 7781 | } |
| 7782 | _ACEOF |
| 7783 | rm -f conftest.$ac_objext |
| 7784 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7785 | (eval $ac_compile) 2>&5 |
| 7786 | ac_status=$? |
| 7787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7788 | (exit $ac_status); } && |
| 7789 | { ac_try='test -s conftest.$ac_objext' |
| 7790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7791 | (eval $ac_try) 2>&5 |
| 7792 | ac_status=$? |
| 7793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7794 | (exit $ac_status); }; }; then |
| 7795 | ac_lo=0 ac_mid=0 |
| 7796 | while :; do |
| 7797 | cat >conftest.$ac_ext <<_ACEOF |
| 7798 | #line $LINENO "configure" |
| 7799 | #include "confdefs.h" |
| 7800 | $ac_includes_default |
| 7801 | #ifdef F77_DUMMY_MAIN |
| 7802 | # ifdef __cplusplus |
| 7803 | extern "C" |
| 7804 | # endif |
| 7805 | int F77_DUMMY_MAIN() { return 1; } |
| 7806 | #endif |
| 7807 | int |
| 7808 | main () |
| 7809 | { |
| 7810 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 7811 | test_array [0] = 0 |
| 7812 | |
| 7813 | ; |
| 7814 | return 0; |
| 7815 | } |
| 7816 | _ACEOF |
| 7817 | rm -f conftest.$ac_objext |
| 7818 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7819 | (eval $ac_compile) 2>&5 |
| 7820 | ac_status=$? |
| 7821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7822 | (exit $ac_status); } && |
| 7823 | { ac_try='test -s conftest.$ac_objext' |
| 7824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7825 | (eval $ac_try) 2>&5 |
| 7826 | ac_status=$? |
| 7827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7828 | (exit $ac_status); }; }; then |
| 7829 | ac_hi=$ac_mid; break |
| 7830 | else |
| 7831 | echo "$as_me: failed program was:" >&5 |
| 7832 | cat conftest.$ac_ext >&5 |
| 7833 | ac_lo=`expr $ac_mid + 1` |
| 7834 | if test $ac_lo -le $ac_mid; then |
| 7835 | ac_lo= ac_hi= |
| 7836 | break |
| 7837 | fi |
| 7838 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7839 | fi |
| 7840 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7841 | done |
| 7842 | else |
| 7843 | echo "$as_me: failed program was:" >&5 |
| 7844 | cat conftest.$ac_ext >&5 |
| 7845 | cat >conftest.$ac_ext <<_ACEOF |
| 7846 | #line $LINENO "configure" |
| 7847 | #include "confdefs.h" |
| 7848 | $ac_includes_default |
| 7849 | #ifdef F77_DUMMY_MAIN |
| 7850 | # ifdef __cplusplus |
| 7851 | extern "C" |
| 7852 | # endif |
| 7853 | int F77_DUMMY_MAIN() { return 1; } |
| 7854 | #endif |
| 7855 | int |
| 7856 | main () |
| 7857 | { |
| 7858 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)]; |
| 7859 | test_array [0] = 0 |
| 7860 | |
| 7861 | ; |
| 7862 | return 0; |
| 7863 | } |
| 7864 | _ACEOF |
| 7865 | rm -f conftest.$ac_objext |
| 7866 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7867 | (eval $ac_compile) 2>&5 |
| 7868 | ac_status=$? |
| 7869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7870 | (exit $ac_status); } && |
| 7871 | { ac_try='test -s conftest.$ac_objext' |
| 7872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7873 | (eval $ac_try) 2>&5 |
| 7874 | ac_status=$? |
| 7875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7876 | (exit $ac_status); }; }; then |
| 7877 | ac_hi=-1 ac_mid=-1 |
| 7878 | while :; do |
| 7879 | cat >conftest.$ac_ext <<_ACEOF |
| 7880 | #line $LINENO "configure" |
| 7881 | #include "confdefs.h" |
| 7882 | $ac_includes_default |
| 7883 | #ifdef F77_DUMMY_MAIN |
| 7884 | # ifdef __cplusplus |
| 7885 | extern "C" |
| 7886 | # endif |
| 7887 | int F77_DUMMY_MAIN() { return 1; } |
| 7888 | #endif |
| 7889 | int |
| 7890 | main () |
| 7891 | { |
| 7892 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)]; |
| 7893 | test_array [0] = 0 |
| 7894 | |
| 7895 | ; |
| 7896 | return 0; |
| 7897 | } |
| 7898 | _ACEOF |
| 7899 | rm -f conftest.$ac_objext |
| 7900 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7901 | (eval $ac_compile) 2>&5 |
| 7902 | ac_status=$? |
| 7903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7904 | (exit $ac_status); } && |
| 7905 | { ac_try='test -s conftest.$ac_objext' |
| 7906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7907 | (eval $ac_try) 2>&5 |
| 7908 | ac_status=$? |
| 7909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7910 | (exit $ac_status); }; }; then |
| 7911 | ac_lo=$ac_mid; break |
| 7912 | else |
| 7913 | echo "$as_me: failed program was:" >&5 |
| 7914 | cat conftest.$ac_ext >&5 |
| 7915 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7916 | if test $ac_mid -le $ac_hi; then |
| 7917 | ac_lo= ac_hi= |
| 7918 | break |
| 7919 | fi |
| 7920 | ac_mid=`expr 2 '*' $ac_mid` |
| 7921 | fi |
| 7922 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7923 | done |
| 7924 | else |
| 7925 | echo "$as_me: failed program was:" >&5 |
| 7926 | cat conftest.$ac_ext >&5 |
| 7927 | ac_lo= ac_hi= |
| 7928 | fi |
| 7929 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7930 | fi |
| 7931 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7932 | # Binary search between lo and hi bounds. |
| 7933 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7934 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7935 | cat >conftest.$ac_ext <<_ACEOF |
| 7936 | #line $LINENO "configure" |
| 7937 | #include "confdefs.h" |
| 7938 | $ac_includes_default |
| 7939 | #ifdef F77_DUMMY_MAIN |
| 7940 | # ifdef __cplusplus |
| 7941 | extern "C" |
| 7942 | # endif |
| 7943 | int F77_DUMMY_MAIN() { return 1; } |
| 7944 | #endif |
| 7945 | int |
| 7946 | main () |
| 7947 | { |
| 7948 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 7949 | test_array [0] = 0 |
| 7950 | |
| 7951 | ; |
| 7952 | return 0; |
| 7953 | } |
| 7954 | _ACEOF |
| 7955 | rm -f conftest.$ac_objext |
| 7956 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7957 | (eval $ac_compile) 2>&5 |
| 7958 | ac_status=$? |
| 7959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7960 | (exit $ac_status); } && |
| 7961 | { ac_try='test -s conftest.$ac_objext' |
| 7962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7963 | (eval $ac_try) 2>&5 |
| 7964 | ac_status=$? |
| 7965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7966 | (exit $ac_status); }; }; then |
| 7967 | ac_hi=$ac_mid |
| 7968 | else |
| 7969 | echo "$as_me: failed program was:" >&5 |
| 7970 | cat conftest.$ac_ext >&5 |
| 7971 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7972 | fi |
| 7973 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7974 | done |
| 7975 | case $ac_lo in |
| 7976 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
| 7977 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5 |
| 7978 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;} |
| 7979 | { (exit 1); exit 1; }; } ;; |
| 7980 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7981 | else |
| 7982 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7983 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7984 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7985 | { (exit 1); exit 1; }; } |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7986 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7987 | cat >conftest.$ac_ext <<_ACEOF |
| 7988 | #line $LINENO "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 7989 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7990 | $ac_includes_default |
| 7991 | long longval () { return (long) (sizeof (fpos_t)); } |
| 7992 | unsigned long ulongval () { return (long) (sizeof (fpos_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7993 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7994 | #include <stdlib.h> |
| 7995 | #ifdef F77_DUMMY_MAIN |
| 7996 | # ifdef __cplusplus |
| 7997 | extern "C" |
| 7998 | # endif |
| 7999 | int F77_DUMMY_MAIN() { return 1; } |
| 8000 | #endif |
| 8001 | int |
| 8002 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8003 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8004 | |
| 8005 | FILE *f = fopen ("conftest.val", "w"); |
| 8006 | if (! f) |
| 8007 | exit (1); |
| 8008 | if (((long) (sizeof (fpos_t))) < 0) |
| 8009 | { |
| 8010 | long i = longval (); |
| 8011 | if (i != ((long) (sizeof (fpos_t)))) |
| 8012 | exit (1); |
| 8013 | fprintf (f, "%ld\n", i); |
| 8014 | } |
| 8015 | else |
| 8016 | { |
| 8017 | unsigned long i = ulongval (); |
| 8018 | if (i != ((long) (sizeof (fpos_t)))) |
| 8019 | exit (1); |
| 8020 | fprintf (f, "%lu\n", i); |
| 8021 | } |
| 8022 | exit (ferror (f) || fclose (f) != 0); |
| 8023 | |
| 8024 | ; |
| 8025 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8026 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8027 | _ACEOF |
| 8028 | rm -f conftest$ac_exeext |
| 8029 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8030 | (eval $ac_link) 2>&5 |
| 8031 | ac_status=$? |
| 8032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8033 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8035 | (eval $ac_try) 2>&5 |
| 8036 | ac_status=$? |
| 8037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8038 | (exit $ac_status); }; }; then |
| 8039 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8040 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8041 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8042 | echo "$as_me: failed program was:" >&5 |
| 8043 | cat conftest.$ac_ext >&5 |
| 8044 | ( exit $ac_status ) |
| 8045 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5 |
| 8046 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;} |
| 8047 | { (exit 1); exit 1; }; } |
| 8048 | fi |
| 8049 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8050 | fi |
| 8051 | fi |
| 8052 | rm -f conftest.val |
| 8053 | else |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8054 | ac_cv_sizeof_fpos_t=0 |
| 8055 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8056 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8057 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 8058 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6 |
| 8059 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8060 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8061 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8062 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8063 | |
| 8064 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8065 | echo "$as_me:$LINENO: checking for long long support" >&5 |
| 8066 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8067 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8068 | cat >conftest.$ac_ext <<_ACEOF |
| 8069 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8070 | #include "confdefs.h" |
| 8071 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8072 | #ifdef F77_DUMMY_MAIN |
| 8073 | # ifdef __cplusplus |
| 8074 | extern "C" |
| 8075 | # endif |
| 8076 | int F77_DUMMY_MAIN() { return 1; } |
| 8077 | #endif |
| 8078 | int |
| 8079 | main () |
| 8080 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8081 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8082 | ; |
| 8083 | return 0; |
| 8084 | } |
| 8085 | _ACEOF |
| 8086 | rm -f conftest.$ac_objext |
| 8087 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8088 | (eval $ac_compile) 2>&5 |
| 8089 | ac_status=$? |
| 8090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8091 | (exit $ac_status); } && |
| 8092 | { ac_try='test -s conftest.$ac_objext' |
| 8093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8094 | (eval $ac_try) 2>&5 |
| 8095 | ac_status=$? |
| 8096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8097 | (exit $ac_status); }; }; then |
| 8098 | |
| 8099 | |
| 8100 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8101 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8102 | _ACEOF |
| 8103 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8104 | have_long_long=yes |
| 8105 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8106 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8107 | echo "$as_me: failed program was:" >&5 |
| 8108 | cat conftest.$ac_ext >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8109 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8110 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8111 | echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 8112 | echo "${ECHO_T}$have_long_long" >&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 8113 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8114 | echo "$as_me:$LINENO: checking for long long" >&5 |
| 8115 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 8116 | if test "${ac_cv_type_long_long+set}" = set; then |
| 8117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8118 | else |
| 8119 | cat >conftest.$ac_ext <<_ACEOF |
| 8120 | #line $LINENO "configure" |
| 8121 | #include "confdefs.h" |
| 8122 | $ac_includes_default |
| 8123 | #ifdef F77_DUMMY_MAIN |
| 8124 | # ifdef __cplusplus |
| 8125 | extern "C" |
| 8126 | # endif |
| 8127 | int F77_DUMMY_MAIN() { return 1; } |
| 8128 | #endif |
| 8129 | int |
| 8130 | main () |
| 8131 | { |
| 8132 | if ((long long *) 0) |
| 8133 | return 0; |
| 8134 | if (sizeof (long long)) |
| 8135 | return 0; |
| 8136 | ; |
| 8137 | return 0; |
| 8138 | } |
| 8139 | _ACEOF |
| 8140 | rm -f conftest.$ac_objext |
| 8141 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8142 | (eval $ac_compile) 2>&5 |
| 8143 | ac_status=$? |
| 8144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8145 | (exit $ac_status); } && |
| 8146 | { ac_try='test -s conftest.$ac_objext' |
| 8147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8148 | (eval $ac_try) 2>&5 |
| 8149 | ac_status=$? |
| 8150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8151 | (exit $ac_status); }; }; then |
| 8152 | ac_cv_type_long_long=yes |
| 8153 | else |
| 8154 | echo "$as_me: failed program was:" >&5 |
| 8155 | cat conftest.$ac_ext >&5 |
| 8156 | ac_cv_type_long_long=no |
| 8157 | fi |
| 8158 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8159 | fi |
| 8160 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 8161 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 8162 | |
| 8163 | echo "$as_me:$LINENO: checking size of long long" >&5 |
| 8164 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 8165 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 8166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8167 | else |
| 8168 | if test "$ac_cv_type_long_long" = yes; then |
| 8169 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8170 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8171 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8172 | # This bug is HP SR number 8606223364. |
| 8173 | if test "$cross_compiling" = yes; then |
| 8174 | # Depending upon the size, compute the lo and hi bounds. |
| 8175 | cat >conftest.$ac_ext <<_ACEOF |
| 8176 | #line $LINENO "configure" |
| 8177 | #include "confdefs.h" |
| 8178 | $ac_includes_default |
| 8179 | #ifdef F77_DUMMY_MAIN |
| 8180 | # ifdef __cplusplus |
| 8181 | extern "C" |
| 8182 | # endif |
| 8183 | int F77_DUMMY_MAIN() { return 1; } |
| 8184 | #endif |
| 8185 | int |
| 8186 | main () |
| 8187 | { |
| 8188 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
| 8189 | test_array [0] = 0 |
| 8190 | |
| 8191 | ; |
| 8192 | return 0; |
| 8193 | } |
| 8194 | _ACEOF |
| 8195 | rm -f conftest.$ac_objext |
| 8196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8197 | (eval $ac_compile) 2>&5 |
| 8198 | ac_status=$? |
| 8199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8200 | (exit $ac_status); } && |
| 8201 | { ac_try='test -s conftest.$ac_objext' |
| 8202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8203 | (eval $ac_try) 2>&5 |
| 8204 | ac_status=$? |
| 8205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8206 | (exit $ac_status); }; }; then |
| 8207 | ac_lo=0 ac_mid=0 |
| 8208 | while :; do |
| 8209 | cat >conftest.$ac_ext <<_ACEOF |
| 8210 | #line $LINENO "configure" |
| 8211 | #include "confdefs.h" |
| 8212 | $ac_includes_default |
| 8213 | #ifdef F77_DUMMY_MAIN |
| 8214 | # ifdef __cplusplus |
| 8215 | extern "C" |
| 8216 | # endif |
| 8217 | int F77_DUMMY_MAIN() { return 1; } |
| 8218 | #endif |
| 8219 | int |
| 8220 | main () |
| 8221 | { |
| 8222 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 8223 | test_array [0] = 0 |
| 8224 | |
| 8225 | ; |
| 8226 | return 0; |
| 8227 | } |
| 8228 | _ACEOF |
| 8229 | rm -f conftest.$ac_objext |
| 8230 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8231 | (eval $ac_compile) 2>&5 |
| 8232 | ac_status=$? |
| 8233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8234 | (exit $ac_status); } && |
| 8235 | { ac_try='test -s conftest.$ac_objext' |
| 8236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8237 | (eval $ac_try) 2>&5 |
| 8238 | ac_status=$? |
| 8239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8240 | (exit $ac_status); }; }; then |
| 8241 | ac_hi=$ac_mid; break |
| 8242 | else |
| 8243 | echo "$as_me: failed program was:" >&5 |
| 8244 | cat conftest.$ac_ext >&5 |
| 8245 | ac_lo=`expr $ac_mid + 1` |
| 8246 | if test $ac_lo -le $ac_mid; then |
| 8247 | ac_lo= ac_hi= |
| 8248 | break |
| 8249 | fi |
| 8250 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8251 | fi |
| 8252 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8253 | done |
| 8254 | else |
| 8255 | echo "$as_me: failed program was:" >&5 |
| 8256 | cat conftest.$ac_ext >&5 |
| 8257 | cat >conftest.$ac_ext <<_ACEOF |
| 8258 | #line $LINENO "configure" |
| 8259 | #include "confdefs.h" |
| 8260 | $ac_includes_default |
| 8261 | #ifdef F77_DUMMY_MAIN |
| 8262 | # ifdef __cplusplus |
| 8263 | extern "C" |
| 8264 | # endif |
| 8265 | int F77_DUMMY_MAIN() { return 1; } |
| 8266 | #endif |
| 8267 | int |
| 8268 | main () |
| 8269 | { |
| 8270 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| 8271 | test_array [0] = 0 |
| 8272 | |
| 8273 | ; |
| 8274 | return 0; |
| 8275 | } |
| 8276 | _ACEOF |
| 8277 | rm -f conftest.$ac_objext |
| 8278 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8279 | (eval $ac_compile) 2>&5 |
| 8280 | ac_status=$? |
| 8281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8282 | (exit $ac_status); } && |
| 8283 | { ac_try='test -s conftest.$ac_objext' |
| 8284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8285 | (eval $ac_try) 2>&5 |
| 8286 | ac_status=$? |
| 8287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8288 | (exit $ac_status); }; }; then |
| 8289 | ac_hi=-1 ac_mid=-1 |
| 8290 | while :; do |
| 8291 | cat >conftest.$ac_ext <<_ACEOF |
| 8292 | #line $LINENO "configure" |
| 8293 | #include "confdefs.h" |
| 8294 | $ac_includes_default |
| 8295 | #ifdef F77_DUMMY_MAIN |
| 8296 | # ifdef __cplusplus |
| 8297 | extern "C" |
| 8298 | # endif |
| 8299 | int F77_DUMMY_MAIN() { return 1; } |
| 8300 | #endif |
| 8301 | int |
| 8302 | main () |
| 8303 | { |
| 8304 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| 8305 | test_array [0] = 0 |
| 8306 | |
| 8307 | ; |
| 8308 | return 0; |
| 8309 | } |
| 8310 | _ACEOF |
| 8311 | rm -f conftest.$ac_objext |
| 8312 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8313 | (eval $ac_compile) 2>&5 |
| 8314 | ac_status=$? |
| 8315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8316 | (exit $ac_status); } && |
| 8317 | { ac_try='test -s conftest.$ac_objext' |
| 8318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8319 | (eval $ac_try) 2>&5 |
| 8320 | ac_status=$? |
| 8321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8322 | (exit $ac_status); }; }; then |
| 8323 | ac_lo=$ac_mid; break |
| 8324 | else |
| 8325 | echo "$as_me: failed program was:" >&5 |
| 8326 | cat conftest.$ac_ext >&5 |
| 8327 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8328 | if test $ac_mid -le $ac_hi; then |
| 8329 | ac_lo= ac_hi= |
| 8330 | break |
| 8331 | fi |
| 8332 | ac_mid=`expr 2 '*' $ac_mid` |
| 8333 | fi |
| 8334 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8335 | done |
| 8336 | else |
| 8337 | echo "$as_me: failed program was:" >&5 |
| 8338 | cat conftest.$ac_ext >&5 |
| 8339 | ac_lo= ac_hi= |
| 8340 | fi |
| 8341 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8342 | fi |
| 8343 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8344 | # Binary search between lo and hi bounds. |
| 8345 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8346 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8347 | cat >conftest.$ac_ext <<_ACEOF |
| 8348 | #line $LINENO "configure" |
| 8349 | #include "confdefs.h" |
| 8350 | $ac_includes_default |
| 8351 | #ifdef F77_DUMMY_MAIN |
| 8352 | # ifdef __cplusplus |
| 8353 | extern "C" |
| 8354 | # endif |
| 8355 | int F77_DUMMY_MAIN() { return 1; } |
| 8356 | #endif |
| 8357 | int |
| 8358 | main () |
| 8359 | { |
| 8360 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 8361 | test_array [0] = 0 |
| 8362 | |
| 8363 | ; |
| 8364 | return 0; |
| 8365 | } |
| 8366 | _ACEOF |
| 8367 | rm -f conftest.$ac_objext |
| 8368 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8369 | (eval $ac_compile) 2>&5 |
| 8370 | ac_status=$? |
| 8371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8372 | (exit $ac_status); } && |
| 8373 | { ac_try='test -s conftest.$ac_objext' |
| 8374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8375 | (eval $ac_try) 2>&5 |
| 8376 | ac_status=$? |
| 8377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8378 | (exit $ac_status); }; }; then |
| 8379 | ac_hi=$ac_mid |
| 8380 | else |
| 8381 | echo "$as_me: failed program was:" >&5 |
| 8382 | cat conftest.$ac_ext >&5 |
| 8383 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8384 | fi |
| 8385 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8386 | done |
| 8387 | case $ac_lo in |
| 8388 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
| 8389 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 8390 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 8391 | { (exit 1); exit 1; }; } ;; |
| 8392 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8393 | else |
| 8394 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8395 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 8396 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 8397 | { (exit 1); exit 1; }; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8398 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8399 | cat >conftest.$ac_ext <<_ACEOF |
| 8400 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8401 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8402 | $ac_includes_default |
| 8403 | long longval () { return (long) (sizeof (long long)); } |
| 8404 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8405 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8406 | #include <stdlib.h> |
| 8407 | #ifdef F77_DUMMY_MAIN |
| 8408 | # ifdef __cplusplus |
| 8409 | extern "C" |
| 8410 | # endif |
| 8411 | int F77_DUMMY_MAIN() { return 1; } |
| 8412 | #endif |
| 8413 | int |
| 8414 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8415 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8416 | |
| 8417 | FILE *f = fopen ("conftest.val", "w"); |
| 8418 | if (! f) |
| 8419 | exit (1); |
| 8420 | if (((long) (sizeof (long long))) < 0) |
| 8421 | { |
| 8422 | long i = longval (); |
| 8423 | if (i != ((long) (sizeof (long long)))) |
| 8424 | exit (1); |
| 8425 | fprintf (f, "%ld\n", i); |
| 8426 | } |
| 8427 | else |
| 8428 | { |
| 8429 | unsigned long i = ulongval (); |
| 8430 | if (i != ((long) (sizeof (long long)))) |
| 8431 | exit (1); |
| 8432 | fprintf (f, "%lu\n", i); |
| 8433 | } |
| 8434 | exit (ferror (f) || fclose (f) != 0); |
| 8435 | |
| 8436 | ; |
| 8437 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8438 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8439 | _ACEOF |
| 8440 | rm -f conftest$ac_exeext |
| 8441 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8442 | (eval $ac_link) 2>&5 |
| 8443 | ac_status=$? |
| 8444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8445 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8447 | (eval $ac_try) 2>&5 |
| 8448 | ac_status=$? |
| 8449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8450 | (exit $ac_status); }; }; then |
| 8451 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8452 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8453 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8454 | echo "$as_me: failed program was:" >&5 |
| 8455 | cat conftest.$ac_ext >&5 |
| 8456 | ( exit $ac_status ) |
| 8457 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 8458 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 8459 | { (exit 1); exit 1; }; } |
| 8460 | fi |
| 8461 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8462 | fi |
| 8463 | fi |
| 8464 | rm -f conftest.val |
| 8465 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8466 | ac_cv_sizeof_long_long=0 |
| 8467 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8468 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8469 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 8470 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
| 8471 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8472 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8473 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8474 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8475 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8476 | fi |
| 8477 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8478 | echo "$as_me:$LINENO: checking for uintptr_t support" >&5 |
| 8479 | echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8480 | have_uintptr_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8481 | cat >conftest.$ac_ext <<_ACEOF |
| 8482 | #line $LINENO "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8483 | #include "confdefs.h" |
| 8484 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8485 | #ifdef F77_DUMMY_MAIN |
| 8486 | # ifdef __cplusplus |
| 8487 | extern "C" |
| 8488 | # endif |
| 8489 | int F77_DUMMY_MAIN() { return 1; } |
| 8490 | #endif |
| 8491 | int |
| 8492 | main () |
| 8493 | { |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8494 | uintptr_t x; x = (uintptr_t)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8495 | ; |
| 8496 | return 0; |
| 8497 | } |
| 8498 | _ACEOF |
| 8499 | rm -f conftest.$ac_objext |
| 8500 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8501 | (eval $ac_compile) 2>&5 |
| 8502 | ac_status=$? |
| 8503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8504 | (exit $ac_status); } && |
| 8505 | { ac_try='test -s conftest.$ac_objext' |
| 8506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8507 | (eval $ac_try) 2>&5 |
| 8508 | ac_status=$? |
| 8509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8510 | (exit $ac_status); }; }; then |
| 8511 | |
| 8512 | |
| 8513 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8514 | #define HAVE_UINTPTR_T 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8515 | _ACEOF |
| 8516 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8517 | have_uintptr_t=yes |
| 8518 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8519 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8520 | echo "$as_me: failed program was:" >&5 |
| 8521 | cat conftest.$ac_ext >&5 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8522 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8523 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8524 | echo "$as_me:$LINENO: result: $have_uintptr_t" >&5 |
| 8525 | echo "${ECHO_T}$have_uintptr_t" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8526 | if test "$have_uintptr_t" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8527 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 8528 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 8529 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 8530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8531 | else |
| 8532 | cat >conftest.$ac_ext <<_ACEOF |
| 8533 | #line $LINENO "configure" |
| 8534 | #include "confdefs.h" |
| 8535 | $ac_includes_default |
| 8536 | #ifdef F77_DUMMY_MAIN |
| 8537 | # ifdef __cplusplus |
| 8538 | extern "C" |
| 8539 | # endif |
| 8540 | int F77_DUMMY_MAIN() { return 1; } |
| 8541 | #endif |
| 8542 | int |
| 8543 | main () |
| 8544 | { |
| 8545 | if ((uintptr_t *) 0) |
| 8546 | return 0; |
| 8547 | if (sizeof (uintptr_t)) |
| 8548 | return 0; |
| 8549 | ; |
| 8550 | return 0; |
| 8551 | } |
| 8552 | _ACEOF |
| 8553 | rm -f conftest.$ac_objext |
| 8554 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8555 | (eval $ac_compile) 2>&5 |
| 8556 | ac_status=$? |
| 8557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8558 | (exit $ac_status); } && |
| 8559 | { ac_try='test -s conftest.$ac_objext' |
| 8560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8561 | (eval $ac_try) 2>&5 |
| 8562 | ac_status=$? |
| 8563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8564 | (exit $ac_status); }; }; then |
| 8565 | ac_cv_type_uintptr_t=yes |
| 8566 | else |
| 8567 | echo "$as_me: failed program was:" >&5 |
| 8568 | cat conftest.$ac_ext >&5 |
| 8569 | ac_cv_type_uintptr_t=no |
| 8570 | fi |
| 8571 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8572 | fi |
| 8573 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 8574 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 8575 | |
| 8576 | echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 8577 | echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6 |
| 8578 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| 8579 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8580 | else |
| 8581 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 8582 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8583 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8584 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8585 | # This bug is HP SR number 8606223364. |
| 8586 | if test "$cross_compiling" = yes; then |
| 8587 | # Depending upon the size, compute the lo and hi bounds. |
| 8588 | cat >conftest.$ac_ext <<_ACEOF |
| 8589 | #line $LINENO "configure" |
| 8590 | #include "confdefs.h" |
| 8591 | $ac_includes_default |
| 8592 | #ifdef F77_DUMMY_MAIN |
| 8593 | # ifdef __cplusplus |
| 8594 | extern "C" |
| 8595 | # endif |
| 8596 | int F77_DUMMY_MAIN() { return 1; } |
| 8597 | #endif |
| 8598 | int |
| 8599 | main () |
| 8600 | { |
| 8601 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)]; |
| 8602 | test_array [0] = 0 |
| 8603 | |
| 8604 | ; |
| 8605 | return 0; |
| 8606 | } |
| 8607 | _ACEOF |
| 8608 | rm -f conftest.$ac_objext |
| 8609 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8610 | (eval $ac_compile) 2>&5 |
| 8611 | ac_status=$? |
| 8612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8613 | (exit $ac_status); } && |
| 8614 | { ac_try='test -s conftest.$ac_objext' |
| 8615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8616 | (eval $ac_try) 2>&5 |
| 8617 | ac_status=$? |
| 8618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8619 | (exit $ac_status); }; }; then |
| 8620 | ac_lo=0 ac_mid=0 |
| 8621 | while :; do |
| 8622 | cat >conftest.$ac_ext <<_ACEOF |
| 8623 | #line $LINENO "configure" |
| 8624 | #include "confdefs.h" |
| 8625 | $ac_includes_default |
| 8626 | #ifdef F77_DUMMY_MAIN |
| 8627 | # ifdef __cplusplus |
| 8628 | extern "C" |
| 8629 | # endif |
| 8630 | int F77_DUMMY_MAIN() { return 1; } |
| 8631 | #endif |
| 8632 | int |
| 8633 | main () |
| 8634 | { |
| 8635 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 8636 | test_array [0] = 0 |
| 8637 | |
| 8638 | ; |
| 8639 | return 0; |
| 8640 | } |
| 8641 | _ACEOF |
| 8642 | rm -f conftest.$ac_objext |
| 8643 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8644 | (eval $ac_compile) 2>&5 |
| 8645 | ac_status=$? |
| 8646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8647 | (exit $ac_status); } && |
| 8648 | { ac_try='test -s conftest.$ac_objext' |
| 8649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8650 | (eval $ac_try) 2>&5 |
| 8651 | ac_status=$? |
| 8652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8653 | (exit $ac_status); }; }; then |
| 8654 | ac_hi=$ac_mid; break |
| 8655 | else |
| 8656 | echo "$as_me: failed program was:" >&5 |
| 8657 | cat conftest.$ac_ext >&5 |
| 8658 | ac_lo=`expr $ac_mid + 1` |
| 8659 | if test $ac_lo -le $ac_mid; then |
| 8660 | ac_lo= ac_hi= |
| 8661 | break |
| 8662 | fi |
| 8663 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8664 | fi |
| 8665 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8666 | done |
| 8667 | else |
| 8668 | echo "$as_me: failed program was:" >&5 |
| 8669 | cat conftest.$ac_ext >&5 |
| 8670 | cat >conftest.$ac_ext <<_ACEOF |
| 8671 | #line $LINENO "configure" |
| 8672 | #include "confdefs.h" |
| 8673 | $ac_includes_default |
| 8674 | #ifdef F77_DUMMY_MAIN |
| 8675 | # ifdef __cplusplus |
| 8676 | extern "C" |
| 8677 | # endif |
| 8678 | int F77_DUMMY_MAIN() { return 1; } |
| 8679 | #endif |
| 8680 | int |
| 8681 | main () |
| 8682 | { |
| 8683 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)]; |
| 8684 | test_array [0] = 0 |
| 8685 | |
| 8686 | ; |
| 8687 | return 0; |
| 8688 | } |
| 8689 | _ACEOF |
| 8690 | rm -f conftest.$ac_objext |
| 8691 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8692 | (eval $ac_compile) 2>&5 |
| 8693 | ac_status=$? |
| 8694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8695 | (exit $ac_status); } && |
| 8696 | { ac_try='test -s conftest.$ac_objext' |
| 8697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8698 | (eval $ac_try) 2>&5 |
| 8699 | ac_status=$? |
| 8700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8701 | (exit $ac_status); }; }; then |
| 8702 | ac_hi=-1 ac_mid=-1 |
| 8703 | while :; do |
| 8704 | cat >conftest.$ac_ext <<_ACEOF |
| 8705 | #line $LINENO "configure" |
| 8706 | #include "confdefs.h" |
| 8707 | $ac_includes_default |
| 8708 | #ifdef F77_DUMMY_MAIN |
| 8709 | # ifdef __cplusplus |
| 8710 | extern "C" |
| 8711 | # endif |
| 8712 | int F77_DUMMY_MAIN() { return 1; } |
| 8713 | #endif |
| 8714 | int |
| 8715 | main () |
| 8716 | { |
| 8717 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)]; |
| 8718 | test_array [0] = 0 |
| 8719 | |
| 8720 | ; |
| 8721 | return 0; |
| 8722 | } |
| 8723 | _ACEOF |
| 8724 | rm -f conftest.$ac_objext |
| 8725 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8726 | (eval $ac_compile) 2>&5 |
| 8727 | ac_status=$? |
| 8728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8729 | (exit $ac_status); } && |
| 8730 | { ac_try='test -s conftest.$ac_objext' |
| 8731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8732 | (eval $ac_try) 2>&5 |
| 8733 | ac_status=$? |
| 8734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8735 | (exit $ac_status); }; }; then |
| 8736 | ac_lo=$ac_mid; break |
| 8737 | else |
| 8738 | echo "$as_me: failed program was:" >&5 |
| 8739 | cat conftest.$ac_ext >&5 |
| 8740 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8741 | if test $ac_mid -le $ac_hi; then |
| 8742 | ac_lo= ac_hi= |
| 8743 | break |
| 8744 | fi |
| 8745 | ac_mid=`expr 2 '*' $ac_mid` |
| 8746 | fi |
| 8747 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8748 | done |
| 8749 | else |
| 8750 | echo "$as_me: failed program was:" >&5 |
| 8751 | cat conftest.$ac_ext >&5 |
| 8752 | ac_lo= ac_hi= |
| 8753 | fi |
| 8754 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8755 | fi |
| 8756 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8757 | # Binary search between lo and hi bounds. |
| 8758 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8759 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8760 | cat >conftest.$ac_ext <<_ACEOF |
| 8761 | #line $LINENO "configure" |
| 8762 | #include "confdefs.h" |
| 8763 | $ac_includes_default |
| 8764 | #ifdef F77_DUMMY_MAIN |
| 8765 | # ifdef __cplusplus |
| 8766 | extern "C" |
| 8767 | # endif |
| 8768 | int F77_DUMMY_MAIN() { return 1; } |
| 8769 | #endif |
| 8770 | int |
| 8771 | main () |
| 8772 | { |
| 8773 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 8774 | test_array [0] = 0 |
| 8775 | |
| 8776 | ; |
| 8777 | return 0; |
| 8778 | } |
| 8779 | _ACEOF |
| 8780 | rm -f conftest.$ac_objext |
| 8781 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8782 | (eval $ac_compile) 2>&5 |
| 8783 | ac_status=$? |
| 8784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8785 | (exit $ac_status); } && |
| 8786 | { ac_try='test -s conftest.$ac_objext' |
| 8787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8788 | (eval $ac_try) 2>&5 |
| 8789 | ac_status=$? |
| 8790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8791 | (exit $ac_status); }; }; then |
| 8792 | ac_hi=$ac_mid |
| 8793 | else |
| 8794 | echo "$as_me: failed program was:" >&5 |
| 8795 | cat conftest.$ac_ext >&5 |
| 8796 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8797 | fi |
| 8798 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8799 | done |
| 8800 | case $ac_lo in |
| 8801 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
| 8802 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5 |
| 8803 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;} |
| 8804 | { (exit 1); exit 1; }; } ;; |
| 8805 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8806 | else |
| 8807 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8808 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 8809 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 8810 | { (exit 1); exit 1; }; } |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8811 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8812 | cat >conftest.$ac_ext <<_ACEOF |
| 8813 | #line $LINENO "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8814 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8815 | $ac_includes_default |
| 8816 | long longval () { return (long) (sizeof (uintptr_t)); } |
| 8817 | unsigned long ulongval () { return (long) (sizeof (uintptr_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8818 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8819 | #include <stdlib.h> |
| 8820 | #ifdef F77_DUMMY_MAIN |
| 8821 | # ifdef __cplusplus |
| 8822 | extern "C" |
| 8823 | # endif |
| 8824 | int F77_DUMMY_MAIN() { return 1; } |
| 8825 | #endif |
| 8826 | int |
| 8827 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8828 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8829 | |
| 8830 | FILE *f = fopen ("conftest.val", "w"); |
| 8831 | if (! f) |
| 8832 | exit (1); |
| 8833 | if (((long) (sizeof (uintptr_t))) < 0) |
| 8834 | { |
| 8835 | long i = longval (); |
| 8836 | if (i != ((long) (sizeof (uintptr_t)))) |
| 8837 | exit (1); |
| 8838 | fprintf (f, "%ld\n", i); |
| 8839 | } |
| 8840 | else |
| 8841 | { |
| 8842 | unsigned long i = ulongval (); |
| 8843 | if (i != ((long) (sizeof (uintptr_t)))) |
| 8844 | exit (1); |
| 8845 | fprintf (f, "%lu\n", i); |
| 8846 | } |
| 8847 | exit (ferror (f) || fclose (f) != 0); |
| 8848 | |
| 8849 | ; |
| 8850 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8851 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8852 | _ACEOF |
| 8853 | rm -f conftest$ac_exeext |
| 8854 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8855 | (eval $ac_link) 2>&5 |
| 8856 | ac_status=$? |
| 8857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8858 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8860 | (eval $ac_try) 2>&5 |
| 8861 | ac_status=$? |
| 8862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8863 | (exit $ac_status); }; }; then |
| 8864 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8865 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8866 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8867 | echo "$as_me: failed program was:" >&5 |
| 8868 | cat conftest.$ac_ext >&5 |
| 8869 | ( exit $ac_status ) |
| 8870 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5 |
| 8871 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;} |
| 8872 | { (exit 1); exit 1; }; } |
| 8873 | fi |
| 8874 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8875 | fi |
| 8876 | fi |
| 8877 | rm -f conftest.val |
| 8878 | else |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8879 | ac_cv_sizeof_uintptr_t=0 |
| 8880 | fi |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8881 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8882 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 8883 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6 |
| 8884 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8885 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8886 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8887 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8888 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8889 | fi |
| 8890 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8891 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8892 | echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 8893 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 |
| 8894 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 8895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8896 | else |
| 8897 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 8898 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8899 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8900 | cat >conftest.$ac_ext <<_ACEOF |
| 8901 | #line $LINENO "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8902 | #include "confdefs.h" |
| 8903 | #include <stdio.h> |
| 8904 | #include <sys/types.h> |
| 8905 | main() |
| 8906 | { |
| 8907 | FILE *f=fopen("conftestval", "w"); |
| 8908 | if (!f) exit(1); |
| 8909 | fprintf(f, "%d\n", sizeof(off_t)); |
| 8910 | exit(0); |
| 8911 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8912 | _ACEOF |
| 8913 | rm -f conftest$ac_exeext |
| 8914 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8915 | (eval $ac_link) 2>&5 |
| 8916 | ac_status=$? |
| 8917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8918 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8920 | (eval $ac_try) 2>&5 |
| 8921 | ac_status=$? |
| 8922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8923 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8924 | ac_cv_sizeof_off_t=`cat conftestval` |
| 8925 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8926 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8927 | echo "$as_me: failed program was:" >&5 |
| 8928 | cat conftest.$ac_ext >&5 |
| 8929 | ( exit $ac_status ) |
| 8930 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8931 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8932 | 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] | 8933 | fi |
| 8934 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8935 | fi |
| 8936 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8937 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 8938 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 |
| 8939 | |
| 8940 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8941 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8942 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8943 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8944 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8945 | echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 8946 | 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] | 8947 | if test "$have_long_long" = yes -a \ |
| 8948 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 8949 | "$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] | 8950 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8951 | cat >>confdefs.h <<\_ACEOF |
| 8952 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 8953 | _ACEOF |
| 8954 | |
| 8955 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8956 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8957 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8958 | echo "$as_me:$LINENO: result: no" >&5 |
| 8959 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8960 | fi |
| 8961 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8962 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8963 | echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 8964 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6 |
| 8965 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 8966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8967 | else |
| 8968 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 8969 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8970 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8971 | cat >conftest.$ac_ext <<_ACEOF |
| 8972 | #line $LINENO "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8973 | #include "confdefs.h" |
| 8974 | #include <stdio.h> |
| 8975 | #include <time.h> |
| 8976 | main() |
| 8977 | { |
| 8978 | FILE *f=fopen("conftestval", "w"); |
| 8979 | if (!f) exit(1); |
| 8980 | fprintf(f, "%d\n", sizeof(time_t)); |
| 8981 | exit(0); |
| 8982 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8983 | _ACEOF |
| 8984 | rm -f conftest$ac_exeext |
| 8985 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8986 | (eval $ac_link) 2>&5 |
| 8987 | ac_status=$? |
| 8988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8989 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8991 | (eval $ac_try) 2>&5 |
| 8992 | ac_status=$? |
| 8993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8994 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8995 | ac_cv_sizeof_time_t=`cat conftestval` |
| 8996 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8997 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8998 | echo "$as_me: failed program was:" >&5 |
| 8999 | cat conftest.$ac_ext >&5 |
| 9000 | ( exit $ac_status ) |
| 9001 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9002 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9003 | 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] | 9004 | fi |
| 9005 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9006 | fi |
| 9007 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9008 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 9009 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6 |
| 9010 | |
| 9011 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9012 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9013 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9014 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9015 | |
| 9016 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9017 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9018 | ac_save_cc="$CC" |
| 9019 | if test "$ac_cv_kpthread" = "yes" |
| 9020 | then CC="$CC -Kpthread" |
| 9021 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9022 | echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 9023 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9024 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9025 | cat >conftest.$ac_ext <<_ACEOF |
| 9026 | #line $LINENO "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9027 | #include "confdefs.h" |
| 9028 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9029 | #ifdef F77_DUMMY_MAIN |
| 9030 | # ifdef __cplusplus |
| 9031 | extern "C" |
| 9032 | # endif |
| 9033 | int F77_DUMMY_MAIN() { return 1; } |
| 9034 | #endif |
| 9035 | int |
| 9036 | main () |
| 9037 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 9038 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9039 | ; |
| 9040 | return 0; |
| 9041 | } |
| 9042 | _ACEOF |
| 9043 | rm -f conftest.$ac_objext |
| 9044 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9045 | (eval $ac_compile) 2>&5 |
| 9046 | ac_status=$? |
| 9047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9048 | (exit $ac_status); } && |
| 9049 | { ac_try='test -s conftest.$ac_objext' |
| 9050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9051 | (eval $ac_try) 2>&5 |
| 9052 | ac_status=$? |
| 9053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9054 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9055 | have_pthread_t=yes |
| 9056 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9057 | echo "$as_me: failed program was:" >&5 |
| 9058 | cat conftest.$ac_ext >&5 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9059 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9060 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9061 | echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 9062 | echo "${ECHO_T}$have_pthread_t" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9063 | if test "$have_pthread_t" = yes ; then |
| 9064 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9065 | echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 9066 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6 |
| 9067 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 9068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9069 | else |
| 9070 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9071 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9072 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9073 | cat >conftest.$ac_ext <<_ACEOF |
| 9074 | #line $LINENO "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9075 | #include "confdefs.h" |
| 9076 | #include <stdio.h> |
| 9077 | #include <pthread.h> |
| 9078 | main() |
| 9079 | { |
| 9080 | FILE *f=fopen("conftestval", "w"); |
| 9081 | if (!f) exit(1); |
| 9082 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 9083 | exit(0); |
| 9084 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9085 | _ACEOF |
| 9086 | rm -f conftest$ac_exeext |
| 9087 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9088 | (eval $ac_link) 2>&5 |
| 9089 | ac_status=$? |
| 9090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9091 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9093 | (eval $ac_try) 2>&5 |
| 9094 | ac_status=$? |
| 9095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9096 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9097 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 9098 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9099 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9100 | echo "$as_me: failed program was:" >&5 |
| 9101 | cat conftest.$ac_ext >&5 |
| 9102 | ( exit $ac_status ) |
| 9103 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9104 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9105 | 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] | 9106 | fi |
| 9107 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9108 | fi |
| 9109 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9110 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 9111 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6 |
| 9112 | |
| 9113 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9114 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9115 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9116 | |
| 9117 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9118 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9119 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9120 | echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 9121 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9122 | # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given. |
| 9123 | if test "${enable_toolbox_glue+set}" = set; then |
| 9124 | enableval="$enable_toolbox_glue" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9125 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9126 | fi; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9127 | |
| 9128 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9129 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9130 | case $ac_sys_system/$ac_sys_release in |
| 9131 | Darwin/*) |
| 9132 | enable_toolbox_glue="yes";; |
| 9133 | *) |
| 9134 | enable_toolbox_glue="no";; |
| 9135 | esac |
| 9136 | fi |
| 9137 | case "$enable_toolbox_glue" in |
| 9138 | yes) |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 9139 | extra_frameworks="-framework CoreServices -framework Foundation" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9140 | extra_machdep_objs="Python/mactoolboxglue.o" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9141 | extra_undefs="-u __dummy -u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9142 | |
| 9143 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9144 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9145 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9146 | |
| 9147 | ;; |
| 9148 | *) |
| 9149 | extra_frameworks="" |
| 9150 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9151 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9152 | ;; |
| 9153 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9154 | echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 9155 | echo "${ECHO_T}$enable_toolbox_glue" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9156 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9157 | |
| 9158 | case $ac_sys_system/$ac_sys_release in |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9159 | Darwin/1.3*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9160 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9161 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9162 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' |
| 9163 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 9164 | Darwin/*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9165 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9166 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9167 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' |
| 9168 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9169 | esac |
| 9170 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9171 | echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 9172 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9173 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9174 | then |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 9175 | OPT="$OPT -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9176 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9177 | # in the build location. |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9178 | LDFLAGS="$LDFLAGS -Wl,-F." |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9179 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9180 | cat >>confdefs.h <<\_ACEOF |
| 9181 | #define WITH_NEXT_FRAMEWORK 1 |
| 9182 | _ACEOF |
| 9183 | |
| 9184 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9185 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9186 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9187 | echo "$as_me:$LINENO: result: no" >&5 |
| 9188 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9189 | fi |
| 9190 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9191 | echo "$as_me:$LINENO: checking for dyld" >&5 |
| 9192 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9193 | case $ac_sys_system/$ac_sys_release in |
| 9194 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9195 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9196 | cat >>confdefs.h <<\_ACEOF |
| 9197 | #define WITH_DYLD 1 |
| 9198 | _ACEOF |
| 9199 | |
| 9200 | echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 9201 | echo "${ECHO_T}always on for Darwin" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9202 | ;; |
| 9203 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9204 | echo "$as_me:$LINENO: result: no" >&5 |
| 9205 | echo "${ECHO_T}no" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9206 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9207 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9208 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9209 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9210 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9211 | |
| 9212 | |
| 9213 | |
| 9214 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9215 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 9216 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9217 | echo "$as_me:$LINENO: checking SO" >&5 |
| 9218 | echo $ECHO_N "checking SO... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9219 | if test -z "$SO" |
| 9220 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9221 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 9222 | hp*|HP*) SO=.sl;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 9223 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 9224 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9225 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9226 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9227 | echo "$as_me:$LINENO: result: $SO" >&5 |
| 9228 | echo "${ECHO_T}$SO" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9229 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 5b718fc | 2001-09-10 15:34:42 +0000 | [diff] [blame] | 9230 | # -- "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] | 9231 | # (Shared libraries in this instance are shared modules to be loaded into |
| 9232 | # 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] | 9233 | echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 9234 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9235 | if test -z "$LDSHARED" |
| 9236 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9237 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9238 | AIX*) |
| 9239 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 9240 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9241 | ;; |
| 9242 | BeOS*) |
| 9243 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 9244 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9245 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9246 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 9247 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9248 | SunOS/4*) LDSHARED="ld";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9249 | SunOS/5*) |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 9250 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 9251 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 9252 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 9253 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9254 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 9255 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 9256 | DYNIX/ptx*) LDSHARED="ld -G";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9257 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9258 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 9259 | if test "$enable_framework" ; then |
| 9260 | # Link against the framework. All externals should be defined. |
| 9261 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 9262 | else |
| 9263 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9264 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9265 | fi ;; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9266 | Darwin/*) |
| 9267 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 9268 | if test "$enable_framework" ; then |
| 9269 | # Link against the framework. All externals should be defined. |
| 9270 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 9271 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 9272 | # No framework, use the Python app as bundle-loader |
| 9273 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 9274 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/$(PYTHON)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9275 | fi ;; |
Martin v. Löwis | 3cba5c0 | 2002-09-16 17:50:59 +0000 | [diff] [blame] | 9276 | Linux*|GNU*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 9277 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 9278 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 9279 | OpenBSD*|FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 9280 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9281 | then |
| 9282 | LDSHARED="cc -shared ${LDFLAGS}" |
| 9283 | else |
| 9284 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 9285 | fi;; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 9286 | NetBSD*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9287 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9288 | if test "$GCC" = "yes" |
| 9289 | then LDSHARED="$(CC) -shared" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9290 | else LDSHARED="$(CC) -G" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9291 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9292 | SCO_SV*) LDSHARED="$(CC) -Wl,-G,-Bexport";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9293 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 9294 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9295 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9296 | *) LDSHARED="ld";; |
| 9297 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9298 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9299 | echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 9300 | echo "${ECHO_T}$LDSHARED" >&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9301 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9302 | # 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] | 9303 | # library (module) -- this is only needed for a few systems |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9304 | echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 9305 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9306 | if test -z "$CCSHARED" |
| 9307 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9308 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 9309 | SunOS*) if test "$GCC" = yes; |
| 9310 | then CCSHARED="-fPIC"; |
| 9311 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9312 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 9313 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9314 | else CCSHARED="+z"; |
| 9315 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9316 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9317 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 9318 | FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9319 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9320 | if test "$GCC" = "yes" |
| 9321 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9322 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9323 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9324 | SCO_SV*) |
| 9325 | if test "$GCC" = "yes" |
| 9326 | then CCSHARED="-fPIC" |
| 9327 | else CCSHARED="-Kpic -belf" |
| 9328 | fi;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9329 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9330 | IRIX*/6*) case $CC in |
| 9331 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 9332 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9333 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9334 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9335 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9336 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9337 | echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 9338 | echo "${ECHO_T}$CCSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9339 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9340 | # 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] | 9341 | echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 9342 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9343 | if test -z "$LINKFORSHARED" |
| 9344 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9345 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9346 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 9347 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 9348 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 9349 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9350 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9351 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9352 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9353 | Darwin/*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9354 | # -u __dummy makes the linker aware of the objc runtime |
| 9355 | # in System.framework; otherwise, __objcInit (referenced in |
| 9356 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 9357 | # loading of any modules which reference it in System.framework. |
| 9358 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, which is |
| 9359 | # not used by the core itself but which needs to be in the core so |
| 9360 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9361 | LINKFORSHARED="$extra_undefs -framework System" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9362 | if test "$enable_framework" |
| 9363 | then |
| 9364 | LINKFORSHARED="$LINKFORSHARED -framework Python" |
| 9365 | fi |
| 9366 | LINKFORSHARED="$LINKFORSHARED $extra_frameworks";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9367 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9368 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 9369 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9370 | FreeBSD*|NetBSD*|OpenBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 9371 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 9372 | then |
| 9373 | LINKFORSHARED="-Wl,--export-dynamic" |
| 9374 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9375 | SunOS/5*) case $CC in |
| 9376 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 9377 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 9378 | then |
| 9379 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9380 | fi;; |
| 9381 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9382 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9383 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9384 | echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 9385 | echo "${ECHO_T}$LINKFORSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9386 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9387 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9388 | echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 9389 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9390 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 9391 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 9392 | case $ac_sys_system in |
| 9393 | CYGWIN*) |
| 9394 | # Cygwin needs CCSHARED when building extension DLLs |
| 9395 | # but not when building the interpreter DLL. |
| 9396 | CFLAGSFORSHARED='';; |
| 9397 | *) |
| 9398 | CFLAGSFORSHARED='$(CCSHARED)' |
| 9399 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9400 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9401 | echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 9402 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9403 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9404 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 9405 | # library (with --enable-shared). |
| 9406 | # 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] | 9407 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 9408 | # if it is not required, since it creates a dependency of the shared library |
| 9409 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 9410 | # don't need to link LIBS explicitly. The default should be only changed |
| 9411 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9412 | |
| 9413 | echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 9414 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6 |
| 9415 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9416 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 9417 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9418 | esac |
| 9419 | echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 9420 | echo "${ECHO_T}$SHLIBS" >&6 |
| 9421 | |
| 9422 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9423 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9424 | |
| 9425 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9426 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 9427 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9429 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9430 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9431 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9432 | cat >conftest.$ac_ext <<_ACEOF |
| 9433 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9434 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9435 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9436 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9437 | #ifdef __cplusplus |
| 9438 | extern "C" |
| 9439 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9440 | /* 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] | 9441 | builtin and then its argument prototype would still apply. */ |
| 9442 | char dlopen (); |
| 9443 | #ifdef F77_DUMMY_MAIN |
| 9444 | # ifdef __cplusplus |
| 9445 | extern "C" |
| 9446 | # endif |
| 9447 | int F77_DUMMY_MAIN() { return 1; } |
| 9448 | #endif |
| 9449 | int |
| 9450 | main () |
| 9451 | { |
| 9452 | dlopen (); |
| 9453 | ; |
| 9454 | return 0; |
| 9455 | } |
| 9456 | _ACEOF |
| 9457 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9458 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9459 | (eval $ac_link) 2>&5 |
| 9460 | ac_status=$? |
| 9461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9462 | (exit $ac_status); } && |
| 9463 | { ac_try='test -s conftest$ac_exeext' |
| 9464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9465 | (eval $ac_try) 2>&5 |
| 9466 | ac_status=$? |
| 9467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9468 | (exit $ac_status); }; }; then |
| 9469 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9470 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9471 | echo "$as_me: failed program was:" >&5 |
| 9472 | cat conftest.$ac_ext >&5 |
| 9473 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9474 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9475 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9476 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9477 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9478 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9479 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 9480 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 9481 | cat >>confdefs.h <<_ACEOF |
| 9482 | #define HAVE_LIBDL 1 |
| 9483 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9484 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9485 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9486 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9487 | fi |
| 9488 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9489 | |
| 9490 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9491 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 9492 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9494 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9495 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9496 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9497 | cat >conftest.$ac_ext <<_ACEOF |
| 9498 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9499 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9500 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9501 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9502 | #ifdef __cplusplus |
| 9503 | extern "C" |
| 9504 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9505 | /* 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] | 9506 | builtin and then its argument prototype would still apply. */ |
| 9507 | char shl_load (); |
| 9508 | #ifdef F77_DUMMY_MAIN |
| 9509 | # ifdef __cplusplus |
| 9510 | extern "C" |
| 9511 | # endif |
| 9512 | int F77_DUMMY_MAIN() { return 1; } |
| 9513 | #endif |
| 9514 | int |
| 9515 | main () |
| 9516 | { |
| 9517 | shl_load (); |
| 9518 | ; |
| 9519 | return 0; |
| 9520 | } |
| 9521 | _ACEOF |
| 9522 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9523 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9524 | (eval $ac_link) 2>&5 |
| 9525 | ac_status=$? |
| 9526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9527 | (exit $ac_status); } && |
| 9528 | { ac_try='test -s conftest$ac_exeext' |
| 9529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9530 | (eval $ac_try) 2>&5 |
| 9531 | ac_status=$? |
| 9532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9533 | (exit $ac_status); }; }; then |
| 9534 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9535 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9536 | echo "$as_me: failed program was:" >&5 |
| 9537 | cat conftest.$ac_ext >&5 |
| 9538 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9539 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9540 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9541 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9542 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9543 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9544 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 9545 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 9546 | cat >>confdefs.h <<_ACEOF |
| 9547 | #define HAVE_LIBDLD 1 |
| 9548 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9549 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9550 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9551 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9552 | fi |
| 9553 | # Dynamic linking for HP-UX |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9554 | echo "$as_me:$LINENO: checking for library containing sem_init" >&5 |
| 9555 | echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6 |
| 9556 | if test "${ac_cv_search_sem_init+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9558 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9559 | ac_func_search_save_LIBS=$LIBS |
| 9560 | ac_cv_search_sem_init=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9561 | cat >conftest.$ac_ext <<_ACEOF |
| 9562 | #line $LINENO "configure" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9563 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9564 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9565 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9566 | #ifdef __cplusplus |
| 9567 | extern "C" |
| 9568 | #endif |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9569 | /* 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] | 9570 | builtin and then its argument prototype would still apply. */ |
| 9571 | char sem_init (); |
| 9572 | #ifdef F77_DUMMY_MAIN |
| 9573 | # ifdef __cplusplus |
| 9574 | extern "C" |
| 9575 | # endif |
| 9576 | int F77_DUMMY_MAIN() { return 1; } |
| 9577 | #endif |
| 9578 | int |
| 9579 | main () |
| 9580 | { |
| 9581 | sem_init (); |
| 9582 | ; |
| 9583 | return 0; |
| 9584 | } |
| 9585 | _ACEOF |
| 9586 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9587 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9588 | (eval $ac_link) 2>&5 |
| 9589 | ac_status=$? |
| 9590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9591 | (exit $ac_status); } && |
| 9592 | { ac_try='test -s conftest$ac_exeext' |
| 9593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9594 | (eval $ac_try) 2>&5 |
| 9595 | ac_status=$? |
| 9596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9597 | (exit $ac_status); }; }; then |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9598 | ac_cv_search_sem_init="none required" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9599 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9600 | echo "$as_me: failed program was:" >&5 |
| 9601 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9602 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9603 | 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] | 9604 | if test "$ac_cv_search_sem_init" = no; then |
| 9605 | for ac_lib in rt posix4; do |
| 9606 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9607 | cat >conftest.$ac_ext <<_ACEOF |
| 9608 | #line $LINENO "configure" |
| 9609 | #include "confdefs.h" |
| 9610 | |
| 9611 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9612 | #ifdef __cplusplus |
| 9613 | extern "C" |
| 9614 | #endif |
| 9615 | /* We use char because int might match the return type of a gcc2 |
| 9616 | builtin and then its argument prototype would still apply. */ |
| 9617 | char sem_init (); |
| 9618 | #ifdef F77_DUMMY_MAIN |
| 9619 | # ifdef __cplusplus |
| 9620 | extern "C" |
| 9621 | # endif |
| 9622 | int F77_DUMMY_MAIN() { return 1; } |
| 9623 | #endif |
| 9624 | int |
| 9625 | main () |
| 9626 | { |
| 9627 | sem_init (); |
| 9628 | ; |
| 9629 | return 0; |
| 9630 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9631 | _ACEOF |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9632 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9633 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9634 | (eval $ac_link) 2>&5 |
| 9635 | ac_status=$? |
| 9636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9637 | (exit $ac_status); } && |
| 9638 | { ac_try='test -s conftest$ac_exeext' |
| 9639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9640 | (eval $ac_try) 2>&5 |
| 9641 | ac_status=$? |
| 9642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9643 | (exit $ac_status); }; }; then |
| 9644 | ac_cv_search_sem_init="-l$ac_lib" |
| 9645 | break |
| 9646 | else |
| 9647 | echo "$as_me: failed program was:" >&5 |
| 9648 | cat conftest.$ac_ext >&5 |
| 9649 | fi |
| 9650 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9651 | done |
| 9652 | fi |
| 9653 | LIBS=$ac_func_search_save_LIBS |
| 9654 | fi |
| 9655 | echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 9656 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6 |
| 9657 | if test "$ac_cv_search_sem_init" != no; then |
| 9658 | 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] | 9659 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9660 | fi |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9661 | # 'Real Time' functions on Solaris, |
| 9662 | # posix4 on Solaris 2.6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9663 | |
| 9664 | # checks for system dependent C++ extensions support |
| 9665 | case "$ac_sys_system" in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9666 | AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 9667 | echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6 |
| 9668 | cat >conftest.$ac_ext <<_ACEOF |
| 9669 | #line $LINENO "configure" |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9670 | #include "confdefs.h" |
| 9671 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9672 | #ifdef F77_DUMMY_MAIN |
| 9673 | # ifdef __cplusplus |
| 9674 | extern "C" |
| 9675 | # endif |
| 9676 | int F77_DUMMY_MAIN() { return 1; } |
| 9677 | #endif |
| 9678 | int |
| 9679 | main () |
| 9680 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9681 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9682 | ; |
| 9683 | return 0; |
| 9684 | } |
| 9685 | _ACEOF |
| 9686 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9687 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9688 | (eval $ac_link) 2>&5 |
| 9689 | ac_status=$? |
| 9690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9691 | (exit $ac_status); } && |
| 9692 | { ac_try='test -s conftest$ac_exeext' |
| 9693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9694 | (eval $ac_try) 2>&5 |
| 9695 | ac_status=$? |
| 9696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9697 | (exit $ac_status); }; }; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9698 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9699 | cat >>confdefs.h <<\_ACEOF |
| 9700 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 9701 | _ACEOF |
| 9702 | |
| 9703 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9704 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9705 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9706 | echo "$as_me: failed program was:" >&5 |
| 9707 | cat conftest.$ac_ext >&5 |
| 9708 | echo "$as_me:$LINENO: result: no" >&5 |
| 9709 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9710 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9711 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9712 | *) ;; |
| 9713 | esac |
| 9714 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9715 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
| 9716 | # However on SGI IRIX, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9717 | # BeOS' sockets are stashed in libnet. |
| 9718 | case "$ac_sys_system" in |
| 9719 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9720 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9721 | echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 9722 | echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6 |
| 9723 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 9724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9725 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9726 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9727 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9728 | cat >conftest.$ac_ext <<_ACEOF |
| 9729 | #line $LINENO "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9730 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9731 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9732 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9733 | #ifdef __cplusplus |
| 9734 | extern "C" |
| 9735 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9736 | /* 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] | 9737 | builtin and then its argument prototype would still apply. */ |
| 9738 | char t_open (); |
| 9739 | #ifdef F77_DUMMY_MAIN |
| 9740 | # ifdef __cplusplus |
| 9741 | extern "C" |
| 9742 | # endif |
| 9743 | int F77_DUMMY_MAIN() { return 1; } |
| 9744 | #endif |
| 9745 | int |
| 9746 | main () |
| 9747 | { |
| 9748 | t_open (); |
| 9749 | ; |
| 9750 | return 0; |
| 9751 | } |
| 9752 | _ACEOF |
| 9753 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9754 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9755 | (eval $ac_link) 2>&5 |
| 9756 | ac_status=$? |
| 9757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9758 | (exit $ac_status); } && |
| 9759 | { ac_try='test -s conftest$ac_exeext' |
| 9760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9761 | (eval $ac_try) 2>&5 |
| 9762 | ac_status=$? |
| 9763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9764 | (exit $ac_status); }; }; then |
| 9765 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9766 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9767 | echo "$as_me: failed program was:" >&5 |
| 9768 | cat conftest.$ac_ext >&5 |
| 9769 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9770 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9771 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9772 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9773 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9774 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 9775 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6 |
| 9776 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9777 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9778 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 9779 | # SVR4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9780 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 9781 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 9782 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 9783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9784 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9785 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9786 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9787 | cat >conftest.$ac_ext <<_ACEOF |
| 9788 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9789 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9790 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9791 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9792 | #ifdef __cplusplus |
| 9793 | extern "C" |
| 9794 | #endif |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9795 | /* 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] | 9796 | builtin and then its argument prototype would still apply. */ |
| 9797 | char socket (); |
| 9798 | #ifdef F77_DUMMY_MAIN |
| 9799 | # ifdef __cplusplus |
| 9800 | extern "C" |
| 9801 | # endif |
| 9802 | int F77_DUMMY_MAIN() { return 1; } |
| 9803 | #endif |
| 9804 | int |
| 9805 | main () |
| 9806 | { |
| 9807 | socket (); |
| 9808 | ; |
| 9809 | return 0; |
| 9810 | } |
| 9811 | _ACEOF |
| 9812 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9813 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9814 | (eval $ac_link) 2>&5 |
| 9815 | ac_status=$? |
| 9816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9817 | (exit $ac_status); } && |
| 9818 | { ac_try='test -s conftest$ac_exeext' |
| 9819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9820 | (eval $ac_try) 2>&5 |
| 9821 | ac_status=$? |
| 9822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9823 | (exit $ac_status); }; }; then |
| 9824 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9825 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9826 | echo "$as_me: failed program was:" >&5 |
| 9827 | cat conftest.$ac_ext >&5 |
| 9828 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9829 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9830 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9831 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9832 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9833 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 9834 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 9835 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9836 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9837 | fi |
| 9838 | # SVR4 sockets |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 9839 | ;; |
| 9840 | esac |
| 9841 | case "$ac_sys_system" in |
| 9842 | BeOS*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9843 | echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 9844 | echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6 |
| 9845 | if test "${ac_cv_lib_net_socket+set}" = set; then |
| 9846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9847 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9848 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9849 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9850 | cat >conftest.$ac_ext <<_ACEOF |
| 9851 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9852 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9853 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9854 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9855 | #ifdef __cplusplus |
| 9856 | extern "C" |
| 9857 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9858 | /* 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] | 9859 | builtin and then its argument prototype would still apply. */ |
| 9860 | char socket (); |
| 9861 | #ifdef F77_DUMMY_MAIN |
| 9862 | # ifdef __cplusplus |
| 9863 | extern "C" |
| 9864 | # endif |
| 9865 | int F77_DUMMY_MAIN() { return 1; } |
| 9866 | #endif |
| 9867 | int |
| 9868 | main () |
| 9869 | { |
| 9870 | socket (); |
| 9871 | ; |
| 9872 | return 0; |
| 9873 | } |
| 9874 | _ACEOF |
| 9875 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9876 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9877 | (eval $ac_link) 2>&5 |
| 9878 | ac_status=$? |
| 9879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9880 | (exit $ac_status); } && |
| 9881 | { ac_try='test -s conftest$ac_exeext' |
| 9882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9883 | (eval $ac_try) 2>&5 |
| 9884 | ac_status=$? |
| 9885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9886 | (exit $ac_status); }; }; then |
| 9887 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9888 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9889 | echo "$as_me: failed program was:" >&5 |
| 9890 | cat conftest.$ac_ext >&5 |
| 9891 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9892 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9893 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9894 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9895 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9896 | echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 9897 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6 |
| 9898 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9899 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9900 | fi |
| 9901 | # BeOS |
| 9902 | ;; |
| 9903 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9904 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9905 | echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 9906 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6 |
| 9907 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9908 | # Check whether --with-libs or --without-libs was given. |
| 9909 | if test "${with_libs+set}" = set; then |
| 9910 | withval="$with_libs" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9911 | |
| 9912 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 9913 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9914 | LIBS="$withval $LIBS" |
| 9915 | |
| 9916 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9917 | echo "$as_me:$LINENO: result: no" >&5 |
| 9918 | echo "${ECHO_T}no" >&6 |
| 9919 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9920 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 9921 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9922 | |
| 9923 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9924 | echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 9925 | echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6 |
| 9926 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9927 | # Check whether --with-signal-module or --without-signal-module was given. |
| 9928 | if test "${with_signal_module+set}" = set; then |
| 9929 | withval="$with_signal_module" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9930 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9931 | fi; |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9932 | |
| 9933 | if test -z "$with_signal_module" |
| 9934 | then with_signal_module="yes" |
| 9935 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9936 | echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 9937 | echo "${ECHO_T}$with_signal_module" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9938 | |
| 9939 | if test "${with_signal_module}" = "yes"; then |
| 9940 | USE_SIGNAL_MODULE="" |
| 9941 | SIGNAL_OBJS="" |
| 9942 | else |
| 9943 | USE_SIGNAL_MODULE="#" |
| 9944 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 9945 | fi |
| 9946 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 9947 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9948 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9949 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9950 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9951 | echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 9952 | echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6 |
| 9953 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9954 | |
| 9955 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 9956 | if test "${with_dec_threads+set}" = set; then |
| 9957 | withval="$with_dec_threads" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9958 | |
| 9959 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 9960 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9961 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9962 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9963 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9964 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9965 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9966 | echo "$as_me:$LINENO: result: no" >&5 |
| 9967 | echo "${ECHO_T}no" >&6 |
| 9968 | fi; |
| 9969 | |
| 9970 | # Templates for things AC_DEFINEd more than once. |
| 9971 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9972 | |
| 9973 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9974 | |
| 9975 | |
| 9976 | |
| 9977 | |
| 9978 | |
| 9979 | echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 9980 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6 |
| 9981 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9982 | # Check whether --with-threads or --without-threads was given. |
| 9983 | if test "${with_threads+set}" = set; then |
| 9984 | withval="$with_threads" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9985 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9986 | fi; |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9987 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9988 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9989 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9990 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9991 | if test "${with_thread+set}" = set; then |
| 9992 | withval="$with_thread" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 9993 | with_threads=$with_thread |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9994 | fi; |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9995 | |
| 9996 | if test -z "$with_threads" |
| 9997 | then with_threads="yes" |
| 9998 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9999 | echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 10000 | echo "${ECHO_T}$with_threads" >&6 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10001 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10002 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10003 | if test "$with_threads" = "no" |
| 10004 | then |
| 10005 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10006 | elif test "$ac_cv_pthread_is_default" = yes |
| 10007 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10008 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10009 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10010 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10011 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10012 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10013 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10014 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10015 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10016 | |
| 10017 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10018 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10019 | elif test "$ac_cv_kpthread" = "yes" |
| 10020 | then |
| 10021 | CC="$CC -Kpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10022 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 10023 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10024 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 10025 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10026 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10027 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10028 | else |
| 10029 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 10030 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 10031 | fi |
| 10032 | if test ! -z "$withval" -a -d "$withval" |
| 10033 | then LDFLAGS="$LDFLAGS -L$withval" |
| 10034 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10035 | |
| 10036 | # According to the POSIX spec, a pthreads implementation must |
| 10037 | # 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] | 10038 | echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 10039 | echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6 |
| 10040 | cat >conftest.$ac_ext <<_ACEOF |
| 10041 | #line $LINENO "configure" |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10042 | #include "confdefs.h" |
| 10043 | #include <unistd.h> |
| 10044 | #ifdef _POSIX_THREADS |
| 10045 | yes |
| 10046 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10047 | |
| 10048 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10049 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10050 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10051 | unistd_defines_pthreads=yes |
| 10052 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10053 | unistd_defines_pthreads=no |
| 10054 | fi |
| 10055 | rm -f conftest* |
| 10056 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10057 | echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 10058 | echo "${ECHO_T}$unistd_defines_pthreads" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10059 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10060 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10061 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10062 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10063 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10064 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10065 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 10066 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 10067 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10068 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10069 | fi |
| 10070 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 10071 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10072 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10073 | # Is the header compilable? |
| 10074 | echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 10075 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6 |
| 10076 | cat >conftest.$ac_ext <<_ACEOF |
| 10077 | #line $LINENO "configure" |
| 10078 | #include "confdefs.h" |
| 10079 | $ac_includes_default |
| 10080 | #include <cthreads.h> |
| 10081 | _ACEOF |
| 10082 | rm -f conftest.$ac_objext |
| 10083 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10084 | (eval $ac_compile) 2>&5 |
| 10085 | ac_status=$? |
| 10086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10087 | (exit $ac_status); } && |
| 10088 | { ac_try='test -s conftest.$ac_objext' |
| 10089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10090 | (eval $ac_try) 2>&5 |
| 10091 | ac_status=$? |
| 10092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10093 | (exit $ac_status); }; }; then |
| 10094 | ac_header_compiler=yes |
| 10095 | else |
| 10096 | echo "$as_me: failed program was:" >&5 |
| 10097 | cat conftest.$ac_ext >&5 |
| 10098 | ac_header_compiler=no |
| 10099 | fi |
| 10100 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10101 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10102 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10103 | |
| 10104 | # Is the header present? |
| 10105 | echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 10106 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6 |
| 10107 | cat >conftest.$ac_ext <<_ACEOF |
| 10108 | #line $LINENO "configure" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10109 | #include "confdefs.h" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10110 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10111 | _ACEOF |
| 10112 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10113 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10114 | ac_status=$? |
| 10115 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 10116 | rm -f conftest.er1 |
| 10117 | cat conftest.err >&5 |
| 10118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10119 | (exit $ac_status); } >/dev/null; then |
| 10120 | if test -s conftest.err; then |
| 10121 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10122 | else |
| 10123 | ac_cpp_err= |
| 10124 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10125 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10126 | ac_cpp_err=yes |
| 10127 | fi |
| 10128 | if test -z "$ac_cpp_err"; then |
| 10129 | ac_header_preproc=yes |
| 10130 | else |
| 10131 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 10132 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10133 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10134 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10135 | rm -f conftest.err conftest.$ac_ext |
| 10136 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10137 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10138 | |
| 10139 | # So? What about this header? |
| 10140 | case $ac_header_compiler:$ac_header_preproc in |
| 10141 | yes:no ) |
| 10142 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10143 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10144 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10145 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10146 | no:yes ) |
| 10147 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 10148 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 10149 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 10150 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 10151 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10152 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10153 | esac |
| 10154 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 10155 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 10156 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10158 | else |
| 10159 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10160 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10161 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 10162 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
| 10163 | |
| 10164 | fi |
| 10165 | if test $ac_cv_header_cthreads_h = yes; then |
| 10166 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10167 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10168 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10169 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10170 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10171 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10172 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10173 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10174 | |
| 10175 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10176 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10177 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10178 | |
| 10179 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10180 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10181 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10182 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10183 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10184 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 10185 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 10186 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10187 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10188 | fi |
| 10189 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 10190 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10191 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10192 | # Is the header compilable? |
| 10193 | echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 10194 | echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6 |
| 10195 | cat >conftest.$ac_ext <<_ACEOF |
| 10196 | #line $LINENO "configure" |
| 10197 | #include "confdefs.h" |
| 10198 | $ac_includes_default |
| 10199 | #include <mach/cthreads.h> |
| 10200 | _ACEOF |
| 10201 | rm -f conftest.$ac_objext |
| 10202 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10203 | (eval $ac_compile) 2>&5 |
| 10204 | ac_status=$? |
| 10205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10206 | (exit $ac_status); } && |
| 10207 | { ac_try='test -s conftest.$ac_objext' |
| 10208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10209 | (eval $ac_try) 2>&5 |
| 10210 | ac_status=$? |
| 10211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10212 | (exit $ac_status); }; }; then |
| 10213 | ac_header_compiler=yes |
| 10214 | else |
| 10215 | echo "$as_me: failed program was:" >&5 |
| 10216 | cat conftest.$ac_ext >&5 |
| 10217 | ac_header_compiler=no |
| 10218 | fi |
| 10219 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10220 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10221 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10222 | |
| 10223 | # Is the header present? |
| 10224 | echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 10225 | echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6 |
| 10226 | cat >conftest.$ac_ext <<_ACEOF |
| 10227 | #line $LINENO "configure" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10228 | #include "confdefs.h" |
| 10229 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10230 | _ACEOF |
| 10231 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10232 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10233 | ac_status=$? |
| 10234 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 10235 | rm -f conftest.er1 |
| 10236 | cat conftest.err >&5 |
| 10237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10238 | (exit $ac_status); } >/dev/null; then |
| 10239 | if test -s conftest.err; then |
| 10240 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10241 | else |
| 10242 | ac_cpp_err= |
| 10243 | fi |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10244 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10245 | ac_cpp_err=yes |
| 10246 | fi |
| 10247 | if test -z "$ac_cpp_err"; then |
| 10248 | ac_header_preproc=yes |
| 10249 | else |
| 10250 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10251 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10252 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10253 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10254 | rm -f conftest.err conftest.$ac_ext |
| 10255 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10256 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10257 | |
| 10258 | # So? What about this header? |
| 10259 | case $ac_header_compiler:$ac_header_preproc in |
| 10260 | yes:no ) |
| 10261 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10262 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10263 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10264 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10265 | no:yes ) |
| 10266 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 10267 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 10268 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 10269 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 10270 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10271 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10272 | esac |
| 10273 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 10274 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 10275 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10277 | else |
| 10278 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10279 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10280 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 10281 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
| 10282 | |
| 10283 | fi |
| 10284 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 10285 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10286 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10287 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10288 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10289 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10290 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10291 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10292 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10293 | |
| 10294 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10295 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10296 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10297 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10298 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10299 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10300 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10301 | echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 10302 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6 |
| 10303 | |
| 10304 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10305 | if test "${with_pth+set}" = set; then |
| 10306 | withval="$with_pth" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10307 | echo "$as_me:$LINENO: result: $withval" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10308 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10309 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10310 | #define WITH_THREAD 1 |
| 10311 | _ACEOF |
| 10312 | |
| 10313 | |
| 10314 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10315 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10316 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10317 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10318 | LIBS="-lpth $LIBS" |
| 10319 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10320 | else |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10321 | echo "$as_me:$LINENO: result: no" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10322 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10323 | |
| 10324 | # Just looking for pthread_create in libpthread is not enough: |
| 10325 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 10326 | # So we really have to include pthread.h, and then link. |
| 10327 | _libs=$LIBS |
| 10328 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10329 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 10330 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 10331 | cat >conftest.$ac_ext <<_ACEOF |
| 10332 | #line $LINENO "configure" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10333 | #include "confdefs.h" |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10334 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10335 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10336 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10337 | #ifdef F77_DUMMY_MAIN |
| 10338 | # ifdef __cplusplus |
| 10339 | extern "C" |
| 10340 | # endif |
| 10341 | int F77_DUMMY_MAIN() { return 1; } |
| 10342 | #endif |
| 10343 | int |
| 10344 | main () |
| 10345 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10346 | |
| 10347 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10348 | ; |
| 10349 | return 0; |
| 10350 | } |
| 10351 | _ACEOF |
| 10352 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10353 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10354 | (eval $ac_link) 2>&5 |
| 10355 | ac_status=$? |
| 10356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10357 | (exit $ac_status); } && |
| 10358 | { ac_try='test -s conftest$ac_exeext' |
| 10359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10360 | (eval $ac_try) 2>&5 |
| 10361 | ac_status=$? |
| 10362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10363 | (exit $ac_status); }; }; then |
| 10364 | |
| 10365 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10366 | echo "${ECHO_T}yes" >&6 |
| 10367 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10368 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10369 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10370 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10371 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10372 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10373 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10374 | echo "$as_me: failed program was:" >&5 |
| 10375 | cat conftest.$ac_ext >&5 |
| 10376 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10377 | LIBS=$_libs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10378 | echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 10379 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6 |
| 10380 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 10381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10382 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10383 | cat >conftest.$ac_ext <<_ACEOF |
| 10384 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10385 | #include "confdefs.h" |
| 10386 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10387 | which can conflict with char pthread_detach (); below. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10388 | #include <assert.h> |
| 10389 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10390 | #ifdef __cplusplus |
| 10391 | extern "C" |
| 10392 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10393 | /* 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] | 10394 | builtin and then its argument prototype would still apply. */ |
| 10395 | char pthread_detach (); |
| 10396 | char (*f) (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10397 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10398 | #ifdef F77_DUMMY_MAIN |
| 10399 | # ifdef __cplusplus |
| 10400 | extern "C" |
| 10401 | # endif |
| 10402 | int F77_DUMMY_MAIN() { return 1; } |
| 10403 | #endif |
| 10404 | int |
| 10405 | main () |
| 10406 | { |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10407 | /* The GNU C library defines this for functions which it implements |
| 10408 | to always fail with ENOSYS. Some functions are actually named |
| 10409 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 10410 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10411 | choke me |
| 10412 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10413 | f = pthread_detach; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10414 | #endif |
| 10415 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10416 | ; |
| 10417 | return 0; |
| 10418 | } |
| 10419 | _ACEOF |
| 10420 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10421 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10422 | (eval $ac_link) 2>&5 |
| 10423 | ac_status=$? |
| 10424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10425 | (exit $ac_status); } && |
| 10426 | { ac_try='test -s conftest$ac_exeext' |
| 10427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10428 | (eval $ac_try) 2>&5 |
| 10429 | ac_status=$? |
| 10430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10431 | (exit $ac_status); }; }; then |
| 10432 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10433 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10434 | echo "$as_me: failed program was:" >&5 |
| 10435 | cat conftest.$ac_ext >&5 |
| 10436 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10437 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10438 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10439 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10440 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 10441 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6 |
| 10442 | if test $ac_cv_func_pthread_detach = yes; then |
| 10443 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10444 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10445 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10446 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10447 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10448 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10449 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10450 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10451 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10452 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 10453 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 10454 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10455 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10456 | fi |
| 10457 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 10458 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 10459 | else |
| 10460 | # Is the header compilable? |
| 10461 | echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 10462 | echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6 |
| 10463 | cat >conftest.$ac_ext <<_ACEOF |
| 10464 | #line $LINENO "configure" |
| 10465 | #include "confdefs.h" |
| 10466 | $ac_includes_default |
| 10467 | #include <atheos/threads.h> |
| 10468 | _ACEOF |
| 10469 | rm -f conftest.$ac_objext |
| 10470 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10471 | (eval $ac_compile) 2>&5 |
| 10472 | ac_status=$? |
| 10473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10474 | (exit $ac_status); } && |
| 10475 | { ac_try='test -s conftest.$ac_objext' |
| 10476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10477 | (eval $ac_try) 2>&5 |
| 10478 | ac_status=$? |
| 10479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10480 | (exit $ac_status); }; }; then |
| 10481 | ac_header_compiler=yes |
| 10482 | else |
| 10483 | echo "$as_me: failed program was:" >&5 |
| 10484 | cat conftest.$ac_ext >&5 |
| 10485 | ac_header_compiler=no |
| 10486 | fi |
| 10487 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10488 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10489 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10490 | |
| 10491 | # Is the header present? |
| 10492 | echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 10493 | echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6 |
| 10494 | cat >conftest.$ac_ext <<_ACEOF |
| 10495 | #line $LINENO "configure" |
| 10496 | #include "confdefs.h" |
| 10497 | #include <atheos/threads.h> |
| 10498 | _ACEOF |
| 10499 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10500 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10501 | ac_status=$? |
| 10502 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 10503 | rm -f conftest.er1 |
| 10504 | cat conftest.err >&5 |
| 10505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10506 | (exit $ac_status); } >/dev/null; then |
| 10507 | if test -s conftest.err; then |
| 10508 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10509 | else |
| 10510 | ac_cpp_err= |
| 10511 | fi |
| 10512 | else |
| 10513 | ac_cpp_err=yes |
| 10514 | fi |
| 10515 | if test -z "$ac_cpp_err"; then |
| 10516 | ac_header_preproc=yes |
| 10517 | else |
| 10518 | echo "$as_me: failed program was:" >&5 |
| 10519 | cat conftest.$ac_ext >&5 |
| 10520 | ac_header_preproc=no |
| 10521 | fi |
| 10522 | rm -f conftest.err conftest.$ac_ext |
| 10523 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10524 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10525 | |
| 10526 | # So? What about this header? |
| 10527 | case $ac_header_compiler:$ac_header_preproc in |
| 10528 | yes:no ) |
| 10529 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10530 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10531 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 10532 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};; |
| 10533 | no:yes ) |
| 10534 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 10535 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
| 10536 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 10537 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 10538 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 10539 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};; |
| 10540 | esac |
| 10541 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 10542 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 10543 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10545 | else |
| 10546 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 10547 | fi |
| 10548 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 10549 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 10550 | |
| 10551 | fi |
| 10552 | if test $ac_cv_header_atheos_threads_h = yes; then |
| 10553 | cat >>confdefs.h <<\_ACEOF |
| 10554 | #define WITH_THREAD 1 |
| 10555 | _ACEOF |
| 10556 | |
| 10557 | |
| 10558 | cat >>confdefs.h <<\_ACEOF |
| 10559 | #define ATHEOS_THREADS 1 |
| 10560 | _ACEOF |
| 10561 | |
| 10562 | THREADOBJ="Python/thread.o" |
| 10563 | else |
| 10564 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10565 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10566 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 10567 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 10568 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10570 | fi |
| 10571 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 10572 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10573 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10574 | # Is the header compilable? |
| 10575 | echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 10576 | echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6 |
| 10577 | cat >conftest.$ac_ext <<_ACEOF |
| 10578 | #line $LINENO "configure" |
| 10579 | #include "confdefs.h" |
| 10580 | $ac_includes_default |
| 10581 | #include <kernel/OS.h> |
| 10582 | _ACEOF |
| 10583 | rm -f conftest.$ac_objext |
| 10584 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10585 | (eval $ac_compile) 2>&5 |
| 10586 | ac_status=$? |
| 10587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10588 | (exit $ac_status); } && |
| 10589 | { ac_try='test -s conftest.$ac_objext' |
| 10590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10591 | (eval $ac_try) 2>&5 |
| 10592 | ac_status=$? |
| 10593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10594 | (exit $ac_status); }; }; then |
| 10595 | ac_header_compiler=yes |
| 10596 | else |
| 10597 | echo "$as_me: failed program was:" >&5 |
| 10598 | cat conftest.$ac_ext >&5 |
| 10599 | ac_header_compiler=no |
| 10600 | fi |
| 10601 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10602 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10603 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10604 | |
| 10605 | # Is the header present? |
| 10606 | echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 10607 | echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6 |
| 10608 | cat >conftest.$ac_ext <<_ACEOF |
| 10609 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10610 | #include "confdefs.h" |
| 10611 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10612 | _ACEOF |
| 10613 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10614 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10615 | ac_status=$? |
| 10616 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 10617 | rm -f conftest.er1 |
| 10618 | cat conftest.err >&5 |
| 10619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10620 | (exit $ac_status); } >/dev/null; then |
| 10621 | if test -s conftest.err; then |
| 10622 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10623 | else |
| 10624 | ac_cpp_err= |
| 10625 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10626 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10627 | ac_cpp_err=yes |
| 10628 | fi |
| 10629 | if test -z "$ac_cpp_err"; then |
| 10630 | ac_header_preproc=yes |
| 10631 | else |
| 10632 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10633 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10634 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10635 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10636 | rm -f conftest.err conftest.$ac_ext |
| 10637 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10638 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10639 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10640 | # So? What about this header? |
| 10641 | case $ac_header_compiler:$ac_header_preproc in |
| 10642 | yes:no ) |
| 10643 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10644 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10645 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 10646 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};; |
| 10647 | no:yes ) |
| 10648 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 10649 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
| 10650 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 10651 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 10652 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 10653 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};; |
| 10654 | esac |
| 10655 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 10656 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 10657 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10658 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10659 | else |
| 10660 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 10661 | fi |
| 10662 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 10663 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
| 10664 | |
| 10665 | fi |
| 10666 | if test $ac_cv_header_kernel_OS_h = yes; then |
| 10667 | cat >>confdefs.h <<\_ACEOF |
| 10668 | #define WITH_THREAD 1 |
| 10669 | _ACEOF |
| 10670 | |
| 10671 | |
| 10672 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10673 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10674 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10675 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10676 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10677 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10678 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10679 | echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 10680 | echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6 |
| 10681 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 10682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10683 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10684 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10685 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10686 | cat >conftest.$ac_ext <<_ACEOF |
| 10687 | #line $LINENO "configure" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10688 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10689 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10690 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10691 | #ifdef __cplusplus |
| 10692 | extern "C" |
| 10693 | #endif |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10694 | /* 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] | 10695 | builtin and then its argument prototype would still apply. */ |
| 10696 | char pthread_create (); |
| 10697 | #ifdef F77_DUMMY_MAIN |
| 10698 | # ifdef __cplusplus |
| 10699 | extern "C" |
| 10700 | # endif |
| 10701 | int F77_DUMMY_MAIN() { return 1; } |
| 10702 | #endif |
| 10703 | int |
| 10704 | main () |
| 10705 | { |
| 10706 | pthread_create (); |
| 10707 | ; |
| 10708 | return 0; |
| 10709 | } |
| 10710 | _ACEOF |
| 10711 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10712 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10713 | (eval $ac_link) 2>&5 |
| 10714 | ac_status=$? |
| 10715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10716 | (exit $ac_status); } && |
| 10717 | { ac_try='test -s conftest$ac_exeext' |
| 10718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10719 | (eval $ac_try) 2>&5 |
| 10720 | ac_status=$? |
| 10721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10722 | (exit $ac_status); }; }; then |
| 10723 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10724 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10725 | echo "$as_me: failed program was:" >&5 |
| 10726 | cat conftest.$ac_ext >&5 |
| 10727 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10728 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10729 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10730 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10731 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10732 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 10733 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6 |
| 10734 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 10735 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10736 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10737 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10738 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10739 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10740 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10741 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10742 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10743 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10744 | echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 10745 | echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 |
| 10746 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 10747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10748 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10749 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10750 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10751 | cat >conftest.$ac_ext <<_ACEOF |
| 10752 | #line $LINENO "configure" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10753 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10754 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10755 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10756 | #ifdef __cplusplus |
| 10757 | extern "C" |
| 10758 | #endif |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10759 | /* 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] | 10760 | builtin and then its argument prototype would still apply. */ |
| 10761 | char pthread_create (); |
| 10762 | #ifdef F77_DUMMY_MAIN |
| 10763 | # ifdef __cplusplus |
| 10764 | extern "C" |
| 10765 | # endif |
| 10766 | int F77_DUMMY_MAIN() { return 1; } |
| 10767 | #endif |
| 10768 | int |
| 10769 | main () |
| 10770 | { |
| 10771 | pthread_create (); |
| 10772 | ; |
| 10773 | return 0; |
| 10774 | } |
| 10775 | _ACEOF |
| 10776 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10777 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10778 | (eval $ac_link) 2>&5 |
| 10779 | ac_status=$? |
| 10780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10781 | (exit $ac_status); } && |
| 10782 | { ac_try='test -s conftest$ac_exeext' |
| 10783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10784 | (eval $ac_try) 2>&5 |
| 10785 | ac_status=$? |
| 10786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10787 | (exit $ac_status); }; }; then |
| 10788 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10789 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10790 | echo "$as_me: failed program was:" >&5 |
| 10791 | cat conftest.$ac_ext >&5 |
| 10792 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10793 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10794 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10795 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10796 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10797 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 10798 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 |
| 10799 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 10800 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10801 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10802 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10803 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10804 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10805 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10806 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10807 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10808 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10809 | echo "$as_me:$LINENO: checking for __d6_pthread_create in -lthread" >&5 |
| 10810 | echo $ECHO_N "checking for __d6_pthread_create in -lthread... $ECHO_C" >&6 |
| 10811 | if test "${ac_cv_lib_thread___d6_pthread_create+set}" = set; then |
| 10812 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10813 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10814 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10815 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10816 | cat >conftest.$ac_ext <<_ACEOF |
| 10817 | #line $LINENO "configure" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10818 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10819 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10820 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10821 | #ifdef __cplusplus |
| 10822 | extern "C" |
| 10823 | #endif |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10824 | /* 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] | 10825 | builtin and then its argument prototype would still apply. */ |
| 10826 | char __d6_pthread_create (); |
| 10827 | #ifdef F77_DUMMY_MAIN |
| 10828 | # ifdef __cplusplus |
| 10829 | extern "C" |
| 10830 | # endif |
| 10831 | int F77_DUMMY_MAIN() { return 1; } |
| 10832 | #endif |
| 10833 | int |
| 10834 | main () |
| 10835 | { |
| 10836 | __d6_pthread_create (); |
| 10837 | ; |
| 10838 | return 0; |
| 10839 | } |
| 10840 | _ACEOF |
| 10841 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10842 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10843 | (eval $ac_link) 2>&5 |
| 10844 | ac_status=$? |
| 10845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10846 | (exit $ac_status); } && |
| 10847 | { ac_try='test -s conftest$ac_exeext' |
| 10848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10849 | (eval $ac_try) 2>&5 |
| 10850 | ac_status=$? |
| 10851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10852 | (exit $ac_status); }; }; then |
| 10853 | ac_cv_lib_thread___d6_pthread_create=yes |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10854 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10855 | echo "$as_me: failed program was:" >&5 |
| 10856 | cat conftest.$ac_ext >&5 |
| 10857 | ac_cv_lib_thread___d6_pthread_create=no |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10858 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10859 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10860 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10861 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10862 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread___d6_pthread_create" >&5 |
| 10863 | echo "${ECHO_T}$ac_cv_lib_thread___d6_pthread_create" >&6 |
| 10864 | if test $ac_cv_lib_thread___d6_pthread_create = yes; then |
| 10865 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10866 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10867 | _ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10868 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10869 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10870 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10871 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10872 | else |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10873 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10874 | echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 10875 | echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6 |
| 10876 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 10877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10878 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10879 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10880 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10881 | cat >conftest.$ac_ext <<_ACEOF |
| 10882 | #line $LINENO "configure" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10883 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10884 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10885 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10886 | #ifdef __cplusplus |
| 10887 | extern "C" |
| 10888 | #endif |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10889 | /* 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] | 10890 | builtin and then its argument prototype would still apply. */ |
| 10891 | char __pthread_create_system (); |
| 10892 | #ifdef F77_DUMMY_MAIN |
| 10893 | # ifdef __cplusplus |
| 10894 | extern "C" |
| 10895 | # endif |
| 10896 | int F77_DUMMY_MAIN() { return 1; } |
| 10897 | #endif |
| 10898 | int |
| 10899 | main () |
| 10900 | { |
| 10901 | __pthread_create_system (); |
| 10902 | ; |
| 10903 | return 0; |
| 10904 | } |
| 10905 | _ACEOF |
| 10906 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10907 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10908 | (eval $ac_link) 2>&5 |
| 10909 | ac_status=$? |
| 10910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10911 | (exit $ac_status); } && |
| 10912 | { ac_try='test -s conftest$ac_exeext' |
| 10913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10914 | (eval $ac_try) 2>&5 |
| 10915 | ac_status=$? |
| 10916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10917 | (exit $ac_status); }; }; then |
| 10918 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10919 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10920 | echo "$as_me: failed program was:" >&5 |
| 10921 | cat conftest.$ac_ext >&5 |
| 10922 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10923 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10924 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10925 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10926 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10927 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 10928 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6 |
| 10929 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 10930 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10931 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10932 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10933 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10934 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10935 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10936 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10937 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10938 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10939 | echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 10940 | echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6 |
| 10941 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 10942 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10943 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10944 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10945 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10946 | cat >conftest.$ac_ext <<_ACEOF |
| 10947 | #line $LINENO "configure" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10948 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10949 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10950 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10951 | #ifdef __cplusplus |
| 10952 | extern "C" |
| 10953 | #endif |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10954 | /* 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] | 10955 | builtin and then its argument prototype would still apply. */ |
| 10956 | char pthread_create (); |
| 10957 | #ifdef F77_DUMMY_MAIN |
| 10958 | # ifdef __cplusplus |
| 10959 | extern "C" |
| 10960 | # endif |
| 10961 | int F77_DUMMY_MAIN() { return 1; } |
| 10962 | #endif |
| 10963 | int |
| 10964 | main () |
| 10965 | { |
| 10966 | pthread_create (); |
| 10967 | ; |
| 10968 | return 0; |
| 10969 | } |
| 10970 | _ACEOF |
| 10971 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10972 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10973 | (eval $ac_link) 2>&5 |
| 10974 | ac_status=$? |
| 10975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10976 | (exit $ac_status); } && |
| 10977 | { ac_try='test -s conftest$ac_exeext' |
| 10978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10979 | (eval $ac_try) 2>&5 |
| 10980 | ac_status=$? |
| 10981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10982 | (exit $ac_status); }; }; then |
| 10983 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10984 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10985 | echo "$as_me: failed program was:" >&5 |
| 10986 | cat conftest.$ac_ext >&5 |
| 10987 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10988 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10989 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10990 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10991 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10992 | echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 10993 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6 |
| 10994 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 10995 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10996 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10997 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10998 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10999 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11000 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11001 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11002 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 11003 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11004 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 11005 | fi |
| 11006 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11007 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11008 | fi |
| 11009 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 11010 | fi |
| 11011 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11012 | fi |
| 11013 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11014 | fi |
| 11015 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11016 | fi |
| 11017 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11018 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11019 | fi |
| 11020 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11021 | |
| 11022 | fi |
| 11023 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11024 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11025 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11026 | fi; |
| 11027 | fi |
| 11028 | |
| 11029 | |
| 11030 | fi |
| 11031 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11032 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11033 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11034 | if test "$posix_threads" = "yes"; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11035 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11036 | |
| 11037 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11038 | #define _POSIX_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11039 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11040 | |
| 11041 | fi |
| 11042 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11043 | echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 11044 | echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6 |
| 11045 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 11046 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11047 | else |
| 11048 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 11049 | ac_cv_pthread_system_supported=no |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11050 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11051 | cat >conftest.$ac_ext <<_ACEOF |
| 11052 | #line $LINENO "configure" |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11053 | #include "confdefs.h" |
| 11054 | #include <pthread.h> |
| 11055 | void *foo(void *parm) { |
| 11056 | return NULL; |
| 11057 | } |
| 11058 | main() { |
| 11059 | pthread_attr_t attr; |
Martin v. Löwis | a82d347 | 2002-02-24 16:05:05 +0000 | [diff] [blame] | 11060 | pthread_t id; |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11061 | if (pthread_attr_init(&attr)) exit(-1); |
| 11062 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
Martin v. Löwis | a82d347 | 2002-02-24 16:05:05 +0000 | [diff] [blame] | 11063 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11064 | exit(0); |
| 11065 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11066 | _ACEOF |
| 11067 | rm -f conftest$ac_exeext |
| 11068 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11069 | (eval $ac_link) 2>&5 |
| 11070 | ac_status=$? |
| 11071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11072 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11074 | (eval $ac_try) 2>&5 |
| 11075 | ac_status=$? |
| 11076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11077 | (exit $ac_status); }; }; then |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11078 | ac_cv_pthread_system_supported=yes |
| 11079 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11080 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11081 | echo "$as_me: failed program was:" >&5 |
| 11082 | cat conftest.$ac_ext >&5 |
| 11083 | ( exit $ac_status ) |
| 11084 | ac_cv_pthread_system_supported=no |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11085 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11086 | 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] | 11087 | fi |
| 11088 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11089 | fi |
| 11090 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11091 | echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 11092 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11093 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11094 | |
| 11095 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11096 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11097 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11098 | |
| 11099 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11100 | |
| 11101 | for ac_func in pthread_sigmask |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11102 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11103 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11104 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11105 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11106 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11108 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11109 | cat >conftest.$ac_ext <<_ACEOF |
| 11110 | #line $LINENO "configure" |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11111 | #include "confdefs.h" |
| 11112 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11113 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11114 | #include <assert.h> |
| 11115 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11116 | #ifdef __cplusplus |
| 11117 | extern "C" |
| 11118 | #endif |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11119 | /* 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] | 11120 | builtin and then its argument prototype would still apply. */ |
| 11121 | char $ac_func (); |
| 11122 | char (*f) (); |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11123 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11124 | #ifdef F77_DUMMY_MAIN |
| 11125 | # ifdef __cplusplus |
| 11126 | extern "C" |
| 11127 | # endif |
| 11128 | int F77_DUMMY_MAIN() { return 1; } |
| 11129 | #endif |
| 11130 | int |
| 11131 | main () |
| 11132 | { |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11133 | /* The GNU C library defines this for functions which it implements |
| 11134 | to always fail with ENOSYS. Some functions are actually named |
| 11135 | something starting with __ and the normal name is an alias. */ |
| 11136 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11137 | choke me |
| 11138 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11139 | f = $ac_func; |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11140 | #endif |
| 11141 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11142 | ; |
| 11143 | return 0; |
| 11144 | } |
| 11145 | _ACEOF |
| 11146 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11147 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11148 | (eval $ac_link) 2>&5 |
| 11149 | ac_status=$? |
| 11150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11151 | (exit $ac_status); } && |
| 11152 | { ac_try='test -s conftest$ac_exeext' |
| 11153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11154 | (eval $ac_try) 2>&5 |
| 11155 | ac_status=$? |
| 11156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11157 | (exit $ac_status); }; }; then |
| 11158 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11159 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11160 | echo "$as_me: failed program was:" >&5 |
| 11161 | cat conftest.$ac_ext >&5 |
| 11162 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11163 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11164 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11165 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11166 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11167 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11168 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11169 | cat >>confdefs.h <<_ACEOF |
| 11170 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11171 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11172 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11173 | fi |
| 11174 | done |
| 11175 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11176 | fi |
| 11177 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11178 | echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 11179 | echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6 |
| 11180 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 11181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11182 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11183 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11184 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11185 | cat >conftest.$ac_ext <<_ACEOF |
| 11186 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11187 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11188 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11189 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11190 | #ifdef __cplusplus |
| 11191 | extern "C" |
| 11192 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11193 | /* 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] | 11194 | builtin and then its argument prototype would still apply. */ |
| 11195 | char usconfig (); |
| 11196 | #ifdef F77_DUMMY_MAIN |
| 11197 | # ifdef __cplusplus |
| 11198 | extern "C" |
| 11199 | # endif |
| 11200 | int F77_DUMMY_MAIN() { return 1; } |
| 11201 | #endif |
| 11202 | int |
| 11203 | main () |
| 11204 | { |
| 11205 | usconfig (); |
| 11206 | ; |
| 11207 | return 0; |
| 11208 | } |
| 11209 | _ACEOF |
| 11210 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11211 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11212 | (eval $ac_link) 2>&5 |
| 11213 | ac_status=$? |
| 11214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11215 | (exit $ac_status); } && |
| 11216 | { ac_try='test -s conftest$ac_exeext' |
| 11217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11218 | (eval $ac_try) 2>&5 |
| 11219 | ac_status=$? |
| 11220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11221 | (exit $ac_status); }; }; then |
| 11222 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11223 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11224 | echo "$as_me: failed program was:" >&5 |
| 11225 | cat conftest.$ac_ext >&5 |
| 11226 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11227 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11228 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11229 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11230 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11231 | echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 11232 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6 |
| 11233 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 11234 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11235 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11236 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11237 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11238 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11239 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11240 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11241 | fi |
| 11242 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11243 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 11244 | if test "$posix_threads" != "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11245 | echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 11246 | echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6 |
| 11247 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 11248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11249 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11250 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11251 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11252 | cat >conftest.$ac_ext <<_ACEOF |
| 11253 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11254 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11255 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11256 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11257 | #ifdef __cplusplus |
| 11258 | extern "C" |
| 11259 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11260 | /* 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] | 11261 | builtin and then its argument prototype would still apply. */ |
| 11262 | char thr_create (); |
| 11263 | #ifdef F77_DUMMY_MAIN |
| 11264 | # ifdef __cplusplus |
| 11265 | extern "C" |
| 11266 | # endif |
| 11267 | int F77_DUMMY_MAIN() { return 1; } |
| 11268 | #endif |
| 11269 | int |
| 11270 | main () |
| 11271 | { |
| 11272 | thr_create (); |
| 11273 | ; |
| 11274 | return 0; |
| 11275 | } |
| 11276 | _ACEOF |
| 11277 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11278 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11279 | (eval $ac_link) 2>&5 |
| 11280 | ac_status=$? |
| 11281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11282 | (exit $ac_status); } && |
| 11283 | { ac_try='test -s conftest$ac_exeext' |
| 11284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11285 | (eval $ac_try) 2>&5 |
| 11286 | ac_status=$? |
| 11287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11288 | (exit $ac_status); }; }; then |
| 11289 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11290 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11291 | echo "$as_me: failed program was:" >&5 |
| 11292 | cat conftest.$ac_ext >&5 |
| 11293 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11294 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11295 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11296 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11297 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11298 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 11299 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6 |
| 11300 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 11301 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11302 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11303 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11304 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11305 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11306 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11307 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11308 | fi |
| 11309 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11310 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11311 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11312 | if test "$USE_THREAD_MODULE" != "#" |
| 11313 | then |
| 11314 | # If the above checks didn't disable threads, (at least) OSF1 |
| 11315 | # needs this '-threads' argument during linking. |
| 11316 | case $ac_sys_system in |
| 11317 | OSF1) LDLAST=-threads;; |
| 11318 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 11319 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 11320 | |
| 11321 | if test "$posix_threads" = yes -a \ |
| 11322 | "$ac_sys_system" = "SunOS" -a \ |
| 11323 | "$ac_sys_release" = "5.6"; then |
| 11324 | |
| 11325 | cat >>confdefs.h <<\_ACEOF |
| 11326 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 11327 | _ACEOF |
| 11328 | |
| 11329 | fi |
| 11330 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11331 | fi |
| 11332 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11333 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11334 | |
| 11335 | |
| 11336 | echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 11337 | 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] | 11338 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 11339 | if test "${enable_ipv6+set}" = set; then |
| 11340 | enableval="$enable_ipv6" |
| 11341 | case "$enableval" in |
| 11342 | no) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11343 | echo "$as_me:$LINENO: result: no" >&5 |
| 11344 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11345 | ipv6=no |
| 11346 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11347 | *) echo "$as_me:$LINENO: result: yes" >&5 |
| 11348 | echo "${ECHO_T}yes" >&6 |
| 11349 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11350 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11351 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11352 | |
| 11353 | ipv6=yes |
| 11354 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11355 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11356 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11357 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11358 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11359 | echo "$as_me:$LINENO: result: no" >&5 |
| 11360 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11361 | ipv6=no |
| 11362 | |
| 11363 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11364 | cat >conftest.$ac_ext <<_ACEOF |
| 11365 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11366 | #include "confdefs.h" |
| 11367 | /* AF_INET6 available check */ |
| 11368 | #include <sys/types.h> |
| 11369 | #include <sys/socket.h> |
| 11370 | main() |
| 11371 | { |
| 11372 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 11373 | exit(1); |
| 11374 | else |
| 11375 | exit(0); |
| 11376 | } |
| 11377 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11378 | _ACEOF |
| 11379 | rm -f conftest$ac_exeext |
| 11380 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11381 | (eval $ac_link) 2>&5 |
| 11382 | ac_status=$? |
| 11383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11384 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11386 | (eval $ac_try) 2>&5 |
| 11387 | ac_status=$? |
| 11388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11389 | (exit $ac_status); }; }; then |
| 11390 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11391 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11392 | ipv6=yes |
| 11393 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11394 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11395 | echo "$as_me: failed program was:" >&5 |
| 11396 | cat conftest.$ac_ext >&5 |
| 11397 | ( exit $ac_status ) |
| 11398 | echo "$as_me:$LINENO: result: no" >&5 |
| 11399 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11400 | ipv6=no |
| 11401 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11402 | 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] | 11403 | fi |
| 11404 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11405 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11406 | echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 11407 | echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6 |
| 11408 | cat >conftest.$ac_ext <<_ACEOF |
| 11409 | #line $LINENO "configure" |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11410 | #include "confdefs.h" |
| 11411 | #include <sys/types.h> |
| 11412 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11413 | #ifdef F77_DUMMY_MAIN |
| 11414 | # ifdef __cplusplus |
| 11415 | extern "C" |
| 11416 | # endif |
| 11417 | int F77_DUMMY_MAIN() { return 1; } |
| 11418 | #endif |
| 11419 | int |
| 11420 | main () |
| 11421 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11422 | struct sockaddr_in6 x; |
| 11423 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11424 | ; |
| 11425 | return 0; |
| 11426 | } |
| 11427 | _ACEOF |
| 11428 | rm -f conftest.$ac_objext |
| 11429 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11430 | (eval $ac_compile) 2>&5 |
| 11431 | ac_status=$? |
| 11432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11433 | (exit $ac_status); } && |
| 11434 | { ac_try='test -s conftest.$ac_objext' |
| 11435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11436 | (eval $ac_try) 2>&5 |
| 11437 | ac_status=$? |
| 11438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11439 | (exit $ac_status); }; }; then |
| 11440 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11441 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11442 | ipv6=yes |
| 11443 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11444 | echo "$as_me: failed program was:" >&5 |
| 11445 | cat conftest.$ac_ext >&5 |
| 11446 | echo "$as_me:$LINENO: result: no" >&5 |
| 11447 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11448 | ipv6=no |
| 11449 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11450 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11451 | fi |
| 11452 | |
| 11453 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11454 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11455 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11456 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11457 | |
| 11458 | fi |
| 11459 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11460 | fi; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11461 | |
| 11462 | ipv6type=unknown |
| 11463 | ipv6lib=none |
| 11464 | ipv6trylibc=no |
| 11465 | |
| 11466 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11467 | echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 11468 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 11469 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 11470 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11471 | case $i in |
| 11472 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11473 | cat >conftest.$ac_ext <<_ACEOF |
| 11474 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11475 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11476 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11477 | #include <netinet/in.h> |
| 11478 | #ifdef IPV6_INRIA_VERSION |
| 11479 | yes |
| 11480 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11481 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11482 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11483 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11484 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11485 | fi |
| 11486 | rm -f conftest* |
| 11487 | |
| 11488 | ;; |
| 11489 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11490 | cat >conftest.$ac_ext <<_ACEOF |
| 11491 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11492 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11493 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11494 | #include <netinet/in.h> |
| 11495 | #ifdef __KAME__ |
| 11496 | yes |
| 11497 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11498 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11499 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11500 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11501 | ipv6type=$i; |
| 11502 | ipv6lib=inet6 |
| 11503 | ipv6libdir=/usr/local/v6/lib |
| 11504 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11505 | fi |
| 11506 | rm -f conftest* |
| 11507 | |
| 11508 | ;; |
| 11509 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11510 | cat >conftest.$ac_ext <<_ACEOF |
| 11511 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11512 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11513 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11514 | #include <features.h> |
| 11515 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 11516 | yes |
| 11517 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11518 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11519 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11520 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11521 | ipv6type=$i; |
| 11522 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11523 | fi |
| 11524 | rm -f conftest* |
| 11525 | |
| 11526 | ;; |
| 11527 | linux-inet6) |
| 11528 | if test -d /usr/inet6; then |
| 11529 | ipv6type=$i |
| 11530 | ipv6lib=inet6 |
| 11531 | ipv6libdir=/usr/inet6/lib |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11532 | OPT="-I/usr/inet6/include $OPT" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11533 | fi |
| 11534 | ;; |
| 11535 | solaris) |
| 11536 | if test -f /etc/netconfig; then |
| 11537 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 11538 | ipv6type=$i |
| 11539 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11540 | fi |
| 11541 | fi |
| 11542 | ;; |
| 11543 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11544 | cat >conftest.$ac_ext <<_ACEOF |
| 11545 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11546 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11547 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11548 | #include <sys/param.h> |
| 11549 | #ifdef _TOSHIBA_INET6 |
| 11550 | yes |
| 11551 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11552 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11553 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11554 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11555 | ipv6type=$i; |
| 11556 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11557 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11558 | fi |
| 11559 | rm -f conftest* |
| 11560 | |
| 11561 | ;; |
| 11562 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11563 | cat >conftest.$ac_ext <<_ACEOF |
| 11564 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11565 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11566 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11567 | #include </usr/local/v6/include/sys/v6config.h> |
| 11568 | #ifdef __V6D__ |
| 11569 | yes |
| 11570 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11571 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11572 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11573 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11574 | ipv6type=$i; |
| 11575 | ipv6lib=v6; |
| 11576 | ipv6libdir=/usr/local/v6/lib; |
| 11577 | OPT="-I/usr/local/v6/include $OPT" |
| 11578 | fi |
| 11579 | rm -f conftest* |
| 11580 | |
| 11581 | ;; |
| 11582 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11583 | cat >conftest.$ac_ext <<_ACEOF |
| 11584 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11585 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11586 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11587 | #include <sys/param.h> |
| 11588 | #ifdef _ZETA_MINAMI_INET6 |
| 11589 | yes |
| 11590 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11591 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11592 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11593 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11594 | ipv6type=$i; |
| 11595 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11596 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11597 | fi |
| 11598 | rm -f conftest* |
| 11599 | |
| 11600 | ;; |
| 11601 | esac |
| 11602 | if test "$ipv6type" != "unknown"; then |
| 11603 | break |
| 11604 | fi |
| 11605 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11606 | echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 11607 | echo "${ECHO_T}$ipv6type" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11608 | fi |
| 11609 | |
| 11610 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 11611 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 11612 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 11613 | echo "using lib$ipv6lib" |
| 11614 | else |
| 11615 | if test $ipv6trylibc = "yes"; then |
| 11616 | echo "using libc" |
| 11617 | else |
| 11618 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 11619 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 11620 | echo 'ipv6 kit and compile beforehand.' |
| 11621 | exit 1 |
| 11622 | fi |
| 11623 | fi |
| 11624 | fi |
| 11625 | |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11626 | # Check for universal newline support |
Guido van Rossum | 402905e | 2002-08-15 13:56:35 +0000 | [diff] [blame] | 11627 | echo "$as_me:$LINENO: checking for --with-universal-newlines" >&5 |
| 11628 | echo $ECHO_N "checking for --with-universal-newlines... $ECHO_C" >&6 |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11629 | |
| 11630 | # Check whether --with-universal-newlines or --without-universal-newlines was given. |
| 11631 | if test "${with_universal_newlines+set}" = set; then |
| 11632 | withval="$with_universal_newlines" |
| 11633 | |
| 11634 | fi; |
| 11635 | |
| 11636 | if test -z "$with_universal_newlines" |
| 11637 | then with_universal_newlines="yes" |
| 11638 | fi |
| 11639 | if test "$with_universal_newlines" != "no" |
| 11640 | then |
Martin v. Löwis | e8aea58 | 2002-04-16 05:51:02 +0000 | [diff] [blame] | 11641 | |
| 11642 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11643 | #define WITH_UNIVERSAL_NEWLINES 1 |
| 11644 | _ACEOF |
| 11645 | |
| 11646 | fi |
| 11647 | echo "$as_me:$LINENO: result: $with_universal_newlines" >&5 |
| 11648 | echo "${ECHO_T}$with_universal_newlines" >&6 |
| 11649 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11650 | # Check for --with-doc-strings |
| 11651 | echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 11652 | echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6 |
| 11653 | |
| 11654 | # Check whether --with-doc-strings or --without-doc-strings was given. |
| 11655 | if test "${with_doc_strings+set}" = set; then |
| 11656 | withval="$with_doc_strings" |
| 11657 | |
| 11658 | fi; |
| 11659 | |
| 11660 | if test -z "$with_doc_strings" |
| 11661 | then with_doc_strings="yes" |
| 11662 | fi |
| 11663 | if test "$with_doc_strings" != "no" |
| 11664 | then |
| 11665 | |
| 11666 | cat >>confdefs.h <<\_ACEOF |
| 11667 | #define WITH_DOC_STRINGS 1 |
| 11668 | _ACEOF |
| 11669 | |
| 11670 | fi |
| 11671 | echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 11672 | echo "${ECHO_T}$with_doc_strings" >&6 |
| 11673 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11674 | # Check for Python-specific malloc support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11675 | echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 11676 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6 |
| 11677 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11678 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 11679 | if test "${with_pymalloc+set}" = set; then |
| 11680 | withval="$with_pymalloc" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11681 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11682 | fi; |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11683 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11684 | if test -z "$with_pymalloc" |
| 11685 | then with_pymalloc="yes" |
| 11686 | fi |
| 11687 | if test "$with_pymalloc" != "no" |
| 11688 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11689 | |
| 11690 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11691 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11692 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11693 | |
| 11694 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11695 | echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 11696 | echo "${ECHO_T}$with_pymalloc" >&6 |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11697 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11698 | # Check for --with-wctype-functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11699 | echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 11700 | echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6 |
| 11701 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11702 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 11703 | if test "${with_wctype_functions+set}" = set; then |
| 11704 | withval="$with_wctype_functions" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11705 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11706 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11707 | then |
| 11708 | |
| 11709 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11710 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11711 | _ACEOF |
| 11712 | |
| 11713 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11714 | echo "${ECHO_T}yes" >&6 |
| 11715 | else echo "$as_me:$LINENO: result: no" >&5 |
| 11716 | echo "${ECHO_T}no" >&6 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11717 | fi |
| 11718 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11719 | echo "$as_me:$LINENO: result: no" >&5 |
| 11720 | echo "${ECHO_T}no" >&6 |
| 11721 | fi; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11722 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11723 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11724 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 11725 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11726 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11727 | echo "$as_me:$LINENO: checking for --with-sgi-dl" >&5 |
| 11728 | echo $ECHO_N "checking for --with-sgi-dl... $ECHO_C" >&6 |
| 11729 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11730 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11731 | if test "${with_sgi_dl+set}" = set; then |
| 11732 | withval="$with_sgi_dl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11733 | |
| 11734 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11735 | echo "${ECHO_T}$withval" >&6 |
| 11736 | |
| 11737 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11738 | #define WITH_SGI_DL 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11739 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11740 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11741 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11742 | dldir=$withval |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 11743 | if test ! -z "$dldir" -a -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 11744 | then LDFLAGS="$LDFLAGS -L$dldir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11745 | else { { echo "$as_me:$LINENO: error: proper usage is --with-sgi-dl=DIRECTORY" >&5 |
| 11746 | echo "$as_me: error: proper usage is --with-sgi-dl=DIRECTORY" >&2;} |
| 11747 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11748 | fi |
| 11749 | DLINCLDIR=${dldir} |
| 11750 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11751 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11752 | echo "$as_me:$LINENO: result: no" >&5 |
| 11753 | echo "${ECHO_T}no" >&6 |
| 11754 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11755 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11756 | echo "$as_me:$LINENO: checking for --with-dl-dld" >&5 |
| 11757 | echo $ECHO_N "checking for --with-dl-dld... $ECHO_C" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11758 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11759 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11760 | if test "${with_dl_dld+set}" = set; then |
| 11761 | withval="$with_dl_dld" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11762 | |
| 11763 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11764 | echo "${ECHO_T}$withval" >&6 |
| 11765 | |
| 11766 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11767 | #define WITH_DL_DLD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11768 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11769 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11770 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11771 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 11772 | dlddir=`echo "$withval" | sed 's/.*,//'` |
Barry Warsaw | 7d1219d | 2000-10-05 18:45:53 +0000 | [diff] [blame] | 11773 | 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] | 11774 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11775 | else { { echo "$as_me:$LINENO: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&5 |
| 11776 | echo "$as_me: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&2;} |
| 11777 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11778 | fi |
| 11779 | DLINCLDIR=${dldir} |
| 11780 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11781 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11782 | echo "$as_me:$LINENO: result: no" >&5 |
| 11783 | echo "${ECHO_T}no" >&6 |
| 11784 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11785 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11786 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 11787 | # 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] | 11788 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11789 | for ac_func in dlopen |
| 11790 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11791 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11792 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11793 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11794 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11796 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11797 | cat >conftest.$ac_ext <<_ACEOF |
| 11798 | #line $LINENO "configure" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11799 | #include "confdefs.h" |
| 11800 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11801 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11802 | #include <assert.h> |
| 11803 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11804 | #ifdef __cplusplus |
| 11805 | extern "C" |
| 11806 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11807 | /* 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] | 11808 | builtin and then its argument prototype would still apply. */ |
| 11809 | char $ac_func (); |
| 11810 | char (*f) (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11811 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11812 | #ifdef F77_DUMMY_MAIN |
| 11813 | # ifdef __cplusplus |
| 11814 | extern "C" |
| 11815 | # endif |
| 11816 | int F77_DUMMY_MAIN() { return 1; } |
| 11817 | #endif |
| 11818 | int |
| 11819 | main () |
| 11820 | { |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11821 | /* The GNU C library defines this for functions which it implements |
| 11822 | to always fail with ENOSYS. Some functions are actually named |
| 11823 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11824 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11825 | choke me |
| 11826 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11827 | f = $ac_func; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11828 | #endif |
| 11829 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11830 | ; |
| 11831 | return 0; |
| 11832 | } |
| 11833 | _ACEOF |
| 11834 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11835 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11836 | (eval $ac_link) 2>&5 |
| 11837 | ac_status=$? |
| 11838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11839 | (exit $ac_status); } && |
| 11840 | { ac_try='test -s conftest$ac_exeext' |
| 11841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11842 | (eval $ac_try) 2>&5 |
| 11843 | ac_status=$? |
| 11844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11845 | (exit $ac_status); }; }; then |
| 11846 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11847 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11848 | echo "$as_me: failed program was:" >&5 |
| 11849 | cat conftest.$ac_ext >&5 |
| 11850 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11851 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11852 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11853 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11854 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11855 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11856 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11857 | cat >>confdefs.h <<_ACEOF |
| 11858 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11859 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11860 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11861 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11862 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11863 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11864 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11865 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 11866 | # loading of modules. |
| 11867 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11868 | echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 11869 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11870 | if test -z "$DYNLOADFILE" |
| 11871 | then |
| 11872 | case $ac_sys_system/$ac_sys_release in |
| 11873 | AIX*) DYNLOADFILE="dynload_aix.o";; |
| 11874 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 11875 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11876 | Darwin/*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11877 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11878 | *) |
| 11879 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 11880 | # out any dynamic loading |
| 11881 | if test "$ac_cv_func_dlopen" = yes |
| 11882 | then DYNLOADFILE="dynload_shlib.o" |
| 11883 | else DYNLOADFILE="dynload_stub.o" |
| 11884 | fi |
| 11885 | ;; |
| 11886 | esac |
| 11887 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11888 | echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 11889 | echo "${ECHO_T}$DYNLOADFILE" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11890 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 11891 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11892 | |
| 11893 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11894 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11895 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11896 | |
| 11897 | fi |
| 11898 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11899 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 11900 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11901 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11902 | echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 11903 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11904 | if test -z "$MACHDEP_OBJS" |
| 11905 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11906 | MACHDEP_OBJS=$extra_machdep_objs |
| 11907 | else |
| 11908 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11909 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11910 | echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 11911 | echo "${ECHO_T}MACHDEP_OBJS" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11912 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11913 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | |
| 11960 | |
| 11961 | |
| 11962 | |
| 11963 | |
| 11964 | |
| 11965 | |
| 11966 | |
| 11967 | |
| 11968 | |
| 11969 | |
| 11970 | |
| 11971 | |
| 11972 | |
| 11973 | |
| 11974 | |
| 11975 | |
| 11976 | |
| 11977 | |
| 11978 | |
| 11979 | |
| 11980 | |
| 11981 | |
| 11982 | |
| 11983 | |
| 11984 | |
| 11985 | |
| 11986 | |
Martin v. Löwis | 06a83e9 | 2002-04-14 10:19:44 +0000 | [diff] [blame] | 11987 | |
Fred Drake | 6b3cc52 | 2002-04-15 19:20:27 +0000 | [diff] [blame] | 11988 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11989 | for ac_func in alarm chown clock confstr ctermid ctermid_r execv \ |
Fred Drake | 6b3cc52 | 2002-04-15 19:20:27 +0000 | [diff] [blame] | 11990 | fchdir flock fork fsync fdatasync fpathconf ftime ftruncate \ |
Martin v. Löwis | 606edc1 | 2002-06-13 21:09:11 +0000 | [diff] [blame] | 11991 | gai_strerror getgroups getlogin getpeername getpgid getpid getpwent getwd \ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11992 | hstrerror inet_pton kill killpg lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 11993 | mremap nice pathconf pause plock poll pthread_init \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 11994 | putenv readlink \ |
Martin v. Löwis | 61c5edf | 2001-10-18 04:06:00 +0000 | [diff] [blame] | 11995 | select setegid seteuid setgid setgroups \ |
Martin v. Löwis | 791bfda | 2001-07-24 06:33:08 +0000 | [diff] [blame] | 11996 | setlocale setregid setreuid setsid setpgid setuid setvbuf snprintf \ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 11997 | sigaction siginterrupt sigrelse strftime strptime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 11998 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Martin v. Löwis | 6aa9fdb | 2002-09-10 09:16:13 +0000 | [diff] [blame] | 11999 | truncate uname unsetenv utimes waitpid _getpty getpriority |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12000 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12001 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12002 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12003 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12004 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12005 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12006 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12007 | cat >conftest.$ac_ext <<_ACEOF |
| 12008 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12009 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12010 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12011 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12012 | #include <assert.h> |
| 12013 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12014 | #ifdef __cplusplus |
| 12015 | extern "C" |
| 12016 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12017 | /* 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] | 12018 | builtin and then its argument prototype would still apply. */ |
| 12019 | char $ac_func (); |
| 12020 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12021 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12022 | #ifdef F77_DUMMY_MAIN |
| 12023 | # ifdef __cplusplus |
| 12024 | extern "C" |
| 12025 | # endif |
| 12026 | int F77_DUMMY_MAIN() { return 1; } |
| 12027 | #endif |
| 12028 | int |
| 12029 | main () |
| 12030 | { |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12031 | /* The GNU C library defines this for functions which it implements |
| 12032 | to always fail with ENOSYS. Some functions are actually named |
| 12033 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12034 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12035 | choke me |
| 12036 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12037 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12038 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12039 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12040 | ; |
| 12041 | return 0; |
| 12042 | } |
| 12043 | _ACEOF |
| 12044 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12045 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12046 | (eval $ac_link) 2>&5 |
| 12047 | ac_status=$? |
| 12048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12049 | (exit $ac_status); } && |
| 12050 | { ac_try='test -s conftest$ac_exeext' |
| 12051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12052 | (eval $ac_try) 2>&5 |
| 12053 | ac_status=$? |
| 12054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12055 | (exit $ac_status); }; }; then |
| 12056 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12057 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12058 | echo "$as_me: failed program was:" >&5 |
| 12059 | cat conftest.$ac_ext >&5 |
| 12060 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12061 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12062 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12063 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12064 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12065 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12066 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12067 | cat >>confdefs.h <<_ACEOF |
| 12068 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12069 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12070 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12071 | fi |
| 12072 | done |
| 12073 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12074 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12075 | # For some functions, having a definition is not sufficient, since |
| 12076 | # we want to take their address. |
| 12077 | echo "$as_me:$LINENO: checking for chroot" >&5 |
| 12078 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6 |
| 12079 | cat >conftest.$ac_ext <<_ACEOF |
| 12080 | #line $LINENO "configure" |
| 12081 | #include "confdefs.h" |
| 12082 | #include <unistd.h> |
| 12083 | #ifdef F77_DUMMY_MAIN |
| 12084 | # ifdef __cplusplus |
| 12085 | extern "C" |
| 12086 | # endif |
| 12087 | int F77_DUMMY_MAIN() { return 1; } |
| 12088 | #endif |
| 12089 | int |
| 12090 | main () |
| 12091 | { |
| 12092 | void *x=chroot |
| 12093 | ; |
| 12094 | return 0; |
| 12095 | } |
| 12096 | _ACEOF |
| 12097 | rm -f conftest.$ac_objext |
| 12098 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12099 | (eval $ac_compile) 2>&5 |
| 12100 | ac_status=$? |
| 12101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12102 | (exit $ac_status); } && |
| 12103 | { ac_try='test -s conftest.$ac_objext' |
| 12104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12105 | (eval $ac_try) 2>&5 |
| 12106 | ac_status=$? |
| 12107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12108 | (exit $ac_status); }; }; then |
| 12109 | |
| 12110 | cat >>confdefs.h <<\_ACEOF |
| 12111 | #define HAVE_CHROOT 1 |
| 12112 | _ACEOF |
| 12113 | |
| 12114 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12115 | echo "${ECHO_T}yes" >&6 |
| 12116 | else |
| 12117 | echo "$as_me: failed program was:" >&5 |
| 12118 | cat conftest.$ac_ext >&5 |
| 12119 | echo "$as_me:$LINENO: result: no" >&5 |
| 12120 | echo "${ECHO_T}no" >&6 |
| 12121 | |
| 12122 | fi |
| 12123 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12124 | echo "$as_me:$LINENO: checking for link" >&5 |
| 12125 | echo $ECHO_N "checking for link... $ECHO_C" >&6 |
| 12126 | cat >conftest.$ac_ext <<_ACEOF |
| 12127 | #line $LINENO "configure" |
| 12128 | #include "confdefs.h" |
| 12129 | #include <unistd.h> |
| 12130 | #ifdef F77_DUMMY_MAIN |
| 12131 | # ifdef __cplusplus |
| 12132 | extern "C" |
| 12133 | # endif |
| 12134 | int F77_DUMMY_MAIN() { return 1; } |
| 12135 | #endif |
| 12136 | int |
| 12137 | main () |
| 12138 | { |
| 12139 | void *x=link |
| 12140 | ; |
| 12141 | return 0; |
| 12142 | } |
| 12143 | _ACEOF |
| 12144 | rm -f conftest.$ac_objext |
| 12145 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12146 | (eval $ac_compile) 2>&5 |
| 12147 | ac_status=$? |
| 12148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12149 | (exit $ac_status); } && |
| 12150 | { ac_try='test -s conftest.$ac_objext' |
| 12151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12152 | (eval $ac_try) 2>&5 |
| 12153 | ac_status=$? |
| 12154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12155 | (exit $ac_status); }; }; then |
| 12156 | |
| 12157 | cat >>confdefs.h <<\_ACEOF |
| 12158 | #define HAVE_LINK 1 |
| 12159 | _ACEOF |
| 12160 | |
| 12161 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12162 | echo "${ECHO_T}yes" >&6 |
| 12163 | else |
| 12164 | echo "$as_me: failed program was:" >&5 |
| 12165 | cat conftest.$ac_ext >&5 |
| 12166 | echo "$as_me:$LINENO: result: no" >&5 |
| 12167 | echo "${ECHO_T}no" >&6 |
| 12168 | |
| 12169 | fi |
| 12170 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12171 | echo "$as_me:$LINENO: checking for symlink" >&5 |
| 12172 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6 |
| 12173 | cat >conftest.$ac_ext <<_ACEOF |
| 12174 | #line $LINENO "configure" |
| 12175 | #include "confdefs.h" |
| 12176 | #include <unistd.h> |
| 12177 | #ifdef F77_DUMMY_MAIN |
| 12178 | # ifdef __cplusplus |
| 12179 | extern "C" |
| 12180 | # endif |
| 12181 | int F77_DUMMY_MAIN() { return 1; } |
| 12182 | #endif |
| 12183 | int |
| 12184 | main () |
| 12185 | { |
| 12186 | void *x=symlink |
| 12187 | ; |
| 12188 | return 0; |
| 12189 | } |
| 12190 | _ACEOF |
| 12191 | rm -f conftest.$ac_objext |
| 12192 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12193 | (eval $ac_compile) 2>&5 |
| 12194 | ac_status=$? |
| 12195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12196 | (exit $ac_status); } && |
| 12197 | { ac_try='test -s conftest.$ac_objext' |
| 12198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12199 | (eval $ac_try) 2>&5 |
| 12200 | ac_status=$? |
| 12201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12202 | (exit $ac_status); }; }; then |
| 12203 | |
| 12204 | cat >>confdefs.h <<\_ACEOF |
| 12205 | #define HAVE_SYMLINK 1 |
| 12206 | _ACEOF |
| 12207 | |
| 12208 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12209 | echo "${ECHO_T}yes" >&6 |
| 12210 | else |
| 12211 | echo "$as_me: failed program was:" >&5 |
| 12212 | cat conftest.$ac_ext >&5 |
| 12213 | echo "$as_me:$LINENO: result: no" >&5 |
| 12214 | echo "${ECHO_T}no" >&6 |
| 12215 | |
| 12216 | fi |
| 12217 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12218 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12219 | # check for openpty and forkpty |
| 12220 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12221 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12222 | for ac_func in openpty |
| 12223 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12224 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12225 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12226 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12227 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12229 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12230 | cat >conftest.$ac_ext <<_ACEOF |
| 12231 | #line $LINENO "configure" |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12232 | #include "confdefs.h" |
| 12233 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12234 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12235 | #include <assert.h> |
| 12236 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12237 | #ifdef __cplusplus |
| 12238 | extern "C" |
| 12239 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12240 | /* 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] | 12241 | builtin and then its argument prototype would still apply. */ |
| 12242 | char $ac_func (); |
| 12243 | char (*f) (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12244 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12245 | #ifdef F77_DUMMY_MAIN |
| 12246 | # ifdef __cplusplus |
| 12247 | extern "C" |
| 12248 | # endif |
| 12249 | int F77_DUMMY_MAIN() { return 1; } |
| 12250 | #endif |
| 12251 | int |
| 12252 | main () |
| 12253 | { |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12254 | /* The GNU C library defines this for functions which it implements |
| 12255 | to always fail with ENOSYS. Some functions are actually named |
| 12256 | something starting with __ and the normal name is an alias. */ |
| 12257 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12258 | choke me |
| 12259 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12260 | f = $ac_func; |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12261 | #endif |
| 12262 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12263 | ; |
| 12264 | return 0; |
| 12265 | } |
| 12266 | _ACEOF |
| 12267 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12268 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12269 | (eval $ac_link) 2>&5 |
| 12270 | ac_status=$? |
| 12271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12272 | (exit $ac_status); } && |
| 12273 | { ac_try='test -s conftest$ac_exeext' |
| 12274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12275 | (eval $ac_try) 2>&5 |
| 12276 | ac_status=$? |
| 12277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12278 | (exit $ac_status); }; }; then |
| 12279 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12280 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12281 | echo "$as_me: failed program was:" >&5 |
| 12282 | cat conftest.$ac_ext >&5 |
| 12283 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12284 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12285 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12286 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12287 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12288 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12289 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12290 | cat >>confdefs.h <<_ACEOF |
| 12291 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12292 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12293 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12294 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12295 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 12296 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
| 12297 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 12298 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12299 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12300 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12301 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12302 | cat >conftest.$ac_ext <<_ACEOF |
| 12303 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12304 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12305 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12306 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12307 | #ifdef __cplusplus |
| 12308 | extern "C" |
| 12309 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12310 | /* 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] | 12311 | builtin and then its argument prototype would still apply. */ |
| 12312 | char openpty (); |
| 12313 | #ifdef F77_DUMMY_MAIN |
| 12314 | # ifdef __cplusplus |
| 12315 | extern "C" |
| 12316 | # endif |
| 12317 | int F77_DUMMY_MAIN() { return 1; } |
| 12318 | #endif |
| 12319 | int |
| 12320 | main () |
| 12321 | { |
| 12322 | openpty (); |
| 12323 | ; |
| 12324 | return 0; |
| 12325 | } |
| 12326 | _ACEOF |
| 12327 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12328 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12329 | (eval $ac_link) 2>&5 |
| 12330 | ac_status=$? |
| 12331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12332 | (exit $ac_status); } && |
| 12333 | { ac_try='test -s conftest$ac_exeext' |
| 12334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12335 | (eval $ac_try) 2>&5 |
| 12336 | ac_status=$? |
| 12337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12338 | (exit $ac_status); }; }; then |
| 12339 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12340 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12341 | echo "$as_me: failed program was:" >&5 |
| 12342 | cat conftest.$ac_ext >&5 |
| 12343 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12344 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12345 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12346 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12347 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12348 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 12349 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
| 12350 | if test $ac_cv_lib_util_openpty = yes; then |
| 12351 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12352 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12353 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12354 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12355 | fi |
| 12356 | |
| 12357 | fi |
| 12358 | done |
| 12359 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12360 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12361 | for ac_func in forkpty |
| 12362 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12363 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12364 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12365 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12366 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12367 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12368 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12369 | cat >conftest.$ac_ext <<_ACEOF |
| 12370 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12371 | #include "confdefs.h" |
| 12372 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12373 | which can conflict with char $ac_func (); below. */ |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12374 | #include <assert.h> |
| 12375 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12376 | #ifdef __cplusplus |
| 12377 | extern "C" |
| 12378 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12379 | /* 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] | 12380 | builtin and then its argument prototype would still apply. */ |
| 12381 | char $ac_func (); |
| 12382 | char (*f) (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12383 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12384 | #ifdef F77_DUMMY_MAIN |
| 12385 | # ifdef __cplusplus |
| 12386 | extern "C" |
| 12387 | # endif |
| 12388 | int F77_DUMMY_MAIN() { return 1; } |
| 12389 | #endif |
| 12390 | int |
| 12391 | main () |
| 12392 | { |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12393 | /* The GNU C library defines this for functions which it implements |
| 12394 | to always fail with ENOSYS. Some functions are actually named |
| 12395 | something starting with __ and the normal name is an alias. */ |
| 12396 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12397 | choke me |
| 12398 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12399 | f = $ac_func; |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12400 | #endif |
| 12401 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12402 | ; |
| 12403 | return 0; |
| 12404 | } |
| 12405 | _ACEOF |
| 12406 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12407 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12408 | (eval $ac_link) 2>&5 |
| 12409 | ac_status=$? |
| 12410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12411 | (exit $ac_status); } && |
| 12412 | { ac_try='test -s conftest$ac_exeext' |
| 12413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12414 | (eval $ac_try) 2>&5 |
| 12415 | ac_status=$? |
| 12416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12417 | (exit $ac_status); }; }; then |
| 12418 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12419 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12420 | echo "$as_me: failed program was:" >&5 |
| 12421 | cat conftest.$ac_ext >&5 |
| 12422 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12423 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12424 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12425 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12426 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12427 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12428 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12429 | cat >>confdefs.h <<_ACEOF |
| 12430 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12431 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12432 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12433 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12434 | echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 12435 | echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6 |
| 12436 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 12437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12438 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12439 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12440 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12441 | cat >conftest.$ac_ext <<_ACEOF |
| 12442 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12443 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12444 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12445 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12446 | #ifdef __cplusplus |
| 12447 | extern "C" |
| 12448 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12449 | /* 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] | 12450 | builtin and then its argument prototype would still apply. */ |
| 12451 | char forkpty (); |
| 12452 | #ifdef F77_DUMMY_MAIN |
| 12453 | # ifdef __cplusplus |
| 12454 | extern "C" |
| 12455 | # endif |
| 12456 | int F77_DUMMY_MAIN() { return 1; } |
| 12457 | #endif |
| 12458 | int |
| 12459 | main () |
| 12460 | { |
| 12461 | forkpty (); |
| 12462 | ; |
| 12463 | return 0; |
| 12464 | } |
| 12465 | _ACEOF |
| 12466 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12467 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12468 | (eval $ac_link) 2>&5 |
| 12469 | ac_status=$? |
| 12470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12471 | (exit $ac_status); } && |
| 12472 | { ac_try='test -s conftest$ac_exeext' |
| 12473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12474 | (eval $ac_try) 2>&5 |
| 12475 | ac_status=$? |
| 12476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12477 | (exit $ac_status); }; }; then |
| 12478 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12479 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12480 | echo "$as_me: failed program was:" >&5 |
| 12481 | cat conftest.$ac_ext >&5 |
| 12482 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12483 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12484 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12485 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12486 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12487 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 12488 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6 |
| 12489 | if test $ac_cv_lib_util_forkpty = yes; then |
| 12490 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12491 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12492 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12493 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12494 | fi |
| 12495 | |
| 12496 | fi |
| 12497 | done |
| 12498 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12499 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12500 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12501 | |
| 12502 | |
| 12503 | |
| 12504 | |
| 12505 | |
| 12506 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12507 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 12508 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12509 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12510 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12511 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12512 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12513 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12514 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12515 | cat >conftest.$ac_ext <<_ACEOF |
| 12516 | #line $LINENO "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12517 | #include "confdefs.h" |
| 12518 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12519 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12520 | #include <assert.h> |
| 12521 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12522 | #ifdef __cplusplus |
| 12523 | extern "C" |
| 12524 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12525 | /* 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] | 12526 | builtin and then its argument prototype would still apply. */ |
| 12527 | char $ac_func (); |
| 12528 | char (*f) (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12529 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12530 | #ifdef F77_DUMMY_MAIN |
| 12531 | # ifdef __cplusplus |
| 12532 | extern "C" |
| 12533 | # endif |
| 12534 | int F77_DUMMY_MAIN() { return 1; } |
| 12535 | #endif |
| 12536 | int |
| 12537 | main () |
| 12538 | { |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12539 | /* The GNU C library defines this for functions which it implements |
| 12540 | to always fail with ENOSYS. Some functions are actually named |
| 12541 | something starting with __ and the normal name is an alias. */ |
| 12542 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12543 | choke me |
| 12544 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12545 | f = $ac_func; |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12546 | #endif |
| 12547 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12548 | ; |
| 12549 | return 0; |
| 12550 | } |
| 12551 | _ACEOF |
| 12552 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12553 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12554 | (eval $ac_link) 2>&5 |
| 12555 | ac_status=$? |
| 12556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12557 | (exit $ac_status); } && |
| 12558 | { ac_try='test -s conftest$ac_exeext' |
| 12559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12560 | (eval $ac_try) 2>&5 |
| 12561 | ac_status=$? |
| 12562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12563 | (exit $ac_status); }; }; then |
| 12564 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12565 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12566 | echo "$as_me: failed program was:" >&5 |
| 12567 | cat conftest.$ac_ext >&5 |
| 12568 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12569 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12570 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12571 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12572 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12573 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12574 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12575 | cat >>confdefs.h <<_ACEOF |
| 12576 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12577 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12578 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12579 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12580 | done |
| 12581 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12582 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12583 | |
| 12584 | |
| 12585 | |
| 12586 | |
| 12587 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12588 | for ac_func in dup2 getcwd strdup strerror memmove |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12589 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12590 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12591 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12592 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12593 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12595 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12596 | cat >conftest.$ac_ext <<_ACEOF |
| 12597 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12598 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12599 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12600 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12601 | #include <assert.h> |
| 12602 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12603 | #ifdef __cplusplus |
| 12604 | extern "C" |
| 12605 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12606 | /* 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] | 12607 | builtin and then its argument prototype would still apply. */ |
| 12608 | char $ac_func (); |
| 12609 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12610 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12611 | #ifdef F77_DUMMY_MAIN |
| 12612 | # ifdef __cplusplus |
| 12613 | extern "C" |
| 12614 | # endif |
| 12615 | int F77_DUMMY_MAIN() { return 1; } |
| 12616 | #endif |
| 12617 | int |
| 12618 | main () |
| 12619 | { |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12620 | /* The GNU C library defines this for functions which it implements |
| 12621 | to always fail with ENOSYS. Some functions are actually named |
| 12622 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12623 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12624 | choke me |
| 12625 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12626 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12627 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12628 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12629 | ; |
| 12630 | return 0; |
| 12631 | } |
| 12632 | _ACEOF |
| 12633 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12634 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12635 | (eval $ac_link) 2>&5 |
| 12636 | ac_status=$? |
| 12637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12638 | (exit $ac_status); } && |
| 12639 | { ac_try='test -s conftest$ac_exeext' |
| 12640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12641 | (eval $ac_try) 2>&5 |
| 12642 | ac_status=$? |
| 12643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12644 | (exit $ac_status); }; }; then |
| 12645 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12646 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12647 | echo "$as_me: failed program was:" >&5 |
| 12648 | cat conftest.$ac_ext >&5 |
| 12649 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12650 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12651 | 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] | 12652 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12653 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12654 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12655 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12656 | cat >>confdefs.h <<_ACEOF |
| 12657 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12658 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12659 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12660 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12661 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12662 | fi |
| 12663 | done |
| 12664 | |
| 12665 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12666 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12667 | for ac_func in getpgrp |
| 12668 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12669 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12670 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12671 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12672 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12674 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12675 | cat >conftest.$ac_ext <<_ACEOF |
| 12676 | #line $LINENO "configure" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12677 | #include "confdefs.h" |
| 12678 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12679 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12680 | #include <assert.h> |
| 12681 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12682 | #ifdef __cplusplus |
| 12683 | extern "C" |
| 12684 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12685 | /* 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] | 12686 | builtin and then its argument prototype would still apply. */ |
| 12687 | char $ac_func (); |
| 12688 | char (*f) (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12689 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12690 | #ifdef F77_DUMMY_MAIN |
| 12691 | # ifdef __cplusplus |
| 12692 | extern "C" |
| 12693 | # endif |
| 12694 | int F77_DUMMY_MAIN() { return 1; } |
| 12695 | #endif |
| 12696 | int |
| 12697 | main () |
| 12698 | { |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12699 | /* The GNU C library defines this for functions which it implements |
| 12700 | to always fail with ENOSYS. Some functions are actually named |
| 12701 | something starting with __ and the normal name is an alias. */ |
| 12702 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12703 | choke me |
| 12704 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12705 | f = $ac_func; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12706 | #endif |
| 12707 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12708 | ; |
| 12709 | return 0; |
| 12710 | } |
| 12711 | _ACEOF |
| 12712 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12713 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12714 | (eval $ac_link) 2>&5 |
| 12715 | ac_status=$? |
| 12716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12717 | (exit $ac_status); } && |
| 12718 | { ac_try='test -s conftest$ac_exeext' |
| 12719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12720 | (eval $ac_try) 2>&5 |
| 12721 | ac_status=$? |
| 12722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12723 | (exit $ac_status); }; }; then |
| 12724 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12725 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12726 | echo "$as_me: failed program was:" >&5 |
| 12727 | cat conftest.$ac_ext >&5 |
| 12728 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12729 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12730 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12731 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12732 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12733 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12734 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12735 | cat >>confdefs.h <<_ACEOF |
| 12736 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12737 | _ACEOF |
| 12738 | cat >conftest.$ac_ext <<_ACEOF |
| 12739 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12740 | #include "confdefs.h" |
| 12741 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12742 | #ifdef F77_DUMMY_MAIN |
| 12743 | # ifdef __cplusplus |
| 12744 | extern "C" |
| 12745 | # endif |
| 12746 | int F77_DUMMY_MAIN() { return 1; } |
| 12747 | #endif |
| 12748 | int |
| 12749 | main () |
| 12750 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12751 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12752 | ; |
| 12753 | return 0; |
| 12754 | } |
| 12755 | _ACEOF |
| 12756 | rm -f conftest.$ac_objext |
| 12757 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12758 | (eval $ac_compile) 2>&5 |
| 12759 | ac_status=$? |
| 12760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12761 | (exit $ac_status); } && |
| 12762 | { ac_try='test -s conftest.$ac_objext' |
| 12763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12764 | (eval $ac_try) 2>&5 |
| 12765 | ac_status=$? |
| 12766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12767 | (exit $ac_status); }; }; then |
| 12768 | |
| 12769 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12770 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12771 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12772 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12773 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 12774 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12775 | echo "$as_me: failed program was:" >&5 |
| 12776 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12777 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12778 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12779 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12780 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12781 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12782 | |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12783 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
| 12784 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 |
| 12785 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12786 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12787 | else |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12788 | if test "$cross_compiling" = yes; then |
| 12789 | { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 |
| 12790 | echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} |
| 12791 | { (exit 1); exit 1; }; } |
| 12792 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12793 | cat >conftest.$ac_ext <<_ACEOF |
| 12794 | #line $LINENO "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12795 | #include "confdefs.h" |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12796 | #if HAVE_UNISTD_H |
| 12797 | # include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12798 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12799 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12800 | #ifdef F77_DUMMY_MAIN |
| 12801 | # ifdef __cplusplus |
| 12802 | extern "C" |
| 12803 | # endif |
| 12804 | int F77_DUMMY_MAIN() { return 1; } |
| 12805 | #endif |
| 12806 | int |
| 12807 | main () |
| 12808 | { |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12809 | /* If this system has a BSD-style setpgrp which takes arguments, |
| 12810 | setpgrp(1, 1) will fail with ESRCH and return -1, in that case |
| 12811 | exit successfully. */ |
| 12812 | exit (setpgrp (1,1) == -1 ? 0 : 1); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12813 | ; |
| 12814 | return 0; |
| 12815 | } |
| 12816 | _ACEOF |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12817 | rm -f conftest$ac_exeext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12818 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12819 | (eval $ac_link) 2>&5 |
| 12820 | ac_status=$? |
| 12821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12822 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12824 | (eval $ac_try) 2>&5 |
| 12825 | ac_status=$? |
| 12826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12827 | (exit $ac_status); }; }; then |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12828 | ac_cv_func_setpgrp_void=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12829 | else |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12830 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12831 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12832 | cat conftest.$ac_ext >&5 |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12833 | ( exit $ac_status ) |
| 12834 | ac_cv_func_setpgrp_void=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12835 | fi |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12836 | 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] | 12837 | fi |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12838 | fi |
| 12839 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
| 12840 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 |
| 12841 | if test $ac_cv_func_setpgrp_void = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12842 | |
| 12843 | cat >>confdefs.h <<\_ACEOF |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12844 | #define SETPGRP_VOID 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12845 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12846 | |
| 12847 | fi |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12848 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12849 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12850 | for ac_func in gettimeofday |
| 12851 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12852 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12853 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12854 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12855 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12857 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12858 | cat >conftest.$ac_ext <<_ACEOF |
| 12859 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12860 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12861 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12862 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12863 | #include <assert.h> |
| 12864 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12865 | #ifdef __cplusplus |
| 12866 | extern "C" |
| 12867 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12868 | /* 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] | 12869 | builtin and then its argument prototype would still apply. */ |
| 12870 | char $ac_func (); |
| 12871 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12872 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12873 | #ifdef F77_DUMMY_MAIN |
| 12874 | # ifdef __cplusplus |
| 12875 | extern "C" |
| 12876 | # endif |
| 12877 | int F77_DUMMY_MAIN() { return 1; } |
| 12878 | #endif |
| 12879 | int |
| 12880 | main () |
| 12881 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12882 | /* The GNU C library defines this for functions which it implements |
| 12883 | to always fail with ENOSYS. Some functions are actually named |
| 12884 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12885 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12886 | choke me |
| 12887 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12888 | f = $ac_func; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12889 | #endif |
| 12890 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12891 | ; |
| 12892 | return 0; |
| 12893 | } |
| 12894 | _ACEOF |
| 12895 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12896 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12897 | (eval $ac_link) 2>&5 |
| 12898 | ac_status=$? |
| 12899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12900 | (exit $ac_status); } && |
| 12901 | { ac_try='test -s conftest$ac_exeext' |
| 12902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12903 | (eval $ac_try) 2>&5 |
| 12904 | ac_status=$? |
| 12905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12906 | (exit $ac_status); }; }; then |
| 12907 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12908 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12909 | echo "$as_me: failed program was:" >&5 |
| 12910 | cat conftest.$ac_ext >&5 |
| 12911 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12912 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12913 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12914 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12915 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12916 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12917 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12918 | cat >>confdefs.h <<_ACEOF |
| 12919 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12920 | _ACEOF |
| 12921 | cat >conftest.$ac_ext <<_ACEOF |
| 12922 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12923 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12924 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12925 | #ifdef F77_DUMMY_MAIN |
| 12926 | # ifdef __cplusplus |
| 12927 | extern "C" |
| 12928 | # endif |
| 12929 | int F77_DUMMY_MAIN() { return 1; } |
| 12930 | #endif |
| 12931 | int |
| 12932 | main () |
| 12933 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12934 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12935 | ; |
| 12936 | return 0; |
| 12937 | } |
| 12938 | _ACEOF |
| 12939 | rm -f conftest.$ac_objext |
| 12940 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12941 | (eval $ac_compile) 2>&5 |
| 12942 | ac_status=$? |
| 12943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12944 | (exit $ac_status); } && |
| 12945 | { ac_try='test -s conftest.$ac_objext' |
| 12946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12947 | (eval $ac_try) 2>&5 |
| 12948 | ac_status=$? |
| 12949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12950 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12951 | : |
| 12952 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12953 | echo "$as_me: failed program was:" >&5 |
| 12954 | cat conftest.$ac_ext >&5 |
| 12955 | |
| 12956 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12957 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12958 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12959 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12960 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12961 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12962 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12963 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12964 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12965 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12966 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12967 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 12968 | echo "$as_me:$LINENO: checking for major" >&5 |
| 12969 | echo $ECHO_N "checking for major... $ECHO_C" >&6 |
| 12970 | cat >conftest.$ac_ext <<_ACEOF |
| 12971 | #line $LINENO "configure" |
| 12972 | #include "confdefs.h" |
| 12973 | |
| 12974 | #if defined(MAJOR_IN_MKDEV) |
| 12975 | #include <sys/mkdev.h> |
| 12976 | #elif defined(MAJOR_IN_SYSMACROS) |
| 12977 | #include <sys/sysmacros.h> |
| 12978 | #else |
| 12979 | #include <sys/types.h> |
| 12980 | #endif |
| 12981 | |
| 12982 | #ifdef F77_DUMMY_MAIN |
| 12983 | # ifdef __cplusplus |
| 12984 | extern "C" |
| 12985 | # endif |
| 12986 | int F77_DUMMY_MAIN() { return 1; } |
| 12987 | #endif |
| 12988 | int |
| 12989 | main () |
| 12990 | { |
| 12991 | |
| 12992 | makedev(major(0),minor(0)); |
| 12993 | |
| 12994 | ; |
| 12995 | return 0; |
| 12996 | } |
| 12997 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 12998 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12999 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13000 | (eval $ac_link) 2>&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13001 | ac_status=$? |
| 13002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13003 | (exit $ac_status); } && |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 13004 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13006 | (eval $ac_try) 2>&5 |
| 13007 | ac_status=$? |
| 13008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13009 | (exit $ac_status); }; }; then |
| 13010 | |
| 13011 | |
| 13012 | cat >>confdefs.h <<\_ACEOF |
| 13013 | #define HAVE_DEVICE_MACROS 1 |
| 13014 | _ACEOF |
| 13015 | |
| 13016 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13017 | echo "${ECHO_T}yes" >&6 |
| 13018 | |
| 13019 | else |
| 13020 | echo "$as_me: failed program was:" >&5 |
| 13021 | cat conftest.$ac_ext >&5 |
| 13022 | |
| 13023 | echo "$as_me:$LINENO: result: no" >&5 |
| 13024 | echo "${ECHO_T}no" >&6 |
| 13025 | |
| 13026 | fi |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 13027 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13028 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13029 | # 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] | 13030 | # for [no]getaddrinfo in netdb.h. |
| 13031 | echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 13032 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 |
| 13033 | cat >conftest.$ac_ext <<_ACEOF |
| 13034 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13035 | #include "confdefs.h" |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13036 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 13037 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13038 | #include <sys/socket.h> |
| 13039 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 13040 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13041 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13042 | #ifdef F77_DUMMY_MAIN |
| 13043 | # ifdef __cplusplus |
| 13044 | extern "C" |
| 13045 | # endif |
| 13046 | int F77_DUMMY_MAIN() { return 1; } |
| 13047 | #endif |
| 13048 | int |
| 13049 | main () |
| 13050 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13051 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13052 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13053 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13054 | ; |
| 13055 | return 0; |
| 13056 | } |
| 13057 | _ACEOF |
| 13058 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13059 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13060 | (eval $ac_link) 2>&5 |
| 13061 | ac_status=$? |
| 13062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13063 | (exit $ac_status); } && |
| 13064 | { ac_try='test -s conftest$ac_exeext' |
| 13065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13066 | (eval $ac_try) 2>&5 |
| 13067 | ac_status=$? |
| 13068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13069 | (exit $ac_status); }; }; then |
| 13070 | |
| 13071 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13072 | echo "${ECHO_T}yes" >&6 |
| 13073 | echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 13074 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13075 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13076 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 13077 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13078 | buggygetaddrinfo=yes |
| 13079 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13080 | cat >conftest.$ac_ext <<_ACEOF |
| 13081 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13082 | #include "confdefs.h" |
| 13083 | |
| 13084 | #include <sys/types.h> |
| 13085 | #include <netdb.h> |
| 13086 | #include <string.h> |
| 13087 | #include <sys/socket.h> |
| 13088 | #include <netinet/in.h> |
| 13089 | |
| 13090 | main() |
| 13091 | { |
| 13092 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 13093 | struct addrinfo hints, *ai, *aitop; |
| 13094 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 13095 | |
| 13096 | for (passive = 0; passive <= 1; passive++) { |
| 13097 | memset(&hints, 0, sizeof(hints)); |
| 13098 | hints.ai_family = AF_UNSPEC; |
| 13099 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 13100 | hints.ai_socktype = SOCK_STREAM; |
| 13101 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 13102 | (void)gai_strerror(gaierr); |
| 13103 | goto bad; |
| 13104 | } |
| 13105 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 13106 | if (ai->ai_addr == NULL || |
| 13107 | ai->ai_addrlen == 0 || |
| 13108 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 13109 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 13110 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 13111 | goto bad; |
| 13112 | } |
| 13113 | switch (ai->ai_family) { |
| 13114 | case AF_INET: |
| 13115 | if (strcmp(strport, "54321") != 0) { |
| 13116 | goto bad; |
| 13117 | } |
| 13118 | if (passive) { |
| 13119 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 13120 | goto bad; |
| 13121 | } |
| 13122 | } else { |
| 13123 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 13124 | goto bad; |
| 13125 | } |
| 13126 | } |
| 13127 | inet4++; |
| 13128 | break; |
| 13129 | case AF_INET6: |
| 13130 | if (strcmp(strport, "54321") != 0) { |
| 13131 | goto bad; |
| 13132 | } |
| 13133 | if (passive) { |
| 13134 | if (strcmp(straddr, "::") != 0) { |
| 13135 | goto bad; |
| 13136 | } |
| 13137 | } else { |
| 13138 | if (strcmp(straddr, "::1") != 0) { |
| 13139 | goto bad; |
| 13140 | } |
| 13141 | } |
| 13142 | inet6++; |
| 13143 | break; |
| 13144 | case AF_UNSPEC: |
| 13145 | goto bad; |
| 13146 | break; |
| 13147 | default: |
| 13148 | /* another family support? */ |
| 13149 | break; |
| 13150 | } |
| 13151 | } |
| 13152 | } |
| 13153 | |
| 13154 | if (!(inet4 == 0 || inet4 == 2)) |
| 13155 | goto bad; |
| 13156 | if (!(inet6 == 0 || inet6 == 2)) |
| 13157 | goto bad; |
| 13158 | |
| 13159 | if (aitop) |
| 13160 | freeaddrinfo(aitop); |
| 13161 | exit(0); |
| 13162 | |
| 13163 | bad: |
| 13164 | if (aitop) |
| 13165 | freeaddrinfo(aitop); |
| 13166 | exit(1); |
| 13167 | } |
| 13168 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13169 | _ACEOF |
| 13170 | rm -f conftest$ac_exeext |
| 13171 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13172 | (eval $ac_link) 2>&5 |
| 13173 | ac_status=$? |
| 13174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13175 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13177 | (eval $ac_try) 2>&5 |
| 13178 | ac_status=$? |
| 13179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13180 | (exit $ac_status); }; }; then |
| 13181 | echo "$as_me:$LINENO: result: good" >&5 |
| 13182 | echo "${ECHO_T}good" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13183 | buggygetaddrinfo=no |
| 13184 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13185 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13186 | echo "$as_me: failed program was:" >&5 |
| 13187 | cat conftest.$ac_ext >&5 |
| 13188 | ( exit $ac_status ) |
| 13189 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 13190 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13191 | buggygetaddrinfo=yes |
| 13192 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13193 | 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] | 13194 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13195 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13196 | echo "$as_me: failed program was:" >&5 |
| 13197 | cat conftest.$ac_ext >&5 |
| 13198 | |
| 13199 | echo "$as_me:$LINENO: result: no" >&5 |
| 13200 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13201 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13202 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13203 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13204 | 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] | 13205 | |
| 13206 | if test "$buggygetaddrinfo" = "yes"; then |
| 13207 | if test "$ipv6" = "yes"; then |
| 13208 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 13209 | echo ' or you can specify "--disable-ipv6"'. |
| 13210 | exit 1 |
| 13211 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13212 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13213 | |
| 13214 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13215 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13216 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13217 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13218 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13219 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 13220 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13221 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13222 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13223 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13224 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13225 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13226 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13227 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13228 | cat >conftest.$ac_ext <<_ACEOF |
| 13229 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13230 | #include "confdefs.h" |
| 13231 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13232 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13233 | #include <assert.h> |
| 13234 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13235 | #ifdef __cplusplus |
| 13236 | extern "C" |
| 13237 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13238 | /* 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] | 13239 | builtin and then its argument prototype would still apply. */ |
| 13240 | char $ac_func (); |
| 13241 | char (*f) (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13242 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13243 | #ifdef F77_DUMMY_MAIN |
| 13244 | # ifdef __cplusplus |
| 13245 | extern "C" |
| 13246 | # endif |
| 13247 | int F77_DUMMY_MAIN() { return 1; } |
| 13248 | #endif |
| 13249 | int |
| 13250 | main () |
| 13251 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13252 | /* The GNU C library defines this for functions which it implements |
| 13253 | to always fail with ENOSYS. Some functions are actually named |
| 13254 | something starting with __ and the normal name is an alias. */ |
| 13255 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13256 | choke me |
| 13257 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13258 | f = $ac_func; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13259 | #endif |
| 13260 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13261 | ; |
| 13262 | return 0; |
| 13263 | } |
| 13264 | _ACEOF |
| 13265 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13266 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13267 | (eval $ac_link) 2>&5 |
| 13268 | ac_status=$? |
| 13269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13270 | (exit $ac_status); } && |
| 13271 | { ac_try='test -s conftest$ac_exeext' |
| 13272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13273 | (eval $ac_try) 2>&5 |
| 13274 | ac_status=$? |
| 13275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13276 | (exit $ac_status); }; }; then |
| 13277 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13278 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13279 | echo "$as_me: failed program was:" >&5 |
| 13280 | cat conftest.$ac_ext >&5 |
| 13281 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13282 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13283 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13284 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13285 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13286 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13287 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13288 | cat >>confdefs.h <<_ACEOF |
| 13289 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13290 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13291 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13292 | fi |
| 13293 | done |
| 13294 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13295 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13296 | # checks for structures |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13297 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 13298 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 13299 | if test "${ac_cv_header_time+set}" = set; then |
| 13300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13301 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13302 | cat >conftest.$ac_ext <<_ACEOF |
| 13303 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13304 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13305 | #include <sys/types.h> |
| 13306 | #include <sys/time.h> |
| 13307 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13308 | |
| 13309 | #ifdef F77_DUMMY_MAIN |
| 13310 | # ifdef __cplusplus |
| 13311 | extern "C" |
| 13312 | # endif |
| 13313 | int F77_DUMMY_MAIN() { return 1; } |
| 13314 | #endif |
| 13315 | int |
| 13316 | main () |
| 13317 | { |
| 13318 | if ((struct tm *) 0) |
| 13319 | return 0; |
| 13320 | ; |
| 13321 | return 0; |
| 13322 | } |
| 13323 | _ACEOF |
| 13324 | rm -f conftest.$ac_objext |
| 13325 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13326 | (eval $ac_compile) 2>&5 |
| 13327 | ac_status=$? |
| 13328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13329 | (exit $ac_status); } && |
| 13330 | { ac_try='test -s conftest.$ac_objext' |
| 13331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13332 | (eval $ac_try) 2>&5 |
| 13333 | ac_status=$? |
| 13334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13335 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13336 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13337 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13338 | echo "$as_me: failed program was:" >&5 |
| 13339 | cat conftest.$ac_ext >&5 |
| 13340 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13341 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13342 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13343 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13344 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 13345 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13346 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13347 | |
| 13348 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13349 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13350 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13351 | |
| 13352 | fi |
| 13353 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13354 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 13355 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 13356 | if test "${ac_cv_struct_tm+set}" = set; then |
| 13357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13358 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13359 | cat >conftest.$ac_ext <<_ACEOF |
| 13360 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13361 | #include "confdefs.h" |
| 13362 | #include <sys/types.h> |
| 13363 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13364 | |
| 13365 | #ifdef F77_DUMMY_MAIN |
| 13366 | # ifdef __cplusplus |
| 13367 | extern "C" |
| 13368 | # endif |
| 13369 | int F77_DUMMY_MAIN() { return 1; } |
| 13370 | #endif |
| 13371 | int |
| 13372 | main () |
| 13373 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13374 | struct tm *tp; tp->tm_sec; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13375 | ; |
| 13376 | return 0; |
| 13377 | } |
| 13378 | _ACEOF |
| 13379 | rm -f conftest.$ac_objext |
| 13380 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13381 | (eval $ac_compile) 2>&5 |
| 13382 | ac_status=$? |
| 13383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13384 | (exit $ac_status); } && |
| 13385 | { ac_try='test -s conftest.$ac_objext' |
| 13386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13387 | (eval $ac_try) 2>&5 |
| 13388 | ac_status=$? |
| 13389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13390 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13391 | ac_cv_struct_tm=time.h |
| 13392 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13393 | echo "$as_me: failed program was:" >&5 |
| 13394 | cat conftest.$ac_ext >&5 |
| 13395 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13396 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13397 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13398 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13399 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 13400 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13401 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13402 | |
| 13403 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13404 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13405 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13406 | |
| 13407 | fi |
| 13408 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13409 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 13410 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 13411 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 13412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13413 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13414 | cat >conftest.$ac_ext <<_ACEOF |
| 13415 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13416 | #include "confdefs.h" |
| 13417 | #include <sys/types.h> |
| 13418 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13419 | |
| 13420 | |
| 13421 | #ifdef F77_DUMMY_MAIN |
| 13422 | # ifdef __cplusplus |
| 13423 | extern "C" |
| 13424 | # endif |
| 13425 | int F77_DUMMY_MAIN() { return 1; } |
| 13426 | #endif |
| 13427 | int |
| 13428 | main () |
| 13429 | { |
| 13430 | static struct tm ac_aggr; |
| 13431 | if (ac_aggr.tm_zone) |
| 13432 | return 0; |
| 13433 | ; |
| 13434 | return 0; |
| 13435 | } |
| 13436 | _ACEOF |
| 13437 | rm -f conftest.$ac_objext |
| 13438 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13439 | (eval $ac_compile) 2>&5 |
| 13440 | ac_status=$? |
| 13441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13442 | (exit $ac_status); } && |
| 13443 | { ac_try='test -s conftest.$ac_objext' |
| 13444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13445 | (eval $ac_try) 2>&5 |
| 13446 | ac_status=$? |
| 13447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13448 | (exit $ac_status); }; }; then |
| 13449 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13450 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13451 | echo "$as_me: failed program was:" >&5 |
| 13452 | cat conftest.$ac_ext >&5 |
| 13453 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13454 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13455 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13456 | fi |
| 13457 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 13458 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 13459 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 13460 | |
| 13461 | cat >>confdefs.h <<_ACEOF |
| 13462 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 13463 | _ACEOF |
| 13464 | |
| 13465 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13466 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13467 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13468 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 13469 | |
| 13470 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13471 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13472 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13473 | |
| 13474 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13475 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 13476 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 13477 | if test "${ac_cv_var_tzname+set}" = set; then |
| 13478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13479 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13480 | cat >conftest.$ac_ext <<_ACEOF |
| 13481 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13482 | #include "confdefs.h" |
| 13483 | #include <time.h> |
| 13484 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13485 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13486 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13487 | |
| 13488 | #ifdef F77_DUMMY_MAIN |
| 13489 | # ifdef __cplusplus |
| 13490 | extern "C" |
| 13491 | # endif |
| 13492 | int F77_DUMMY_MAIN() { return 1; } |
| 13493 | #endif |
| 13494 | int |
| 13495 | main () |
| 13496 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13497 | atoi(*tzname); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13498 | ; |
| 13499 | return 0; |
| 13500 | } |
| 13501 | _ACEOF |
| 13502 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13503 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13504 | (eval $ac_link) 2>&5 |
| 13505 | ac_status=$? |
| 13506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13507 | (exit $ac_status); } && |
| 13508 | { ac_try='test -s conftest$ac_exeext' |
| 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 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13514 | ac_cv_var_tzname=yes |
| 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_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +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_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +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_var_tzname" >&5 |
| 13523 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13524 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13525 | |
| 13526 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13527 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13528 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13529 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13530 | fi |
| 13531 | fi |
| 13532 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13533 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 13534 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 |
| 13535 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 13536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13537 | else |
| 13538 | cat >conftest.$ac_ext <<_ACEOF |
| 13539 | #line $LINENO "configure" |
| 13540 | #include "confdefs.h" |
| 13541 | $ac_includes_default |
| 13542 | #ifdef F77_DUMMY_MAIN |
| 13543 | # ifdef __cplusplus |
| 13544 | extern "C" |
| 13545 | # endif |
| 13546 | int F77_DUMMY_MAIN() { return 1; } |
| 13547 | #endif |
| 13548 | int |
| 13549 | main () |
| 13550 | { |
| 13551 | static struct stat ac_aggr; |
| 13552 | if (ac_aggr.st_rdev) |
| 13553 | return 0; |
| 13554 | ; |
| 13555 | return 0; |
| 13556 | } |
| 13557 | _ACEOF |
| 13558 | rm -f conftest.$ac_objext |
| 13559 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13560 | (eval $ac_compile) 2>&5 |
| 13561 | ac_status=$? |
| 13562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13563 | (exit $ac_status); } && |
| 13564 | { ac_try='test -s conftest.$ac_objext' |
| 13565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13566 | (eval $ac_try) 2>&5 |
| 13567 | ac_status=$? |
| 13568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13569 | (exit $ac_status); }; }; then |
| 13570 | ac_cv_member_struct_stat_st_rdev=yes |
| 13571 | else |
| 13572 | echo "$as_me: failed program was:" >&5 |
| 13573 | cat conftest.$ac_ext >&5 |
| 13574 | ac_cv_member_struct_stat_st_rdev=no |
| 13575 | fi |
| 13576 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13577 | fi |
| 13578 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 13579 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 |
| 13580 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 13581 | |
| 13582 | cat >>confdefs.h <<_ACEOF |
| 13583 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 13584 | _ACEOF |
| 13585 | |
| 13586 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13587 | fi |
| 13588 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13589 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 13590 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| 13591 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 13592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13593 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13594 | cat >conftest.$ac_ext <<_ACEOF |
| 13595 | #line $LINENO "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13596 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13597 | $ac_includes_default |
| 13598 | #ifdef F77_DUMMY_MAIN |
| 13599 | # ifdef __cplusplus |
| 13600 | extern "C" |
| 13601 | # endif |
| 13602 | int F77_DUMMY_MAIN() { return 1; } |
| 13603 | #endif |
| 13604 | int |
| 13605 | main () |
| 13606 | { |
| 13607 | static struct stat ac_aggr; |
| 13608 | if (ac_aggr.st_blksize) |
| 13609 | return 0; |
| 13610 | ; |
| 13611 | return 0; |
| 13612 | } |
| 13613 | _ACEOF |
| 13614 | rm -f conftest.$ac_objext |
| 13615 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13616 | (eval $ac_compile) 2>&5 |
| 13617 | ac_status=$? |
| 13618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13619 | (exit $ac_status); } && |
| 13620 | { ac_try='test -s conftest.$ac_objext' |
| 13621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13622 | (eval $ac_try) 2>&5 |
| 13623 | ac_status=$? |
| 13624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13625 | (exit $ac_status); }; }; then |
| 13626 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13627 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13628 | echo "$as_me: failed program was:" >&5 |
| 13629 | cat conftest.$ac_ext >&5 |
| 13630 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13631 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13632 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13633 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13634 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 13635 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| 13636 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13637 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13638 | cat >>confdefs.h <<_ACEOF |
| 13639 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 13640 | _ACEOF |
| 13641 | |
| 13642 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13643 | fi |
| 13644 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13645 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 13646 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 13647 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 13648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13649 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13650 | cat >conftest.$ac_ext <<_ACEOF |
| 13651 | #line $LINENO "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13652 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13653 | $ac_includes_default |
| 13654 | #ifdef F77_DUMMY_MAIN |
| 13655 | # ifdef __cplusplus |
| 13656 | extern "C" |
| 13657 | # endif |
| 13658 | int F77_DUMMY_MAIN() { return 1; } |
| 13659 | #endif |
| 13660 | int |
| 13661 | main () |
| 13662 | { |
| 13663 | static struct stat ac_aggr; |
| 13664 | if (ac_aggr.st_blocks) |
| 13665 | return 0; |
| 13666 | ; |
| 13667 | return 0; |
| 13668 | } |
| 13669 | _ACEOF |
| 13670 | rm -f conftest.$ac_objext |
| 13671 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13672 | (eval $ac_compile) 2>&5 |
| 13673 | ac_status=$? |
| 13674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13675 | (exit $ac_status); } && |
| 13676 | { ac_try='test -s conftest.$ac_objext' |
| 13677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13678 | (eval $ac_try) 2>&5 |
| 13679 | ac_status=$? |
| 13680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13681 | (exit $ac_status); }; }; then |
| 13682 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13683 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13684 | echo "$as_me: failed program was:" >&5 |
| 13685 | cat conftest.$ac_ext >&5 |
| 13686 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13687 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13688 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13689 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13690 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 13691 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 13692 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13693 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13694 | cat >>confdefs.h <<_ACEOF |
| 13695 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 13696 | _ACEOF |
| 13697 | |
| 13698 | |
| 13699 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13700 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13701 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13702 | |
| 13703 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13704 | LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13705 | fi |
| 13706 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13707 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13708 | |
| 13709 | echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 13710 | echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6 |
| 13711 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 13712 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13713 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13714 | cat >conftest.$ac_ext <<_ACEOF |
| 13715 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13716 | #include "confdefs.h" |
| 13717 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13718 | #ifdef F77_DUMMY_MAIN |
| 13719 | # ifdef __cplusplus |
| 13720 | extern "C" |
| 13721 | # endif |
| 13722 | int F77_DUMMY_MAIN() { return 1; } |
| 13723 | #endif |
| 13724 | int |
| 13725 | main () |
| 13726 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13727 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13728 | ; |
| 13729 | return 0; |
| 13730 | } |
| 13731 | _ACEOF |
| 13732 | rm -f conftest.$ac_objext |
| 13733 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13734 | (eval $ac_compile) 2>&5 |
| 13735 | ac_status=$? |
| 13736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13737 | (exit $ac_status); } && |
| 13738 | { ac_try='test -s conftest.$ac_objext' |
| 13739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13740 | (eval $ac_try) 2>&5 |
| 13741 | ac_status=$? |
| 13742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13743 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13744 | ac_cv_header_time_altzone=yes |
| 13745 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13746 | echo "$as_me: failed program was:" >&5 |
| 13747 | cat conftest.$ac_ext >&5 |
| 13748 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13749 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13750 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13751 | fi |
| 13752 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13753 | echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 13754 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13755 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13756 | |
| 13757 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13758 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13759 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13760 | |
| 13761 | fi |
| 13762 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13763 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13764 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 13765 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 13766 | cat >conftest.$ac_ext <<_ACEOF |
| 13767 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13768 | #include "confdefs.h" |
| 13769 | |
| 13770 | #include <sys/types.h> |
| 13771 | #include <sys/select.h> |
| 13772 | #include <sys/time.h> |
| 13773 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13774 | #ifdef F77_DUMMY_MAIN |
| 13775 | # ifdef __cplusplus |
| 13776 | extern "C" |
| 13777 | # endif |
| 13778 | int F77_DUMMY_MAIN() { return 1; } |
| 13779 | #endif |
| 13780 | int |
| 13781 | main () |
| 13782 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13783 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13784 | ; |
| 13785 | return 0; |
| 13786 | } |
| 13787 | _ACEOF |
| 13788 | rm -f conftest.$ac_objext |
| 13789 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13790 | (eval $ac_compile) 2>&5 |
| 13791 | ac_status=$? |
| 13792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13793 | (exit $ac_status); } && |
| 13794 | { ac_try='test -s conftest.$ac_objext' |
| 13795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13796 | (eval $ac_try) 2>&5 |
| 13797 | ac_status=$? |
| 13798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13799 | (exit $ac_status); }; }; then |
| 13800 | |
| 13801 | |
| 13802 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13803 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13804 | _ACEOF |
| 13805 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13806 | was_it_defined=yes |
| 13807 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13808 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13809 | echo "$as_me: failed program was:" >&5 |
| 13810 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13811 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13812 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13813 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 13814 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +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 addrinfo" >&5 |
| 13817 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6 |
| 13818 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 13819 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13820 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13821 | cat >conftest.$ac_ext <<_ACEOF |
| 13822 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13823 | #include "confdefs.h" |
| 13824 | |
| 13825 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13826 | #ifdef F77_DUMMY_MAIN |
| 13827 | # ifdef __cplusplus |
| 13828 | extern "C" |
| 13829 | # endif |
| 13830 | int F77_DUMMY_MAIN() { return 1; } |
| 13831 | #endif |
| 13832 | int |
| 13833 | main () |
| 13834 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13835 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13836 | ; |
| 13837 | return 0; |
| 13838 | } |
| 13839 | _ACEOF |
| 13840 | rm -f conftest.$ac_objext |
| 13841 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13842 | (eval $ac_compile) 2>&5 |
| 13843 | ac_status=$? |
| 13844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13845 | (exit $ac_status); } && |
| 13846 | { ac_try='test -s conftest.$ac_objext' |
| 13847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13848 | (eval $ac_try) 2>&5 |
| 13849 | ac_status=$? |
| 13850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13851 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13852 | ac_cv_struct_addrinfo=yes |
| 13853 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13854 | echo "$as_me: failed program was:" >&5 |
| 13855 | cat conftest.$ac_ext >&5 |
| 13856 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13857 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13858 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13859 | fi |
| 13860 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13861 | echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 13862 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13863 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13864 | |
| 13865 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13866 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13867 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13868 | |
| 13869 | fi |
| 13870 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13871 | echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 13872 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 |
| 13873 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 13874 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13875 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13876 | cat >conftest.$ac_ext <<_ACEOF |
| 13877 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13878 | #include "confdefs.h" |
| 13879 | |
| 13880 | # include <sys/types.h> |
| 13881 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13882 | #ifdef F77_DUMMY_MAIN |
| 13883 | # ifdef __cplusplus |
| 13884 | extern "C" |
| 13885 | # endif |
| 13886 | int F77_DUMMY_MAIN() { return 1; } |
| 13887 | #endif |
| 13888 | int |
| 13889 | main () |
| 13890 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13891 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13892 | ; |
| 13893 | return 0; |
| 13894 | } |
| 13895 | _ACEOF |
| 13896 | rm -f conftest.$ac_objext |
| 13897 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13898 | (eval $ac_compile) 2>&5 |
| 13899 | ac_status=$? |
| 13900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13901 | (exit $ac_status); } && |
| 13902 | { ac_try='test -s conftest.$ac_objext' |
| 13903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13904 | (eval $ac_try) 2>&5 |
| 13905 | ac_status=$? |
| 13906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13907 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13908 | ac_cv_struct_sockaddr_storage=yes |
| 13909 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13910 | echo "$as_me: failed program was:" >&5 |
| 13911 | cat conftest.$ac_ext >&5 |
| 13912 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13913 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13914 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13915 | fi |
| 13916 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13917 | echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 13918 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13919 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13920 | |
| 13921 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13922 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13923 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13924 | |
| 13925 | fi |
| 13926 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13927 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13928 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13929 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13930 | echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 13931 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
| 13932 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 13933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13934 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13935 | cat >conftest.$ac_ext <<_ACEOF |
| 13936 | #line $LINENO "configure" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13937 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13938 | $ac_includes_default |
| 13939 | #ifdef F77_DUMMY_MAIN |
| 13940 | # ifdef __cplusplus |
| 13941 | extern "C" |
| 13942 | # endif |
| 13943 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13944 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13945 | int |
| 13946 | main () |
| 13947 | { |
| 13948 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 13949 | test_array [0] = 0 |
| 13950 | |
| 13951 | ; |
| 13952 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13953 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13954 | _ACEOF |
| 13955 | rm -f conftest.$ac_objext |
| 13956 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13957 | (eval $ac_compile) 2>&5 |
| 13958 | ac_status=$? |
| 13959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13960 | (exit $ac_status); } && |
| 13961 | { ac_try='test -s conftest.$ac_objext' |
| 13962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13963 | (eval $ac_try) 2>&5 |
| 13964 | ac_status=$? |
| 13965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13966 | (exit $ac_status); }; }; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13967 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13968 | else |
| 13969 | echo "$as_me: failed program was:" >&5 |
| 13970 | cat conftest.$ac_ext >&5 |
| 13971 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13972 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13973 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13974 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13975 | echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 13976 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13977 | 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] | 13978 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13979 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13980 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13981 | |
| 13982 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13983 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13984 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 13985 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 13986 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 13987 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13988 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13989 | ac_cv_prog_cc_stdc=no |
| 13990 | ac_save_CC=$CC |
| 13991 | cat >conftest.$ac_ext <<_ACEOF |
| 13992 | #line $LINENO "configure" |
| 13993 | #include "confdefs.h" |
| 13994 | #include <stdarg.h> |
| 13995 | #include <stdio.h> |
| 13996 | #include <sys/types.h> |
| 13997 | #include <sys/stat.h> |
| 13998 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 13999 | struct buf { int x; }; |
| 14000 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 14001 | static char *e (p, i) |
| 14002 | char **p; |
| 14003 | int i; |
| 14004 | { |
| 14005 | return p[i]; |
| 14006 | } |
| 14007 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 14008 | { |
| 14009 | char *s; |
| 14010 | va_list v; |
| 14011 | va_start (v,p); |
| 14012 | s = g (p, va_arg (v,int)); |
| 14013 | va_end (v); |
| 14014 | return s; |
| 14015 | } |
| 14016 | int test (int i, double x); |
| 14017 | struct s1 {int (*f) (int a);}; |
| 14018 | struct s2 {int (*f) (double a);}; |
| 14019 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 14020 | int argc; |
| 14021 | char **argv; |
| 14022 | #ifdef F77_DUMMY_MAIN |
| 14023 | # ifdef __cplusplus |
| 14024 | extern "C" |
| 14025 | # endif |
| 14026 | int F77_DUMMY_MAIN() { return 1; } |
| 14027 | #endif |
| 14028 | int |
| 14029 | main () |
| 14030 | { |
| 14031 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 14032 | ; |
| 14033 | return 0; |
| 14034 | } |
| 14035 | _ACEOF |
| 14036 | # Don't try gcc -ansi; that turns off useful extensions and |
| 14037 | # breaks some systems' header files. |
| 14038 | # AIX -qlanglvl=ansi |
| 14039 | # Ultrix and OSF/1 -std1 |
| 14040 | # HP-UX 10.20 and later -Ae |
| 14041 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 14042 | # SVR4 -Xc -D__EXTENSIONS__ |
| 14043 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 14044 | do |
| 14045 | CC="$ac_save_CC $ac_arg" |
| 14046 | rm -f conftest.$ac_objext |
| 14047 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14048 | (eval $ac_compile) 2>&5 |
| 14049 | ac_status=$? |
| 14050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14051 | (exit $ac_status); } && |
| 14052 | { ac_try='test -s conftest.$ac_objext' |
| 14053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14054 | (eval $ac_try) 2>&5 |
| 14055 | ac_status=$? |
| 14056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14057 | (exit $ac_status); }; }; then |
| 14058 | ac_cv_prog_cc_stdc=$ac_arg |
| 14059 | break |
| 14060 | else |
| 14061 | echo "$as_me: failed program was:" >&5 |
| 14062 | cat conftest.$ac_ext >&5 |
| 14063 | fi |
| 14064 | rm -f conftest.$ac_objext |
| 14065 | done |
| 14066 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 14067 | CC=$ac_save_CC |
| 14068 | |
| 14069 | fi |
| 14070 | |
| 14071 | case "x$ac_cv_prog_cc_stdc" in |
| 14072 | x|xno) |
| 14073 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 14074 | echo "${ECHO_T}none needed" >&6 ;; |
| 14075 | *) |
| 14076 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 14077 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 14078 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 14079 | esac |
| 14080 | |
| 14081 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 14082 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 14083 | if test "${ac_cv_c_const+set}" = set; then |
| 14084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14085 | else |
| 14086 | cat >conftest.$ac_ext <<_ACEOF |
| 14087 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14088 | #include "confdefs.h" |
| 14089 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14090 | #ifdef F77_DUMMY_MAIN |
| 14091 | # ifdef __cplusplus |
| 14092 | extern "C" |
| 14093 | # endif |
| 14094 | int F77_DUMMY_MAIN() { return 1; } |
| 14095 | #endif |
| 14096 | int |
| 14097 | main () |
| 14098 | { |
| 14099 | /* FIXME: Include the comments suggested by Paul. */ |
| 14100 | #ifndef __cplusplus |
| 14101 | /* Ultrix mips cc rejects this. */ |
| 14102 | typedef int charset[2]; |
| 14103 | const charset x; |
| 14104 | /* SunOS 4.1.1 cc rejects this. */ |
| 14105 | char const *const *ccp; |
| 14106 | char **p; |
| 14107 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 14108 | struct point {int x, y;}; |
| 14109 | static struct point const zero = {0,0}; |
| 14110 | /* AIX XL C 1.02.0.0 rejects this. |
| 14111 | It does not let you subtract one const X* pointer from another in |
| 14112 | an arm of an if-expression whose if-part is not a constant |
| 14113 | expression */ |
| 14114 | const char *g = "string"; |
| 14115 | ccp = &g + (g ? g-g : 0); |
| 14116 | /* HPUX 7.0 cc rejects these. */ |
| 14117 | ++ccp; |
| 14118 | p = (char**) ccp; |
| 14119 | ccp = (char const *const *) p; |
| 14120 | { /* SCO 3.2v4 cc rejects this. */ |
| 14121 | char *t; |
| 14122 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14123 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14124 | *t++ = 0; |
| 14125 | } |
| 14126 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 14127 | int x[] = {25, 17}; |
| 14128 | const int *foo = &x[0]; |
| 14129 | ++foo; |
| 14130 | } |
| 14131 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 14132 | typedef const int *iptr; |
| 14133 | iptr p = 0; |
| 14134 | ++p; |
| 14135 | } |
| 14136 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 14137 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 14138 | struct s { int j; const int *ap[3]; }; |
| 14139 | struct s *b; b->j = 5; |
| 14140 | } |
| 14141 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 14142 | const int foo = 10; |
| 14143 | } |
| 14144 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14145 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14146 | ; |
| 14147 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14148 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14149 | _ACEOF |
| 14150 | rm -f conftest.$ac_objext |
| 14151 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14152 | (eval $ac_compile) 2>&5 |
| 14153 | ac_status=$? |
| 14154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14155 | (exit $ac_status); } && |
| 14156 | { ac_try='test -s conftest.$ac_objext' |
| 14157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14158 | (eval $ac_try) 2>&5 |
| 14159 | ac_status=$? |
| 14160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14161 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14162 | ac_cv_c_const=yes |
| 14163 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14164 | echo "$as_me: failed program was:" >&5 |
| 14165 | cat conftest.$ac_ext >&5 |
| 14166 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14167 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14168 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14169 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14170 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 14171 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14172 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14173 | |
| 14174 | cat >>confdefs.h <<\_ACEOF |
| 14175 | #define const |
| 14176 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14177 | |
| 14178 | fi |
| 14179 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14180 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14181 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14182 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 14183 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| 14184 | cat >conftest.$ac_ext <<_ACEOF |
| 14185 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14186 | #include "confdefs.h" |
| 14187 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14188 | #ifdef F77_DUMMY_MAIN |
| 14189 | # ifdef __cplusplus |
| 14190 | extern "C" |
| 14191 | # endif |
| 14192 | int F77_DUMMY_MAIN() { return 1; } |
| 14193 | #endif |
| 14194 | int |
| 14195 | main () |
| 14196 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14197 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14198 | ; |
| 14199 | return 0; |
| 14200 | } |
| 14201 | _ACEOF |
| 14202 | rm -f conftest.$ac_objext |
| 14203 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14204 | (eval $ac_compile) 2>&5 |
| 14205 | ac_status=$? |
| 14206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14207 | (exit $ac_status); } && |
| 14208 | { ac_try='test -s conftest.$ac_objext' |
| 14209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14210 | (eval $ac_try) 2>&5 |
| 14211 | ac_status=$? |
| 14212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14213 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14214 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14215 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14216 | echo "$as_me: failed program was:" >&5 |
| 14217 | cat conftest.$ac_ext >&5 |
| 14218 | |
| 14219 | cat >>confdefs.h <<\_ACEOF |
| 14220 | #define volatile |
| 14221 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14222 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14223 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14224 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14225 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14226 | echo "$as_me:$LINENO: result: $works" >&5 |
| 14227 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14228 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14229 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14230 | echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 14231 | echo $ECHO_N "checking for working signed char... $ECHO_C" >&6 |
| 14232 | cat >conftest.$ac_ext <<_ACEOF |
| 14233 | #line $LINENO "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 14234 | #include "confdefs.h" |
| 14235 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14236 | #ifdef F77_DUMMY_MAIN |
| 14237 | # ifdef __cplusplus |
| 14238 | extern "C" |
| 14239 | # endif |
| 14240 | int F77_DUMMY_MAIN() { return 1; } |
| 14241 | #endif |
| 14242 | int |
| 14243 | main () |
| 14244 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14245 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14246 | ; |
| 14247 | return 0; |
| 14248 | } |
| 14249 | _ACEOF |
| 14250 | rm -f conftest.$ac_objext |
| 14251 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14252 | (eval $ac_compile) 2>&5 |
| 14253 | ac_status=$? |
| 14254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14255 | (exit $ac_status); } && |
| 14256 | { ac_try='test -s conftest.$ac_objext' |
| 14257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14258 | (eval $ac_try) 2>&5 |
| 14259 | ac_status=$? |
| 14260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14261 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14262 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 14263 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14264 | echo "$as_me: failed program was:" >&5 |
| 14265 | cat conftest.$ac_ext >&5 |
| 14266 | |
| 14267 | cat >>confdefs.h <<\_ACEOF |
| 14268 | #define signed |
| 14269 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14270 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14271 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14272 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14273 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14274 | echo "$as_me:$LINENO: result: $works" >&5 |
| 14275 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14276 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14277 | have_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14278 | echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 14279 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6 |
| 14280 | cat >conftest.$ac_ext <<_ACEOF |
| 14281 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14282 | #include "confdefs.h" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14283 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14284 | #ifdef F77_DUMMY_MAIN |
| 14285 | # ifdef __cplusplus |
| 14286 | extern "C" |
| 14287 | # endif |
| 14288 | int F77_DUMMY_MAIN() { return 1; } |
| 14289 | #endif |
| 14290 | int |
| 14291 | main () |
| 14292 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14293 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14294 | ; |
| 14295 | return 0; |
| 14296 | } |
| 14297 | _ACEOF |
| 14298 | rm -f conftest.$ac_objext |
| 14299 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14300 | (eval $ac_compile) 2>&5 |
| 14301 | ac_status=$? |
| 14302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14303 | (exit $ac_status); } && |
| 14304 | { ac_try='test -s conftest.$ac_objext' |
| 14305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14306 | (eval $ac_try) 2>&5 |
| 14307 | ac_status=$? |
| 14308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14309 | (exit $ac_status); }; }; then |
| 14310 | |
| 14311 | |
| 14312 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14313 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14314 | _ACEOF |
| 14315 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14316 | have_prototypes=yes |
| 14317 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14318 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14319 | echo "$as_me: failed program was:" >&5 |
| 14320 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14321 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14322 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14323 | echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 14324 | echo "${ECHO_T}$have_prototypes" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14325 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14326 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14327 | echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 14328 | echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6 |
| 14329 | cat >conftest.$ac_ext <<_ACEOF |
| 14330 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14331 | #include "confdefs.h" |
| 14332 | |
| 14333 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 14334 | int foo(int x, ...) { |
| 14335 | va_list va; |
| 14336 | va_start(va, x); |
| 14337 | va_arg(va, int); |
| 14338 | va_arg(va, char *); |
| 14339 | va_arg(va, double); |
| 14340 | return 0; |
| 14341 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14342 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14343 | #ifdef F77_DUMMY_MAIN |
| 14344 | # ifdef __cplusplus |
| 14345 | extern "C" |
| 14346 | # endif |
| 14347 | int F77_DUMMY_MAIN() { return 1; } |
| 14348 | #endif |
| 14349 | int |
| 14350 | main () |
| 14351 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 14352 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14353 | ; |
| 14354 | return 0; |
| 14355 | } |
| 14356 | _ACEOF |
| 14357 | rm -f conftest.$ac_objext |
| 14358 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14359 | (eval $ac_compile) 2>&5 |
| 14360 | ac_status=$? |
| 14361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14362 | (exit $ac_status); } && |
| 14363 | { ac_try='test -s conftest.$ac_objext' |
| 14364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14365 | (eval $ac_try) 2>&5 |
| 14366 | ac_status=$? |
| 14367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14368 | (exit $ac_status); }; }; then |
| 14369 | |
| 14370 | |
| 14371 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14372 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14373 | _ACEOF |
| 14374 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14375 | works=yes |
| 14376 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14377 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14378 | echo "$as_me: failed program was:" >&5 |
| 14379 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14380 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14381 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14382 | echo "$as_me:$LINENO: result: $works" >&5 |
| 14383 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14384 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14385 | if test "$have_prototypes" = yes; then |
| 14386 | bad_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14387 | echo "$as_me:$LINENO: checking for bad exec* prototypes" >&5 |
| 14388 | echo $ECHO_N "checking for bad exec* prototypes... $ECHO_C" >&6 |
| 14389 | cat >conftest.$ac_ext <<_ACEOF |
| 14390 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14391 | #include "confdefs.h" |
| 14392 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14393 | #ifdef F77_DUMMY_MAIN |
| 14394 | # ifdef __cplusplus |
| 14395 | extern "C" |
| 14396 | # endif |
| 14397 | int F77_DUMMY_MAIN() { return 1; } |
| 14398 | #endif |
| 14399 | int |
| 14400 | main () |
| 14401 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14402 | char **t;execve("@",t,t); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14403 | ; |
| 14404 | return 0; |
| 14405 | } |
| 14406 | _ACEOF |
| 14407 | rm -f conftest.$ac_objext |
| 14408 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14409 | (eval $ac_compile) 2>&5 |
| 14410 | ac_status=$? |
| 14411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14412 | (exit $ac_status); } && |
| 14413 | { ac_try='test -s conftest.$ac_objext' |
| 14414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14415 | (eval $ac_try) 2>&5 |
| 14416 | ac_status=$? |
| 14417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14418 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14419 | : |
| 14420 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14421 | echo "$as_me: failed program was:" >&5 |
| 14422 | cat conftest.$ac_ext >&5 |
| 14423 | |
| 14424 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14425 | #define BAD_EXEC_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14426 | _ACEOF |
| 14427 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14428 | bad_prototypes=yes |
| 14429 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14430 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14431 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14432 | echo "$as_me:$LINENO: result: $bad_prototypes" >&5 |
| 14433 | echo "${ECHO_T}$bad_prototypes" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14434 | fi |
| 14435 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14436 | # check if sockaddr has sa_len member |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14437 | echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 14438 | echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6 |
| 14439 | cat >conftest.$ac_ext <<_ACEOF |
| 14440 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14441 | #include "confdefs.h" |
| 14442 | #include <sys/types.h> |
| 14443 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14444 | #ifdef F77_DUMMY_MAIN |
| 14445 | # ifdef __cplusplus |
| 14446 | extern "C" |
| 14447 | # endif |
| 14448 | int F77_DUMMY_MAIN() { return 1; } |
| 14449 | #endif |
| 14450 | int |
| 14451 | main () |
| 14452 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14453 | struct sockaddr x; |
| 14454 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14455 | ; |
| 14456 | return 0; |
| 14457 | } |
| 14458 | _ACEOF |
| 14459 | rm -f conftest.$ac_objext |
| 14460 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14461 | (eval $ac_compile) 2>&5 |
| 14462 | ac_status=$? |
| 14463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14464 | (exit $ac_status); } && |
| 14465 | { ac_try='test -s conftest.$ac_objext' |
| 14466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14467 | (eval $ac_try) 2>&5 |
| 14468 | ac_status=$? |
| 14469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14470 | (exit $ac_status); }; }; then |
| 14471 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14472 | echo "${ECHO_T}yes" >&6 |
| 14473 | |
| 14474 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14475 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14476 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14477 | |
| 14478 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14479 | echo "$as_me: failed program was:" >&5 |
| 14480 | cat conftest.$ac_ext >&5 |
| 14481 | echo "$as_me:$LINENO: result: no" >&5 |
| 14482 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14483 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14484 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14485 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14486 | va_list_is_array=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14487 | echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 14488 | echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6 |
| 14489 | cat >conftest.$ac_ext <<_ACEOF |
| 14490 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14491 | #include "confdefs.h" |
| 14492 | |
| 14493 | #ifdef HAVE_STDARG_PROTOTYPES |
| 14494 | #include <stdarg.h> |
| 14495 | #else |
| 14496 | #include <varargs.h> |
| 14497 | #endif |
| 14498 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14499 | #ifdef F77_DUMMY_MAIN |
| 14500 | # ifdef __cplusplus |
| 14501 | extern "C" |
| 14502 | # endif |
| 14503 | int F77_DUMMY_MAIN() { return 1; } |
| 14504 | #endif |
| 14505 | int |
| 14506 | main () |
| 14507 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14508 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14509 | ; |
| 14510 | return 0; |
| 14511 | } |
| 14512 | _ACEOF |
| 14513 | rm -f conftest.$ac_objext |
| 14514 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14515 | (eval $ac_compile) 2>&5 |
| 14516 | ac_status=$? |
| 14517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14518 | (exit $ac_status); } && |
| 14519 | { ac_try='test -s conftest.$ac_objext' |
| 14520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14521 | (eval $ac_try) 2>&5 |
| 14522 | ac_status=$? |
| 14523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14524 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14525 | : |
| 14526 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14527 | echo "$as_me: failed program was:" >&5 |
| 14528 | cat conftest.$ac_ext >&5 |
| 14529 | |
| 14530 | |
| 14531 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14532 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14533 | _ACEOF |
| 14534 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14535 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14536 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14537 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14538 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14539 | echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 14540 | echo "${ECHO_T}$va_list_is_array" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14541 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14542 | # 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] | 14543 | |
| 14544 | |
| 14545 | |
| 14546 | echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 14547 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6 |
| 14548 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 14549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14550 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14551 | cat >conftest.$ac_ext <<_ACEOF |
| 14552 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14553 | #include "confdefs.h" |
| 14554 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14555 | which can conflict with char gethostbyname_r (); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14556 | #include <assert.h> |
| 14557 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14558 | #ifdef __cplusplus |
| 14559 | extern "C" |
| 14560 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14561 | /* 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] | 14562 | builtin and then its argument prototype would still apply. */ |
| 14563 | char gethostbyname_r (); |
| 14564 | char (*f) (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14565 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14566 | #ifdef F77_DUMMY_MAIN |
| 14567 | # ifdef __cplusplus |
| 14568 | extern "C" |
| 14569 | # endif |
| 14570 | int F77_DUMMY_MAIN() { return 1; } |
| 14571 | #endif |
| 14572 | int |
| 14573 | main () |
| 14574 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14575 | /* The GNU C library defines this for functions which it implements |
| 14576 | to always fail with ENOSYS. Some functions are actually named |
| 14577 | something starting with __ and the normal name is an alias. */ |
| 14578 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 14579 | choke me |
| 14580 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14581 | f = gethostbyname_r; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14582 | #endif |
| 14583 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14584 | ; |
| 14585 | return 0; |
| 14586 | } |
| 14587 | _ACEOF |
| 14588 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14589 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14590 | (eval $ac_link) 2>&5 |
| 14591 | ac_status=$? |
| 14592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14593 | (exit $ac_status); } && |
| 14594 | { ac_try='test -s conftest$ac_exeext' |
| 14595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14596 | (eval $ac_try) 2>&5 |
| 14597 | ac_status=$? |
| 14598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14599 | (exit $ac_status); }; }; then |
| 14600 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14601 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14602 | echo "$as_me: failed program was:" >&5 |
| 14603 | cat conftest.$ac_ext >&5 |
| 14604 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14605 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14606 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14607 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14608 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 14609 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6 |
| 14610 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14611 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14612 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14613 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14614 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14615 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14616 | echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 14617 | 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] | 14618 | OLD_CFLAGS=$CFLAGS |
| 14619 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14620 | cat >conftest.$ac_ext <<_ACEOF |
| 14621 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14622 | #include "confdefs.h" |
| 14623 | |
| 14624 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14625 | |
| 14626 | #ifdef F77_DUMMY_MAIN |
| 14627 | # ifdef __cplusplus |
| 14628 | extern "C" |
| 14629 | # endif |
| 14630 | int F77_DUMMY_MAIN() { return 1; } |
| 14631 | #endif |
| 14632 | int |
| 14633 | main () |
| 14634 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14635 | |
| 14636 | char *name; |
| 14637 | struct hostent *he, *res; |
| 14638 | char buffer[2048]; |
| 14639 | int buflen = 2048; |
| 14640 | int h_errnop; |
| 14641 | |
| 14642 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14643 | |
| 14644 | ; |
| 14645 | return 0; |
| 14646 | } |
| 14647 | _ACEOF |
| 14648 | rm -f conftest.$ac_objext |
| 14649 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14650 | (eval $ac_compile) 2>&5 |
| 14651 | ac_status=$? |
| 14652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14653 | (exit $ac_status); } && |
| 14654 | { ac_try='test -s conftest.$ac_objext' |
| 14655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14656 | (eval $ac_try) 2>&5 |
| 14657 | ac_status=$? |
| 14658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14659 | (exit $ac_status); }; }; then |
| 14660 | |
| 14661 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14662 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14663 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14664 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14665 | |
| 14666 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14667 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14668 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14669 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14670 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14671 | echo "${ECHO_T}yes" >&6 |
| 14672 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14673 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14674 | echo "$as_me: failed program was:" >&5 |
| 14675 | cat conftest.$ac_ext >&5 |
| 14676 | |
| 14677 | echo "$as_me:$LINENO: result: no" >&5 |
| 14678 | echo "${ECHO_T}no" >&6 |
| 14679 | echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 14680 | echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6 |
| 14681 | cat >conftest.$ac_ext <<_ACEOF |
| 14682 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14683 | #include "confdefs.h" |
| 14684 | |
| 14685 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14686 | |
| 14687 | #ifdef F77_DUMMY_MAIN |
| 14688 | # ifdef __cplusplus |
| 14689 | extern "C" |
| 14690 | # endif |
| 14691 | int F77_DUMMY_MAIN() { return 1; } |
| 14692 | #endif |
| 14693 | int |
| 14694 | main () |
| 14695 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14696 | |
| 14697 | char *name; |
| 14698 | struct hostent *he; |
| 14699 | char buffer[2048]; |
| 14700 | int buflen = 2048; |
| 14701 | int h_errnop; |
| 14702 | |
| 14703 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14704 | |
| 14705 | ; |
| 14706 | return 0; |
| 14707 | } |
| 14708 | _ACEOF |
| 14709 | rm -f conftest.$ac_objext |
| 14710 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14711 | (eval $ac_compile) 2>&5 |
| 14712 | ac_status=$? |
| 14713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14714 | (exit $ac_status); } && |
| 14715 | { ac_try='test -s conftest.$ac_objext' |
| 14716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14717 | (eval $ac_try) 2>&5 |
| 14718 | ac_status=$? |
| 14719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14720 | (exit $ac_status); }; }; then |
| 14721 | |
| 14722 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14723 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14724 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14725 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14726 | |
| 14727 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14728 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14729 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14730 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14731 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14732 | echo "${ECHO_T}yes" >&6 |
| 14733 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14734 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14735 | echo "$as_me: failed program was:" >&5 |
| 14736 | cat conftest.$ac_ext >&5 |
| 14737 | |
| 14738 | echo "$as_me:$LINENO: result: no" >&5 |
| 14739 | echo "${ECHO_T}no" >&6 |
| 14740 | echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 14741 | echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6 |
| 14742 | cat >conftest.$ac_ext <<_ACEOF |
| 14743 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14744 | #include "confdefs.h" |
| 14745 | |
| 14746 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14747 | |
| 14748 | #ifdef F77_DUMMY_MAIN |
| 14749 | # ifdef __cplusplus |
| 14750 | extern "C" |
| 14751 | # endif |
| 14752 | int F77_DUMMY_MAIN() { return 1; } |
| 14753 | #endif |
| 14754 | int |
| 14755 | main () |
| 14756 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14757 | |
| 14758 | char *name; |
| 14759 | struct hostent *he; |
| 14760 | struct hostent_data data; |
| 14761 | |
| 14762 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14763 | |
| 14764 | ; |
| 14765 | return 0; |
| 14766 | } |
| 14767 | _ACEOF |
| 14768 | rm -f conftest.$ac_objext |
| 14769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14770 | (eval $ac_compile) 2>&5 |
| 14771 | ac_status=$? |
| 14772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14773 | (exit $ac_status); } && |
| 14774 | { ac_try='test -s conftest.$ac_objext' |
| 14775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14776 | (eval $ac_try) 2>&5 |
| 14777 | ac_status=$? |
| 14778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14779 | (exit $ac_status); }; }; then |
| 14780 | |
| 14781 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14782 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14783 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14784 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14785 | |
| 14786 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14787 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14788 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14789 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14790 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14791 | echo "${ECHO_T}yes" >&6 |
| 14792 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14793 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14794 | echo "$as_me: failed program was:" >&5 |
| 14795 | cat conftest.$ac_ext >&5 |
| 14796 | |
| 14797 | echo "$as_me:$LINENO: result: no" >&5 |
| 14798 | echo "${ECHO_T}no" >&6 |
| 14799 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14800 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14801 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14802 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14803 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14804 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14805 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14806 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14807 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14808 | CFLAGS=$OLD_CFLAGS |
| 14809 | |
| 14810 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14811 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14812 | |
| 14813 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14814 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14815 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14816 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14817 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14818 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14819 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14820 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14821 | cat >conftest.$ac_ext <<_ACEOF |
| 14822 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14823 | #include "confdefs.h" |
| 14824 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14825 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14826 | #include <assert.h> |
| 14827 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14828 | #ifdef __cplusplus |
| 14829 | extern "C" |
| 14830 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14831 | /* 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] | 14832 | builtin and then its argument prototype would still apply. */ |
| 14833 | char $ac_func (); |
| 14834 | char (*f) (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14835 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14836 | #ifdef F77_DUMMY_MAIN |
| 14837 | # ifdef __cplusplus |
| 14838 | extern "C" |
| 14839 | # endif |
| 14840 | int F77_DUMMY_MAIN() { return 1; } |
| 14841 | #endif |
| 14842 | int |
| 14843 | main () |
| 14844 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14845 | /* The GNU C library defines this for functions which it implements |
| 14846 | to always fail with ENOSYS. Some functions are actually named |
| 14847 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14848 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14849 | choke me |
| 14850 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14851 | f = $ac_func; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14852 | #endif |
| 14853 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14854 | ; |
| 14855 | return 0; |
| 14856 | } |
| 14857 | _ACEOF |
| 14858 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14859 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14860 | (eval $ac_link) 2>&5 |
| 14861 | ac_status=$? |
| 14862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14863 | (exit $ac_status); } && |
| 14864 | { ac_try='test -s conftest$ac_exeext' |
| 14865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14866 | (eval $ac_try) 2>&5 |
| 14867 | ac_status=$? |
| 14868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14869 | (exit $ac_status); }; }; then |
| 14870 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14871 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14872 | echo "$as_me: failed program was:" >&5 |
| 14873 | cat conftest.$ac_ext >&5 |
| 14874 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14875 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14876 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14877 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14878 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 14879 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 14880 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 14881 | cat >>confdefs.h <<_ACEOF |
| 14882 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14883 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14884 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14885 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14886 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14887 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14888 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14889 | fi |
| 14890 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14891 | |
| 14892 | |
| 14893 | |
| 14894 | |
| 14895 | |
| 14896 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14897 | # checks for system services |
| 14898 | # (none yet) |
| 14899 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14900 | # Linux requires this for correct f.p. operations |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14901 | echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 14902 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6 |
| 14903 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 14904 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14905 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14906 | cat >conftest.$ac_ext <<_ACEOF |
| 14907 | #line $LINENO "configure" |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14908 | #include "confdefs.h" |
| 14909 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14910 | which can conflict with char __fpu_control (); below. */ |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14911 | #include <assert.h> |
| 14912 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14913 | #ifdef __cplusplus |
| 14914 | extern "C" |
| 14915 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14916 | /* 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] | 14917 | builtin and then its argument prototype would still apply. */ |
| 14918 | char __fpu_control (); |
| 14919 | char (*f) (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14920 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14921 | #ifdef F77_DUMMY_MAIN |
| 14922 | # ifdef __cplusplus |
| 14923 | extern "C" |
| 14924 | # endif |
| 14925 | int F77_DUMMY_MAIN() { return 1; } |
| 14926 | #endif |
| 14927 | int |
| 14928 | main () |
| 14929 | { |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14930 | /* The GNU C library defines this for functions which it implements |
| 14931 | to always fail with ENOSYS. Some functions are actually named |
| 14932 | something starting with __ and the normal name is an alias. */ |
| 14933 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 14934 | choke me |
| 14935 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14936 | f = __fpu_control; |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14937 | #endif |
| 14938 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14939 | ; |
| 14940 | return 0; |
| 14941 | } |
| 14942 | _ACEOF |
| 14943 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14944 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14945 | (eval $ac_link) 2>&5 |
| 14946 | ac_status=$? |
| 14947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14948 | (exit $ac_status); } && |
| 14949 | { ac_try='test -s conftest$ac_exeext' |
| 14950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14951 | (eval $ac_try) 2>&5 |
| 14952 | ac_status=$? |
| 14953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14954 | (exit $ac_status); }; }; then |
| 14955 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14956 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14957 | echo "$as_me: failed program was:" >&5 |
| 14958 | cat conftest.$ac_ext >&5 |
| 14959 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14960 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14961 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14962 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14963 | echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 14964 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6 |
| 14965 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 14966 | : |
| 14967 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14968 | |
| 14969 | echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 14970 | echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6 |
| 14971 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 14972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14973 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14974 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 14975 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14976 | cat >conftest.$ac_ext <<_ACEOF |
| 14977 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14978 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14979 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14980 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14981 | #ifdef __cplusplus |
| 14982 | extern "C" |
| 14983 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 14984 | /* 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] | 14985 | builtin and then its argument prototype would still apply. */ |
| 14986 | char __fpu_control (); |
| 14987 | #ifdef F77_DUMMY_MAIN |
| 14988 | # ifdef __cplusplus |
| 14989 | extern "C" |
| 14990 | # endif |
| 14991 | int F77_DUMMY_MAIN() { return 1; } |
| 14992 | #endif |
| 14993 | int |
| 14994 | main () |
| 14995 | { |
| 14996 | __fpu_control (); |
| 14997 | ; |
| 14998 | return 0; |
| 14999 | } |
| 15000 | _ACEOF |
| 15001 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15002 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15003 | (eval $ac_link) 2>&5 |
| 15004 | ac_status=$? |
| 15005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15006 | (exit $ac_status); } && |
| 15007 | { ac_try='test -s conftest$ac_exeext' |
| 15008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15009 | (eval $ac_try) 2>&5 |
| 15010 | ac_status=$? |
| 15011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15012 | (exit $ac_status); }; }; then |
| 15013 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15014 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15015 | echo "$as_me: failed program was:" >&5 |
| 15016 | cat conftest.$ac_ext >&5 |
| 15017 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15018 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15019 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 15020 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15021 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15022 | echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 15023 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6 |
| 15024 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 15025 | cat >>confdefs.h <<_ACEOF |
| 15026 | #define HAVE_LIBIEEE 1 |
| 15027 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15028 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15029 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15030 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15031 | fi |
| 15032 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15033 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15034 | fi |
| 15035 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15036 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15037 | # Check for --with-fpectl |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15038 | echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 15039 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6 |
| 15040 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15041 | # Check whether --with-fpectl or --without-fpectl was given. |
| 15042 | if test "${with_fpectl+set}" = set; then |
| 15043 | withval="$with_fpectl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15044 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15045 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15046 | then |
| 15047 | |
| 15048 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15049 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15050 | _ACEOF |
| 15051 | |
| 15052 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15053 | echo "${ECHO_T}yes" >&6 |
| 15054 | else echo "$as_me:$LINENO: result: no" >&5 |
| 15055 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15056 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15057 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15058 | echo "$as_me:$LINENO: result: no" >&5 |
| 15059 | echo "${ECHO_T}no" >&6 |
| 15060 | fi; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15061 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15062 | # check for --with-libm=... |
| 15063 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 15064 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 15065 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15066 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 15067 | *) LIBM=-lm |
| 15068 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15069 | echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 15070 | echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6 |
| 15071 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15072 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15073 | if test "${with_libm+set}" = set; then |
| 15074 | withval="$with_libm" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15075 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15076 | if test "$withval" = no |
| 15077 | then LIBM= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15078 | echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 15079 | echo "${ECHO_T}force LIBM empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15080 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15081 | then LIBM=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15082 | echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 15083 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6 |
| 15084 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 15085 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 15086 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15087 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15088 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15089 | echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 15090 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6 |
| 15091 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15092 | |
| 15093 | # check for --with-libc=... |
| 15094 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15095 | echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 15096 | echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6 |
| 15097 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15098 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15099 | if test "${with_libc+set}" = set; then |
| 15100 | withval="$with_libc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15101 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15102 | if test "$withval" = no |
| 15103 | then LIBC= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15104 | echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 15105 | echo "${ECHO_T}force LIBC empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15106 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15107 | then LIBC=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15108 | echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 15109 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6 |
| 15110 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 15111 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 15112 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15113 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15114 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15115 | echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 15116 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6 |
| 15117 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15118 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15119 | # check for hypot() in math library |
| 15120 | LIBS_SAVE=$LIBS |
| 15121 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15122 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15123 | for ac_func in hypot |
| 15124 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15125 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15126 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15127 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15128 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15130 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15131 | cat >conftest.$ac_ext <<_ACEOF |
| 15132 | #line $LINENO "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15133 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15134 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15135 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15136 | #include <assert.h> |
| 15137 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15138 | #ifdef __cplusplus |
| 15139 | extern "C" |
| 15140 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15141 | /* 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] | 15142 | builtin and then its argument prototype would still apply. */ |
| 15143 | char $ac_func (); |
| 15144 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15145 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15146 | #ifdef F77_DUMMY_MAIN |
| 15147 | # ifdef __cplusplus |
| 15148 | extern "C" |
| 15149 | # endif |
| 15150 | int F77_DUMMY_MAIN() { return 1; } |
| 15151 | #endif |
| 15152 | int |
| 15153 | main () |
| 15154 | { |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15155 | /* The GNU C library defines this for functions which it implements |
| 15156 | to always fail with ENOSYS. Some functions are actually named |
| 15157 | something starting with __ and the normal name is an alias. */ |
| 15158 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15159 | choke me |
| 15160 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15161 | f = $ac_func; |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15162 | #endif |
| 15163 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15164 | ; |
| 15165 | return 0; |
| 15166 | } |
| 15167 | _ACEOF |
| 15168 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15169 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15170 | (eval $ac_link) 2>&5 |
| 15171 | ac_status=$? |
| 15172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15173 | (exit $ac_status); } && |
| 15174 | { ac_try='test -s conftest$ac_exeext' |
| 15175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15176 | (eval $ac_try) 2>&5 |
| 15177 | ac_status=$? |
| 15178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15179 | (exit $ac_status); }; }; then |
| 15180 | eval "$as_ac_var=yes" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 15181 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15182 | echo "$as_me: failed program was:" >&5 |
| 15183 | cat conftest.$ac_ext >&5 |
| 15184 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15185 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15186 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15187 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15188 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15189 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15190 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15191 | cat >>confdefs.h <<_ACEOF |
| 15192 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15193 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15194 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15195 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15196 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 15197 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 15198 | done |
| 15199 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15200 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15201 | LIBS=$LIBS_SAVE |
| 15202 | |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15203 | # check whether malloc(0) returns NULL or not |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15204 | echo "$as_me:$LINENO: checking what malloc(0) returns" >&5 |
| 15205 | echo $ECHO_N "checking what malloc(0) returns... $ECHO_C" >&6 |
| 15206 | if test "${ac_cv_malloc_zero+set}" = set; then |
| 15207 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15208 | else |
| 15209 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15210 | ac_cv_malloc_zero=nonnull |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15211 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15212 | cat >conftest.$ac_ext <<_ACEOF |
| 15213 | #line $LINENO "configure" |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15214 | #include "confdefs.h" |
| 15215 | #include <stdio.h> |
| 15216 | #ifdef HAVE_STDLIB |
| 15217 | #include <stdlib.h> |
| 15218 | #else |
| 15219 | char *malloc(), *realloc(); |
| 15220 | int *free(); |
| 15221 | #endif |
| 15222 | main() { |
| 15223 | char *p; |
| 15224 | p = malloc(0); |
| 15225 | if (p == NULL) exit(1); |
| 15226 | p = realloc(p, 0); |
| 15227 | if (p == NULL) exit(1); |
| 15228 | free(p); |
| 15229 | exit(0); |
| 15230 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15231 | _ACEOF |
| 15232 | rm -f conftest$ac_exeext |
| 15233 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15234 | (eval $ac_link) 2>&5 |
| 15235 | ac_status=$? |
| 15236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15237 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15239 | (eval $ac_try) 2>&5 |
| 15240 | ac_status=$? |
| 15241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15242 | (exit $ac_status); }; }; then |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15243 | ac_cv_malloc_zero=nonnull |
| 15244 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15245 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15246 | echo "$as_me: failed program was:" >&5 |
| 15247 | cat conftest.$ac_ext >&5 |
| 15248 | ( exit $ac_status ) |
| 15249 | ac_cv_malloc_zero=null |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15250 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15251 | 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] | 15252 | fi |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15253 | fi |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 15254 | # XXX arm cross-compile? |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15255 | echo "$as_me:$LINENO: result: $ac_cv_malloc_zero" >&5 |
| 15256 | echo "${ECHO_T}$ac_cv_malloc_zero" >&6 |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15257 | if test "$ac_cv_malloc_zero" = null |
| 15258 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15259 | |
| 15260 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15261 | #define MALLOC_ZERO_RETURNS_NULL 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15262 | _ACEOF |
Guido van Rossum | ad71370 | 1997-07-10 22:42:38 +0000 | [diff] [blame] | 15263 | |
| 15264 | fi |
| 15265 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15266 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15267 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 15268 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 15269 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 15270 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 15271 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15272 | fi |
| 15273 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 15274 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15275 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15276 | # Is the header compilable? |
| 15277 | echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 15278 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 |
| 15279 | cat >conftest.$ac_ext <<_ACEOF |
| 15280 | #line $LINENO "configure" |
| 15281 | #include "confdefs.h" |
| 15282 | $ac_includes_default |
| 15283 | #include <wchar.h> |
| 15284 | _ACEOF |
| 15285 | rm -f conftest.$ac_objext |
| 15286 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15287 | (eval $ac_compile) 2>&5 |
| 15288 | ac_status=$? |
| 15289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15290 | (exit $ac_status); } && |
| 15291 | { ac_try='test -s conftest.$ac_objext' |
| 15292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15293 | (eval $ac_try) 2>&5 |
| 15294 | ac_status=$? |
| 15295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15296 | (exit $ac_status); }; }; then |
| 15297 | ac_header_compiler=yes |
| 15298 | else |
| 15299 | echo "$as_me: failed program was:" >&5 |
| 15300 | cat conftest.$ac_ext >&5 |
| 15301 | ac_header_compiler=no |
| 15302 | fi |
| 15303 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15304 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15305 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 15306 | |
| 15307 | # Is the header present? |
| 15308 | echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 15309 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 |
| 15310 | cat >conftest.$ac_ext <<_ACEOF |
| 15311 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15312 | #include "confdefs.h" |
| 15313 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15314 | _ACEOF |
| 15315 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 15316 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 15317 | ac_status=$? |
| 15318 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 15319 | rm -f conftest.er1 |
| 15320 | cat conftest.err >&5 |
| 15321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15322 | (exit $ac_status); } >/dev/null; then |
| 15323 | if test -s conftest.err; then |
| 15324 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15325 | else |
| 15326 | ac_cpp_err= |
| 15327 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15328 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15329 | ac_cpp_err=yes |
| 15330 | fi |
| 15331 | if test -z "$ac_cpp_err"; then |
| 15332 | ac_header_preproc=yes |
| 15333 | else |
| 15334 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15335 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15336 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15337 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15338 | rm -f conftest.err conftest.$ac_ext |
| 15339 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15340 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 15341 | |
| 15342 | # So? What about this header? |
| 15343 | case $ac_header_compiler:$ac_header_preproc in |
| 15344 | yes:no ) |
| 15345 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15346 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15347 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 15348 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};; |
| 15349 | no:yes ) |
| 15350 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 15351 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 15352 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 15353 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 15354 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 15355 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};; |
| 15356 | esac |
| 15357 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 15358 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 15359 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 15360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15361 | else |
| 15362 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15363 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15364 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 15365 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
| 15366 | |
| 15367 | fi |
| 15368 | if test $ac_cv_header_wchar_h = yes; then |
| 15369 | |
| 15370 | |
| 15371 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15372 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15373 | _ACEOF |
| 15374 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15375 | wchar_h="yes" |
| 15376 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15377 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15378 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15379 | |
| 15380 | fi |
| 15381 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15382 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15383 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15384 | # determine wchar_t size |
| 15385 | if test "$wchar_h" = yes |
| 15386 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15387 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 15388 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 |
| 15389 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 15390 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15391 | else |
| 15392 | cat >conftest.$ac_ext <<_ACEOF |
| 15393 | #line $LINENO "configure" |
| 15394 | #include "confdefs.h" |
| 15395 | #include <wchar.h> |
| 15396 | |
| 15397 | #ifdef F77_DUMMY_MAIN |
| 15398 | # ifdef __cplusplus |
| 15399 | extern "C" |
| 15400 | # endif |
| 15401 | int F77_DUMMY_MAIN() { return 1; } |
| 15402 | #endif |
| 15403 | int |
| 15404 | main () |
| 15405 | { |
| 15406 | if ((wchar_t *) 0) |
| 15407 | return 0; |
| 15408 | if (sizeof (wchar_t)) |
| 15409 | return 0; |
| 15410 | ; |
| 15411 | return 0; |
| 15412 | } |
| 15413 | _ACEOF |
| 15414 | rm -f conftest.$ac_objext |
| 15415 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15416 | (eval $ac_compile) 2>&5 |
| 15417 | ac_status=$? |
| 15418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15419 | (exit $ac_status); } && |
| 15420 | { ac_try='test -s conftest.$ac_objext' |
| 15421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15422 | (eval $ac_try) 2>&5 |
| 15423 | ac_status=$? |
| 15424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15425 | (exit $ac_status); }; }; then |
| 15426 | ac_cv_type_wchar_t=yes |
| 15427 | else |
| 15428 | echo "$as_me: failed program was:" >&5 |
| 15429 | cat conftest.$ac_ext >&5 |
| 15430 | ac_cv_type_wchar_t=no |
| 15431 | fi |
| 15432 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15433 | fi |
| 15434 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 15435 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 |
| 15436 | |
| 15437 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 15438 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 |
| 15439 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 15440 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15441 | else |
| 15442 | if test "$ac_cv_type_wchar_t" = yes; then |
| 15443 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 15444 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 15445 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 15446 | # This bug is HP SR number 8606223364. |
| 15447 | if test "$cross_compiling" = yes; then |
| 15448 | # Depending upon the size, compute the lo and hi bounds. |
| 15449 | cat >conftest.$ac_ext <<_ACEOF |
| 15450 | #line $LINENO "configure" |
| 15451 | #include "confdefs.h" |
| 15452 | #include <wchar.h> |
| 15453 | |
| 15454 | #ifdef F77_DUMMY_MAIN |
| 15455 | # ifdef __cplusplus |
| 15456 | extern "C" |
| 15457 | # endif |
| 15458 | int F77_DUMMY_MAIN() { return 1; } |
| 15459 | #endif |
| 15460 | int |
| 15461 | main () |
| 15462 | { |
| 15463 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)]; |
| 15464 | test_array [0] = 0 |
| 15465 | |
| 15466 | ; |
| 15467 | return 0; |
| 15468 | } |
| 15469 | _ACEOF |
| 15470 | rm -f conftest.$ac_objext |
| 15471 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15472 | (eval $ac_compile) 2>&5 |
| 15473 | ac_status=$? |
| 15474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15475 | (exit $ac_status); } && |
| 15476 | { ac_try='test -s conftest.$ac_objext' |
| 15477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15478 | (eval $ac_try) 2>&5 |
| 15479 | ac_status=$? |
| 15480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15481 | (exit $ac_status); }; }; then |
| 15482 | ac_lo=0 ac_mid=0 |
| 15483 | while :; do |
| 15484 | cat >conftest.$ac_ext <<_ACEOF |
| 15485 | #line $LINENO "configure" |
| 15486 | #include "confdefs.h" |
| 15487 | #include <wchar.h> |
| 15488 | |
| 15489 | #ifdef F77_DUMMY_MAIN |
| 15490 | # ifdef __cplusplus |
| 15491 | extern "C" |
| 15492 | # endif |
| 15493 | int F77_DUMMY_MAIN() { return 1; } |
| 15494 | #endif |
| 15495 | int |
| 15496 | main () |
| 15497 | { |
| 15498 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 15499 | test_array [0] = 0 |
| 15500 | |
| 15501 | ; |
| 15502 | return 0; |
| 15503 | } |
| 15504 | _ACEOF |
| 15505 | rm -f conftest.$ac_objext |
| 15506 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15507 | (eval $ac_compile) 2>&5 |
| 15508 | ac_status=$? |
| 15509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15510 | (exit $ac_status); } && |
| 15511 | { ac_try='test -s conftest.$ac_objext' |
| 15512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15513 | (eval $ac_try) 2>&5 |
| 15514 | ac_status=$? |
| 15515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15516 | (exit $ac_status); }; }; then |
| 15517 | ac_hi=$ac_mid; break |
| 15518 | else |
| 15519 | echo "$as_me: failed program was:" >&5 |
| 15520 | cat conftest.$ac_ext >&5 |
| 15521 | ac_lo=`expr $ac_mid + 1` |
| 15522 | if test $ac_lo -le $ac_mid; then |
| 15523 | ac_lo= ac_hi= |
| 15524 | break |
| 15525 | fi |
| 15526 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 15527 | fi |
| 15528 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15529 | done |
| 15530 | else |
| 15531 | echo "$as_me: failed program was:" >&5 |
| 15532 | cat conftest.$ac_ext >&5 |
| 15533 | cat >conftest.$ac_ext <<_ACEOF |
| 15534 | #line $LINENO "configure" |
| 15535 | #include "confdefs.h" |
| 15536 | #include <wchar.h> |
| 15537 | |
| 15538 | #ifdef F77_DUMMY_MAIN |
| 15539 | # ifdef __cplusplus |
| 15540 | extern "C" |
| 15541 | # endif |
| 15542 | int F77_DUMMY_MAIN() { return 1; } |
| 15543 | #endif |
| 15544 | int |
| 15545 | main () |
| 15546 | { |
| 15547 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; |
| 15548 | test_array [0] = 0 |
| 15549 | |
| 15550 | ; |
| 15551 | return 0; |
| 15552 | } |
| 15553 | _ACEOF |
| 15554 | rm -f conftest.$ac_objext |
| 15555 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15556 | (eval $ac_compile) 2>&5 |
| 15557 | ac_status=$? |
| 15558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15559 | (exit $ac_status); } && |
| 15560 | { ac_try='test -s conftest.$ac_objext' |
| 15561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15562 | (eval $ac_try) 2>&5 |
| 15563 | ac_status=$? |
| 15564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15565 | (exit $ac_status); }; }; then |
| 15566 | ac_hi=-1 ac_mid=-1 |
| 15567 | while :; do |
| 15568 | cat >conftest.$ac_ext <<_ACEOF |
| 15569 | #line $LINENO "configure" |
| 15570 | #include "confdefs.h" |
| 15571 | #include <wchar.h> |
| 15572 | |
| 15573 | #ifdef F77_DUMMY_MAIN |
| 15574 | # ifdef __cplusplus |
| 15575 | extern "C" |
| 15576 | # endif |
| 15577 | int F77_DUMMY_MAIN() { return 1; } |
| 15578 | #endif |
| 15579 | int |
| 15580 | main () |
| 15581 | { |
| 15582 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; |
| 15583 | test_array [0] = 0 |
| 15584 | |
| 15585 | ; |
| 15586 | return 0; |
| 15587 | } |
| 15588 | _ACEOF |
| 15589 | rm -f conftest.$ac_objext |
| 15590 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15591 | (eval $ac_compile) 2>&5 |
| 15592 | ac_status=$? |
| 15593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15594 | (exit $ac_status); } && |
| 15595 | { ac_try='test -s conftest.$ac_objext' |
| 15596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15597 | (eval $ac_try) 2>&5 |
| 15598 | ac_status=$? |
| 15599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15600 | (exit $ac_status); }; }; then |
| 15601 | ac_lo=$ac_mid; break |
| 15602 | else |
| 15603 | echo "$as_me: failed program was:" >&5 |
| 15604 | cat conftest.$ac_ext >&5 |
| 15605 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 15606 | if test $ac_mid -le $ac_hi; then |
| 15607 | ac_lo= ac_hi= |
| 15608 | break |
| 15609 | fi |
| 15610 | ac_mid=`expr 2 '*' $ac_mid` |
| 15611 | fi |
| 15612 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15613 | done |
| 15614 | else |
| 15615 | echo "$as_me: failed program was:" >&5 |
| 15616 | cat conftest.$ac_ext >&5 |
| 15617 | ac_lo= ac_hi= |
| 15618 | fi |
| 15619 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15620 | fi |
| 15621 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15622 | # Binary search between lo and hi bounds. |
| 15623 | while test "x$ac_lo" != "x$ac_hi"; do |
| 15624 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 15625 | cat >conftest.$ac_ext <<_ACEOF |
| 15626 | #line $LINENO "configure" |
| 15627 | #include "confdefs.h" |
| 15628 | #include <wchar.h> |
| 15629 | |
| 15630 | #ifdef F77_DUMMY_MAIN |
| 15631 | # ifdef __cplusplus |
| 15632 | extern "C" |
| 15633 | # endif |
| 15634 | int F77_DUMMY_MAIN() { return 1; } |
| 15635 | #endif |
| 15636 | int |
| 15637 | main () |
| 15638 | { |
| 15639 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 15640 | test_array [0] = 0 |
| 15641 | |
| 15642 | ; |
| 15643 | return 0; |
| 15644 | } |
| 15645 | _ACEOF |
| 15646 | rm -f conftest.$ac_objext |
| 15647 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15648 | (eval $ac_compile) 2>&5 |
| 15649 | ac_status=$? |
| 15650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15651 | (exit $ac_status); } && |
| 15652 | { ac_try='test -s conftest.$ac_objext' |
| 15653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15654 | (eval $ac_try) 2>&5 |
| 15655 | ac_status=$? |
| 15656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15657 | (exit $ac_status); }; }; then |
| 15658 | ac_hi=$ac_mid |
| 15659 | else |
| 15660 | echo "$as_me: failed program was:" >&5 |
| 15661 | cat conftest.$ac_ext >&5 |
| 15662 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 15663 | fi |
| 15664 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15665 | done |
| 15666 | case $ac_lo in |
| 15667 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
| 15668 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5 |
| 15669 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;} |
| 15670 | { (exit 1); exit 1; }; } ;; |
| 15671 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15672 | else |
| 15673 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15674 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 15675 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 15676 | { (exit 1); exit 1; }; } |
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 | cat >conftest.$ac_ext <<_ACEOF |
| 15679 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15680 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15681 | #include <wchar.h> |
| 15682 | |
| 15683 | long longval () { return (long) (sizeof (wchar_t)); } |
| 15684 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15685 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15686 | #include <stdlib.h> |
| 15687 | #ifdef F77_DUMMY_MAIN |
| 15688 | # ifdef __cplusplus |
| 15689 | extern "C" |
| 15690 | # endif |
| 15691 | int F77_DUMMY_MAIN() { return 1; } |
| 15692 | #endif |
| 15693 | int |
| 15694 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15695 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15696 | |
| 15697 | FILE *f = fopen ("conftest.val", "w"); |
| 15698 | if (! f) |
| 15699 | exit (1); |
| 15700 | if (((long) (sizeof (wchar_t))) < 0) |
| 15701 | { |
| 15702 | long i = longval (); |
| 15703 | if (i != ((long) (sizeof (wchar_t)))) |
| 15704 | exit (1); |
| 15705 | fprintf (f, "%ld\n", i); |
| 15706 | } |
| 15707 | else |
| 15708 | { |
| 15709 | unsigned long i = ulongval (); |
| 15710 | if (i != ((long) (sizeof (wchar_t)))) |
| 15711 | exit (1); |
| 15712 | fprintf (f, "%lu\n", i); |
| 15713 | } |
| 15714 | exit (ferror (f) || fclose (f) != 0); |
| 15715 | |
| 15716 | ; |
| 15717 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15718 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15719 | _ACEOF |
| 15720 | rm -f conftest$ac_exeext |
| 15721 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15722 | (eval $ac_link) 2>&5 |
| 15723 | ac_status=$? |
| 15724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15725 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15727 | (eval $ac_try) 2>&5 |
| 15728 | ac_status=$? |
| 15729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15730 | (exit $ac_status); }; }; then |
| 15731 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15732 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15733 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15734 | echo "$as_me: failed program was:" >&5 |
| 15735 | cat conftest.$ac_ext >&5 |
| 15736 | ( exit $ac_status ) |
| 15737 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5 |
| 15738 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;} |
| 15739 | { (exit 1); exit 1; }; } |
| 15740 | fi |
| 15741 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15742 | fi |
| 15743 | fi |
| 15744 | rm -f conftest.val |
| 15745 | else |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15746 | ac_cv_sizeof_wchar_t=0 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15747 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15748 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15749 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 15750 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 |
| 15751 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15752 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15753 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15754 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15755 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15756 | fi |
| 15757 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15758 | echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 15759 | 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] | 15760 | # Check whether --enable-unicode or --disable-unicode was given. |
| 15761 | if test "${enable_unicode+set}" = set; then |
| 15762 | enableval="$enable_unicode" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15763 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15764 | else |
| 15765 | enable_unicode=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15766 | fi; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15767 | |
| 15768 | if test $enable_unicode = yes |
| 15769 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 15770 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
| 15771 | enable_unicode="ucs2" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15772 | fi |
| 15773 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 15774 | |
| 15775 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15776 | case "$enable_unicode" in |
| 15777 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15778 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15779 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15780 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15781 | |
| 15782 | ;; |
| 15783 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15784 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15785 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15786 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15787 | |
| 15788 | ;; |
| 15789 | esac |
| 15790 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15791 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15792 | |
| 15793 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 15794 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15795 | if test "$enable_unicode" = "no" |
| 15796 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 15797 | UNICODE_OBJS="" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15798 | echo "$as_me:$LINENO: result: not used" >&5 |
| 15799 | echo "${ECHO_T}not used" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15800 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 15801 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15802 | |
| 15803 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15804 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15805 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15806 | |
| 15807 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" |
| 15808 | then |
| 15809 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15810 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15811 | cat >>confdefs.h <<\_ACEOF |
| 15812 | #define HAVE_USABLE_WCHAR_T 1 |
| 15813 | _ACEOF |
| 15814 | |
| 15815 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15816 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15817 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15818 | |
| 15819 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 15820 | then |
| 15821 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15822 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15823 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15824 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15825 | |
| 15826 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 15827 | then |
| 15828 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15829 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15830 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15831 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15832 | |
| 15833 | else |
| 15834 | PY_UNICODE_TYPE="no type found" |
| 15835 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15836 | echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 15837 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15838 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15839 | |
| 15840 | # check for endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15841 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 15842 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 15843 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 15844 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15845 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15846 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 15847 | cat >conftest.$ac_ext <<_ACEOF |
| 15848 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15849 | #include "confdefs.h" |
| 15850 | #include <sys/types.h> |
| 15851 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15852 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15853 | #ifdef F77_DUMMY_MAIN |
| 15854 | # ifdef __cplusplus |
| 15855 | extern "C" |
| 15856 | # endif |
| 15857 | int F77_DUMMY_MAIN() { return 1; } |
| 15858 | #endif |
| 15859 | int |
| 15860 | main () |
| 15861 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15862 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 15863 | bogus endian macros |
| 15864 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15865 | |
| 15866 | ; |
| 15867 | return 0; |
| 15868 | } |
| 15869 | _ACEOF |
| 15870 | rm -f conftest.$ac_objext |
| 15871 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15872 | (eval $ac_compile) 2>&5 |
| 15873 | ac_status=$? |
| 15874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15875 | (exit $ac_status); } && |
| 15876 | { ac_try='test -s conftest.$ac_objext' |
| 15877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15878 | (eval $ac_try) 2>&5 |
| 15879 | ac_status=$? |
| 15880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15881 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15882 | # 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] | 15883 | cat >conftest.$ac_ext <<_ACEOF |
| 15884 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15885 | #include "confdefs.h" |
| 15886 | #include <sys/types.h> |
| 15887 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15888 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15889 | #ifdef F77_DUMMY_MAIN |
| 15890 | # ifdef __cplusplus |
| 15891 | extern "C" |
| 15892 | # endif |
| 15893 | int F77_DUMMY_MAIN() { return 1; } |
| 15894 | #endif |
| 15895 | int |
| 15896 | main () |
| 15897 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15898 | #if BYTE_ORDER != BIG_ENDIAN |
| 15899 | not big endian |
| 15900 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15901 | |
| 15902 | ; |
| 15903 | return 0; |
| 15904 | } |
| 15905 | _ACEOF |
| 15906 | rm -f conftest.$ac_objext |
| 15907 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15908 | (eval $ac_compile) 2>&5 |
| 15909 | ac_status=$? |
| 15910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15911 | (exit $ac_status); } && |
| 15912 | { ac_try='test -s conftest.$ac_objext' |
| 15913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15914 | (eval $ac_try) 2>&5 |
| 15915 | ac_status=$? |
| 15916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15917 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15918 | ac_cv_c_bigendian=yes |
| 15919 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15920 | echo "$as_me: failed program was:" >&5 |
| 15921 | cat conftest.$ac_ext >&5 |
| 15922 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15923 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15924 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15925 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15926 | echo "$as_me: failed program was:" >&5 |
| 15927 | cat conftest.$ac_ext >&5 |
| 15928 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15929 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15930 | # try to guess the endianess by grep'ing values into an object file |
| 15931 | ac_cv_c_bigendian=unknown |
| 15932 | cat >conftest.$ac_ext <<_ACEOF |
| 15933 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15934 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15935 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 15936 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 15937 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 15938 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 15939 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 15940 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 15941 | #ifdef F77_DUMMY_MAIN |
| 15942 | # ifdef __cplusplus |
| 15943 | extern "C" |
| 15944 | # endif |
| 15945 | int F77_DUMMY_MAIN() { return 1; } |
| 15946 | #endif |
| 15947 | int |
| 15948 | main () |
| 15949 | { |
| 15950 | _ascii (); _ebcdic (); |
| 15951 | ; |
| 15952 | return 0; |
| 15953 | } |
| 15954 | _ACEOF |
| 15955 | rm -f conftest.$ac_objext |
| 15956 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15957 | (eval $ac_compile) 2>&5 |
| 15958 | ac_status=$? |
| 15959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15960 | (exit $ac_status); } && |
| 15961 | { ac_try='test -s conftest.$ac_objext' |
| 15962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15963 | (eval $ac_try) 2>&5 |
| 15964 | ac_status=$? |
| 15965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15966 | (exit $ac_status); }; }; then |
| 15967 | if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 15968 | ac_cv_c_bigendian=yes |
| 15969 | fi |
| 15970 | if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 15971 | if test "$ac_cv_c_bigendian" = unknown; then |
| 15972 | ac_cv_c_bigendian=no |
| 15973 | else |
| 15974 | # finding both strings is unlikely to happen, but who knows? |
| 15975 | ac_cv_c_bigendian=unknown |
| 15976 | fi |
| 15977 | fi |
| 15978 | else |
| 15979 | echo "$as_me: failed program was:" >&5 |
| 15980 | cat conftest.$ac_ext >&5 |
| 15981 | fi |
| 15982 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15983 | else |
| 15984 | cat >conftest.$ac_ext <<_ACEOF |
| 15985 | #line $LINENO "configure" |
| 15986 | #include "confdefs.h" |
| 15987 | int |
| 15988 | main () |
| 15989 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15990 | /* Are we little or big endian? From Harbison&Steele. */ |
| 15991 | union |
| 15992 | { |
| 15993 | long l; |
| 15994 | char c[sizeof (long)]; |
| 15995 | } u; |
| 15996 | u.l = 1; |
| 15997 | exit (u.c[sizeof (long) - 1] == 1); |
| 15998 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15999 | _ACEOF |
| 16000 | rm -f conftest$ac_exeext |
| 16001 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16002 | (eval $ac_link) 2>&5 |
| 16003 | ac_status=$? |
| 16004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16005 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16007 | (eval $ac_try) 2>&5 |
| 16008 | ac_status=$? |
| 16009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16010 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16011 | ac_cv_c_bigendian=no |
| 16012 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16013 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16014 | echo "$as_me: failed program was:" >&5 |
| 16015 | cat conftest.$ac_ext >&5 |
| 16016 | ( exit $ac_status ) |
| 16017 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16018 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16019 | 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] | 16020 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16021 | fi |
| 16022 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16023 | fi |
| 16024 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 16025 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 16026 | case $ac_cv_c_bigendian in |
| 16027 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16028 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16029 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16030 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16031 | _ACEOF |
| 16032 | ;; |
| 16033 | no) |
| 16034 | ;; |
| 16035 | *) |
| 16036 | { { echo "$as_me:$LINENO: error: unknown endianess |
| 16037 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 16038 | echo "$as_me: error: unknown endianess |
| 16039 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 16040 | { (exit 1); exit 1; }; } ;; |
| 16041 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16042 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16043 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16044 | # Check whether right shifting a negative integer extends the sign bit |
| 16045 | # 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] | 16046 | echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 16047 | echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6 |
| 16048 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 16049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16050 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16051 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16052 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 16053 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16054 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16055 | cat >conftest.$ac_ext <<_ACEOF |
| 16056 | #line $LINENO "configure" |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16057 | #include "confdefs.h" |
| 16058 | |
| 16059 | int main() |
| 16060 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16061 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16062 | } |
| 16063 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16064 | _ACEOF |
| 16065 | rm -f conftest$ac_exeext |
| 16066 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16067 | (eval $ac_link) 2>&5 |
| 16068 | ac_status=$? |
| 16069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16070 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16072 | (eval $ac_try) 2>&5 |
| 16073 | ac_status=$? |
| 16074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16075 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16076 | ac_cv_rshift_extends_sign=yes |
| 16077 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16078 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16079 | echo "$as_me: failed program was:" >&5 |
| 16080 | cat conftest.$ac_ext >&5 |
| 16081 | ( exit $ac_status ) |
| 16082 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16083 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16084 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 16085 | fi |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16086 | fi |
| 16087 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16088 | echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 16089 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16090 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16091 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16092 | |
| 16093 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16094 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16095 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16096 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16097 | fi |
| 16098 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16099 | # check for getc_unlocked and related locking functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16100 | echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 16101 | echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6 |
| 16102 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 16103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16104 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16105 | |
| 16106 | cat >conftest.$ac_ext <<_ACEOF |
| 16107 | #line $LINENO "configure" |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16108 | #include "confdefs.h" |
| 16109 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16110 | #ifdef F77_DUMMY_MAIN |
| 16111 | # ifdef __cplusplus |
| 16112 | extern "C" |
| 16113 | # endif |
| 16114 | int F77_DUMMY_MAIN() { return 1; } |
| 16115 | #endif |
| 16116 | int |
| 16117 | main () |
| 16118 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16119 | |
| 16120 | FILE *f = fopen("/dev/null", "r"); |
| 16121 | flockfile(f); |
| 16122 | getc_unlocked(f); |
| 16123 | funlockfile(f); |
| 16124 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16125 | ; |
| 16126 | return 0; |
| 16127 | } |
| 16128 | _ACEOF |
| 16129 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16130 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16131 | (eval $ac_link) 2>&5 |
| 16132 | ac_status=$? |
| 16133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16134 | (exit $ac_status); } && |
| 16135 | { ac_try='test -s conftest$ac_exeext' |
| 16136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16137 | (eval $ac_try) 2>&5 |
| 16138 | ac_status=$? |
| 16139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16140 | (exit $ac_status); }; }; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16141 | ac_cv_have_getc_unlocked=yes |
| 16142 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16143 | echo "$as_me: failed program was:" >&5 |
| 16144 | cat conftest.$ac_ext >&5 |
| 16145 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16146 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16147 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16148 | fi |
| 16149 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16150 | echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 16151 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16152 | if test "$ac_cv_have_getc_unlocked" = yes |
| 16153 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16154 | |
| 16155 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16156 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16157 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16158 | |
| 16159 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16160 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16161 | # check for readline 4.0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16162 | echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 16163 | echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6 |
| 16164 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 16165 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16166 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16167 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16168 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16169 | cat >conftest.$ac_ext <<_ACEOF |
| 16170 | #line $LINENO "configure" |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16171 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16172 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16173 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16174 | #ifdef __cplusplus |
| 16175 | extern "C" |
| 16176 | #endif |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16177 | /* 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] | 16178 | builtin and then its argument prototype would still apply. */ |
| 16179 | char rl_pre_input_hook (); |
| 16180 | #ifdef F77_DUMMY_MAIN |
| 16181 | # ifdef __cplusplus |
| 16182 | extern "C" |
| 16183 | # endif |
| 16184 | int F77_DUMMY_MAIN() { return 1; } |
| 16185 | #endif |
| 16186 | int |
| 16187 | main () |
| 16188 | { |
| 16189 | rl_pre_input_hook (); |
| 16190 | ; |
| 16191 | return 0; |
| 16192 | } |
| 16193 | _ACEOF |
| 16194 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16195 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16196 | (eval $ac_link) 2>&5 |
| 16197 | ac_status=$? |
| 16198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16199 | (exit $ac_status); } && |
| 16200 | { ac_try='test -s conftest$ac_exeext' |
| 16201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16202 | (eval $ac_try) 2>&5 |
| 16203 | ac_status=$? |
| 16204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16205 | (exit $ac_status); }; }; then |
| 16206 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16207 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16208 | echo "$as_me: failed program was:" >&5 |
| 16209 | cat conftest.$ac_ext >&5 |
| 16210 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16211 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16212 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16213 | LIBS=$ac_check_lib_save_LIBS |
| 16214 | fi |
| 16215 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 16216 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6 |
| 16217 | 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] | 16218 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16219 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16220 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16221 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16222 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16223 | fi |
| 16224 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16225 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16226 | # check for readline 4.2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16227 | echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 16228 | echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6 |
| 16229 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 16230 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16231 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16232 | ac_check_lib_save_LIBS=$LIBS |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16233 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16234 | cat >conftest.$ac_ext <<_ACEOF |
| 16235 | #line $LINENO "configure" |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16236 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16237 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16238 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16239 | #ifdef __cplusplus |
| 16240 | extern "C" |
| 16241 | #endif |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16242 | /* 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] | 16243 | builtin and then its argument prototype would still apply. */ |
| 16244 | char rl_completion_matches (); |
| 16245 | #ifdef F77_DUMMY_MAIN |
| 16246 | # ifdef __cplusplus |
| 16247 | extern "C" |
| 16248 | # endif |
| 16249 | int F77_DUMMY_MAIN() { return 1; } |
| 16250 | #endif |
| 16251 | int |
| 16252 | main () |
| 16253 | { |
| 16254 | rl_completion_matches (); |
| 16255 | ; |
| 16256 | return 0; |
| 16257 | } |
| 16258 | _ACEOF |
| 16259 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16260 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16261 | (eval $ac_link) 2>&5 |
| 16262 | ac_status=$? |
| 16263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16264 | (exit $ac_status); } && |
| 16265 | { ac_try='test -s conftest$ac_exeext' |
| 16266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16267 | (eval $ac_try) 2>&5 |
| 16268 | ac_status=$? |
| 16269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16270 | (exit $ac_status); }; }; then |
| 16271 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16272 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16273 | echo "$as_me: failed program was:" >&5 |
| 16274 | cat conftest.$ac_ext >&5 |
| 16275 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16276 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16277 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16278 | LIBS=$ac_check_lib_save_LIBS |
| 16279 | fi |
| 16280 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 16281 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6 |
| 16282 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16283 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16284 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16285 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16286 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16287 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16288 | fi |
| 16289 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16290 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16291 | echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 16292 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6 |
| 16293 | if test "${ac_cv_broken_nice+set}" = set; then |
| 16294 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16295 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16296 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16297 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 16298 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16299 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16300 | cat >conftest.$ac_ext <<_ACEOF |
| 16301 | #line $LINENO "configure" |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16302 | #include "confdefs.h" |
| 16303 | |
| 16304 | int main() |
| 16305 | { |
| 16306 | int val1 = nice(1); |
| 16307 | if (val1 != -1 && val1 == nice(2)) |
| 16308 | exit(0); |
| 16309 | exit(1); |
| 16310 | } |
| 16311 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16312 | _ACEOF |
| 16313 | rm -f conftest$ac_exeext |
| 16314 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16315 | (eval $ac_link) 2>&5 |
| 16316 | ac_status=$? |
| 16317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16318 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16320 | (eval $ac_try) 2>&5 |
| 16321 | ac_status=$? |
| 16322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16323 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16324 | ac_cv_broken_nice=yes |
| 16325 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16326 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16327 | echo "$as_me: failed program was:" >&5 |
| 16328 | cat conftest.$ac_ext >&5 |
| 16329 | ( exit $ac_status ) |
| 16330 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16331 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16332 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 16333 | fi |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16334 | fi |
| 16335 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16336 | echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 16337 | echo "${ECHO_T}$ac_cv_broken_nice" >&6 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16338 | if test "$ac_cv_broken_nice" = yes |
| 16339 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16340 | |
| 16341 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16342 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16343 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16344 | |
| 16345 | fi |
| 16346 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16347 | # Look for subsecond timestamps in struct stat |
| 16348 | echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 16349 | echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6 |
| 16350 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
| 16351 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16352 | else |
| 16353 | cat >conftest.$ac_ext <<_ACEOF |
| 16354 | #line $LINENO "configure" |
| 16355 | #include "confdefs.h" |
| 16356 | #include <sys/stat.h> |
| 16357 | #ifdef F77_DUMMY_MAIN |
| 16358 | # ifdef __cplusplus |
| 16359 | extern "C" |
| 16360 | # endif |
| 16361 | int F77_DUMMY_MAIN() { return 1; } |
| 16362 | #endif |
| 16363 | int |
| 16364 | main () |
| 16365 | { |
| 16366 | |
| 16367 | struct stat st; |
| 16368 | st.st_mtim.tv_nsec = 1; |
| 16369 | |
| 16370 | ; |
| 16371 | return 0; |
| 16372 | } |
| 16373 | _ACEOF |
| 16374 | rm -f conftest.$ac_objext |
| 16375 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16376 | (eval $ac_compile) 2>&5 |
| 16377 | ac_status=$? |
| 16378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16379 | (exit $ac_status); } && |
| 16380 | { ac_try='test -s conftest.$ac_objext' |
| 16381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16382 | (eval $ac_try) 2>&5 |
| 16383 | ac_status=$? |
| 16384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16385 | (exit $ac_status); }; }; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 16386 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16387 | else |
| 16388 | echo "$as_me: failed program was:" >&5 |
| 16389 | cat conftest.$ac_ext >&5 |
| 16390 | ac_cv_stat_tv_nsec=no |
| 16391 | fi |
| 16392 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16393 | fi |
| 16394 | |
| 16395 | echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 16396 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6 |
| 16397 | if test "$ac_cv_stat_tv_nsec" = yes |
| 16398 | then |
| 16399 | |
| 16400 | cat >>confdefs.h <<\_ACEOF |
| 16401 | #define HAVE_STAT_TV_NSEC 1 |
| 16402 | _ACEOF |
| 16403 | |
| 16404 | fi |
| 16405 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16406 | # 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] | 16407 | echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 16408 | echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6 |
| 16409 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 16410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16411 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16412 | cat >conftest.$ac_ext <<_ACEOF |
| 16413 | #line $LINENO "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16414 | #include "confdefs.h" |
| 16415 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16416 | #ifdef F77_DUMMY_MAIN |
| 16417 | # ifdef __cplusplus |
| 16418 | extern "C" |
| 16419 | # endif |
| 16420 | int F77_DUMMY_MAIN() { return 1; } |
| 16421 | #endif |
| 16422 | int |
| 16423 | main () |
| 16424 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16425 | |
| 16426 | int rtn; |
| 16427 | rtn = mvwdelch(0,0,0); |
| 16428 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16429 | ; |
| 16430 | return 0; |
| 16431 | } |
| 16432 | _ACEOF |
| 16433 | rm -f conftest.$ac_objext |
| 16434 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16435 | (eval $ac_compile) 2>&5 |
| 16436 | ac_status=$? |
| 16437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16438 | (exit $ac_status); } && |
| 16439 | { ac_try='test -s conftest.$ac_objext' |
| 16440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16441 | (eval $ac_try) 2>&5 |
| 16442 | ac_status=$? |
| 16443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16444 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16445 | ac_cv_mvwdelch_is_expression=yes |
| 16446 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16447 | echo "$as_me: failed program was:" >&5 |
| 16448 | cat conftest.$ac_ext >&5 |
| 16449 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16450 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16451 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16452 | fi |
| 16453 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16454 | echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 16455 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16456 | |
| 16457 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 16458 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16459 | |
| 16460 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16461 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16462 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16463 | |
| 16464 | fi |
| 16465 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16466 | echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 16467 | echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6 |
| 16468 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 16469 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16470 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16471 | cat >conftest.$ac_ext <<_ACEOF |
| 16472 | #line $LINENO "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16473 | #include "confdefs.h" |
| 16474 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16475 | #ifdef F77_DUMMY_MAIN |
| 16476 | # ifdef __cplusplus |
| 16477 | extern "C" |
| 16478 | # endif |
| 16479 | int F77_DUMMY_MAIN() { return 1; } |
| 16480 | #endif |
| 16481 | int |
| 16482 | main () |
| 16483 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16484 | |
| 16485 | WINDOW *w; |
| 16486 | w->_flags = 0; |
| 16487 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16488 | ; |
| 16489 | return 0; |
| 16490 | } |
| 16491 | _ACEOF |
| 16492 | rm -f conftest.$ac_objext |
| 16493 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16494 | (eval $ac_compile) 2>&5 |
| 16495 | ac_status=$? |
| 16496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16497 | (exit $ac_status); } && |
| 16498 | { ac_try='test -s conftest.$ac_objext' |
| 16499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16500 | (eval $ac_try) 2>&5 |
| 16501 | ac_status=$? |
| 16502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16503 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16504 | ac_cv_window_has_flags=yes |
| 16505 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16506 | echo "$as_me: failed program was:" >&5 |
| 16507 | cat conftest.$ac_ext >&5 |
| 16508 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16509 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16510 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16511 | fi |
| 16512 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16513 | echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 16514 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16515 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16516 | |
| 16517 | if test "$ac_cv_window_has_flags" = yes |
| 16518 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16519 | |
| 16520 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16521 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16522 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16523 | |
| 16524 | fi |
| 16525 | |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16526 | # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS! |
| 16527 | # Add sys/socket.h to confdefs.h |
| 16528 | cat >> confdefs.h <<\EOF |
| 16529 | #ifdef HAVE_SYS_SOCKET_H |
| 16530 | #include <sys/socket.h> |
| 16531 | #endif |
| 16532 | EOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16533 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 16534 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 16535 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 16536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16537 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16538 | cat >conftest.$ac_ext <<_ACEOF |
| 16539 | #line $LINENO "configure" |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16540 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16541 | $ac_includes_default |
| 16542 | #ifdef F77_DUMMY_MAIN |
| 16543 | # ifdef __cplusplus |
| 16544 | extern "C" |
| 16545 | # endif |
| 16546 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16547 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16548 | int |
| 16549 | main () |
| 16550 | { |
| 16551 | if ((socklen_t *) 0) |
| 16552 | return 0; |
| 16553 | if (sizeof (socklen_t)) |
| 16554 | return 0; |
| 16555 | ; |
| 16556 | return 0; |
| 16557 | } |
| 16558 | _ACEOF |
| 16559 | rm -f conftest.$ac_objext |
| 16560 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16561 | (eval $ac_compile) 2>&5 |
| 16562 | ac_status=$? |
| 16563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16564 | (exit $ac_status); } && |
| 16565 | { ac_try='test -s conftest.$ac_objext' |
| 16566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16567 | (eval $ac_try) 2>&5 |
| 16568 | ac_status=$? |
| 16569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16570 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16571 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16572 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16573 | echo "$as_me: failed program was:" >&5 |
| 16574 | cat conftest.$ac_ext >&5 |
| 16575 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16576 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16577 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16578 | fi |
| 16579 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 16580 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| 16581 | if test $ac_cv_type_socklen_t = yes; then |
| 16582 | : |
| 16583 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16584 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16585 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16586 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16587 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16588 | |
| 16589 | fi |
| 16590 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16591 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16592 | #AC_MSG_CHECKING(for Modules/Setup) |
| 16593 | #if test ! -f Modules/Setup ; then |
| 16594 | # if test ! -d Modules ; then |
| 16595 | # mkdir Modules |
| 16596 | # fi |
| 16597 | # cp "$srcdir/Modules/Setup.dist" Modules/Setup |
| 16598 | # AC_MSG_RESULT(creating) |
| 16599 | #else |
| 16600 | # AC_MSG_RESULT(already exists) |
| 16601 | #fi |
| 16602 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16603 | |
| 16604 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 16605 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 16606 | do |
| 16607 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 16608 | done |
| 16609 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16610 | |
Jack Jansen | 0b06be7 | 2002-06-21 14:48:38 +0000 | [diff] [blame] | 16611 | SRCDIRS="Parser Grammar Objects Python Modules Mac Mac/Python" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16612 | echo "$as_me:$LINENO: checking for build directories" >&5 |
| 16613 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16614 | for dir in $SRCDIRS; do |
| 16615 | if test ! -d $dir; then |
| 16616 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 16617 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16618 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16619 | echo "$as_me:$LINENO: result: done" >&5 |
| 16620 | echo "${ECHO_T}done" >&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 16621 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16622 | # generate output files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16623 | 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] | 16624 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16625 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16626 | # This file is a shell script that caches the results of configure |
| 16627 | # 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] | 16628 | # scripts and configure runs, see configure's option --config-cache. |
| 16629 | # It is not useful on other systems. If it contains results you don't |
| 16630 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16631 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16632 | # config.status only pays attention to the cache file if you give it |
| 16633 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16634 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16635 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
| 16636 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 16637 | # following values. |
| 16638 | |
| 16639 | _ACEOF |
| 16640 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 16641 | # The following way of writing the cache mishandles newlines in values, |
| 16642 | # but we know of no workaround that is simple, portable, and efficient. |
| 16643 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16644 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 16645 | # 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] | 16646 | { |
| 16647 | (set) 2>&1 | |
| 16648 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 16649 | *ac_space=\ *) |
| 16650 | # `set' does not quote correctly, so add quotes (double-quote |
| 16651 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 16652 | sed -n \ |
| 16653 | "s/'/'\\\\''/g; |
| 16654 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 16655 | ;; |
| 16656 | *) |
| 16657 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 16658 | sed -n \ |
| 16659 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 16660 | ;; |
| 16661 | esac; |
| 16662 | } | |
| 16663 | sed ' |
| 16664 | t clear |
| 16665 | : clear |
| 16666 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 16667 | t end |
| 16668 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 16669 | : end' >>confcache |
| 16670 | if cmp -s $cache_file confcache; then :; else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16671 | if test -w $cache_file; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16672 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 16673 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16674 | else |
| 16675 | echo "not updating unwritable cache $cache_file" |
| 16676 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16677 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16678 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16679 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16680 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 16681 | # Let make expand exec_prefix. |
| 16682 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16683 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16684 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 16685 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 16686 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 16687 | # (actually we leave an empty line to preserve line numbers). |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16688 | if test "x$srcdir" = x.; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16689 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 16690 | s/:*\$(srcdir):*/:/; |
| 16691 | s/:*\${srcdir}:*/:/; |
| 16692 | s/:*@srcdir@:*/:/; |
| 16693 | s/^\([^=]*=[ ]*\):*/\1/; |
| 16694 | s/:*$//; |
| 16695 | s/^[^=]*=[ ]*$//; |
| 16696 | }' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16697 | fi |
| 16698 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16699 | DEFS=-DHAVE_CONFIG_H |
| 16700 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16701 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16702 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16703 | ac_clean_files_save=$ac_clean_files |
| 16704 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 16705 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 16706 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 16707 | cat >$CONFIG_STATUS <<_ACEOF |
| 16708 | #! $SHELL |
| 16709 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16710 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16711 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16712 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16713 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16714 | debug=false |
| 16715 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 16716 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16717 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16718 | cat >>$CONFIG_STATUS <<\_ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16719 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16720 | ## --------------------- ## |
| 16721 | ## M4sh Initialization. ## |
| 16722 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16723 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16724 | # Be Bourne compatible |
| 16725 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16726 | emulate sh |
| 16727 | NULLCMD=: |
| 16728 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 16729 | set -o posix |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16730 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16731 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16732 | # NLS nuisances. |
| 16733 | # Support unset when possible. |
| 16734 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 16735 | as_unset=unset |
| 16736 | else |
| 16737 | as_unset=false |
| 16738 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16739 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16740 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && |
| 16741 | { $as_unset LANG || test "${LANG+set}" != set; } || |
| 16742 | { LANG=C; export LANG; } |
| 16743 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && |
| 16744 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || |
| 16745 | { LC_ALL=C; export LC_ALL; } |
| 16746 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && |
| 16747 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || |
| 16748 | { LC_TIME=C; export LC_TIME; } |
| 16749 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && |
| 16750 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || |
| 16751 | { LC_CTYPE=C; export LC_CTYPE; } |
| 16752 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && |
| 16753 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || |
| 16754 | { LANGUAGE=C; export LANGUAGE; } |
| 16755 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && |
| 16756 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || |
| 16757 | { LC_COLLATE=C; export LC_COLLATE; } |
| 16758 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && |
| 16759 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || |
| 16760 | { LC_NUMERIC=C; export LC_NUMERIC; } |
| 16761 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && |
| 16762 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || |
| 16763 | { LC_MESSAGES=C; export LC_MESSAGES; } |
| 16764 | |
| 16765 | |
| 16766 | # Name of the executable. |
| 16767 | as_me=`(basename "$0") 2>/dev/null || |
| 16768 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 16769 | X"$0" : 'X\(//\)$' \| \ |
| 16770 | X"$0" : 'X\(/\)$' \| \ |
| 16771 | . : '\(.\)' 2>/dev/null || |
| 16772 | echo X/"$0" | |
| 16773 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 16774 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 16775 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 16776 | s/.*/./; q'` |
| 16777 | |
| 16778 | # PATH needs CR, and LINENO needs CR and PATH. |
| 16779 | # Avoid depending upon Character Ranges. |
| 16780 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 16781 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 16782 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 16783 | as_cr_digits='0123456789' |
| 16784 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 16785 | |
| 16786 | # The user is always right. |
| 16787 | if test "${PATH_SEPARATOR+set}" != set; then |
| 16788 | echo "#! /bin/sh" >conftest.sh |
| 16789 | echo "exit 0" >>conftest.sh |
| 16790 | chmod +x conftest.sh |
| 16791 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
| 16792 | PATH_SEPARATOR=';' |
| 16793 | else |
| 16794 | PATH_SEPARATOR=: |
| 16795 | fi |
| 16796 | rm -f conftest.sh |
| 16797 | fi |
| 16798 | |
| 16799 | |
| 16800 | as_lineno_1=$LINENO |
| 16801 | as_lineno_2=$LINENO |
| 16802 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 16803 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 16804 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 16805 | # Find who we are. Look in the path if we contain no path at all |
| 16806 | # relative or not. |
| 16807 | case $0 in |
| 16808 | *[\\/]* ) as_myself=$0 ;; |
| 16809 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16810 | for as_dir in $PATH |
| 16811 | do |
| 16812 | IFS=$as_save_IFS |
| 16813 | test -z "$as_dir" && as_dir=. |
| 16814 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 16815 | done |
| 16816 | |
| 16817 | ;; |
| 16818 | esac |
| 16819 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 16820 | # in which case we are not to be found in the path. |
| 16821 | if test "x$as_myself" = x; then |
| 16822 | as_myself=$0 |
| 16823 | fi |
| 16824 | if test ! -f "$as_myself"; then |
| 16825 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 16826 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 16827 | { (exit 1); exit 1; }; } |
| 16828 | fi |
| 16829 | case $CONFIG_SHELL in |
| 16830 | '') |
| 16831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16832 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 16833 | do |
| 16834 | IFS=$as_save_IFS |
| 16835 | test -z "$as_dir" && as_dir=. |
| 16836 | for as_base in sh bash ksh sh5; do |
| 16837 | case $as_dir in |
| 16838 | /*) |
| 16839 | if ("$as_dir/$as_base" -c ' |
| 16840 | as_lineno_1=$LINENO |
| 16841 | as_lineno_2=$LINENO |
| 16842 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 16843 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 16844 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 16845 | CONFIG_SHELL=$as_dir/$as_base |
| 16846 | export CONFIG_SHELL |
| 16847 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 16848 | fi;; |
| 16849 | esac |
| 16850 | done |
| 16851 | done |
| 16852 | ;; |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16853 | esac |
| 16854 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16855 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 16856 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 16857 | # line-number line before each line; the second 'sed' does the real |
| 16858 | # work. The second script uses 'N' to pair each line-number line |
| 16859 | # with the numbered line, and appends trailing '-' during |
| 16860 | # substitution so that $LINENO is not a special case at line end. |
| 16861 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 16862 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 16863 | sed '=' <$as_myself | |
| 16864 | sed ' |
| 16865 | N |
| 16866 | s,$,-, |
| 16867 | : loop |
| 16868 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 16869 | t loop |
| 16870 | s,-$,, |
| 16871 | s,^['$as_cr_digits']*\n,, |
| 16872 | ' >$as_me.lineno && |
| 16873 | chmod +x $as_me.lineno || |
| 16874 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 16875 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 16876 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16877 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16878 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 16879 | # (the dirname of $[0] is not the place where we might find the |
| 16880 | # original and so on. Autoconf is especially sensible to this). |
| 16881 | . ./$as_me.lineno |
| 16882 | # Exit status is that of the last command. |
| 16883 | exit |
| 16884 | } |
| 16885 | |
| 16886 | |
| 16887 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 16888 | *c*,-n*) ECHO_N= ECHO_C=' |
| 16889 | ' ECHO_T=' ' ;; |
| 16890 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 16891 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 16892 | esac |
| 16893 | |
| 16894 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 16895 | as_expr=expr |
| 16896 | else |
| 16897 | as_expr=false |
| 16898 | fi |
| 16899 | |
| 16900 | rm -f conf$$ conf$$.exe conf$$.file |
| 16901 | echo >conf$$.file |
| 16902 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 16903 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 16904 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 16905 | if test -f conf$$.exe; then |
| 16906 | # Don't use ln at all; we don't have any links |
| 16907 | as_ln_s='cp -p' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16908 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16909 | as_ln_s='ln -s' |
| 16910 | fi |
| 16911 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 16912 | as_ln_s=ln |
| 16913 | else |
| 16914 | as_ln_s='cp -p' |
| 16915 | fi |
| 16916 | rm -f conf$$ conf$$.exe conf$$.file |
| 16917 | |
| 16918 | as_executable_p="test -f" |
| 16919 | |
| 16920 | # Sed expression to map a string onto a valid CPP name. |
| 16921 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 16922 | |
| 16923 | # Sed expression to map a string onto a valid variable name. |
| 16924 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 16925 | |
| 16926 | |
| 16927 | # IFS |
| 16928 | # We need space, tab and new line, in precisely that order. |
| 16929 | as_nl=' |
| 16930 | ' |
| 16931 | IFS=" $as_nl" |
| 16932 | |
| 16933 | # CDPATH. |
| 16934 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
| 16935 | |
| 16936 | exec 6>&1 |
| 16937 | |
| 16938 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 16939 | # report actual input values of CONFIG_FILES etc. instead of their |
| 16940 | # values after options handling. Logging --version etc. is OK. |
| 16941 | exec 5>>config.log |
| 16942 | { |
| 16943 | echo |
| 16944 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 16945 | ## Running $as_me. ## |
| 16946 | _ASBOX |
| 16947 | } >&5 |
| 16948 | cat >&5 <<_CSEOF |
| 16949 | |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 16950 | 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] | 16951 | generated by GNU Autoconf 2.53. Invocation command line was |
| 16952 | |
| 16953 | CONFIG_FILES = $CONFIG_FILES |
| 16954 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 16955 | CONFIG_LINKS = $CONFIG_LINKS |
| 16956 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 16957 | $ $0 $@ |
| 16958 | |
| 16959 | _CSEOF |
| 16960 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 16961 | echo >&5 |
| 16962 | _ACEOF |
| 16963 | |
| 16964 | # Files that config.status was made for. |
| 16965 | if test -n "$ac_config_files"; then |
| 16966 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 16967 | fi |
| 16968 | |
| 16969 | if test -n "$ac_config_headers"; then |
| 16970 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 16971 | fi |
| 16972 | |
| 16973 | if test -n "$ac_config_links"; then |
| 16974 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 16975 | fi |
| 16976 | |
| 16977 | if test -n "$ac_config_commands"; then |
| 16978 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 16979 | fi |
| 16980 | |
| 16981 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 16982 | |
| 16983 | ac_cs_usage="\ |
| 16984 | \`$as_me' instantiates files from templates according to the |
| 16985 | current configuration. |
| 16986 | |
| 16987 | Usage: $0 [OPTIONS] [FILE]... |
| 16988 | |
| 16989 | -h, --help print this help, then exit |
| 16990 | -V, --version print version number, then exit |
| 16991 | -d, --debug don't remove temporary files |
| 16992 | --recheck update $as_me by reconfiguring in the same conditions |
| 16993 | --file=FILE[:TEMPLATE] |
| 16994 | instantiate the configuration file FILE |
| 16995 | --header=FILE[:TEMPLATE] |
| 16996 | instantiate the configuration header FILE |
| 16997 | |
| 16998 | Configuration files: |
| 16999 | $config_files |
| 17000 | |
| 17001 | Configuration headers: |
| 17002 | $config_headers |
| 17003 | |
| 17004 | Report bugs to <bug-autoconf@gnu.org>." |
| 17005 | _ACEOF |
| 17006 | |
| 17007 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17008 | ac_cs_version="\\ |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 17009 | python config.status 2.3 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17010 | configured by $0, generated by GNU Autoconf 2.53, |
| 17011 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 17012 | |
| 17013 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 17014 | Free Software Foundation, Inc. |
| 17015 | This config.status script is free software; the Free Software Foundation |
| 17016 | gives unlimited permission to copy, distribute and modify it." |
| 17017 | srcdir=$srcdir |
| 17018 | INSTALL="$INSTALL" |
| 17019 | _ACEOF |
| 17020 | |
| 17021 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17022 | # If no file are specified by the user, then we need to provide default |
| 17023 | # value. By we need to know if files were specified by the user. |
| 17024 | ac_need_defaults=: |
| 17025 | while test $# != 0 |
| 17026 | do |
| 17027 | case $1 in |
| 17028 | --*=*) |
| 17029 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 17030 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 17031 | shift |
| 17032 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} |
| 17033 | shift |
| 17034 | ;; |
| 17035 | -*);; |
| 17036 | *) # This is not an option, so the user has probably given explicit |
| 17037 | # arguments. |
| 17038 | ac_need_defaults=false;; |
| 17039 | esac |
| 17040 | |
| 17041 | case $1 in |
| 17042 | # Handling of the options. |
| 17043 | _ACEOF |
| 17044 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17045 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 17046 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
| 17047 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; |
| 17048 | _ACEOF |
| 17049 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17050 | --version | --vers* | -V ) |
| 17051 | echo "$ac_cs_version"; exit 0 ;; |
| 17052 | --he | --h) |
| 17053 | # Conflict between --help and --header |
| 17054 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 17055 | Try \`$0 --help' for more information." >&5 |
| 17056 | echo "$as_me: error: ambiguous option: $1 |
| 17057 | Try \`$0 --help' for more information." >&2;} |
| 17058 | { (exit 1); exit 1; }; };; |
| 17059 | --help | --hel | -h ) |
| 17060 | echo "$ac_cs_usage"; exit 0 ;; |
| 17061 | --debug | --d* | -d ) |
| 17062 | debug=: ;; |
| 17063 | --file | --fil | --fi | --f ) |
| 17064 | shift |
| 17065 | CONFIG_FILES="$CONFIG_FILES $1" |
| 17066 | ac_need_defaults=false;; |
| 17067 | --header | --heade | --head | --hea ) |
| 17068 | shift |
| 17069 | CONFIG_HEADERS="$CONFIG_HEADERS $1" |
| 17070 | ac_need_defaults=false;; |
| 17071 | |
| 17072 | # This is an error. |
| 17073 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 17074 | Try \`$0 --help' for more information." >&5 |
| 17075 | echo "$as_me: error: unrecognized option: $1 |
| 17076 | Try \`$0 --help' for more information." >&2;} |
| 17077 | { (exit 1); exit 1; }; } ;; |
| 17078 | |
| 17079 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 17080 | |
| 17081 | esac |
| 17082 | shift |
| 17083 | done |
| 17084 | |
| 17085 | _ACEOF |
| 17086 | |
| 17087 | |
| 17088 | |
| 17089 | |
| 17090 | |
| 17091 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17092 | for ac_config_target in $ac_config_targets |
| 17093 | do |
| 17094 | case "$ac_config_target" in |
| 17095 | # Handling of arguments. |
| 17096 | "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 17097 | "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 17098 | "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 17099 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 17100 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 17101 | { (exit 1); exit 1; }; };; |
| 17102 | esac |
| 17103 | done |
| 17104 | |
| 17105 | # If the user did not use the arguments to specify the items to instantiate, |
| 17106 | # then the envvar interface is used. Set only those that are not. |
| 17107 | # We use the long form for the default assignment because of an extremely |
| 17108 | # bizarre bug on SunOS 4.1.3. |
| 17109 | if $ac_need_defaults; then |
| 17110 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 17111 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 17112 | fi |
| 17113 | |
| 17114 | # Create a temporary directory, and hook for its removal unless debugging. |
| 17115 | $debug || |
| 17116 | { |
| 17117 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 17118 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 17119 | } |
| 17120 | |
| 17121 | # Create a (secure) tmp directory for tmp files. |
| 17122 | : ${TMPDIR=/tmp} |
| 17123 | { |
| 17124 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && |
| 17125 | test -n "$tmp" && test -d "$tmp" |
| 17126 | } || |
| 17127 | { |
| 17128 | tmp=$TMPDIR/cs$$-$RANDOM |
| 17129 | (umask 077 && mkdir $tmp) |
| 17130 | } || |
| 17131 | { |
| 17132 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
| 17133 | { (exit 1); exit 1; } |
| 17134 | } |
| 17135 | |
| 17136 | _ACEOF |
| 17137 | |
| 17138 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17139 | |
| 17140 | # |
| 17141 | # CONFIG_FILES section. |
| 17142 | # |
| 17143 | |
| 17144 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 17145 | # This happens for instance when ./config.status config.h |
| 17146 | if test -n "\$CONFIG_FILES"; then |
| 17147 | # Protect against being on the right side of a sed subst in config.status. |
| 17148 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 17149 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 17150 | s,@SHELL@,$SHELL,;t t |
| 17151 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 17152 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 17153 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 17154 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 17155 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 17156 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 17157 | s,@exec_prefix@,$exec_prefix,;t t |
| 17158 | s,@prefix@,$prefix,;t t |
| 17159 | s,@program_transform_name@,$program_transform_name,;t t |
| 17160 | s,@bindir@,$bindir,;t t |
| 17161 | s,@sbindir@,$sbindir,;t t |
| 17162 | s,@libexecdir@,$libexecdir,;t t |
| 17163 | s,@datadir@,$datadir,;t t |
| 17164 | s,@sysconfdir@,$sysconfdir,;t t |
| 17165 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 17166 | s,@localstatedir@,$localstatedir,;t t |
| 17167 | s,@libdir@,$libdir,;t t |
| 17168 | s,@includedir@,$includedir,;t t |
| 17169 | s,@oldincludedir@,$oldincludedir,;t t |
| 17170 | s,@infodir@,$infodir,;t t |
| 17171 | s,@mandir@,$mandir,;t t |
| 17172 | s,@build_alias@,$build_alias,;t t |
| 17173 | s,@host_alias@,$host_alias,;t t |
| 17174 | s,@target_alias@,$target_alias,;t t |
| 17175 | s,@DEFS@,$DEFS,;t t |
| 17176 | s,@ECHO_C@,$ECHO_C,;t t |
| 17177 | s,@ECHO_N@,$ECHO_N,;t t |
| 17178 | s,@ECHO_T@,$ECHO_T,;t t |
| 17179 | s,@LIBS@,$LIBS,;t t |
| 17180 | s,@VERSION@,$VERSION,;t t |
| 17181 | s,@SOVERSION@,$SOVERSION,;t t |
| 17182 | s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t |
| 17183 | s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t |
| 17184 | s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t |
| 17185 | s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t |
| 17186 | s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t |
| 17187 | s,@MACHDEP@,$MACHDEP,;t t |
| 17188 | s,@SGI_ABI@,$SGI_ABI,;t t |
| 17189 | s,@CXX@,$CXX,;t t |
| 17190 | s,@MAINOBJ@,$MAINOBJ,;t t |
| 17191 | s,@EXEEXT@,$EXEEXT,;t t |
| 17192 | s,@CC@,$CC,;t t |
| 17193 | s,@CFLAGS@,$CFLAGS,;t t |
| 17194 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 17195 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 17196 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 17197 | s,@OBJEXT@,$OBJEXT,;t t |
| 17198 | s,@CPP@,$CPP,;t t |
| 17199 | s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t |
| 17200 | s,@LIBRARY@,$LIBRARY,;t t |
| 17201 | s,@LDLIBRARY@,$LDLIBRARY,;t t |
| 17202 | s,@DLLLIBRARY@,$DLLLIBRARY,;t t |
| 17203 | s,@BLDLIBRARY@,$BLDLIBRARY,;t t |
| 17204 | s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t |
| 17205 | s,@INSTSONAME@,$INSTSONAME,;t t |
| 17206 | s,@RUNSHARED@,$RUNSHARED,;t t |
| 17207 | s,@LINKCC@,$LINKCC,;t t |
| 17208 | s,@RANLIB@,$RANLIB,;t t |
| 17209 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 17210 | s,@AR@,$AR,;t t |
| 17211 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 17212 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 17213 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 17214 | s,@LN@,$LN,;t t |
| 17215 | s,@OPT@,$OPT,;t t |
| 17216 | s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t |
| 17217 | s,@SO@,$SO,;t t |
| 17218 | s,@LDSHARED@,$LDSHARED,;t t |
| 17219 | s,@BLDSHARED@,$BLDSHARED,;t t |
| 17220 | s,@CCSHARED@,$CCSHARED,;t t |
| 17221 | s,@LINKFORSHARED@,$LINKFORSHARED,;t t |
| 17222 | s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 17223 | s,@SHLIBS@,$SHLIBS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17224 | s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t |
| 17225 | s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t |
| 17226 | s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t |
| 17227 | s,@LDLAST@,$LDLAST,;t t |
| 17228 | s,@THREADOBJ@,$THREADOBJ,;t t |
| 17229 | s,@DLINCLDIR@,$DLINCLDIR,;t t |
| 17230 | s,@DYNLOADFILE@,$DYNLOADFILE,;t t |
| 17231 | s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t |
| 17232 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 17233 | s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t |
| 17234 | s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t |
| 17235 | s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t |
| 17236 | s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t |
| 17237 | s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t |
| 17238 | s,@LIBM@,$LIBM,;t t |
| 17239 | s,@LIBC@,$LIBC,;t t |
| 17240 | s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t |
| 17241 | s,@THREADHEADERS@,$THREADHEADERS,;t t |
| 17242 | s,@SRCDIRS@,$SRCDIRS,;t t |
| 17243 | CEOF |
| 17244 | |
| 17245 | _ACEOF |
| 17246 | |
| 17247 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17248 | # Split the substitutions into bite-sized pieces for seds with |
| 17249 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 17250 | ac_max_sed_lines=48 |
| 17251 | ac_sed_frag=1 # Number of current file. |
| 17252 | ac_beg=1 # First line for current file. |
| 17253 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 17254 | ac_more_lines=: |
| 17255 | ac_sed_cmds= |
| 17256 | while $ac_more_lines; do |
| 17257 | if test $ac_beg -gt 1; then |
| 17258 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 17259 | else |
| 17260 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 17261 | fi |
| 17262 | if test ! -s $tmp/subs.frag; then |
| 17263 | ac_more_lines=false |
| 17264 | else |
| 17265 | # The purpose of the label and of the branching condition is to |
| 17266 | # speed up the sed processing (if there are no `@' at all, there |
| 17267 | # is no need to browse any of the substitutions). |
| 17268 | # These are the two extra sed commands mentioned above. |
| 17269 | (echo ':t |
| 17270 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 17271 | if test -z "$ac_sed_cmds"; then |
| 17272 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 17273 | else |
| 17274 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 17275 | fi |
| 17276 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 17277 | ac_beg=$ac_end |
| 17278 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 17279 | fi |
| 17280 | done |
| 17281 | if test -z "$ac_sed_cmds"; then |
| 17282 | ac_sed_cmds=cat |
| 17283 | fi |
| 17284 | fi # test -n "$CONFIG_FILES" |
| 17285 | |
| 17286 | _ACEOF |
| 17287 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17288 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 17289 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 17290 | case $ac_file in |
| 17291 | - | *:- | *:-:* ) # input from stdin |
| 17292 | cat >$tmp/stdin |
| 17293 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17294 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17295 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17296 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17297 | * ) ac_file_in=$ac_file.in ;; |
| 17298 | esac |
| 17299 | |
| 17300 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 17301 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 17302 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17303 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 17304 | X"$ac_file" : 'X\(//\)$' \| \ |
| 17305 | X"$ac_file" : 'X\(/\)' \| \ |
| 17306 | . : '\(.\)' 2>/dev/null || |
| 17307 | echo X"$ac_file" | |
| 17308 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 17309 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 17310 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 17311 | /^X\(\/\).*/{ s//\1/; q; } |
| 17312 | s/.*/./; q'` |
| 17313 | { case "$ac_dir" in |
| 17314 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 17315 | *) as_incr_dir=.;; |
| 17316 | esac |
| 17317 | as_dummy="$ac_dir" |
| 17318 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 17319 | case $as_mkdir_dir in |
| 17320 | # Skip DOS drivespec |
| 17321 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 17322 | *) |
| 17323 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 17324 | test -d "$as_incr_dir" || |
| 17325 | mkdir "$as_incr_dir" || |
| 17326 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 17327 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 17328 | { (exit 1); exit 1; }; } |
| 17329 | ;; |
| 17330 | esac |
| 17331 | done; } |
| 17332 | |
| 17333 | ac_builddir=. |
| 17334 | |
| 17335 | if test "$ac_dir" != .; then |
| 17336 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 17337 | # A "../" for each directory in $ac_dir_suffix. |
| 17338 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 17339 | else |
| 17340 | ac_dir_suffix= ac_top_builddir= |
| 17341 | fi |
| 17342 | |
| 17343 | case $srcdir in |
| 17344 | .) # No --srcdir option. We are building in place. |
| 17345 | ac_srcdir=. |
| 17346 | if test -z "$ac_top_builddir"; then |
| 17347 | ac_top_srcdir=. |
| 17348 | else |
| 17349 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 17350 | fi ;; |
| 17351 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 17352 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 17353 | ac_top_srcdir=$srcdir ;; |
| 17354 | *) # Relative path. |
| 17355 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 17356 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 17357 | esac |
| 17358 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 17359 | # absolute. |
| 17360 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 17361 | 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] | 17362 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 17363 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 17364 | |
| 17365 | |
| 17366 | case $INSTALL in |
| 17367 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 17368 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 17369 | esac |
| 17370 | |
| 17371 | if test x"$ac_file" != x-; then |
| 17372 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 17373 | echo "$as_me: creating $ac_file" >&6;} |
| 17374 | rm -f "$ac_file" |
| 17375 | fi |
| 17376 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 17377 | # use $as_me), people would be surprised to read: |
| 17378 | # /* config.h. Generated by config.status. */ |
| 17379 | if test x"$ac_file" = x-; then |
| 17380 | configure_input= |
| 17381 | else |
| 17382 | configure_input="$ac_file. " |
| 17383 | fi |
| 17384 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 17385 | sed 's,.*/,,'` by configure." |
| 17386 | |
| 17387 | # First look for the input files in the build tree, otherwise in the |
| 17388 | # src tree. |
| 17389 | ac_file_inputs=`IFS=: |
| 17390 | for f in $ac_file_in; do |
| 17391 | case $f in |
| 17392 | -) echo $tmp/stdin ;; |
| 17393 | [\\/$]*) |
| 17394 | # Absolute (can't be DOS-style, as IFS=:) |
| 17395 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 17396 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17397 | { (exit 1); exit 1; }; } |
| 17398 | echo $f;; |
| 17399 | *) # Relative |
| 17400 | if test -f "$f"; then |
| 17401 | # Build tree |
| 17402 | echo $f |
| 17403 | elif test -f "$srcdir/$f"; then |
| 17404 | # Source tree |
| 17405 | echo $srcdir/$f |
| 17406 | else |
| 17407 | # /dev/null tree |
| 17408 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 17409 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17410 | { (exit 1); exit 1; }; } |
| 17411 | fi;; |
| 17412 | esac |
| 17413 | done` || { (exit 1); exit 1; } |
| 17414 | _ACEOF |
| 17415 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17416 | sed "$ac_vpsub |
| 17417 | $extrasub |
| 17418 | _ACEOF |
| 17419 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17420 | :t |
| 17421 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 17422 | s,@configure_input@,$configure_input,;t t |
| 17423 | s,@srcdir@,$ac_srcdir,;t t |
| 17424 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 17425 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 17426 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 17427 | s,@builddir@,$ac_builddir,;t t |
| 17428 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 17429 | s,@top_builddir@,$ac_top_builddir,;t t |
| 17430 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 17431 | s,@INSTALL@,$ac_INSTALL,;t t |
| 17432 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 17433 | rm -f $tmp/stdin |
| 17434 | if test x"$ac_file" != x-; then |
| 17435 | mv $tmp/out $ac_file |
| 17436 | else |
| 17437 | cat $tmp/out |
| 17438 | rm -f $tmp/out |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17439 | fi |
| 17440 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17441 | done |
| 17442 | _ACEOF |
| 17443 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17444 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17445 | # |
| 17446 | # CONFIG_HEADER section. |
| 17447 | # |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17448 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17449 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 17450 | # 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] | 17451 | # |
| 17452 | # ac_d sets the value in "#define NAME VALUE" lines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17453 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 17454 | ac_dB='[ ].*$,\1#\2' |
| 17455 | ac_dC=' ' |
| 17456 | ac_dD=',;t' |
| 17457 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 17458 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 17459 | ac_uB='$,\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17460 | ac_uC=' ' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17461 | ac_uD=',;t' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17462 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17463 | 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] | 17464 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17465 | case $ac_file in |
| 17466 | - | *:- | *:-:* ) # input from stdin |
| 17467 | cat >$tmp/stdin |
| 17468 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17469 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17470 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17471 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17472 | * ) ac_file_in=$ac_file.in ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17473 | esac |
| 17474 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17475 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 17476 | echo "$as_me: creating $ac_file" >&6;} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17477 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17478 | # First look for the input files in the build tree, otherwise in the |
| 17479 | # src tree. |
| 17480 | ac_file_inputs=`IFS=: |
| 17481 | for f in $ac_file_in; do |
| 17482 | case $f in |
| 17483 | -) echo $tmp/stdin ;; |
| 17484 | [\\/$]*) |
| 17485 | # Absolute (can't be DOS-style, as IFS=:) |
| 17486 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 17487 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17488 | { (exit 1); exit 1; }; } |
| 17489 | echo $f;; |
| 17490 | *) # Relative |
| 17491 | if test -f "$f"; then |
| 17492 | # Build tree |
| 17493 | echo $f |
| 17494 | elif test -f "$srcdir/$f"; then |
| 17495 | # Source tree |
| 17496 | echo $srcdir/$f |
| 17497 | else |
| 17498 | # /dev/null tree |
| 17499 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 17500 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17501 | { (exit 1); exit 1; }; } |
| 17502 | fi;; |
| 17503 | esac |
| 17504 | done` || { (exit 1); exit 1; } |
| 17505 | # Remove the trailing spaces. |
| 17506 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17507 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17508 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17509 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17510 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 17511 | # `conftest.undefs', that substitutes the proper values into |
| 17512 | # config.h.in to produce config.h. The first handles `#define' |
| 17513 | # templates, and the second `#undef' templates. |
| 17514 | # And first: Protect against being on the right side of a sed subst in |
| 17515 | # config.status. Protect against being in an unquoted here document |
| 17516 | # in config.status. |
| 17517 | rm -f conftest.defines conftest.undefs |
| 17518 | # Using a here document instead of a string reduces the quoting nightmare. |
| 17519 | # Putting comments in sed scripts is not portable. |
| 17520 | # |
| 17521 | # `end' is used to avoid that the second main sed command (meant for |
| 17522 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 17523 | # See the Autoconf documentation for `clear'. |
| 17524 | cat >confdef2sed.sed <<\_ACEOF |
| 17525 | s/[\\&,]/\\&/g |
| 17526 | s,[\\$`],\\&,g |
| 17527 | t clear |
| 17528 | : clear |
| 17529 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 17530 | t end |
| 17531 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 17532 | : end |
| 17533 | _ACEOF |
| 17534 | # If some macros were called several times there might be several times |
| 17535 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 17536 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 17537 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 17538 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 17539 | rm -f confdef2sed.sed |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17540 | |
| 17541 | # This sed command replaces #undef with comments. This is necessary, for |
| 17542 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 17543 | # 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] | 17544 | cat >>conftest.undefs <<\_ACEOF |
| 17545 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 17546 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17547 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17548 | # Break up conftest.defines because some shells have a limit on the size |
| 17549 | # of here documents, and old seds have small limits too (100 cmds). |
| 17550 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 17551 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 17552 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 17553 | echo ' :' >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17554 | rm -f conftest.tail |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17555 | while grep . conftest.defines >/dev/null |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17556 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17557 | # Write a limited-size here document to $tmp/defines.sed. |
| 17558 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 17559 | # Speed up: don't consider the non `#define' lines. |
| 17560 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 17561 | # Work around the forget-to-reset-the-flag bug. |
| 17562 | echo 't clr' >>$CONFIG_STATUS |
| 17563 | echo ': clr' >>$CONFIG_STATUS |
| 17564 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17565 | echo 'CEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17566 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 17567 | rm -f $tmp/in |
| 17568 | mv $tmp/out $tmp/in |
| 17569 | ' >>$CONFIG_STATUS |
| 17570 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 17571 | rm -f conftest.defines |
| 17572 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17573 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17574 | rm -f conftest.defines |
| 17575 | echo ' fi # egrep' >>$CONFIG_STATUS |
| 17576 | echo >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17577 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17578 | # Break up conftest.undefs because some shells have a limit on the size |
| 17579 | # of here documents, and old seds have small limits too (100 cmds). |
| 17580 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 17581 | rm -f conftest.tail |
| 17582 | while grep . conftest.undefs >/dev/null |
| 17583 | do |
| 17584 | # Write a limited-size here document to $tmp/undefs.sed. |
| 17585 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 17586 | # Speed up: don't consider the non `#undef' |
| 17587 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 17588 | # Work around the forget-to-reset-the-flag bug. |
| 17589 | echo 't clr' >>$CONFIG_STATUS |
| 17590 | echo ': clr' >>$CONFIG_STATUS |
| 17591 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 17592 | echo 'CEOF |
| 17593 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 17594 | rm -f $tmp/in |
| 17595 | mv $tmp/out $tmp/in |
| 17596 | ' >>$CONFIG_STATUS |
| 17597 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 17598 | rm -f conftest.undefs |
| 17599 | mv conftest.tail conftest.undefs |
| 17600 | done |
| 17601 | rm -f conftest.undefs |
| 17602 | |
| 17603 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17604 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 17605 | # use $as_me), people would be surprised to read: |
| 17606 | # /* config.h. Generated by config.status. */ |
| 17607 | if test x"$ac_file" = x-; then |
| 17608 | echo "/* Generated by configure. */" >$tmp/config.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17609 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17610 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17611 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17612 | cat $tmp/in >>$tmp/config.h |
| 17613 | rm -f $tmp/in |
| 17614 | if test x"$ac_file" != x-; then |
| 17615 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then |
| 17616 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 17617 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 17618 | else |
| 17619 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 17620 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17621 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 17622 | X"$ac_file" : 'X\(//\)$' \| \ |
| 17623 | X"$ac_file" : 'X\(/\)' \| \ |
| 17624 | . : '\(.\)' 2>/dev/null || |
| 17625 | echo X"$ac_file" | |
| 17626 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 17627 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 17628 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 17629 | /^X\(\/\).*/{ s//\1/; q; } |
| 17630 | s/.*/./; q'` |
| 17631 | { case "$ac_dir" in |
| 17632 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 17633 | *) as_incr_dir=.;; |
| 17634 | esac |
| 17635 | as_dummy="$ac_dir" |
| 17636 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 17637 | case $as_mkdir_dir in |
| 17638 | # Skip DOS drivespec |
| 17639 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 17640 | *) |
| 17641 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 17642 | test -d "$as_incr_dir" || |
| 17643 | mkdir "$as_incr_dir" || |
| 17644 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 17645 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 17646 | { (exit 1); exit 1; }; } |
| 17647 | ;; |
| 17648 | esac |
| 17649 | done; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17650 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17651 | rm -f $ac_file |
| 17652 | mv $tmp/config.h $ac_file |
| 17653 | fi |
| 17654 | else |
| 17655 | cat $tmp/config.h |
| 17656 | rm -f $tmp/config.h |
| 17657 | fi |
| 17658 | done |
| 17659 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17660 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17661 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17662 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17663 | { (exit 0); exit 0; } |
| 17664 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17665 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17666 | ac_clean_files=$ac_clean_files_save |
| 17667 | |
| 17668 | |
| 17669 | # configure is writing to config.log, and then calls config.status. |
| 17670 | # config.status does its own redirection, appending to config.log. |
| 17671 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 17672 | # by configure, so config.status won't be able to write to it; its |
| 17673 | # output is simply discarded. So we exec the FD to /dev/null, |
| 17674 | # effectively closing config.log, so it can be properly (re)opened and |
| 17675 | # appended to by config.status. When coming back to configure, we |
| 17676 | # need to make the FD available again. |
| 17677 | if test "$no_create" != yes; then |
| 17678 | ac_cs_success=: |
| 17679 | exec 5>/dev/null |
| 17680 | $SHELL $CONFIG_STATUS || ac_cs_success=false |
| 17681 | exec 5>>config.log |
| 17682 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 17683 | # would make configure fail if this is the last instruction. |
| 17684 | $ac_cs_success || { (exit 1); exit 1; } |
| 17685 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17686 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17687 | |
| 17688 | echo "creating Setup" |
| 17689 | if test ! -f Modules/Setup |
| 17690 | then |
| 17691 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 17692 | fi |
| 17693 | |
| 17694 | echo "creating Setup.local" |
| 17695 | if test ! -f Modules/Setup.local |
| 17696 | then |
| 17697 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 17698 | fi |
| 17699 | |
| 17700 | echo "creating Makefile" |
| 17701 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 17702 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 17703 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 17704 | mv config.c Modules |