Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 2 | # From configure.in Revision: 1.380 . |
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` |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +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 | |
Martin v. Löwis | bddf5a5 | 2002-11-11 13:37:28 +0000 | [diff] [blame] | 1240 | |
| 1241 | |
Andrew M. Kuchling | f2f219d | 2002-02-11 16:31:10 +0000 | [diff] [blame] | 1242 | VERSION=2.3 |
Guido van Rossum | 1fd74a7 | 1997-07-19 19:36:02 +0000 | [diff] [blame] | 1243 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 1244 | |
| 1245 | SOVERSION=1.0 |
| 1246 | |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1247 | # The later defininition of _XOPEN_SOURCE disables certain features |
| 1248 | # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). |
| 1249 | |
| 1250 | cat >>confdefs.h <<\_ACEOF |
| 1251 | #define _GNU_SOURCE 1 |
| 1252 | _ACEOF |
| 1253 | |
| 1254 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1255 | define_xopen_source=yes |
Martin v. Löwis | 6f18a3c | 2002-07-20 08:51:52 +0000 | [diff] [blame] | 1256 | |
Neil Schemenauer | 4edbc2a | 2001-03-22 00:34:03 +0000 | [diff] [blame] | 1257 | # Arguments passed to configure. |
| 1258 | |
| 1259 | CONFIG_ARGS="$ac_configure_args" |
| 1260 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1261 | # Check whether --enable-framework or --disable-framework was given. |
| 1262 | if test "${enable_framework+set}" = set; then |
| 1263 | enableval="$enable_framework" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1264 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1265 | case $enableval in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1266 | yes) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1267 | enableval=/Library/Frameworks |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1268 | esac |
| 1269 | case $enableval in |
| 1270 | no) |
| 1271 | PYTHONFRAMEWORK= |
| 1272 | PYTHONFRAMEWORKDIR=no-framework |
| 1273 | PYTHONFRAMEWORKPREFIX= |
| 1274 | PYTHONFRAMEWORKINSTALLDIR= |
| 1275 | enable_framework= |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1276 | ;; |
| 1277 | *) |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1278 | PYTHONFRAMEWORK=Python |
| 1279 | PYTHONFRAMEWORKDIR=Python.framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1280 | PYTHONFRAMEWORKPREFIX=$enableval |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1281 | PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR |
| 1282 | prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1283 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1284 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1285 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1286 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1287 | PYTHONFRAMEWORK= |
Jack Jansen | 127e56e | 2001-09-11 14:41:54 +0000 | [diff] [blame] | 1288 | PYTHONFRAMEWORKDIR=no-framework |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1289 | PYTHONFRAMEWORKPREFIX= |
| 1290 | PYTHONFRAMEWORKINSTALLDIR= |
| 1291 | enable_framework= |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1292 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1293 | fi; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1294 | |
| 1295 | |
| 1296 | |
| 1297 | |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1298 | |
| 1299 | ##AC_ARG_WITH(dyld, |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 1300 | ## AC_HELP_STRING(--with-dyld, |
| 1301 | ## Use (OpenStep|Rhapsody) dynamic linker)) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 1302 | ## |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1303 | # Set name for machine-dependent library files |
| 1304 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1305 | echo "$as_me:$LINENO: checking MACHDEP" >&5 |
| 1306 | echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1307 | if test -z "$MACHDEP" |
| 1308 | then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1309 | ac_sys_system=`uname -s` |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 1310 | if test "$ac_sys_system" = "AIX" -o "$ac_sys_system" = "Monterey64" \ |
| 1311 | -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1312 | ac_sys_release=`uname -v` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1313 | else |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1314 | ac_sys_release=`uname -r` |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1315 | fi |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1316 | ac_md_system=`echo $ac_sys_system | |
| 1317 | tr -d '/ ' | tr '[A-Z]' '[a-z]'` |
| 1318 | ac_md_release=`echo $ac_sys_release | |
Guido van Rossum | 67b2659 | 2001-10-20 14:21:45 +0000 | [diff] [blame] | 1319 | tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1320 | MACHDEP="$ac_md_system$ac_md_release" |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 1321 | |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 1322 | case $MACHDEP in |
Andrew M. Kuchling | 5a3e4cb | 2001-07-20 19:29:04 +0000 | [diff] [blame] | 1323 | cygwin*) MACHDEP="cygwin";; |
Jack Jansen | 8a97f4a | 2001-12-05 23:27:32 +0000 | [diff] [blame] | 1324 | darwin*) MACHDEP="darwin";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 1325 | atheos*) MACHDEP="atheos";; |
Guido van Rossum | b97ef17 | 1997-09-28 05:44:03 +0000 | [diff] [blame] | 1326 | '') MACHDEP="unknown";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1327 | esac |
| 1328 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 1329 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1330 | # Some systems cannot stand _XOPEN_SOURCE being defined at all; they |
| 1331 | # disable features if it is defined, without any means to access these |
| 1332 | # features as extensions. For these systems, we skip the definition of |
| 1333 | # _XOPEN_SOURCE. Before adding a system to the list to gain access to |
| 1334 | # some feature, make sure there is no alternative way to access this |
| 1335 | # feature. Also, when using wildcards, make sure you have verified the |
| 1336 | # need for not defining _XOPEN_SOURCE on all systems matching the |
| 1337 | # wildcard, and that the wildcard does not include future systems |
| 1338 | # (which may remove their limitations). |
| 1339 | case $ac_sys_system/$ac_sys_release in |
| 1340 | # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, |
| 1341 | # even though select is a POSIX function. Reported by J. Ribbens. |
| 1342 | OpenBSD/2.* | OpenBSD/3.[012]) |
| 1343 | define_xopen_source=no;; |
| 1344 | esac |
| 1345 | |
| 1346 | if test $define_xopen_source = yes |
| 1347 | then |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1348 | |
| 1349 | cat >>confdefs.h <<\_ACEOF |
| 1350 | #define _XOPEN_SOURCE 600 |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 1351 | _ACEOF |
| 1352 | |
Martin v. Löwis | 678fc1e | 2002-11-12 06:04:39 +0000 | [diff] [blame] | 1353 | |
| 1354 | # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires |
| 1355 | # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else |
| 1356 | # several APIs are not declared. Since this is also needed in some |
| 1357 | # cases for HP-UX, we define it globally. |
| 1358 | |
| 1359 | |
| 1360 | cat >>confdefs.h <<\_ACEOF |
| 1361 | #define _XOPEN_SOURCE_EXTENDED 1 |
| 1362 | _ACEOF |
| 1363 | |
| 1364 | |
| 1365 | cat >>confdefs.h <<\_ACEOF |
| 1366 | #define _POSIX_C_SOURCE 200112L |
| 1367 | _ACEOF |
| 1368 | |
| 1369 | |
Martin v. Löwis | 35195ad | 2002-11-11 13:26:51 +0000 | [diff] [blame] | 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 | |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame^] | 1391 | # And add extra plat-mac for darwin |
| 1392 | |
| 1393 | echo "$as_me:$LINENO: checking EXTRAPLATDIR" >&5 |
| 1394 | echo $ECHO_N "checking EXTRAPLATDIR... $ECHO_C" >&6 |
| 1395 | if test -z "$EXTRAPLATDIR" |
| 1396 | then |
| 1397 | case $MACHDEP in |
| 1398 | darwin) EXTRAPLATDIR="\$(PLATMACDIRS)";; |
| 1399 | *) EXTRAPLATDIR="";; |
| 1400 | esac |
| 1401 | fi |
| 1402 | echo "$as_me:$LINENO: result: $EXTRAPLATDIR" >&5 |
| 1403 | echo "${ECHO_T}$EXTRAPLATDIR" >&6 |
| 1404 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 1405 | # checks for alternative programs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1406 | echo "$as_me:$LINENO: checking for --without-gcc" >&5 |
| 1407 | echo $ECHO_N "checking for --without-gcc... $ECHO_C" >&6 |
| 1408 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 1409 | # Check whether --with-gcc or --without-gcc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1410 | if test "${with_gcc+set}" = set; then |
| 1411 | withval="$with_gcc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1412 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1413 | case $withval in |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1414 | no) CC=cc |
| 1415 | without_gcc=yes;; |
| 1416 | yes) CC=gcc |
| 1417 | without_gcc=no;; |
| 1418 | *) CC=$withval |
| 1419 | without_gcc=$withval;; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 1420 | esac |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 1421 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1422 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 1423 | case $ac_sys_system in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1424 | AIX*) CC=cc_r |
| 1425 | without_gcc=;; |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1426 | BeOS*) |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1427 | case $BE_HOST_CPU in |
| 1428 | ppc) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1429 | CC=mwcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1430 | without_gcc=yes |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 1431 | OPT="-O -export pragma" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1432 | LDFLAGS="$LDFLAGS -nodup" |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1433 | ;; |
| 1434 | x86) |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1435 | CC=gcc |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1436 | without_gcc=no |
Fred Drake | 5790be1 | 2000-10-09 17:06:13 +0000 | [diff] [blame] | 1437 | OPT=-O |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1438 | ;; |
| 1439 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1440 | { { echo "$as_me:$LINENO: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&5 |
| 1441 | echo "$as_me: error: Unknown BeOS platform \"$BE_HOST_CPU\"" >&2;} |
| 1442 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1443 | ;; |
| 1444 | esac |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 1445 | AR="\$(srcdir)/Modules/ar_beos" |
| 1446 | RANLIB=: |
Guido van Rossum | 7a5f420 | 1999-01-12 20:30:23 +0000 | [diff] [blame] | 1447 | ;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 1448 | Monterey*) |
| 1449 | RANLIB=: |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 1450 | without_gcc=;; |
| 1451 | *) without_gcc=no;; |
Guido van Rossum | e77438c | 1995-09-13 18:59:59 +0000 | [diff] [blame] | 1452 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1453 | fi; |
| 1454 | echo "$as_me:$LINENO: result: $without_gcc" >&5 |
| 1455 | echo "${ECHO_T}$without_gcc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1456 | |
| 1457 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1458 | |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1459 | MAINOBJ=python.o |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1460 | echo "$as_me:$LINENO: checking for --with-cxx=<compiler>" >&5 |
| 1461 | echo $ECHO_N "checking for --with-cxx=<compiler>... $ECHO_C" >&6 |
| 1462 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1463 | # Check whether --with-cxx or --without-cxx was given. |
| 1464 | if test "${with_cxx+set}" = set; then |
| 1465 | withval="$with_cxx" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1466 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1467 | check_cxx=no |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1468 | case $withval in |
| 1469 | no) CXX= |
| 1470 | with_cxx=no;; |
| 1471 | *) CXX=$withval |
Fred Drake | a1a84e7 | 2001-03-06 05:52:16 +0000 | [diff] [blame] | 1472 | MAINOBJ=ccpython.o |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1473 | with_cxx=$withval;; |
| 1474 | esac |
| 1475 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1476 | |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1477 | with_cxx=no |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1478 | check_cxx=yes |
Guido van Rossum | 9501219 | 1999-12-16 17:50:52 +0000 | [diff] [blame] | 1479 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1480 | fi; |
| 1481 | echo "$as_me:$LINENO: result: $with_cxx" >&5 |
| 1482 | echo "${ECHO_T}$with_cxx" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1483 | |
| 1484 | if test "$with_cxx" = "yes" |
| 1485 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1486 | { { echo "$as_me:$LINENO: error: must supply a compiler when using --with-cxx" >&5 |
| 1487 | echo "$as_me: error: must supply a compiler when using --with-cxx" >&2;} |
| 1488 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1489 | fi |
| 1490 | |
| 1491 | |
| 1492 | |
| 1493 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1494 | if test "$check_cxx" = "yes" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1495 | then |
| 1496 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 1497 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1498 | # 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] | 1499 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1500 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1501 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1502 | if test "${ac_cv_prog_CXX+set}" = set; then |
| 1503 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1504 | else |
| 1505 | if test -n "$CXX"; then |
| 1506 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 1507 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1509 | for as_dir in $PATH |
| 1510 | do |
| 1511 | IFS=$as_save_IFS |
| 1512 | test -z "$as_dir" && as_dir=. |
| 1513 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1514 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1515 | ac_cv_prog_CXX="$ac_prog" |
| 1516 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1517 | break 2 |
| 1518 | fi |
| 1519 | done |
| 1520 | done |
| 1521 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1522 | fi |
| 1523 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1524 | CXX=$ac_cv_prog_CXX |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1525 | if test -n "$CXX"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1526 | echo "$as_me:$LINENO: result: $CXX" >&5 |
| 1527 | echo "${ECHO_T}$CXX" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1528 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1529 | echo "$as_me:$LINENO: result: no" >&5 |
| 1530 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1531 | fi |
| 1532 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1533 | test -n "$CXX" && break |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1534 | done |
| 1535 | test -n "$CXX" || CXX="notfound" |
| 1536 | |
| 1537 | if test "$CXX" = "notfound" |
| 1538 | then |
| 1539 | CXX= |
| 1540 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1541 | ac_ext=cc |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1542 | ac_cpp='$CXXCPP $CPPFLAGS' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1543 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1544 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1545 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 1546 | cat >conftest.$ac_ext <<_ACEOF |
| 1547 | #line $LINENO "configure" |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1548 | #include "confdefs.h" |
| 1549 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1550 | #ifdef F77_DUMMY_MAIN |
| 1551 | # ifdef __cplusplus |
| 1552 | extern "C" |
| 1553 | # endif |
| 1554 | int F77_DUMMY_MAIN() { return 1; } |
| 1555 | #endif |
| 1556 | int |
| 1557 | main () |
| 1558 | { |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1559 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1560 | ; |
| 1561 | return 0; |
| 1562 | } |
| 1563 | _ACEOF |
| 1564 | ac_clean_files_save=$ac_clean_files |
| 1565 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 1566 | # Try to create an executable without -o first, disregard a.out. |
| 1567 | # It will help us diagnose broken compilers, and finding out an intuition |
| 1568 | # of exeext. |
| 1569 | echo "$as_me:$LINENO: checking for C++ compiler default output" >&5 |
| 1570 | echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6 |
| 1571 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1572 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1573 | (eval $ac_link_default) 2>&5 |
| 1574 | ac_status=$? |
| 1575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1576 | (exit $ac_status); }; then |
| 1577 | # Find the output, starting from the most likely. This scheme is |
| 1578 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1579 | # resort. |
| 1580 | |
| 1581 | # Be careful to initialize this variable, since it used to be cached. |
| 1582 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1583 | ac_cv_exeext= |
| 1584 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; |
| 1585 | ls a.out conftest 2>/dev/null; |
| 1586 | ls a.* conftest.* 2>/dev/null`; do |
| 1587 | case $ac_file in |
| 1588 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
| 1589 | a.out ) # We found the default executable, but exeext='' is most |
| 1590 | # certainly right. |
| 1591 | break;; |
| 1592 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1593 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 1594 | export ac_cv_exeext |
| 1595 | break;; |
| 1596 | * ) break;; |
| 1597 | esac |
| 1598 | done |
| 1599 | else |
| 1600 | echo "$as_me: failed program was:" >&5 |
| 1601 | cat conftest.$ac_ext >&5 |
| 1602 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables" >&5 |
| 1603 | echo "$as_me: error: C++ compiler cannot create executables" >&2;} |
| 1604 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 1605 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1606 | |
| 1607 | ac_exeext=$ac_cv_exeext |
| 1608 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1609 | echo "${ECHO_T}$ac_file" >&6 |
| 1610 | |
| 1611 | # Check the compiler produces executables we can run. If not, either |
| 1612 | # the compiler is broken, or we cross compile. |
| 1613 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 |
| 1614 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6 |
| 1615 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1616 | # If not cross compiling, check that we can run a simple program. |
| 1617 | if test "$cross_compiling" != yes; then |
| 1618 | if { ac_try='./$ac_file' |
| 1619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1620 | (eval $ac_try) 2>&5 |
| 1621 | ac_status=$? |
| 1622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1623 | (exit $ac_status); }; }; then |
| 1624 | cross_compiling=no |
| 1625 | else |
| 1626 | if test "$cross_compiling" = maybe; then |
| 1627 | cross_compiling=yes |
| 1628 | else |
| 1629 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. |
| 1630 | If you meant to cross compile, use \`--host'." >&5 |
| 1631 | echo "$as_me: error: cannot run C++ compiled programs. |
| 1632 | If you meant to cross compile, use \`--host'." >&2;} |
| 1633 | { (exit 1); exit 1; }; } |
| 1634 | fi |
| 1635 | fi |
| 1636 | fi |
| 1637 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1638 | echo "${ECHO_T}yes" >&6 |
| 1639 | |
| 1640 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 1641 | ac_clean_files=$ac_clean_files_save |
| 1642 | # Check the compiler produces executables we can run. If not, either |
| 1643 | # the compiler is broken, or we cross compile. |
| 1644 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1645 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1646 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1647 | echo "${ECHO_T}$cross_compiling" >&6 |
| 1648 | |
| 1649 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1650 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1651 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1652 | (eval $ac_link) 2>&5 |
| 1653 | ac_status=$? |
| 1654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1655 | (exit $ac_status); }; then |
| 1656 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1657 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1658 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1659 | # `rm'. |
| 1660 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
| 1661 | case $ac_file in |
| 1662 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 1663 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1664 | export ac_cv_exeext |
| 1665 | break;; |
| 1666 | * ) break;; |
| 1667 | esac |
| 1668 | done |
| 1669 | else |
| 1670 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 1671 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
| 1672 | { (exit 1); exit 1; }; } |
| 1673 | fi |
| 1674 | |
| 1675 | rm -f conftest$ac_cv_exeext |
| 1676 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1677 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1678 | |
| 1679 | rm -f conftest.$ac_ext |
| 1680 | EXEEXT=$ac_cv_exeext |
| 1681 | ac_exeext=$EXEEXT |
| 1682 | |
| 1683 | ac_ext=c |
| 1684 | ac_cpp='$CPP $CPPFLAGS' |
| 1685 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1686 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1687 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1688 | |
| 1689 | |
Martin v. Löwis | 2235295 | 2000-12-13 17:37:02 +0000 | [diff] [blame] | 1690 | |
| 1691 | fi |
| 1692 | fi |
| 1693 | |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1694 | # If the user switches compilers, we can't believe the cache |
| 1695 | if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 1696 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1697 | { { echo "$as_me:$LINENO: error: cached CC is different -- throw away $cache_file |
| 1698 | (it is also a good idea to do 'make clean' before compiling)" >&5 |
| 1699 | echo "$as_me: error: cached CC is different -- throw away $cache_file |
| 1700 | (it is also a good idea to do 'make clean' before compiling)" >&2;} |
| 1701 | { (exit 1); exit 1; }; } |
Guido van Rossum | 8b131c5 | 1995-03-09 14:10:13 +0000 | [diff] [blame] | 1702 | fi |
| 1703 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1704 | ac_ext=c |
| 1705 | ac_cpp='$CPP $CPPFLAGS' |
| 1706 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1707 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1708 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1709 | if test -n "$ac_tool_prefix"; then |
| 1710 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1711 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1712 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1713 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1714 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1716 | else |
| 1717 | if test -n "$CC"; then |
| 1718 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1719 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1721 | for as_dir in $PATH |
| 1722 | do |
| 1723 | IFS=$as_save_IFS |
| 1724 | test -z "$as_dir" && as_dir=. |
| 1725 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1726 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1727 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1728 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1729 | break 2 |
| 1730 | fi |
| 1731 | done |
| 1732 | done |
| 1733 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1734 | fi |
| 1735 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1736 | CC=$ac_cv_prog_CC |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1737 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1738 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1739 | echo "${ECHO_T}$CC" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1740 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1741 | echo "$as_me:$LINENO: result: no" >&5 |
| 1742 | echo "${ECHO_T}no" >&6 |
| 1743 | fi |
| 1744 | |
| 1745 | fi |
| 1746 | if test -z "$ac_cv_prog_CC"; then |
| 1747 | ac_ct_CC=$CC |
| 1748 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1749 | set dummy gcc; ac_word=$2 |
| 1750 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1751 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1752 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1754 | else |
| 1755 | if test -n "$ac_ct_CC"; then |
| 1756 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1757 | else |
| 1758 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1759 | for as_dir in $PATH |
| 1760 | do |
| 1761 | IFS=$as_save_IFS |
| 1762 | test -z "$as_dir" && as_dir=. |
| 1763 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1764 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1765 | ac_cv_prog_ac_ct_CC="gcc" |
| 1766 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1767 | break 2 |
| 1768 | fi |
| 1769 | done |
| 1770 | done |
| 1771 | |
| 1772 | fi |
| 1773 | fi |
| 1774 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1775 | if test -n "$ac_ct_CC"; then |
| 1776 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1777 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1778 | else |
| 1779 | echo "$as_me:$LINENO: result: no" >&5 |
| 1780 | echo "${ECHO_T}no" >&6 |
| 1781 | fi |
| 1782 | |
| 1783 | CC=$ac_ct_CC |
| 1784 | else |
| 1785 | CC="$ac_cv_prog_CC" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1786 | fi |
| 1787 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1788 | if test -z "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1789 | if test -n "$ac_tool_prefix"; then |
| 1790 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1791 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1792 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1793 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1794 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1796 | else |
| 1797 | if test -n "$CC"; then |
| 1798 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1799 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1801 | for as_dir in $PATH |
| 1802 | do |
| 1803 | IFS=$as_save_IFS |
| 1804 | test -z "$as_dir" && as_dir=. |
| 1805 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1806 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1807 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1808 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1809 | break 2 |
| 1810 | fi |
| 1811 | done |
| 1812 | done |
| 1813 | |
| 1814 | fi |
| 1815 | fi |
| 1816 | CC=$ac_cv_prog_CC |
| 1817 | if test -n "$CC"; then |
| 1818 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1819 | echo "${ECHO_T}$CC" >&6 |
| 1820 | else |
| 1821 | echo "$as_me:$LINENO: result: no" >&5 |
| 1822 | echo "${ECHO_T}no" >&6 |
| 1823 | fi |
| 1824 | |
| 1825 | fi |
| 1826 | if test -z "$ac_cv_prog_CC"; then |
| 1827 | ac_ct_CC=$CC |
| 1828 | # Extract the first word of "cc", so it can be a program name with args. |
| 1829 | set dummy cc; ac_word=$2 |
| 1830 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1831 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1832 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1833 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1834 | else |
| 1835 | if test -n "$ac_ct_CC"; then |
| 1836 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1837 | else |
| 1838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1839 | for as_dir in $PATH |
| 1840 | do |
| 1841 | IFS=$as_save_IFS |
| 1842 | test -z "$as_dir" && as_dir=. |
| 1843 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1844 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1845 | ac_cv_prog_ac_ct_CC="cc" |
| 1846 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1847 | break 2 |
| 1848 | fi |
| 1849 | done |
| 1850 | done |
| 1851 | |
| 1852 | fi |
| 1853 | fi |
| 1854 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1855 | if test -n "$ac_ct_CC"; then |
| 1856 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1857 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1858 | else |
| 1859 | echo "$as_me:$LINENO: result: no" >&5 |
| 1860 | echo "${ECHO_T}no" >&6 |
| 1861 | fi |
| 1862 | |
| 1863 | CC=$ac_ct_CC |
| 1864 | else |
| 1865 | CC="$ac_cv_prog_CC" |
| 1866 | fi |
| 1867 | |
| 1868 | fi |
| 1869 | if test -z "$CC"; then |
| 1870 | # Extract the first word of "cc", so it can be a program name with args. |
| 1871 | set dummy cc; ac_word=$2 |
| 1872 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1873 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1874 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1876 | else |
| 1877 | if test -n "$CC"; then |
| 1878 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1879 | else |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1880 | ac_prog_rejected=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1881 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1882 | for as_dir in $PATH |
| 1883 | do |
| 1884 | IFS=$as_save_IFS |
| 1885 | test -z "$as_dir" && as_dir=. |
| 1886 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1887 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1888 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1889 | ac_prog_rejected=yes |
| 1890 | continue |
| 1891 | fi |
| 1892 | ac_cv_prog_CC="cc" |
| 1893 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1894 | break 2 |
| 1895 | fi |
| 1896 | done |
| 1897 | done |
| 1898 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1899 | if test $ac_prog_rejected = yes; then |
| 1900 | # We found a bogon in the path, so make sure we never use it. |
| 1901 | set dummy $ac_cv_prog_CC |
| 1902 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1903 | if test $# != 0; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1904 | # We chose a different compiler from the bogus one. |
| 1905 | # However, it has the same basename, so the bogon will be chosen |
| 1906 | # first if we set CC to just the basename; use the full file name. |
| 1907 | shift |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1908 | set dummy "$as_dir/$ac_word" ${1+"$@"} |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1909 | shift |
| 1910 | ac_cv_prog_CC="$@" |
| 1911 | fi |
| 1912 | fi |
| 1913 | fi |
| 1914 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1915 | CC=$ac_cv_prog_CC |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1916 | if test -n "$CC"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1917 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1918 | echo "${ECHO_T}$CC" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1919 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1920 | echo "$as_me:$LINENO: result: no" >&5 |
| 1921 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 1922 | fi |
| 1923 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1924 | fi |
| 1925 | if test -z "$CC"; then |
| 1926 | if test -n "$ac_tool_prefix"; then |
| 1927 | for ac_prog in cl |
| 1928 | do |
| 1929 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1930 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1931 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1932 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1933 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 1935 | else |
| 1936 | if test -n "$CC"; then |
| 1937 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1938 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1940 | for as_dir in $PATH |
| 1941 | do |
| 1942 | IFS=$as_save_IFS |
| 1943 | test -z "$as_dir" && as_dir=. |
| 1944 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1945 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1946 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1947 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1948 | break 2 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 1949 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1950 | done |
| 1951 | done |
| 1952 | |
| 1953 | fi |
| 1954 | fi |
| 1955 | CC=$ac_cv_prog_CC |
| 1956 | if test -n "$CC"; then |
| 1957 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1958 | echo "${ECHO_T}$CC" >&6 |
| 1959 | else |
| 1960 | echo "$as_me:$LINENO: result: no" >&5 |
| 1961 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1962 | fi |
| 1963 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1964 | test -n "$CC" && break |
| 1965 | done |
| 1966 | fi |
| 1967 | if test -z "$CC"; then |
| 1968 | ac_ct_CC=$CC |
| 1969 | for ac_prog in cl |
| 1970 | do |
| 1971 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1972 | set dummy $ac_prog; ac_word=$2 |
| 1973 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1974 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1975 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1976 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1977 | else |
| 1978 | if test -n "$ac_ct_CC"; then |
| 1979 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1980 | else |
| 1981 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1982 | for as_dir in $PATH |
| 1983 | do |
| 1984 | IFS=$as_save_IFS |
| 1985 | test -z "$as_dir" && as_dir=. |
| 1986 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1987 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1988 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1989 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1990 | break 2 |
| 1991 | fi |
| 1992 | done |
| 1993 | done |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 1994 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 1995 | fi |
| 1996 | fi |
| 1997 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1998 | if test -n "$ac_ct_CC"; then |
| 1999 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2000 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2001 | else |
| 2002 | echo "$as_me:$LINENO: result: no" >&5 |
| 2003 | echo "${ECHO_T}no" >&6 |
| 2004 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2005 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2006 | test -n "$ac_ct_CC" && break |
| 2007 | done |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2008 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2009 | CC=$ac_ct_CC |
| 2010 | fi |
| 2011 | |
| 2012 | fi |
| 2013 | |
| 2014 | |
| 2015 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 |
| 2016 | echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} |
| 2017 | { (exit 1); exit 1; }; } |
| 2018 | |
| 2019 | # Provide some information about the compiler. |
| 2020 | echo "$as_me:$LINENO:" \ |
| 2021 | "checking for C compiler version" >&5 |
| 2022 | ac_compiler=`set X $ac_compile; echo $2` |
| 2023 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2024 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2025 | ac_status=$? |
| 2026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2027 | (exit $ac_status); } |
| 2028 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2029 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2030 | ac_status=$? |
| 2031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2032 | (exit $ac_status); } |
| 2033 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2034 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2035 | ac_status=$? |
| 2036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2037 | (exit $ac_status); } |
| 2038 | |
| 2039 | cat >conftest.$ac_ext <<_ACEOF |
| 2040 | #line $LINENO "configure" |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2041 | #include "confdefs.h" |
| 2042 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2043 | #ifdef F77_DUMMY_MAIN |
| 2044 | # ifdef __cplusplus |
| 2045 | extern "C" |
| 2046 | # endif |
| 2047 | int F77_DUMMY_MAIN() { return 1; } |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2048 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2049 | int |
| 2050 | main () |
| 2051 | { |
| 2052 | |
| 2053 | ; |
| 2054 | return 0; |
| 2055 | } |
| 2056 | _ACEOF |
| 2057 | ac_clean_files_save=$ac_clean_files |
| 2058 | ac_clean_files="$ac_clean_files a.out a.exe" |
| 2059 | # Try to create an executable without -o first, disregard a.out. |
| 2060 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2061 | # of exeext. |
| 2062 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
| 2063 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 2064 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2065 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2066 | (eval $ac_link_default) 2>&5 |
| 2067 | ac_status=$? |
| 2068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2069 | (exit $ac_status); }; then |
| 2070 | # Find the output, starting from the most likely. This scheme is |
| 2071 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2072 | # resort. |
| 2073 | |
| 2074 | # Be careful to initialize this variable, since it used to be cached. |
| 2075 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2076 | ac_cv_exeext= |
| 2077 | for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; |
| 2078 | ls a.out conftest 2>/dev/null; |
| 2079 | ls a.* conftest.* 2>/dev/null`; do |
| 2080 | case $ac_file in |
| 2081 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; |
| 2082 | a.out ) # We found the default executable, but exeext='' is most |
| 2083 | # certainly right. |
| 2084 | break;; |
| 2085 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2086 | # FIXME: I believe we export ac_cv_exeext for Libtool --akim. |
| 2087 | export ac_cv_exeext |
| 2088 | break;; |
| 2089 | * ) break;; |
| 2090 | esac |
| 2091 | done |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2092 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2093 | echo "$as_me: failed program was:" >&5 |
| 2094 | cat conftest.$ac_ext >&5 |
| 2095 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 |
| 2096 | echo "$as_me: error: C compiler cannot create executables" >&2;} |
| 2097 | { (exit 77); exit 77; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2098 | fi |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2099 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2100 | ac_exeext=$ac_cv_exeext |
| 2101 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2102 | echo "${ECHO_T}$ac_file" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2103 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2104 | # Check the compiler produces executables we can run. If not, either |
| 2105 | # the compiler is broken, or we cross compile. |
| 2106 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2107 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2108 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2109 | # If not cross compiling, check that we can run a simple program. |
| 2110 | if test "$cross_compiling" != yes; then |
| 2111 | if { ac_try='./$ac_file' |
| 2112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2113 | (eval $ac_try) 2>&5 |
| 2114 | ac_status=$? |
| 2115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2116 | (exit $ac_status); }; }; then |
| 2117 | cross_compiling=no |
| 2118 | else |
| 2119 | if test "$cross_compiling" = maybe; then |
| 2120 | cross_compiling=yes |
| 2121 | else |
| 2122 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2123 | If you meant to cross compile, use \`--host'." >&5 |
| 2124 | echo "$as_me: error: cannot run C compiled programs. |
| 2125 | If you meant to cross compile, use \`--host'." >&2;} |
| 2126 | { (exit 1); exit 1; }; } |
| 2127 | fi |
| 2128 | fi |
| 2129 | fi |
| 2130 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2131 | echo "${ECHO_T}yes" >&6 |
| 2132 | |
| 2133 | rm -f a.out a.exe conftest$ac_cv_exeext |
| 2134 | ac_clean_files=$ac_clean_files_save |
| 2135 | # Check the compiler produces executables we can run. If not, either |
| 2136 | # the compiler is broken, or we cross compile. |
| 2137 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2138 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2139 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2140 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2141 | |
| 2142 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2143 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2144 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2145 | (eval $ac_link) 2>&5 |
| 2146 | ac_status=$? |
| 2147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2148 | (exit $ac_status); }; then |
| 2149 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2150 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2151 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2152 | # `rm'. |
| 2153 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do |
| 2154 | case $ac_file in |
| 2155 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 2156 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2157 | export ac_cv_exeext |
| 2158 | break;; |
| 2159 | * ) break;; |
| 2160 | esac |
| 2161 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2162 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2163 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 |
| 2164 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} |
| 2165 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2166 | fi |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2167 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2168 | rm -f conftest$ac_cv_exeext |
| 2169 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2170 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2171 | |
| 2172 | rm -f conftest.$ac_ext |
| 2173 | EXEEXT=$ac_cv_exeext |
| 2174 | ac_exeext=$EXEEXT |
| 2175 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2176 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2177 | if test "${ac_cv_objext+set}" = set; then |
| 2178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2179 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2180 | cat >conftest.$ac_ext <<_ACEOF |
| 2181 | #line $LINENO "configure" |
| 2182 | #include "confdefs.h" |
| 2183 | |
| 2184 | #ifdef F77_DUMMY_MAIN |
| 2185 | # ifdef __cplusplus |
| 2186 | extern "C" |
| 2187 | # endif |
| 2188 | int F77_DUMMY_MAIN() { return 1; } |
| 2189 | #endif |
| 2190 | int |
| 2191 | main () |
| 2192 | { |
| 2193 | |
| 2194 | ; |
| 2195 | return 0; |
| 2196 | } |
| 2197 | _ACEOF |
| 2198 | rm -f conftest.o conftest.obj |
| 2199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2200 | (eval $ac_compile) 2>&5 |
| 2201 | ac_status=$? |
| 2202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2203 | (exit $ac_status); }; then |
| 2204 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2205 | case $ac_file in |
| 2206 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; |
| 2207 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2208 | break;; |
| 2209 | esac |
| 2210 | done |
| 2211 | else |
| 2212 | echo "$as_me: failed program was:" >&5 |
| 2213 | cat conftest.$ac_ext >&5 |
| 2214 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 |
| 2215 | echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} |
| 2216 | { (exit 1); exit 1; }; } |
| 2217 | fi |
| 2218 | |
| 2219 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2220 | fi |
| 2221 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2222 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2223 | OBJEXT=$ac_cv_objext |
| 2224 | ac_objext=$OBJEXT |
| 2225 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2226 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2227 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2229 | else |
| 2230 | cat >conftest.$ac_ext <<_ACEOF |
| 2231 | #line $LINENO "configure" |
| 2232 | #include "confdefs.h" |
| 2233 | |
| 2234 | #ifdef F77_DUMMY_MAIN |
| 2235 | # ifdef __cplusplus |
| 2236 | extern "C" |
| 2237 | # endif |
| 2238 | int F77_DUMMY_MAIN() { return 1; } |
| 2239 | #endif |
| 2240 | int |
| 2241 | main () |
| 2242 | { |
| 2243 | #ifndef __GNUC__ |
| 2244 | choke me |
| 2245 | #endif |
| 2246 | |
| 2247 | ; |
| 2248 | return 0; |
| 2249 | } |
| 2250 | _ACEOF |
| 2251 | rm -f conftest.$ac_objext |
| 2252 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2253 | (eval $ac_compile) 2>&5 |
| 2254 | ac_status=$? |
| 2255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2256 | (exit $ac_status); } && |
| 2257 | { ac_try='test -s conftest.$ac_objext' |
| 2258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2259 | (eval $ac_try) 2>&5 |
| 2260 | ac_status=$? |
| 2261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2262 | (exit $ac_status); }; }; then |
| 2263 | ac_compiler_gnu=yes |
| 2264 | else |
| 2265 | echo "$as_me: failed program was:" >&5 |
| 2266 | cat conftest.$ac_ext >&5 |
| 2267 | ac_compiler_gnu=no |
| 2268 | fi |
| 2269 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2270 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2271 | |
| 2272 | fi |
| 2273 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2274 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2275 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2276 | ac_test_CFLAGS=${CFLAGS+set} |
| 2277 | ac_save_CFLAGS=$CFLAGS |
| 2278 | CFLAGS="-g" |
| 2279 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2280 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2281 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2282 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2283 | else |
| 2284 | cat >conftest.$ac_ext <<_ACEOF |
| 2285 | #line $LINENO "configure" |
| 2286 | #include "confdefs.h" |
| 2287 | |
| 2288 | #ifdef F77_DUMMY_MAIN |
| 2289 | # ifdef __cplusplus |
| 2290 | extern "C" |
| 2291 | # endif |
| 2292 | int F77_DUMMY_MAIN() { return 1; } |
| 2293 | #endif |
| 2294 | int |
| 2295 | main () |
| 2296 | { |
| 2297 | |
| 2298 | ; |
| 2299 | return 0; |
| 2300 | } |
| 2301 | _ACEOF |
| 2302 | rm -f conftest.$ac_objext |
| 2303 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2304 | (eval $ac_compile) 2>&5 |
| 2305 | ac_status=$? |
| 2306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2307 | (exit $ac_status); } && |
| 2308 | { ac_try='test -s conftest.$ac_objext' |
| 2309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2310 | (eval $ac_try) 2>&5 |
| 2311 | ac_status=$? |
| 2312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2313 | (exit $ac_status); }; }; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2314 | ac_cv_prog_cc_g=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2315 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2316 | echo "$as_me: failed program was:" >&5 |
| 2317 | cat conftest.$ac_ext >&5 |
| 2318 | ac_cv_prog_cc_g=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 2319 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2320 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2321 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2322 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2323 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2324 | if test "$ac_test_CFLAGS" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2325 | CFLAGS=$ac_save_CFLAGS |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2326 | elif test $ac_cv_prog_cc_g = yes; then |
| 2327 | if test "$GCC" = yes; then |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 2328 | CFLAGS="-g -O2" |
| 2329 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2330 | CFLAGS="-g" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2331 | fi |
| 2332 | else |
Guido van Rossum | e6c2cf1 | 1999-01-08 21:08:33 +0000 | [diff] [blame] | 2333 | if test "$GCC" = yes; then |
| 2334 | CFLAGS="-O2" |
| 2335 | else |
| 2336 | CFLAGS= |
| 2337 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2338 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2339 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2340 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2341 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2342 | # the declaration of exit, since it's the most demanding environment. |
| 2343 | cat >conftest.$ac_ext <<_ACEOF |
| 2344 | #ifndef __cplusplus |
| 2345 | choke me |
| 2346 | #endif |
| 2347 | _ACEOF |
| 2348 | rm -f conftest.$ac_objext |
| 2349 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2350 | (eval $ac_compile) 2>&5 |
| 2351 | ac_status=$? |
| 2352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2353 | (exit $ac_status); } && |
| 2354 | { ac_try='test -s conftest.$ac_objext' |
| 2355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2356 | (eval $ac_try) 2>&5 |
| 2357 | ac_status=$? |
| 2358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2359 | (exit $ac_status); }; }; then |
| 2360 | for ac_declaration in \ |
| 2361 | ''\ |
| 2362 | '#include <stdlib.h>' \ |
| 2363 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2364 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2365 | 'extern "C" void exit (int) throw ();' \ |
| 2366 | 'extern "C" void exit (int);' \ |
| 2367 | 'void exit (int);' |
| 2368 | do |
| 2369 | cat >conftest.$ac_ext <<_ACEOF |
| 2370 | #line $LINENO "configure" |
| 2371 | #include "confdefs.h" |
| 2372 | #include <stdlib.h> |
| 2373 | $ac_declaration |
| 2374 | #ifdef F77_DUMMY_MAIN |
| 2375 | # ifdef __cplusplus |
| 2376 | extern "C" |
| 2377 | # endif |
| 2378 | int F77_DUMMY_MAIN() { return 1; } |
| 2379 | #endif |
| 2380 | int |
| 2381 | main () |
| 2382 | { |
| 2383 | exit (42); |
| 2384 | ; |
| 2385 | return 0; |
| 2386 | } |
| 2387 | _ACEOF |
| 2388 | rm -f conftest.$ac_objext |
| 2389 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2390 | (eval $ac_compile) 2>&5 |
| 2391 | ac_status=$? |
| 2392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2393 | (exit $ac_status); } && |
| 2394 | { ac_try='test -s conftest.$ac_objext' |
| 2395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2396 | (eval $ac_try) 2>&5 |
| 2397 | ac_status=$? |
| 2398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2399 | (exit $ac_status); }; }; then |
| 2400 | : |
| 2401 | else |
| 2402 | echo "$as_me: failed program was:" >&5 |
| 2403 | cat conftest.$ac_ext >&5 |
| 2404 | continue |
| 2405 | fi |
| 2406 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2407 | cat >conftest.$ac_ext <<_ACEOF |
| 2408 | #line $LINENO "configure" |
| 2409 | #include "confdefs.h" |
| 2410 | $ac_declaration |
| 2411 | #ifdef F77_DUMMY_MAIN |
| 2412 | # ifdef __cplusplus |
| 2413 | extern "C" |
| 2414 | # endif |
| 2415 | int F77_DUMMY_MAIN() { return 1; } |
| 2416 | #endif |
| 2417 | int |
| 2418 | main () |
| 2419 | { |
| 2420 | exit (42); |
| 2421 | ; |
| 2422 | return 0; |
| 2423 | } |
| 2424 | _ACEOF |
| 2425 | rm -f conftest.$ac_objext |
| 2426 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2427 | (eval $ac_compile) 2>&5 |
| 2428 | ac_status=$? |
| 2429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2430 | (exit $ac_status); } && |
| 2431 | { ac_try='test -s conftest.$ac_objext' |
| 2432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2433 | (eval $ac_try) 2>&5 |
| 2434 | ac_status=$? |
| 2435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2436 | (exit $ac_status); }; }; then |
| 2437 | break |
| 2438 | else |
| 2439 | echo "$as_me: failed program was:" >&5 |
| 2440 | cat conftest.$ac_ext >&5 |
| 2441 | fi |
| 2442 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2443 | done |
| 2444 | rm -f conftest* |
| 2445 | if test -n "$ac_declaration"; then |
| 2446 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2447 | echo $ac_declaration >>confdefs.h |
| 2448 | echo '#endif' >>confdefs.h |
| 2449 | fi |
| 2450 | |
| 2451 | else |
| 2452 | echo "$as_me: failed program was:" >&5 |
| 2453 | cat conftest.$ac_ext >&5 |
| 2454 | fi |
| 2455 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2456 | ac_ext=c |
| 2457 | ac_cpp='$CPP $CPPFLAGS' |
| 2458 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2459 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2460 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 2461 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2462 | |
| 2463 | # checks for UNIX variants that set C preprocessor variables |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2464 | |
| 2465 | ac_ext=c |
| 2466 | ac_cpp='$CPP $CPPFLAGS' |
| 2467 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2468 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2469 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2470 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 2471 | 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] | 2472 | # On Suns, sometimes $CPP names a directory. |
| 2473 | if test -n "$CPP" && test -d "$CPP"; then |
| 2474 | CPP= |
| 2475 | fi |
| 2476 | if test -z "$CPP"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2477 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 2478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2479 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2480 | # Double quotes because CPP needs to be expanded |
| 2481 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 2482 | do |
| 2483 | ac_preproc_ok=false |
| 2484 | for ac_c_preproc_warn_flag in '' yes |
| 2485 | do |
| 2486 | # Use a header file that comes with gcc, so configuring glibc |
| 2487 | # with a fresh cross-compiler works. |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2488 | # 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] | 2489 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2490 | cat >conftest.$ac_ext <<_ACEOF |
| 2491 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2492 | #include "confdefs.h" |
| 2493 | #include <assert.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2494 | Syntax error |
| 2495 | _ACEOF |
| 2496 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2497 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2498 | ac_status=$? |
| 2499 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2500 | rm -f conftest.er1 |
| 2501 | cat conftest.err >&5 |
| 2502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2503 | (exit $ac_status); } >/dev/null; then |
| 2504 | if test -s conftest.err; then |
| 2505 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2506 | else |
| 2507 | ac_cpp_err= |
| 2508 | fi |
| 2509 | else |
| 2510 | ac_cpp_err=yes |
| 2511 | fi |
| 2512 | if test -z "$ac_cpp_err"; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2513 | : |
| 2514 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2515 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2516 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2517 | # Broken: fails on valid input. |
| 2518 | continue |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2519 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2520 | rm -f conftest.err conftest.$ac_ext |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 2521 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2522 | # OK, works on sane cases. Now check whether non-existent headers |
| 2523 | # can be detected and how. |
| 2524 | cat >conftest.$ac_ext <<_ACEOF |
| 2525 | #line $LINENO "configure" |
| 2526 | #include "confdefs.h" |
| 2527 | #include <ac_nonexistent.h> |
| 2528 | _ACEOF |
| 2529 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2530 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2531 | ac_status=$? |
| 2532 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2533 | rm -f conftest.er1 |
| 2534 | cat conftest.err >&5 |
| 2535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2536 | (exit $ac_status); } >/dev/null; then |
| 2537 | if test -s conftest.err; then |
| 2538 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2539 | else |
| 2540 | ac_cpp_err= |
| 2541 | fi |
| 2542 | else |
| 2543 | ac_cpp_err=yes |
| 2544 | fi |
| 2545 | if test -z "$ac_cpp_err"; then |
| 2546 | # Broken: success on invalid input. |
| 2547 | continue |
| 2548 | else |
| 2549 | echo "$as_me: failed program was:" >&5 |
| 2550 | cat conftest.$ac_ext >&5 |
| 2551 | # Passes both tests. |
| 2552 | ac_preproc_ok=: |
| 2553 | break |
| 2554 | fi |
| 2555 | rm -f conftest.err conftest.$ac_ext |
| 2556 | |
| 2557 | done |
| 2558 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2559 | rm -f conftest.err conftest.$ac_ext |
| 2560 | if $ac_preproc_ok; then |
| 2561 | break |
| 2562 | fi |
| 2563 | |
| 2564 | done |
| 2565 | ac_cv_prog_CPP=$CPP |
| 2566 | |
| 2567 | fi |
| 2568 | CPP=$ac_cv_prog_CPP |
| 2569 | else |
| 2570 | ac_cv_prog_CPP=$CPP |
| 2571 | fi |
| 2572 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 2573 | echo "${ECHO_T}$CPP" >&6 |
| 2574 | ac_preproc_ok=false |
| 2575 | for ac_c_preproc_warn_flag in '' yes |
| 2576 | do |
| 2577 | # Use a header file that comes with gcc, so configuring glibc |
| 2578 | # with a fresh cross-compiler works. |
| 2579 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 2580 | # not just through cpp. "Syntax error" is here to catch this case. |
| 2581 | cat >conftest.$ac_ext <<_ACEOF |
| 2582 | #line $LINENO "configure" |
| 2583 | #include "confdefs.h" |
| 2584 | #include <assert.h> |
| 2585 | Syntax error |
| 2586 | _ACEOF |
| 2587 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2588 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2589 | ac_status=$? |
| 2590 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2591 | rm -f conftest.er1 |
| 2592 | cat conftest.err >&5 |
| 2593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2594 | (exit $ac_status); } >/dev/null; then |
| 2595 | if test -s conftest.err; then |
| 2596 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2597 | else |
| 2598 | ac_cpp_err= |
| 2599 | fi |
| 2600 | else |
| 2601 | ac_cpp_err=yes |
| 2602 | fi |
| 2603 | if test -z "$ac_cpp_err"; then |
| 2604 | : |
| 2605 | else |
| 2606 | echo "$as_me: failed program was:" >&5 |
| 2607 | cat conftest.$ac_ext >&5 |
| 2608 | # Broken: fails on valid input. |
| 2609 | continue |
| 2610 | fi |
| 2611 | rm -f conftest.err conftest.$ac_ext |
| 2612 | |
| 2613 | # OK, works on sane cases. Now check whether non-existent headers |
| 2614 | # can be detected and how. |
| 2615 | cat >conftest.$ac_ext <<_ACEOF |
| 2616 | #line $LINENO "configure" |
| 2617 | #include "confdefs.h" |
| 2618 | #include <ac_nonexistent.h> |
| 2619 | _ACEOF |
| 2620 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2621 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2622 | ac_status=$? |
| 2623 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2624 | rm -f conftest.er1 |
| 2625 | cat conftest.err >&5 |
| 2626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2627 | (exit $ac_status); } >/dev/null; then |
| 2628 | if test -s conftest.err; then |
| 2629 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2630 | else |
| 2631 | ac_cpp_err= |
| 2632 | fi |
| 2633 | else |
| 2634 | ac_cpp_err=yes |
| 2635 | fi |
| 2636 | if test -z "$ac_cpp_err"; then |
| 2637 | # Broken: success on invalid input. |
| 2638 | continue |
| 2639 | else |
| 2640 | echo "$as_me: failed program was:" >&5 |
| 2641 | cat conftest.$ac_ext >&5 |
| 2642 | # Passes both tests. |
| 2643 | ac_preproc_ok=: |
| 2644 | break |
| 2645 | fi |
| 2646 | rm -f conftest.err conftest.$ac_ext |
| 2647 | |
| 2648 | done |
| 2649 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 2650 | rm -f conftest.err conftest.$ac_ext |
| 2651 | if $ac_preproc_ok; then |
| 2652 | : |
| 2653 | else |
| 2654 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
| 2655 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
| 2656 | { (exit 1); exit 1; }; } |
| 2657 | fi |
| 2658 | |
| 2659 | ac_ext=c |
| 2660 | ac_cpp='$CPP $CPPFLAGS' |
| 2661 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2662 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2663 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2664 | |
| 2665 | |
| 2666 | |
| 2667 | echo "$as_me:$LINENO: checking for AIX" >&5 |
| 2668 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 2669 | cat >conftest.$ac_ext <<_ACEOF |
| 2670 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2671 | #include "confdefs.h" |
| 2672 | #ifdef _AIX |
| 2673 | yes |
| 2674 | #endif |
| 2675 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2676 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2677 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2678 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2679 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2680 | echo "${ECHO_T}yes" >&6 |
| 2681 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2682 | #define _ALL_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2683 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2684 | |
| 2685 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2686 | echo "$as_me:$LINENO: result: no" >&5 |
| 2687 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2688 | fi |
| 2689 | rm -f conftest* |
| 2690 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 2691 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2692 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 2693 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 2694 | if test "${ac_cv_header_stdc+set}" = set; then |
| 2695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2696 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2697 | cat >conftest.$ac_ext <<_ACEOF |
| 2698 | #line $LINENO "configure" |
| 2699 | #include "confdefs.h" |
| 2700 | #include <stdlib.h> |
| 2701 | #include <stdarg.h> |
| 2702 | #include <string.h> |
| 2703 | #include <float.h> |
| 2704 | |
| 2705 | _ACEOF |
| 2706 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2707 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2708 | ac_status=$? |
| 2709 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2710 | rm -f conftest.er1 |
| 2711 | cat conftest.err >&5 |
| 2712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2713 | (exit $ac_status); } >/dev/null; then |
| 2714 | if test -s conftest.err; then |
| 2715 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2716 | else |
| 2717 | ac_cpp_err= |
| 2718 | fi |
| 2719 | else |
| 2720 | ac_cpp_err=yes |
| 2721 | fi |
| 2722 | if test -z "$ac_cpp_err"; then |
| 2723 | ac_cv_header_stdc=yes |
| 2724 | else |
| 2725 | echo "$as_me: failed program was:" >&5 |
| 2726 | cat conftest.$ac_ext >&5 |
| 2727 | ac_cv_header_stdc=no |
| 2728 | fi |
| 2729 | rm -f conftest.err conftest.$ac_ext |
| 2730 | |
| 2731 | if test $ac_cv_header_stdc = yes; then |
| 2732 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 2733 | cat >conftest.$ac_ext <<_ACEOF |
| 2734 | #line $LINENO "configure" |
| 2735 | #include "confdefs.h" |
| 2736 | #include <string.h> |
| 2737 | |
| 2738 | _ACEOF |
| 2739 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2740 | egrep "memchr" >/dev/null 2>&1; then |
| 2741 | : |
| 2742 | else |
| 2743 | ac_cv_header_stdc=no |
| 2744 | fi |
| 2745 | rm -f conftest* |
| 2746 | |
| 2747 | fi |
| 2748 | |
| 2749 | if test $ac_cv_header_stdc = yes; then |
| 2750 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 2751 | cat >conftest.$ac_ext <<_ACEOF |
| 2752 | #line $LINENO "configure" |
| 2753 | #include "confdefs.h" |
| 2754 | #include <stdlib.h> |
| 2755 | |
| 2756 | _ACEOF |
| 2757 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2758 | egrep "free" >/dev/null 2>&1; then |
| 2759 | : |
| 2760 | else |
| 2761 | ac_cv_header_stdc=no |
| 2762 | fi |
| 2763 | rm -f conftest* |
| 2764 | |
| 2765 | fi |
| 2766 | |
| 2767 | if test $ac_cv_header_stdc = yes; then |
| 2768 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 2769 | if test "$cross_compiling" = yes; then |
| 2770 | : |
| 2771 | else |
| 2772 | cat >conftest.$ac_ext <<_ACEOF |
| 2773 | #line $LINENO "configure" |
| 2774 | #include "confdefs.h" |
| 2775 | #include <ctype.h> |
| 2776 | #if ((' ' & 0x0FF) == 0x020) |
| 2777 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 2778 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 2779 | #else |
| 2780 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 2781 | || ('j' <= (c) && (c) <= 'r') \ |
| 2782 | || ('s' <= (c) && (c) <= 'z')) |
| 2783 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 2784 | #endif |
| 2785 | |
| 2786 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 2787 | int |
| 2788 | main () |
| 2789 | { |
| 2790 | int i; |
| 2791 | for (i = 0; i < 256; i++) |
| 2792 | if (XOR (islower (i), ISLOWER (i)) |
| 2793 | || toupper (i) != TOUPPER (i)) |
| 2794 | exit(2); |
| 2795 | exit (0); |
| 2796 | } |
| 2797 | _ACEOF |
| 2798 | rm -f conftest$ac_exeext |
| 2799 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2800 | (eval $ac_link) 2>&5 |
| 2801 | ac_status=$? |
| 2802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2803 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 2804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2805 | (eval $ac_try) 2>&5 |
| 2806 | ac_status=$? |
| 2807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2808 | (exit $ac_status); }; }; then |
| 2809 | : |
| 2810 | else |
| 2811 | echo "$as_me: program exited with status $ac_status" >&5 |
| 2812 | echo "$as_me: failed program was:" >&5 |
| 2813 | cat conftest.$ac_ext >&5 |
| 2814 | ( exit $ac_status ) |
| 2815 | ac_cv_header_stdc=no |
| 2816 | fi |
| 2817 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 2818 | fi |
| 2819 | fi |
| 2820 | fi |
| 2821 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 2822 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 2823 | if test $ac_cv_header_stdc = yes; then |
| 2824 | |
| 2825 | cat >>confdefs.h <<\_ACEOF |
| 2826 | #define STDC_HEADERS 1 |
| 2827 | _ACEOF |
| 2828 | |
| 2829 | fi |
| 2830 | |
| 2831 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 2832 | |
| 2833 | |
| 2834 | |
| 2835 | |
| 2836 | |
| 2837 | |
| 2838 | |
| 2839 | |
| 2840 | |
| 2841 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 2842 | inttypes.h stdint.h unistd.h |
| 2843 | do |
| 2844 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 2845 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 2846 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 2847 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 2848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2849 | else |
| 2850 | cat >conftest.$ac_ext <<_ACEOF |
| 2851 | #line $LINENO "configure" |
| 2852 | #include "confdefs.h" |
| 2853 | $ac_includes_default |
| 2854 | |
| 2855 | #include <$ac_header> |
| 2856 | _ACEOF |
| 2857 | rm -f conftest.$ac_objext |
| 2858 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2859 | (eval $ac_compile) 2>&5 |
| 2860 | ac_status=$? |
| 2861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2862 | (exit $ac_status); } && |
| 2863 | { ac_try='test -s conftest.$ac_objext' |
| 2864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2865 | (eval $ac_try) 2>&5 |
| 2866 | ac_status=$? |
| 2867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2868 | (exit $ac_status); }; }; then |
| 2869 | eval "$as_ac_Header=yes" |
| 2870 | else |
| 2871 | echo "$as_me: failed program was:" >&5 |
| 2872 | cat conftest.$ac_ext >&5 |
| 2873 | eval "$as_ac_Header=no" |
| 2874 | fi |
| 2875 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2876 | fi |
| 2877 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 2878 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 2879 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 2880 | cat >>confdefs.h <<_ACEOF |
| 2881 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 2882 | _ACEOF |
| 2883 | |
| 2884 | fi |
| 2885 | |
| 2886 | done |
| 2887 | |
| 2888 | |
| 2889 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2890 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 2891 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 2892 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2894 | fi |
| 2895 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 2896 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 2897 | else |
| 2898 | # Is the header compilable? |
| 2899 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5 |
| 2900 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 |
| 2901 | cat >conftest.$ac_ext <<_ACEOF |
| 2902 | #line $LINENO "configure" |
| 2903 | #include "confdefs.h" |
| 2904 | $ac_includes_default |
| 2905 | #include <minix/config.h> |
| 2906 | _ACEOF |
| 2907 | rm -f conftest.$ac_objext |
| 2908 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2909 | (eval $ac_compile) 2>&5 |
| 2910 | ac_status=$? |
| 2911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2912 | (exit $ac_status); } && |
| 2913 | { ac_try='test -s conftest.$ac_objext' |
| 2914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2915 | (eval $ac_try) 2>&5 |
| 2916 | ac_status=$? |
| 2917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2918 | (exit $ac_status); }; }; then |
| 2919 | ac_header_compiler=yes |
| 2920 | else |
| 2921 | echo "$as_me: failed program was:" >&5 |
| 2922 | cat conftest.$ac_ext >&5 |
| 2923 | ac_header_compiler=no |
| 2924 | fi |
| 2925 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2926 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 2927 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 2928 | |
| 2929 | # Is the header present? |
| 2930 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5 |
| 2931 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 |
| 2932 | cat >conftest.$ac_ext <<_ACEOF |
| 2933 | #line $LINENO "configure" |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2934 | #include "confdefs.h" |
| 2935 | #include <minix/config.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2936 | _ACEOF |
| 2937 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 2938 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2939 | ac_status=$? |
| 2940 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 2941 | rm -f conftest.er1 |
| 2942 | cat conftest.err >&5 |
| 2943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2944 | (exit $ac_status); } >/dev/null; then |
| 2945 | if test -s conftest.err; then |
| 2946 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 2947 | else |
| 2948 | ac_cpp_err= |
| 2949 | fi |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2950 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2951 | ac_cpp_err=yes |
| 2952 | fi |
| 2953 | if test -z "$ac_cpp_err"; then |
| 2954 | ac_header_preproc=yes |
| 2955 | else |
| 2956 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2957 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2958 | ac_header_preproc=no |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2959 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2960 | rm -f conftest.err conftest.$ac_ext |
| 2961 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 2962 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 2963 | |
| 2964 | # So? What about this header? |
| 2965 | case $ac_header_compiler:$ac_header_preproc in |
| 2966 | yes:no ) |
| 2967 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 2968 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 2969 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 2970 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};; |
| 2971 | no:yes ) |
| 2972 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 |
| 2973 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} |
| 2974 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 |
| 2975 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} |
| 2976 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
| 2977 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;};; |
| 2978 | esac |
| 2979 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 |
| 2980 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
| 2981 | if test "${ac_cv_header_minix_config_h+set}" = set; then |
| 2982 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2983 | else |
| 2984 | ac_cv_header_minix_config_h=$ac_header_preproc |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2985 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2986 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 |
| 2987 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
| 2988 | |
| 2989 | fi |
| 2990 | if test $ac_cv_header_minix_config_h = yes; then |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2991 | MINIX=yes |
| 2992 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2993 | MINIX= |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2994 | fi |
| 2995 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2996 | |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 2997 | if test "$MINIX" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 2998 | |
| 2999 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3000 | #define _POSIX_SOURCE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3001 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3002 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3003 | |
| 3004 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3005 | #define _POSIX_1_SOURCE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3006 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3007 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3008 | |
| 3009 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3010 | #define _MINIX 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3011 | _ACEOF |
Martin v. Löwis | 1d5ecb7 | 2001-08-09 10:29:44 +0000 | [diff] [blame] | 3012 | |
| 3013 | fi |
| 3014 | |
| 3015 | |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 3016 | # Check for unsupported systems |
| 3017 | case $ac_sys_system/$ac_sys_release in |
| 3018 | SunOS/4*|DYNIX/*|dgux*/*|IRIX/4*|Linux*/1*) |
| 3019 | echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. |
| 3020 | echo See README for details. |
| 3021 | exit 1;; |
| 3022 | esac |
| 3023 | |
| 3024 | if test "$MINIX" = yes; then |
| 3025 | echo This system \(MINIX\) is no longer supported. |
| 3026 | echo Read README for details. |
| 3027 | exit 1 |
| 3028 | fi |
| 3029 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3030 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3031 | echo "$as_me:$LINENO: checking for --with-suffix" >&5 |
| 3032 | echo $ECHO_N "checking for --with-suffix... $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3033 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3034 | # Check whether --with-suffix or --without-suffix was given. |
| 3035 | if test "${with_suffix+set}" = set; then |
| 3036 | withval="$with_suffix" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3037 | |
Neil Schemenauer | dfb38e4 | 2001-01-27 06:57:08 +0000 | [diff] [blame] | 3038 | case $withval in |
| 3039 | no) EXEEXT=;; |
| 3040 | yes) EXEEXT=.exe;; |
| 3041 | *) EXEEXT=$withval;; |
| 3042 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3043 | fi; |
| 3044 | echo "$as_me:$LINENO: result: $EXEEXT" >&5 |
| 3045 | echo "${ECHO_T}$EXEEXT" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3046 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3047 | # Test whether we're running on a non-case-sensitive system, in which |
| 3048 | # case we give a warning if no ext is given |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3049 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3050 | echo "$as_me:$LINENO: checking for case-insensitive build directory" >&5 |
| 3051 | echo $ECHO_N "checking for case-insensitive build directory... $ECHO_C" >&6 |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3052 | if test ! -d CaseSensitiveTestDir; then |
| 3053 | mkdir CaseSensitiveTestDir |
| 3054 | fi |
| 3055 | |
| 3056 | if test -d casesensitivetestdir |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3057 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3058 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3059 | echo "${ECHO_T}yes" >&6 |
Jack Jansen | 1999ef4 | 2001-12-06 21:47:20 +0000 | [diff] [blame] | 3060 | BUILDEXEEXT=.exe |
| 3061 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3062 | echo "$as_me:$LINENO: result: no" >&5 |
| 3063 | echo "${ECHO_T}no" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 3064 | BUILDEXEEXT=$EXEEXT |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 3065 | fi |
Jack Jansen | 3c2c433 | 2002-11-06 13:33:32 +0000 | [diff] [blame] | 3066 | rmdir CaseSensitiveTestDir |
Guido van Rossum | ff555e3 | 2000-09-22 15:38:21 +0000 | [diff] [blame] | 3067 | |
Guido van Rossum | dd997f7 | 1998-10-07 19:58:26 +0000 | [diff] [blame] | 3068 | case $MACHDEP in |
| 3069 | bsdos*) |
| 3070 | case $CC in |
| 3071 | gcc) CC="$CC -D_HAVE_BSDI";; |
| 3072 | esac;; |
| 3073 | esac |
| 3074 | |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3075 | case $ac_sys_system in |
| 3076 | hp*|HP*) |
| 3077 | case $CC in |
Guido van Rossum | cd5ff9f | 2000-09-22 16:15:54 +0000 | [diff] [blame] | 3078 | cc|*/cc) CC="$CC -Ae";; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3079 | esac;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3080 | Monterey*) |
| 3081 | case $CC in |
| 3082 | cc) CC="$CC -Wl,-Bexport";; |
| 3083 | esac;; |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3084 | SunOS*) |
| 3085 | # 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] | 3086 | |
| 3087 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3088 | #define __EXTENSIONS__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3089 | _ACEOF |
Martin v. Löwis | a30c100 | 2001-03-06 12:10:20 +0000 | [diff] [blame] | 3090 | |
| 3091 | ;; |
Guido van Rossum | 24b1e75 | 1997-08-21 02:29:16 +0000 | [diff] [blame] | 3092 | esac |
| 3093 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3094 | |
| 3095 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3096 | echo "$as_me:$LINENO: checking LIBRARY" >&5 |
| 3097 | echo $ECHO_N "checking LIBRARY... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3098 | if test -z "$LIBRARY" |
| 3099 | then |
| 3100 | LIBRARY='libpython$(VERSION).a' |
| 3101 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3102 | echo "$as_me:$LINENO: result: $LIBRARY" >&5 |
| 3103 | echo "${ECHO_T}$LIBRARY" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3104 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3105 | # 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] | 3106 | # name of the library into which to insert object files). BLDLIBRARY is also |
| 3107 | # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY |
| 3108 | # is blank as the main program is not linked directly against LDLIBRARY. |
| 3109 | # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On |
| 3110 | # systems without shared libraries, LDLIBRARY is the same as LIBRARY |
| 3111 | # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, |
| 3112 | # DLLLIBRARY is the shared (i.e., DLL) library. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3113 | # |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3114 | # RUNSHARED is used to run shared python without installed libraries |
| 3115 | # |
| 3116 | # INSTSONAME is the name of the shared library that will be use to install |
| 3117 | # on the system - some systems like version suffix, others don't |
| 3118 | |
| 3119 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3120 | |
| 3121 | |
| 3122 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3123 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 3124 | LDLIBRARY="$LIBRARY" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3125 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 09bdf72 | 2002-05-08 08:51:29 +0000 | [diff] [blame] | 3126 | INSTSONAME='$(LDLIBRARY)' |
Guido van Rossum | ca563f2 | 2001-01-23 01:52:44 +0000 | [diff] [blame] | 3127 | DLLLIBRARY='' |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3128 | LDLIBRARYDIR='' |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3129 | RUNSHARED='' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3130 | |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3131 | # 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] | 3132 | # If CXX is set, and if it is needed to link a main function that was |
| 3133 | # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: |
| 3134 | # python might then depend on the C++ runtime |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3135 | # 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] | 3136 | # linking. |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3137 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3138 | echo "$as_me:$LINENO: checking LINKCC" >&5 |
| 3139 | echo $ECHO_N "checking LINKCC... $ECHO_C" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3140 | if test -z "$LINKCC" |
| 3141 | then |
Martin v. Löwis | b7da67a | 2001-10-18 15:35:38 +0000 | [diff] [blame] | 3142 | if test -z "$CXX"; then |
| 3143 | LINKCC="\$(PURIFY) \$(CC)" |
| 3144 | else |
Martin v. Löwis | 1931ca7 | 2002-06-01 21:39:58 +0000 | [diff] [blame] | 3145 | 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] | 3146 | $CXX -c conftest.$ac_ext 2>&5 |
| 3147 | if $CC -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ |
| 3148 | && test -s conftest$ac_exeext && ./conftest$ac_exeext |
| 3149 | then |
| 3150 | LINKCC="\$(PURIFY) \$(CC)" |
| 3151 | else |
| 3152 | LINKCC="\$(PURIFY) \$(CXX)" |
| 3153 | fi |
| 3154 | rm -fr conftest* |
| 3155 | fi |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3156 | case $ac_sys_system in |
| 3157 | AIX*) |
Jack Jansen | 524a098 | 2002-03-12 15:25:52 +0000 | [diff] [blame] | 3158 | LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp \"\" \$(LIBRARY); $LINKCC";; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 3159 | dgux*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3160 | LINKCC="LD_RUN_PATH=$libdir $LINKCC";; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3161 | Monterey64*) |
Martin v. Löwis | 4e732dc | 2002-03-19 15:15:32 +0000 | [diff] [blame] | 3162 | LINKCC="$LINKCC -L/usr/lib/ia64l64";; |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3163 | esac |
| 3164 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3165 | echo "$as_me:$LINENO: result: $LINKCC" >&5 |
| 3166 | echo "${ECHO_T}$LINKCC" >&6 |
Guido van Rossum | 76c5fe2 | 1997-08-14 19:45:07 +0000 | [diff] [blame] | 3167 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3168 | echo "$as_me:$LINENO: checking for --enable-shared" >&5 |
| 3169 | echo $ECHO_N "checking for --enable-shared... $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3170 | # Check whether --enable-shared or --disable-shared was given. |
| 3171 | if test "${enable_shared+set}" = set; then |
| 3172 | enableval="$enable_shared" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3173 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3174 | fi; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3175 | |
| 3176 | if test -z "$enable_shared" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3177 | then |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3178 | case $ac_sys_system in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3179 | CYGWIN* | atheos*) |
Martin v. Löwis | b51033d | 2002-05-03 05:53:15 +0000 | [diff] [blame] | 3180 | enable_shared="yes";; |
| 3181 | *) |
| 3182 | enable_shared="no";; |
| 3183 | esac |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3184 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3185 | echo "$as_me:$LINENO: result: $enable_shared" >&5 |
| 3186 | echo "${ECHO_T}$enable_shared" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3187 | |
| 3188 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3189 | echo "$as_me:$LINENO: checking LDLIBRARY" >&5 |
| 3190 | echo $ECHO_N "checking LDLIBRARY... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3191 | |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 3192 | # MacOSX framework builds need more magic. LDLIBRARY is the dynamic |
| 3193 | # library that we build, but we do not want to link against it (we |
| 3194 | # will find it with a -framework option). For this reason there is an |
| 3195 | # extra variable BLDLIBRARY against which Python and the extension |
| 3196 | # modules are linked, BLDLIBRARY. This is normally the same as |
| 3197 | # LDLIBRARY, but empty for MacOSX framework builds. |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3198 | if test "$enable_framework" |
| 3199 | then |
| 3200 | LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' |
| 3201 | LDLIBRARYDIR='$(PYTHONFRAMEWORKDIR)' |
| 3202 | BLDLIBRARY='' |
| 3203 | else |
| 3204 | BLDLIBRARY='$(LDLIBRARY)' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3205 | fi |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 3206 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3207 | # Other platforms follow |
| 3208 | if test $enable_shared = "yes"; then |
Mark Hammond | 8235ea1 | 2002-07-19 06:55:41 +0000 | [diff] [blame] | 3209 | |
| 3210 | cat >>confdefs.h <<\_ACEOF |
| 3211 | #define Py_ENABLE_SHARED 1 |
| 3212 | _ACEOF |
| 3213 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3214 | case $ac_sys_system in |
| 3215 | BeOS*) |
| 3216 | LDLIBRARY='libpython$(VERSION).so' |
| 3217 | ;; |
| 3218 | CYGWIN*) |
| 3219 | LDLIBRARY='libpython$(VERSION).dll.a' |
| 3220 | DLLLIBRARY='libpython$(VERSION).dll' |
| 3221 | ;; |
| 3222 | SunOS*) |
| 3223 | LDLIBRARY='libpython$(VERSION).so' |
| 3224 | BLDLIBRARY='-Wl,-rpath,$(LIBDIR) -L. -lpython$(VERSION)' |
| 3225 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3226 | ;; |
Martin v. Löwis | 1bc894b | 2002-07-30 20:19:58 +0000 | [diff] [blame] | 3227 | Linux*|GNU*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3228 | LDLIBRARY='libpython$(VERSION).so' |
| 3229 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3230 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3231 | INSTSONAME="$LDLIBRARY".$SOVERSION |
| 3232 | ;; |
| 3233 | hp*|HP*) |
| 3234 | LDLIBRARY='libpython$(VERSION).sl' |
| 3235 | BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' |
| 3236 | RUNSHARED=SHLIB_PATH=`pwd`:$SHLIB_PATH |
| 3237 | ;; |
| 3238 | OSF*) |
| 3239 | LDLIBRARY='libpython$(VERSION).so' |
| 3240 | BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' |
| 3241 | RUNSHARED=LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH |
| 3242 | ;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3243 | atheos*) |
| 3244 | LDLIBRARY='libpython$(VERSION).so' |
| 3245 | BLDLIBRARY='-L. -lpython$(VERSION)' |
| 3246 | RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} |
| 3247 | ;; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 3248 | esac |
| 3249 | # DG/UX requires some fancy ld contortions to produce a .so from an .a |
| 3250 | case $MACHDEP in |
| 3251 | dguxR4) |
| 3252 | LDLIBRARY='libpython$(VERSION).so' |
| 3253 | OPT="$OPT -pic" |
| 3254 | ;; |
| 3255 | esac |
| 3256 | fi |
| 3257 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3258 | echo "$as_me:$LINENO: result: $LDLIBRARY" >&5 |
| 3259 | echo "${ECHO_T}$LDLIBRARY" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 3260 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3261 | if test -n "$ac_tool_prefix"; then |
| 3262 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 3263 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 3264 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3265 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3266 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 3267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3268 | else |
| 3269 | if test -n "$RANLIB"; then |
| 3270 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 3271 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3273 | for as_dir in $PATH |
| 3274 | do |
| 3275 | IFS=$as_save_IFS |
| 3276 | test -z "$as_dir" && as_dir=. |
| 3277 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3278 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3279 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 3280 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3281 | break 2 |
| 3282 | fi |
| 3283 | done |
| 3284 | done |
| 3285 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3286 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3287 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3288 | RANLIB=$ac_cv_prog_RANLIB |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3289 | if test -n "$RANLIB"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3290 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 3291 | echo "${ECHO_T}$RANLIB" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3292 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3293 | echo "$as_me:$LINENO: result: no" >&5 |
| 3294 | echo "${ECHO_T}no" >&6 |
| 3295 | fi |
| 3296 | |
| 3297 | fi |
| 3298 | if test -z "$ac_cv_prog_RANLIB"; then |
| 3299 | ac_ct_RANLIB=$RANLIB |
| 3300 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 3301 | set dummy ranlib; ac_word=$2 |
| 3302 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3303 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3304 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 3305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3306 | else |
| 3307 | if test -n "$ac_ct_RANLIB"; then |
| 3308 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 3309 | else |
| 3310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3311 | for as_dir in $PATH |
| 3312 | do |
| 3313 | IFS=$as_save_IFS |
| 3314 | test -z "$as_dir" && as_dir=. |
| 3315 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3316 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3317 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 3318 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3319 | break 2 |
| 3320 | fi |
| 3321 | done |
| 3322 | done |
| 3323 | |
| 3324 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 3325 | fi |
| 3326 | fi |
| 3327 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 3328 | if test -n "$ac_ct_RANLIB"; then |
| 3329 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 3330 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3331 | else |
| 3332 | echo "$as_me:$LINENO: result: no" >&5 |
| 3333 | echo "${ECHO_T}no" >&6 |
| 3334 | fi |
| 3335 | |
| 3336 | RANLIB=$ac_ct_RANLIB |
| 3337 | else |
| 3338 | RANLIB="$ac_cv_prog_RANLIB" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3339 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3340 | |
| 3341 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3342 | for ac_prog in ar aal |
| 3343 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3344 | # 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] | 3345 | set dummy $ac_prog; ac_word=$2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3346 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3347 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3348 | if test "${ac_cv_prog_AR+set}" = set; then |
| 3349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3350 | else |
| 3351 | if test -n "$AR"; then |
| 3352 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 3353 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3355 | for as_dir in $PATH |
| 3356 | do |
| 3357 | IFS=$as_save_IFS |
| 3358 | test -z "$as_dir" && as_dir=. |
| 3359 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3360 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3361 | ac_cv_prog_AR="$ac_prog" |
| 3362 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3363 | break 2 |
| 3364 | fi |
| 3365 | done |
| 3366 | done |
| 3367 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3368 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3369 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3370 | AR=$ac_cv_prog_AR |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3371 | if test -n "$AR"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3372 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 3373 | echo "${ECHO_T}$AR" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3374 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3375 | echo "$as_me:$LINENO: result: no" >&5 |
| 3376 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3377 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3378 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3379 | test -n "$AR" && break |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 3380 | done |
| 3381 | test -n "$AR" || AR="ar" |
| 3382 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3383 | |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3384 | case $MACHDEP in |
Neil Schemenauer | af5567f | 2001-10-21 22:32:04 +0000 | [diff] [blame] | 3385 | bsdos*|hp*|HP*) |
| 3386 | # install -d does not work on BSDI or HP-UX |
Neil Schemenauer | a42c827 | 2001-03-31 00:01:55 +0000 | [diff] [blame] | 3387 | if test -z "$INSTALL" |
| 3388 | then |
| 3389 | INSTALL="${srcdir}/install-sh -c" |
| 3390 | fi |
| 3391 | esac |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3392 | ac_aux_dir= |
| 3393 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 3394 | if test -f $ac_dir/install-sh; then |
| 3395 | ac_aux_dir=$ac_dir |
| 3396 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 3397 | break |
| 3398 | elif test -f $ac_dir/install.sh; then |
| 3399 | ac_aux_dir=$ac_dir |
| 3400 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 3401 | break |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3402 | elif test -f $ac_dir/shtool; then |
| 3403 | ac_aux_dir=$ac_dir |
| 3404 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 3405 | break |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3406 | fi |
| 3407 | done |
| 3408 | if test -z "$ac_aux_dir"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3409 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 3410 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 3411 | { (exit 1); exit 1; }; } |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3412 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3413 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 3414 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 3415 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3416 | |
| 3417 | # Find a good install program. We prefer a C program (faster), |
| 3418 | # so one script is as good as another. But avoid the broken or |
| 3419 | # incompatible versions: |
| 3420 | # SysV /etc/install, /usr/sbin/install |
| 3421 | # SunOS /usr/etc/install |
| 3422 | # IRIX /sbin/install |
| 3423 | # AIX /bin/install |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3424 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3425 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3426 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3427 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3428 | # ./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] | 3429 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 3430 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3431 | if test -z "$INSTALL"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3432 | if test "${ac_cv_path_install+set}" = set; then |
| 3433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3434 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3436 | for as_dir in $PATH |
| 3437 | do |
| 3438 | IFS=$as_save_IFS |
| 3439 | test -z "$as_dir" && as_dir=. |
| 3440 | # Account for people who put trailing slashes in PATH elements. |
| 3441 | case $as_dir/ in |
| 3442 | ./ | .// | /cC/* | \ |
| 3443 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3444 | /usr/ucb/* ) ;; |
| 3445 | *) |
| 3446 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3447 | # Don't use installbsd from OSF since it installs stuff as root |
| 3448 | # by default. |
| 3449 | for ac_prog in ginstall scoinst install; do |
| 3450 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3451 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 3452 | if test $ac_prog = install && |
| 3453 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3454 | # AIX install. It has an incompatible calling convention. |
| 3455 | : |
| 3456 | elif test $ac_prog = install && |
| 3457 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3458 | # program-specific install script used by HP pwplus--don't use. |
| 3459 | : |
| 3460 | else |
| 3461 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3462 | break 3 |
| 3463 | fi |
| 3464 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3465 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3466 | done |
| 3467 | ;; |
| 3468 | esac |
| 3469 | done |
| 3470 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3471 | |
| 3472 | fi |
| 3473 | if test "${ac_cv_path_install+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3474 | INSTALL=$ac_cv_path_install |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3475 | else |
| 3476 | # As a last resort, use the slow shell script. We don't cache a |
| 3477 | # path for INSTALL within a source directory, because that will |
| 3478 | # break other packages using the cache if that directory is |
| 3479 | # removed, or if the path is relative. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3480 | INSTALL=$ac_install_sh |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3481 | fi |
| 3482 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3483 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 3484 | echo "${ECHO_T}$INSTALL" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3485 | |
| 3486 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3487 | # It thinks the first close brace ends the variable substitution. |
| 3488 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3489 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3490 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3491 | |
| 3492 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3493 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3494 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3495 | # Not every filesystem supports hard links |
| 3496 | |
| 3497 | if test -z "$LN" ; then |
| 3498 | case $ac_sys_system in |
| 3499 | BeOS*) LN="ln -s";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 3500 | CYGWIN*) LN="ln -s";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 3501 | atheos*) LN="ln -s";; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 3502 | *) LN=ln;; |
| 3503 | esac |
| 3504 | fi |
| 3505 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3506 | # Check for --with-pydebug |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3507 | echo "$as_me:$LINENO: checking for --with-pydebug" >&5 |
| 3508 | echo $ECHO_N "checking for --with-pydebug... $ECHO_C" >&6 |
| 3509 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3510 | # Check whether --with-pydebug or --without-pydebug was given. |
| 3511 | if test "${with_pydebug+set}" = set; then |
| 3512 | withval="$with_pydebug" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3513 | |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3514 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3515 | then |
| 3516 | |
| 3517 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3518 | #define Py_DEBUG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3519 | _ACEOF |
| 3520 | |
| 3521 | echo "$as_me:$LINENO: result: yes" >&5 |
| 3522 | echo "${ECHO_T}yes" >&6; |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 3523 | Py_DEBUG='true' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3524 | else echo "$as_me:$LINENO: result: no" >&5 |
| 3525 | echo "${ECHO_T}no" >&6; Py_DEBUG='false' |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3526 | fi |
| 3527 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3528 | echo "$as_me:$LINENO: result: no" >&5 |
| 3529 | echo "${ECHO_T}no" >&6 |
| 3530 | fi; |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3531 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 3532 | # Optimizer/debugger flags |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3533 | |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3534 | if test -z "$OPT" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3535 | then |
Neal Norwitz | d957f39 | 2002-09-25 21:26:19 +0000 | [diff] [blame] | 3536 | case $GCC in |
Guido van Rossum | edca74a | 1997-07-18 23:29:40 +0000 | [diff] [blame] | 3537 | yes) |
| 3538 | case $ac_cv_prog_cc_g in |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3539 | yes) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3540 | if test "$Py_DEBUG" = 'true' ; then |
| 3541 | # Optimization messes up debuggers, so turn it off for |
| 3542 | # debug builds. |
| 3543 | OPT="-g -Wall -Wstrict-prototypes" |
| 3544 | else |
| 3545 | OPT="-g -O3 -Wall -Wstrict-prototypes" |
| 3546 | fi;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3547 | *) |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3548 | OPT="-O3 -Wall -Wstrict-prototypes";; |
| 3549 | esac |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3550 | case $ac_sys_system in |
| 3551 | SCO_SV*) OPT="$OPT -m486 -DSCO5";; |
| 3552 | esac |
Fred Drake | 109d986 | 2001-07-11 06:27:56 +0000 | [diff] [blame] | 3553 | ;; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3554 | *) |
| 3555 | case $ac_sys_system in |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 3556 | OpenUNIX*|UnixWare*) |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3557 | OPT="-O -K pentium,host,inline,loop_unroll,alloca ";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 3558 | SCO_SV*) |
| 3559 | CFLAGS="$CFLAGS -belf" |
| 3560 | OPT="-belf -O -Ki486 -DSCO5";; |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3561 | *) |
| 3562 | OPT="-O";; |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 3563 | esac |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 3564 | esac |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3565 | case $ac_sys_system in |
| 3566 | Darwin*) |
Jack Jansen | 524a098 | 2002-03-12 15:25:52 +0000 | [diff] [blame] | 3567 | OPT="$OPT -Wno-long-double -no-cpp-precomp";; |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 3568 | esac |
Guido van Rossum | b1ba03f | 1994-08-19 15:34:50 +0000 | [diff] [blame] | 3569 | fi |
| 3570 | |
Fred Drake | e1ceaa0 | 2001-12-04 20:55:47 +0000 | [diff] [blame] | 3571 | if test "$Py_DEBUG" = 'true'; then |
| 3572 | : |
| 3573 | else |
| 3574 | OPT="-DNDEBUG $OPT" |
| 3575 | fi |
| 3576 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 3577 | # The current (beta) Monterey compiler dies with optimizations |
| 3578 | case $ac_sys_system in |
| 3579 | Monterey*) OPT="";; |
| 3580 | esac |
| 3581 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 3582 | if test "$ac_arch_flags" |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 3583 | then |
| 3584 | OPT="$OPT $ac_arch_flags" |
| 3585 | fi |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 3586 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3587 | echo "$as_me:$LINENO: checking whether $CC accepts -OPT:Olimit=0" >&5 |
| 3588 | echo $ECHO_N "checking whether $CC accepts -OPT:Olimit=0... $ECHO_C" >&6 |
| 3589 | if test "${ac_cv_opt_olimit_ok+set}" = set; then |
| 3590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3591 | else |
| 3592 | ac_save_cc="$CC" |
| 3593 | CC="$CC -OPT:Olimit=0" |
| 3594 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3595 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3596 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3597 | cat >conftest.$ac_ext <<_ACEOF |
| 3598 | #line $LINENO "configure" |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3599 | #include "confdefs.h" |
| 3600 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3601 | _ACEOF |
| 3602 | rm -f conftest$ac_exeext |
| 3603 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3604 | (eval $ac_link) 2>&5 |
| 3605 | ac_status=$? |
| 3606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3607 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3609 | (eval $ac_try) 2>&5 |
| 3610 | ac_status=$? |
| 3611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3612 | (exit $ac_status); }; }; then |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3613 | ac_cv_opt_olimit_ok=yes |
| 3614 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3615 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3616 | echo "$as_me: failed program was:" >&5 |
| 3617 | cat conftest.$ac_ext >&5 |
| 3618 | ( exit $ac_status ) |
| 3619 | ac_cv_opt_olimit_ok=no |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3620 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3621 | 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] | 3622 | fi |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 3623 | CC="$ac_save_cc" |
| 3624 | fi |
| 3625 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3626 | echo "$as_me:$LINENO: result: $ac_cv_opt_olimit_ok" >&5 |
| 3627 | echo "${ECHO_T}$ac_cv_opt_olimit_ok" >&6 |
Guido van Rossum | 2efa34b | 1997-10-23 17:43:11 +0000 | [diff] [blame] | 3628 | if test $ac_cv_opt_olimit_ok = yes; then |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 3629 | case $ac_sys_system in |
| 3630 | Darwin*) OPT="$OPT" ;; |
| 3631 | *) OPT="$OPT -OPT:Olimit=0";; |
| 3632 | esac |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3633 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3634 | echo "$as_me:$LINENO: checking whether $CC accepts -Olimit 1500" >&5 |
| 3635 | echo $ECHO_N "checking whether $CC accepts -Olimit 1500... $ECHO_C" >&6 |
| 3636 | if test "${ac_cv_olimit_ok+set}" = set; then |
| 3637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3638 | else |
| 3639 | ac_save_cc="$CC" |
| 3640 | CC="$CC -Olimit 1500" |
| 3641 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 3642 | ac_cv_olimit_ok=no |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3643 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3644 | cat >conftest.$ac_ext <<_ACEOF |
| 3645 | #line $LINENO "configure" |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3646 | #include "confdefs.h" |
| 3647 | int main() { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3648 | _ACEOF |
| 3649 | rm -f conftest$ac_exeext |
| 3650 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3651 | (eval $ac_link) 2>&5 |
| 3652 | ac_status=$? |
| 3653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3654 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3656 | (eval $ac_try) 2>&5 |
| 3657 | ac_status=$? |
| 3658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3659 | (exit $ac_status); }; }; then |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3660 | ac_cv_olimit_ok=yes |
| 3661 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3662 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3663 | echo "$as_me: failed program was:" >&5 |
| 3664 | cat conftest.$ac_ext >&5 |
| 3665 | ( exit $ac_status ) |
| 3666 | ac_cv_olimit_ok=no |
Guido van Rossum | 201afe5 | 1997-05-14 21:14:44 +0000 | [diff] [blame] | 3667 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3668 | 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] | 3669 | fi |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3670 | CC="$ac_save_cc" |
| 3671 | fi |
| 3672 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3673 | echo "$as_me:$LINENO: result: $ac_cv_olimit_ok" >&5 |
| 3674 | echo "${ECHO_T}$ac_cv_olimit_ok" >&6 |
Guido van Rossum | 6b3d77e | 1998-07-07 21:11:02 +0000 | [diff] [blame] | 3675 | if test $ac_cv_olimit_ok = yes; then |
| 3676 | OPT="$OPT -Olimit 1500" |
| 3677 | fi |
| 3678 | fi |
| 3679 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3680 | # On some compilers, pthreads are available without further options |
| 3681 | # (e.g. MacOS X). On some of these systems, the compiler will not |
| 3682 | # complain if unaccepted options are passed (e.g. gcc on Mac OS X). |
| 3683 | # So we have to see first whether pthreads are available without |
| 3684 | # options before we can check whether -Kpthread improves anything. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3685 | echo "$as_me:$LINENO: checking whether pthreads are available without options" >&5 |
| 3686 | echo $ECHO_N "checking whether pthreads are available without options... $ECHO_C" >&6 |
| 3687 | if test "${ac_cv_pthread_is_default+set}" = set; then |
| 3688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3689 | else |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3690 | if test "$cross_compiling" = yes; then |
| 3691 | ac_cv_pthread_is_default=no |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3692 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3693 | cat >conftest.$ac_ext <<_ACEOF |
| 3694 | #line $LINENO "configure" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3695 | #include "confdefs.h" |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3696 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3697 | #include <pthread.h> |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3698 | |
| 3699 | void* routine(void* p){return NULL;} |
| 3700 | |
| 3701 | int main(){ |
| 3702 | pthread_t p; |
| 3703 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3704 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3705 | (void)pthread_detach(p); |
Martin v. Löwis | 260aecc | 2001-10-07 08:14:41 +0000 | [diff] [blame] | 3706 | return 0; |
| 3707 | } |
| 3708 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3709 | _ACEOF |
| 3710 | rm -f conftest$ac_exeext |
| 3711 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3712 | (eval $ac_link) 2>&5 |
| 3713 | ac_status=$? |
| 3714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3715 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3717 | (eval $ac_try) 2>&5 |
| 3718 | ac_status=$? |
| 3719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3720 | (exit $ac_status); }; }; then |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3721 | ac_cv_pthread_is_default=yes |
| 3722 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3723 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3724 | echo "$as_me: failed program was:" >&5 |
| 3725 | cat conftest.$ac_ext >&5 |
| 3726 | ( exit $ac_status ) |
| 3727 | ac_cv_pthread_is_default=no |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3728 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3729 | 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] | 3730 | fi |
| 3731 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3732 | fi |
| 3733 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3734 | echo "$as_me:$LINENO: result: $ac_cv_pthread_is_default" >&5 |
| 3735 | echo "${ECHO_T}$ac_cv_pthread_is_default" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3736 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3737 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3738 | if test $ac_cv_pthread_is_default = yes |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3739 | then |
| 3740 | ac_cv_kpthread=no |
| 3741 | else |
| 3742 | # -Kpthread, if available, provides the right #defines |
| 3743 | # and linker options to make pthread_create available |
| 3744 | # Some compilers won't report that they do not support -Kpthread, |
| 3745 | # so we need to run a program to see whether it really made the |
| 3746 | # function available. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3747 | echo "$as_me:$LINENO: checking whether $CC accepts -Kpthread" >&5 |
| 3748 | echo $ECHO_N "checking whether $CC accepts -Kpthread... $ECHO_C" >&6 |
| 3749 | if test "${ac_cv_kpthread+set}" = set; then |
| 3750 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3751 | else |
| 3752 | ac_save_cc="$CC" |
| 3753 | CC="$CC -Kpthread" |
| 3754 | if test "$cross_compiling" = yes; then |
| 3755 | ac_cv_kpthread=no |
| 3756 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3757 | cat >conftest.$ac_ext <<_ACEOF |
| 3758 | #line $LINENO "configure" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3759 | #include "confdefs.h" |
| 3760 | |
| 3761 | #include <pthread.h> |
| 3762 | |
| 3763 | void* routine(void* p){return NULL;} |
| 3764 | |
| 3765 | int main(){ |
| 3766 | pthread_t p; |
| 3767 | if(pthread_create(&p,NULL,routine,NULL)!=0) |
| 3768 | return 1; |
Jack Jansen | 4f8d054 | 2002-03-08 13:43:01 +0000 | [diff] [blame] | 3769 | (void)pthread_detach(p); |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3770 | return 0; |
| 3771 | } |
| 3772 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3773 | _ACEOF |
| 3774 | rm -f conftest$ac_exeext |
| 3775 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3776 | (eval $ac_link) 2>&5 |
| 3777 | ac_status=$? |
| 3778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3779 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3781 | (eval $ac_try) 2>&5 |
| 3782 | ac_status=$? |
| 3783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3784 | (exit $ac_status); }; }; then |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3785 | ac_cv_kpthread=yes |
| 3786 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3787 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3788 | echo "$as_me: failed program was:" >&5 |
| 3789 | cat conftest.$ac_ext >&5 |
| 3790 | ( exit $ac_status ) |
| 3791 | ac_cv_kpthread=no |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3792 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3793 | 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] | 3794 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3795 | CC="$ac_save_cc" |
| 3796 | fi |
| 3797 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3798 | echo "$as_me:$LINENO: result: $ac_cv_kpthread" >&5 |
| 3799 | echo "${ECHO_T}$ac_cv_kpthread" >&6 |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 3800 | fi |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 3801 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3802 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 3803 | # checks for header files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3804 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 3805 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3806 | if test "${ac_cv_header_stdc+set}" = set; then |
| 3807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3808 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3809 | cat >conftest.$ac_ext <<_ACEOF |
| 3810 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3811 | #include "confdefs.h" |
| 3812 | #include <stdlib.h> |
| 3813 | #include <stdarg.h> |
| 3814 | #include <string.h> |
| 3815 | #include <float.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3816 | |
| 3817 | _ACEOF |
| 3818 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 3819 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3820 | ac_status=$? |
| 3821 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 3822 | rm -f conftest.er1 |
| 3823 | cat conftest.err >&5 |
| 3824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3825 | (exit $ac_status); } >/dev/null; then |
| 3826 | if test -s conftest.err; then |
| 3827 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 3828 | else |
| 3829 | ac_cpp_err= |
| 3830 | fi |
| 3831 | else |
| 3832 | ac_cpp_err=yes |
| 3833 | fi |
| 3834 | if test -z "$ac_cpp_err"; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3835 | ac_cv_header_stdc=yes |
| 3836 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3837 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 3838 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3839 | ac_cv_header_stdc=no |
| 3840 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3841 | rm -f conftest.err conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3842 | |
| 3843 | if test $ac_cv_header_stdc = yes; then |
| 3844 | # 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] | 3845 | cat >conftest.$ac_ext <<_ACEOF |
| 3846 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3847 | #include "confdefs.h" |
| 3848 | #include <string.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3849 | |
| 3850 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3851 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3852 | egrep "memchr" >/dev/null 2>&1; then |
| 3853 | : |
| 3854 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3855 | ac_cv_header_stdc=no |
| 3856 | fi |
| 3857 | rm -f conftest* |
| 3858 | |
| 3859 | fi |
| 3860 | |
| 3861 | if test $ac_cv_header_stdc = yes; then |
| 3862 | # 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] | 3863 | cat >conftest.$ac_ext <<_ACEOF |
| 3864 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3865 | #include "confdefs.h" |
| 3866 | #include <stdlib.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3867 | |
| 3868 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3869 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3870 | egrep "free" >/dev/null 2>&1; then |
| 3871 | : |
| 3872 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3873 | ac_cv_header_stdc=no |
| 3874 | fi |
| 3875 | rm -f conftest* |
| 3876 | |
| 3877 | fi |
| 3878 | |
| 3879 | if test $ac_cv_header_stdc = yes; then |
| 3880 | # /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] | 3881 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 3882 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3883 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3884 | cat >conftest.$ac_ext <<_ACEOF |
| 3885 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3886 | #include "confdefs.h" |
| 3887 | #include <ctype.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3888 | #if ((' ' & 0x0FF) == 0x020) |
| 3889 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 3890 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 3891 | #else |
| 3892 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ |
| 3893 | || ('j' <= (c) && (c) <= 'r') \ |
| 3894 | || ('s' <= (c) && (c) <= 'z')) |
| 3895 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 3896 | #endif |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3897 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3898 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 3899 | int |
| 3900 | main () |
| 3901 | { |
| 3902 | int i; |
| 3903 | for (i = 0; i < 256; i++) |
| 3904 | if (XOR (islower (i), ISLOWER (i)) |
| 3905 | || toupper (i) != TOUPPER (i)) |
| 3906 | exit(2); |
| 3907 | exit (0); |
| 3908 | } |
| 3909 | _ACEOF |
| 3910 | rm -f conftest$ac_exeext |
| 3911 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3912 | (eval $ac_link) 2>&5 |
| 3913 | ac_status=$? |
| 3914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3915 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 3916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3917 | (eval $ac_try) 2>&5 |
| 3918 | ac_status=$? |
| 3919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3920 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3921 | : |
| 3922 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3923 | echo "$as_me: program exited with status $ac_status" >&5 |
| 3924 | echo "$as_me: failed program was:" >&5 |
| 3925 | cat conftest.$ac_ext >&5 |
| 3926 | ( exit $ac_status ) |
| 3927 | ac_cv_header_stdc=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3928 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3929 | 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] | 3930 | fi |
| 3931 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3932 | fi |
| 3933 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 3934 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 3935 | if test $ac_cv_header_stdc = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3936 | |
| 3937 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3938 | #define STDC_HEADERS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3939 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3940 | |
| 3941 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3942 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3943 | |
| 3944 | |
| 3945 | |
| 3946 | |
| 3947 | |
| 3948 | |
| 3949 | |
| 3950 | |
| 3951 | |
| 3952 | |
| 3953 | |
| 3954 | |
| 3955 | |
| 3956 | |
| 3957 | |
| 3958 | |
| 3959 | |
| 3960 | |
| 3961 | |
| 3962 | |
| 3963 | |
| 3964 | |
| 3965 | |
| 3966 | |
| 3967 | |
| 3968 | |
| 3969 | |
| 3970 | |
| 3971 | |
| 3972 | |
| 3973 | |
| 3974 | |
| 3975 | |
| 3976 | |
| 3977 | |
| 3978 | |
| 3979 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3980 | 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] | 3981 | libintl.h locale.h ncurses.h poll.h pthread.h \ |
Eric S. Raymond | d2d75d3 | 2001-01-16 15:26:34 +0000 | [diff] [blame] | 3982 | 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] | 3983 | 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] | 3984 | 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] | 3985 | 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] | 3986 | sys/resource.h netpacket/packet.h |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 3987 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3988 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 3989 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3990 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 3991 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3992 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 3993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3994 | fi |
| 3995 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 3996 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 3997 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 3998 | # Is the header compilable? |
| 3999 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 4000 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 4001 | cat >conftest.$ac_ext <<_ACEOF |
| 4002 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4003 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4004 | $ac_includes_default |
| 4005 | #include <$ac_header> |
| 4006 | _ACEOF |
| 4007 | rm -f conftest.$ac_objext |
| 4008 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4009 | (eval $ac_compile) 2>&5 |
| 4010 | ac_status=$? |
| 4011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4012 | (exit $ac_status); } && |
| 4013 | { ac_try='test -s conftest.$ac_objext' |
| 4014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4015 | (eval $ac_try) 2>&5 |
| 4016 | ac_status=$? |
| 4017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4018 | (exit $ac_status); }; }; then |
| 4019 | ac_header_compiler=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4020 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4021 | echo "$as_me: failed program was:" >&5 |
| 4022 | cat conftest.$ac_ext >&5 |
| 4023 | ac_header_compiler=no |
| 4024 | fi |
| 4025 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4026 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4027 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4028 | |
| 4029 | # Is the header present? |
| 4030 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 4031 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 4032 | cat >conftest.$ac_ext <<_ACEOF |
| 4033 | #line $LINENO "configure" |
| 4034 | #include "confdefs.h" |
| 4035 | #include <$ac_header> |
| 4036 | _ACEOF |
| 4037 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4038 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4039 | ac_status=$? |
| 4040 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 4041 | rm -f conftest.er1 |
| 4042 | cat conftest.err >&5 |
| 4043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4044 | (exit $ac_status); } >/dev/null; then |
| 4045 | if test -s conftest.err; then |
| 4046 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4047 | else |
| 4048 | ac_cpp_err= |
| 4049 | fi |
| 4050 | else |
| 4051 | ac_cpp_err=yes |
| 4052 | fi |
| 4053 | if test -z "$ac_cpp_err"; then |
| 4054 | ac_header_preproc=yes |
| 4055 | else |
| 4056 | echo "$as_me: failed program was:" >&5 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4057 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4058 | ac_header_preproc=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4059 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4060 | rm -f conftest.err conftest.$ac_ext |
| 4061 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4062 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4063 | |
| 4064 | # So? What about this header? |
| 4065 | case $ac_header_compiler:$ac_header_preproc in |
| 4066 | yes:no ) |
| 4067 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4068 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4069 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4070 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 4071 | no:yes ) |
| 4072 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 4073 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 4074 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 4075 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 4076 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 4077 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; |
| 4078 | esac |
| 4079 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4080 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4081 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4083 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4084 | eval "$as_ac_Header=$ac_header_preproc" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4085 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4086 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4087 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4088 | |
| 4089 | fi |
| 4090 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4091 | cat >>confdefs.h <<_ACEOF |
| 4092 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 4093 | _ACEOF |
| 4094 | |
| 4095 | fi |
| 4096 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4097 | done |
| 4098 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4099 | |
| 4100 | |
| 4101 | |
| 4102 | |
| 4103 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4104 | ac_header_dirent=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4105 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 4106 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 4107 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
| 4108 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
| 4109 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4111 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4112 | cat >conftest.$ac_ext <<_ACEOF |
| 4113 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4114 | #include "confdefs.h" |
| 4115 | #include <sys/types.h> |
| 4116 | #include <$ac_hdr> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4117 | |
| 4118 | #ifdef F77_DUMMY_MAIN |
| 4119 | # ifdef __cplusplus |
| 4120 | extern "C" |
| 4121 | # endif |
| 4122 | int F77_DUMMY_MAIN() { return 1; } |
| 4123 | #endif |
| 4124 | int |
| 4125 | main () |
| 4126 | { |
| 4127 | if ((DIR *) 0) |
| 4128 | return 0; |
| 4129 | ; |
| 4130 | return 0; |
| 4131 | } |
| 4132 | _ACEOF |
| 4133 | rm -f conftest.$ac_objext |
| 4134 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4135 | (eval $ac_compile) 2>&5 |
| 4136 | ac_status=$? |
| 4137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4138 | (exit $ac_status); } && |
| 4139 | { ac_try='test -s conftest.$ac_objext' |
| 4140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4141 | (eval $ac_try) 2>&5 |
| 4142 | ac_status=$? |
| 4143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4144 | (exit $ac_status); }; }; then |
| 4145 | eval "$as_ac_Header=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4146 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4147 | echo "$as_me: failed program was:" >&5 |
| 4148 | cat conftest.$ac_ext >&5 |
| 4149 | eval "$as_ac_Header=no" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4150 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4151 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4152 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4153 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 4154 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 4155 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 4156 | cat >>confdefs.h <<_ACEOF |
| 4157 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 4158 | _ACEOF |
| 4159 | |
| 4160 | ac_header_dirent=$ac_hdr; break |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4161 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4162 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4163 | done |
| 4164 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 4165 | if test $ac_header_dirent = dirent.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4166 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4167 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4168 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4169 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4170 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4171 | ac_func_search_save_LIBS=$LIBS |
| 4172 | ac_cv_search_opendir=no |
| 4173 | cat >conftest.$ac_ext <<_ACEOF |
| 4174 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4175 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4176 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4177 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4178 | #ifdef __cplusplus |
| 4179 | extern "C" |
| 4180 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4181 | /* 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] | 4182 | builtin and then its argument prototype would still apply. */ |
| 4183 | char opendir (); |
| 4184 | #ifdef F77_DUMMY_MAIN |
| 4185 | # ifdef __cplusplus |
| 4186 | extern "C" |
| 4187 | # endif |
| 4188 | int F77_DUMMY_MAIN() { return 1; } |
| 4189 | #endif |
| 4190 | int |
| 4191 | main () |
| 4192 | { |
| 4193 | opendir (); |
| 4194 | ; |
| 4195 | return 0; |
| 4196 | } |
| 4197 | _ACEOF |
| 4198 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4199 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4200 | (eval $ac_link) 2>&5 |
| 4201 | ac_status=$? |
| 4202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4203 | (exit $ac_status); } && |
| 4204 | { ac_try='test -s conftest$ac_exeext' |
| 4205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4206 | (eval $ac_try) 2>&5 |
| 4207 | ac_status=$? |
| 4208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4209 | (exit $ac_status); }; }; then |
| 4210 | ac_cv_search_opendir="none required" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4211 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4212 | echo "$as_me: failed program was:" >&5 |
| 4213 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4214 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4215 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4216 | if test "$ac_cv_search_opendir" = no; then |
| 4217 | for ac_lib in dir; do |
| 4218 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4219 | cat >conftest.$ac_ext <<_ACEOF |
| 4220 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4221 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4222 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4223 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4224 | #ifdef __cplusplus |
| 4225 | extern "C" |
| 4226 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 4227 | /* 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] | 4228 | builtin and then its argument prototype would still apply. */ |
| 4229 | char opendir (); |
| 4230 | #ifdef F77_DUMMY_MAIN |
| 4231 | # ifdef __cplusplus |
| 4232 | extern "C" |
| 4233 | # endif |
| 4234 | int F77_DUMMY_MAIN() { return 1; } |
| 4235 | #endif |
| 4236 | int |
| 4237 | main () |
| 4238 | { |
| 4239 | opendir (); |
| 4240 | ; |
| 4241 | return 0; |
| 4242 | } |
| 4243 | _ACEOF |
| 4244 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4245 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4246 | (eval $ac_link) 2>&5 |
| 4247 | ac_status=$? |
| 4248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4249 | (exit $ac_status); } && |
| 4250 | { ac_try='test -s conftest$ac_exeext' |
| 4251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4252 | (eval $ac_try) 2>&5 |
| 4253 | ac_status=$? |
| 4254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4255 | (exit $ac_status); }; }; then |
| 4256 | ac_cv_search_opendir="-l$ac_lib" |
| 4257 | break |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4258 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4259 | echo "$as_me: failed program was:" >&5 |
| 4260 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4261 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4262 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4263 | done |
| 4264 | fi |
| 4265 | LIBS=$ac_func_search_save_LIBS |
| 4266 | fi |
| 4267 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4268 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4269 | if test "$ac_cv_search_opendir" != no; then |
| 4270 | 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] | 4271 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4272 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4273 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4274 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4275 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
| 4276 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 |
| 4277 | if test "${ac_cv_search_opendir+set}" = set; then |
| 4278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4279 | else |
| 4280 | ac_func_search_save_LIBS=$LIBS |
| 4281 | ac_cv_search_opendir=no |
| 4282 | cat >conftest.$ac_ext <<_ACEOF |
| 4283 | #line $LINENO "configure" |
| 4284 | #include "confdefs.h" |
| 4285 | |
| 4286 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4287 | #ifdef __cplusplus |
| 4288 | extern "C" |
| 4289 | #endif |
| 4290 | /* We use char because int might match the return type of a gcc2 |
| 4291 | builtin and then its argument prototype would still apply. */ |
| 4292 | char opendir (); |
| 4293 | #ifdef F77_DUMMY_MAIN |
| 4294 | # ifdef __cplusplus |
| 4295 | extern "C" |
| 4296 | # endif |
| 4297 | int F77_DUMMY_MAIN() { return 1; } |
| 4298 | #endif |
| 4299 | int |
| 4300 | main () |
| 4301 | { |
| 4302 | opendir (); |
| 4303 | ; |
| 4304 | return 0; |
| 4305 | } |
| 4306 | _ACEOF |
| 4307 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4308 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4309 | (eval $ac_link) 2>&5 |
| 4310 | ac_status=$? |
| 4311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4312 | (exit $ac_status); } && |
| 4313 | { ac_try='test -s conftest$ac_exeext' |
| 4314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4315 | (eval $ac_try) 2>&5 |
| 4316 | ac_status=$? |
| 4317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4318 | (exit $ac_status); }; }; then |
| 4319 | ac_cv_search_opendir="none required" |
| 4320 | else |
| 4321 | echo "$as_me: failed program was:" >&5 |
| 4322 | cat conftest.$ac_ext >&5 |
| 4323 | fi |
| 4324 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4325 | if test "$ac_cv_search_opendir" = no; then |
| 4326 | for ac_lib in x; do |
| 4327 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4328 | cat >conftest.$ac_ext <<_ACEOF |
| 4329 | #line $LINENO "configure" |
| 4330 | #include "confdefs.h" |
| 4331 | |
| 4332 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4333 | #ifdef __cplusplus |
| 4334 | extern "C" |
| 4335 | #endif |
| 4336 | /* We use char because int might match the return type of a gcc2 |
| 4337 | builtin and then its argument prototype would still apply. */ |
| 4338 | char opendir (); |
| 4339 | #ifdef F77_DUMMY_MAIN |
| 4340 | # ifdef __cplusplus |
| 4341 | extern "C" |
| 4342 | # endif |
| 4343 | int F77_DUMMY_MAIN() { return 1; } |
| 4344 | #endif |
| 4345 | int |
| 4346 | main () |
| 4347 | { |
| 4348 | opendir (); |
| 4349 | ; |
| 4350 | return 0; |
| 4351 | } |
| 4352 | _ACEOF |
| 4353 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4354 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4355 | (eval $ac_link) 2>&5 |
| 4356 | ac_status=$? |
| 4357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4358 | (exit $ac_status); } && |
| 4359 | { ac_try='test -s conftest$ac_exeext' |
| 4360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4361 | (eval $ac_try) 2>&5 |
| 4362 | ac_status=$? |
| 4363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4364 | (exit $ac_status); }; }; then |
| 4365 | ac_cv_search_opendir="-l$ac_lib" |
| 4366 | break |
| 4367 | else |
| 4368 | echo "$as_me: failed program was:" >&5 |
| 4369 | cat conftest.$ac_ext >&5 |
| 4370 | fi |
| 4371 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4372 | done |
| 4373 | fi |
| 4374 | LIBS=$ac_func_search_save_LIBS |
| 4375 | fi |
| 4376 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
| 4377 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 |
| 4378 | if test "$ac_cv_search_opendir" != no; then |
| 4379 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" |
| 4380 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4381 | fi |
| 4382 | |
| 4383 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4384 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 4385 | echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5 |
| 4386 | echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6 |
| 4387 | if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then |
| 4388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4389 | else |
| 4390 | cat >conftest.$ac_ext <<_ACEOF |
| 4391 | #line $LINENO "configure" |
| 4392 | #include "confdefs.h" |
| 4393 | #include <sys/types.h> |
| 4394 | #ifdef F77_DUMMY_MAIN |
| 4395 | # ifdef __cplusplus |
| 4396 | extern "C" |
| 4397 | # endif |
| 4398 | int F77_DUMMY_MAIN() { return 1; } |
| 4399 | #endif |
| 4400 | int |
| 4401 | main () |
| 4402 | { |
| 4403 | return makedev(0, 0); |
| 4404 | ; |
| 4405 | return 0; |
| 4406 | } |
| 4407 | _ACEOF |
| 4408 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4409 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4410 | (eval $ac_link) 2>&5 |
| 4411 | ac_status=$? |
| 4412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4413 | (exit $ac_status); } && |
| 4414 | { ac_try='test -s conftest$ac_exeext' |
| 4415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4416 | (eval $ac_try) 2>&5 |
| 4417 | ac_status=$? |
| 4418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4419 | (exit $ac_status); }; }; then |
| 4420 | ac_cv_header_sys_types_h_makedev=yes |
| 4421 | else |
| 4422 | echo "$as_me: failed program was:" >&5 |
| 4423 | cat conftest.$ac_ext >&5 |
| 4424 | ac_cv_header_sys_types_h_makedev=no |
| 4425 | fi |
| 4426 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4427 | |
| 4428 | fi |
| 4429 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5 |
| 4430 | echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6 |
| 4431 | |
| 4432 | if test $ac_cv_header_sys_types_h_makedev = no; then |
| 4433 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4434 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 4435 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 4436 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4438 | fi |
| 4439 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 4440 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 4441 | else |
| 4442 | # Is the header compilable? |
| 4443 | echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5 |
| 4444 | echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6 |
| 4445 | cat >conftest.$ac_ext <<_ACEOF |
| 4446 | #line $LINENO "configure" |
| 4447 | #include "confdefs.h" |
| 4448 | $ac_includes_default |
| 4449 | #include <sys/mkdev.h> |
| 4450 | _ACEOF |
| 4451 | rm -f conftest.$ac_objext |
| 4452 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4453 | (eval $ac_compile) 2>&5 |
| 4454 | ac_status=$? |
| 4455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4456 | (exit $ac_status); } && |
| 4457 | { ac_try='test -s conftest.$ac_objext' |
| 4458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4459 | (eval $ac_try) 2>&5 |
| 4460 | ac_status=$? |
| 4461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4462 | (exit $ac_status); }; }; then |
| 4463 | ac_header_compiler=yes |
| 4464 | else |
| 4465 | echo "$as_me: failed program was:" >&5 |
| 4466 | cat conftest.$ac_ext >&5 |
| 4467 | ac_header_compiler=no |
| 4468 | fi |
| 4469 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4470 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4471 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4472 | |
| 4473 | # Is the header present? |
| 4474 | echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5 |
| 4475 | echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6 |
| 4476 | cat >conftest.$ac_ext <<_ACEOF |
| 4477 | #line $LINENO "configure" |
| 4478 | #include "confdefs.h" |
| 4479 | #include <sys/mkdev.h> |
| 4480 | _ACEOF |
| 4481 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4482 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4483 | ac_status=$? |
| 4484 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 4485 | rm -f conftest.er1 |
| 4486 | cat conftest.err >&5 |
| 4487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4488 | (exit $ac_status); } >/dev/null; then |
| 4489 | if test -s conftest.err; then |
| 4490 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4491 | else |
| 4492 | ac_cpp_err= |
| 4493 | fi |
| 4494 | else |
| 4495 | ac_cpp_err=yes |
| 4496 | fi |
| 4497 | if test -z "$ac_cpp_err"; then |
| 4498 | ac_header_preproc=yes |
| 4499 | else |
| 4500 | echo "$as_me: failed program was:" >&5 |
| 4501 | cat conftest.$ac_ext >&5 |
| 4502 | ac_header_preproc=no |
| 4503 | fi |
| 4504 | rm -f conftest.err conftest.$ac_ext |
| 4505 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4506 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4507 | |
| 4508 | # So? What about this header? |
| 4509 | case $ac_header_compiler:$ac_header_preproc in |
| 4510 | yes:no ) |
| 4511 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4512 | echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4513 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 4514 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};; |
| 4515 | no:yes ) |
| 4516 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5 |
| 4517 | echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;} |
| 4518 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5 |
| 4519 | echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;} |
| 4520 | { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5 |
| 4521 | echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;};; |
| 4522 | esac |
| 4523 | echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5 |
| 4524 | echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6 |
| 4525 | if test "${ac_cv_header_sys_mkdev_h+set}" = set; then |
| 4526 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4527 | else |
| 4528 | ac_cv_header_sys_mkdev_h=$ac_header_preproc |
| 4529 | fi |
| 4530 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5 |
| 4531 | echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6 |
| 4532 | |
| 4533 | fi |
| 4534 | if test $ac_cv_header_sys_mkdev_h = yes; then |
| 4535 | |
| 4536 | cat >>confdefs.h <<\_ACEOF |
| 4537 | #define MAJOR_IN_MKDEV 1 |
| 4538 | _ACEOF |
| 4539 | |
| 4540 | fi |
| 4541 | |
| 4542 | |
| 4543 | |
| 4544 | if test $ac_cv_header_sys_mkdev_h = no; then |
| 4545 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4546 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 4547 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 4548 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4550 | fi |
| 4551 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 4552 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 4553 | else |
| 4554 | # Is the header compilable? |
| 4555 | echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5 |
| 4556 | echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6 |
| 4557 | cat >conftest.$ac_ext <<_ACEOF |
| 4558 | #line $LINENO "configure" |
| 4559 | #include "confdefs.h" |
| 4560 | $ac_includes_default |
| 4561 | #include <sys/sysmacros.h> |
| 4562 | _ACEOF |
| 4563 | rm -f conftest.$ac_objext |
| 4564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4565 | (eval $ac_compile) 2>&5 |
| 4566 | ac_status=$? |
| 4567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4568 | (exit $ac_status); } && |
| 4569 | { ac_try='test -s conftest.$ac_objext' |
| 4570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4571 | (eval $ac_try) 2>&5 |
| 4572 | ac_status=$? |
| 4573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4574 | (exit $ac_status); }; }; then |
| 4575 | ac_header_compiler=yes |
| 4576 | else |
| 4577 | echo "$as_me: failed program was:" >&5 |
| 4578 | cat conftest.$ac_ext >&5 |
| 4579 | ac_header_compiler=no |
| 4580 | fi |
| 4581 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4582 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 4583 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 4584 | |
| 4585 | # Is the header present? |
| 4586 | echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5 |
| 4587 | echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6 |
| 4588 | cat >conftest.$ac_ext <<_ACEOF |
| 4589 | #line $LINENO "configure" |
| 4590 | #include "confdefs.h" |
| 4591 | #include <sys/sysmacros.h> |
| 4592 | _ACEOF |
| 4593 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4594 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4595 | ac_status=$? |
| 4596 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 4597 | rm -f conftest.er1 |
| 4598 | cat conftest.err >&5 |
| 4599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4600 | (exit $ac_status); } >/dev/null; then |
| 4601 | if test -s conftest.err; then |
| 4602 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4603 | else |
| 4604 | ac_cpp_err= |
| 4605 | fi |
| 4606 | else |
| 4607 | ac_cpp_err=yes |
| 4608 | fi |
| 4609 | if test -z "$ac_cpp_err"; then |
| 4610 | ac_header_preproc=yes |
| 4611 | else |
| 4612 | echo "$as_me: failed program was:" >&5 |
| 4613 | cat conftest.$ac_ext >&5 |
| 4614 | ac_header_preproc=no |
| 4615 | fi |
| 4616 | rm -f conftest.err conftest.$ac_ext |
| 4617 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 4618 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 4619 | |
| 4620 | # So? What about this header? |
| 4621 | case $ac_header_compiler:$ac_header_preproc in |
| 4622 | yes:no ) |
| 4623 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 4624 | echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 4625 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 4626 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};; |
| 4627 | no:yes ) |
| 4628 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5 |
| 4629 | echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;} |
| 4630 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5 |
| 4631 | echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;} |
| 4632 | { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5 |
| 4633 | echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;};; |
| 4634 | esac |
| 4635 | echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5 |
| 4636 | echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6 |
| 4637 | if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then |
| 4638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4639 | else |
| 4640 | ac_cv_header_sys_sysmacros_h=$ac_header_preproc |
| 4641 | fi |
| 4642 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5 |
| 4643 | echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6 |
| 4644 | |
| 4645 | fi |
| 4646 | if test $ac_cv_header_sys_sysmacros_h = yes; then |
| 4647 | |
| 4648 | cat >>confdefs.h <<\_ACEOF |
| 4649 | #define MAJOR_IN_SYSMACROS 1 |
| 4650 | _ACEOF |
| 4651 | |
| 4652 | fi |
| 4653 | |
| 4654 | |
| 4655 | fi |
| 4656 | fi |
| 4657 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4658 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4659 | # checks for typedefs |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4660 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4661 | echo "$as_me:$LINENO: checking for clock_t in time.h" >&5 |
| 4662 | echo $ECHO_N "checking for clock_t in time.h... $ECHO_C" >&6 |
| 4663 | cat >conftest.$ac_ext <<_ACEOF |
| 4664 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4665 | #include "confdefs.h" |
| 4666 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4667 | |
| 4668 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4669 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4670 | egrep "clock_t" >/dev/null 2>&1; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4671 | was_it_defined=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4672 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4673 | |
| 4674 | |
| 4675 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4676 | #define clock_t long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4677 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4678 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 4679 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4680 | fi |
| 4681 | rm -f conftest* |
| 4682 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4683 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 4684 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 4685 | |
Neal Norwitz | 1169011 | 2002-07-30 01:08:28 +0000 | [diff] [blame] | 4686 | # Check whether using makedev requires defining _OSF_SOURCE |
| 4687 | echo "$as_me:$LINENO: checking for makedev" >&5 |
| 4688 | echo $ECHO_N "checking for makedev... $ECHO_C" >&6 |
| 4689 | cat >conftest.$ac_ext <<_ACEOF |
| 4690 | #line $LINENO "configure" |
| 4691 | #include "confdefs.h" |
| 4692 | #include <sys/types.h> |
| 4693 | #ifdef F77_DUMMY_MAIN |
| 4694 | # ifdef __cplusplus |
| 4695 | extern "C" |
| 4696 | # endif |
| 4697 | int F77_DUMMY_MAIN() { return 1; } |
| 4698 | #endif |
| 4699 | int |
| 4700 | main () |
| 4701 | { |
| 4702 | makedev(0, 0) |
| 4703 | ; |
| 4704 | return 0; |
| 4705 | } |
| 4706 | _ACEOF |
| 4707 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4708 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4709 | (eval $ac_link) 2>&5 |
| 4710 | ac_status=$? |
| 4711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4712 | (exit $ac_status); } && |
| 4713 | { ac_try='test -s conftest$ac_exeext' |
| 4714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4715 | (eval $ac_try) 2>&5 |
| 4716 | ac_status=$? |
| 4717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4718 | (exit $ac_status); }; }; then |
| 4719 | ac_cv_has_makedev=yes |
| 4720 | else |
| 4721 | echo "$as_me: failed program was:" >&5 |
| 4722 | cat conftest.$ac_ext >&5 |
| 4723 | ac_cv_has_makedev=no |
| 4724 | fi |
| 4725 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4726 | if test "$ac_cv_has_makedev" = "no"; then |
| 4727 | # we didn't link, try if _OSF_SOURCE will allow us to link |
| 4728 | cat >conftest.$ac_ext <<_ACEOF |
| 4729 | #line $LINENO "configure" |
| 4730 | #include "confdefs.h" |
| 4731 | |
| 4732 | #define _OSF_SOURCE 1 |
| 4733 | #include <sys/types.h> |
| 4734 | |
| 4735 | #ifdef F77_DUMMY_MAIN |
| 4736 | # ifdef __cplusplus |
| 4737 | extern "C" |
| 4738 | # endif |
| 4739 | int F77_DUMMY_MAIN() { return 1; } |
| 4740 | #endif |
| 4741 | int |
| 4742 | main () |
| 4743 | { |
| 4744 | makedev(0, 0) |
| 4745 | ; |
| 4746 | return 0; |
| 4747 | } |
| 4748 | _ACEOF |
| 4749 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4750 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4751 | (eval $ac_link) 2>&5 |
| 4752 | ac_status=$? |
| 4753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4754 | (exit $ac_status); } && |
| 4755 | { ac_try='test -s conftest$ac_exeext' |
| 4756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4757 | (eval $ac_try) 2>&5 |
| 4758 | ac_status=$? |
| 4759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4760 | (exit $ac_status); }; }; then |
| 4761 | ac_cv_has_makedev=yes |
| 4762 | else |
| 4763 | echo "$as_me: failed program was:" >&5 |
| 4764 | cat conftest.$ac_ext >&5 |
| 4765 | ac_cv_has_makedev=no |
| 4766 | fi |
| 4767 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4768 | if test "$ac_cv_has_makedev" = "yes"; then |
| 4769 | |
| 4770 | cat >>confdefs.h <<\_ACEOF |
| 4771 | #define _OSF_SOURCE 1 |
| 4772 | _ACEOF |
| 4773 | |
| 4774 | fi |
| 4775 | fi |
| 4776 | echo "$as_me:$LINENO: result: $ac_cv_has_makedev" >&5 |
| 4777 | echo "${ECHO_T}$ac_cv_has_makedev" >&6 |
| 4778 | if test "$ac_cv_has_makedev" = "yes"; then |
| 4779 | |
| 4780 | cat >>confdefs.h <<\_ACEOF |
| 4781 | #define HAVE_MAKEDEV 1 |
| 4782 | _ACEOF |
| 4783 | |
| 4784 | fi |
| 4785 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 4786 | # Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in |
| 4787 | # the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are |
| 4788 | # defined, but the compiler does not support pragma redefine_extname, |
| 4789 | # and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit |
| 4790 | # structures (such as rlimit64) without declaring them. As a |
| 4791 | # work-around, disable LFS on such configurations |
| 4792 | |
| 4793 | use_lfs=yes |
| 4794 | echo "$as_me:$LINENO: checking Solaris LFS bug" >&5 |
| 4795 | echo $ECHO_N "checking Solaris LFS bug... $ECHO_C" >&6 |
| 4796 | cat >conftest.$ac_ext <<_ACEOF |
| 4797 | #line $LINENO "configure" |
| 4798 | #include "confdefs.h" |
| 4799 | |
| 4800 | #define _LARGEFILE_SOURCE 1 |
| 4801 | #define _FILE_OFFSET_BITS 64 |
| 4802 | #include <sys/resource.h> |
| 4803 | |
| 4804 | #ifdef F77_DUMMY_MAIN |
| 4805 | # ifdef __cplusplus |
| 4806 | extern "C" |
| 4807 | # endif |
| 4808 | int F77_DUMMY_MAIN() { return 1; } |
| 4809 | #endif |
| 4810 | int |
| 4811 | main () |
| 4812 | { |
| 4813 | struct rlimit foo; |
| 4814 | ; |
| 4815 | return 0; |
| 4816 | } |
| 4817 | _ACEOF |
| 4818 | rm -f conftest.$ac_objext |
| 4819 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4820 | (eval $ac_compile) 2>&5 |
| 4821 | ac_status=$? |
| 4822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4823 | (exit $ac_status); } && |
| 4824 | { ac_try='test -s conftest.$ac_objext' |
| 4825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4826 | (eval $ac_try) 2>&5 |
| 4827 | ac_status=$? |
| 4828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4829 | (exit $ac_status); }; }; then |
| 4830 | sol_lfs_bug=no |
| 4831 | else |
| 4832 | echo "$as_me: failed program was:" >&5 |
| 4833 | cat conftest.$ac_ext >&5 |
| 4834 | sol_lfs_bug=yes |
| 4835 | fi |
| 4836 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4837 | echo "$as_me:$LINENO: result: $sol_lfs_bug" >&5 |
| 4838 | echo "${ECHO_T}$sol_lfs_bug" >&6 |
| 4839 | if test "$sol_lfs_bug" = "yes"; then |
| 4840 | use_lfs=no |
| 4841 | fi |
| 4842 | |
| 4843 | if test "$use_lfs" = "yes"; then |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4844 | # Two defines needed to enable largefile support on various platforms |
| 4845 | # These may affect some typedefs |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4846 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4847 | cat >>confdefs.h <<\_ACEOF |
| 4848 | #define _LARGEFILE_SOURCE 1 |
| 4849 | _ACEOF |
| 4850 | |
| 4851 | |
| 4852 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4853 | #define _FILE_OFFSET_BITS 64 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4854 | _ACEOF |
Guido van Rossum | 810cc51 | 2001-09-09 23:51:39 +0000 | [diff] [blame] | 4855 | |
Martin v. Löwis | 399a689 | 2002-10-04 10:22:02 +0000 | [diff] [blame] | 4856 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4857 | |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 4858 | # Add some code to confdefs.h so that the test for off_t works on SCO |
| 4859 | cat >> confdefs.h <<\EOF |
| 4860 | #if defined(SCO_DS) |
| 4861 | #undef _OFF_T |
| 4862 | #endif |
| 4863 | EOF |
| 4864 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 4865 | # Type availability checks |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4866 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
| 4867 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 |
| 4868 | if test "${ac_cv_type_mode_t+set}" = set; then |
| 4869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4870 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4871 | cat >conftest.$ac_ext <<_ACEOF |
| 4872 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4873 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4874 | $ac_includes_default |
| 4875 | #ifdef F77_DUMMY_MAIN |
| 4876 | # ifdef __cplusplus |
| 4877 | extern "C" |
| 4878 | # endif |
| 4879 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4880 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4881 | int |
| 4882 | main () |
| 4883 | { |
| 4884 | if ((mode_t *) 0) |
| 4885 | return 0; |
| 4886 | if (sizeof (mode_t)) |
| 4887 | return 0; |
| 4888 | ; |
| 4889 | return 0; |
| 4890 | } |
| 4891 | _ACEOF |
| 4892 | rm -f conftest.$ac_objext |
| 4893 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4894 | (eval $ac_compile) 2>&5 |
| 4895 | ac_status=$? |
| 4896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4897 | (exit $ac_status); } && |
| 4898 | { ac_try='test -s conftest.$ac_objext' |
| 4899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4900 | (eval $ac_try) 2>&5 |
| 4901 | ac_status=$? |
| 4902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4903 | (exit $ac_status); }; }; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4904 | ac_cv_type_mode_t=yes |
| 4905 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4906 | echo "$as_me: failed program was:" >&5 |
| 4907 | cat conftest.$ac_ext >&5 |
| 4908 | ac_cv_type_mode_t=no |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 4909 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4910 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4911 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4912 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
| 4913 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 |
| 4914 | if test $ac_cv_type_mode_t = yes; then |
| 4915 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4916 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4917 | |
| 4918 | cat >>confdefs.h <<_ACEOF |
| 4919 | #define mode_t int |
| 4920 | _ACEOF |
| 4921 | |
| 4922 | fi |
| 4923 | |
| 4924 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 4925 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 4926 | if test "${ac_cv_type_off_t+set}" = set; then |
| 4927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4928 | else |
| 4929 | cat >conftest.$ac_ext <<_ACEOF |
| 4930 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4931 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4932 | $ac_includes_default |
| 4933 | #ifdef F77_DUMMY_MAIN |
| 4934 | # ifdef __cplusplus |
| 4935 | extern "C" |
| 4936 | # endif |
| 4937 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4938 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4939 | int |
| 4940 | main () |
| 4941 | { |
| 4942 | if ((off_t *) 0) |
| 4943 | return 0; |
| 4944 | if (sizeof (off_t)) |
| 4945 | return 0; |
| 4946 | ; |
| 4947 | return 0; |
| 4948 | } |
| 4949 | _ACEOF |
| 4950 | rm -f conftest.$ac_objext |
| 4951 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4952 | (eval $ac_compile) 2>&5 |
| 4953 | ac_status=$? |
| 4954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4955 | (exit $ac_status); } && |
| 4956 | { ac_try='test -s conftest.$ac_objext' |
| 4957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4958 | (eval $ac_try) 2>&5 |
| 4959 | ac_status=$? |
| 4960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4961 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 4962 | ac_cv_type_off_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4963 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4964 | echo "$as_me: failed program was:" >&5 |
| 4965 | cat conftest.$ac_ext >&5 |
| 4966 | ac_cv_type_off_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 4967 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4968 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4969 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4970 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 4971 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 4972 | if test $ac_cv_type_off_t = yes; then |
| 4973 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4974 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4975 | |
| 4976 | cat >>confdefs.h <<_ACEOF |
| 4977 | #define off_t long |
| 4978 | _ACEOF |
| 4979 | |
| 4980 | fi |
| 4981 | |
| 4982 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
| 4983 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 4984 | if test "${ac_cv_type_pid_t+set}" = set; then |
| 4985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4986 | else |
| 4987 | cat >conftest.$ac_ext <<_ACEOF |
| 4988 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 4989 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4990 | $ac_includes_default |
| 4991 | #ifdef F77_DUMMY_MAIN |
| 4992 | # ifdef __cplusplus |
| 4993 | extern "C" |
| 4994 | # endif |
| 4995 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 4996 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 4997 | int |
| 4998 | main () |
| 4999 | { |
| 5000 | if ((pid_t *) 0) |
| 5001 | return 0; |
| 5002 | if (sizeof (pid_t)) |
| 5003 | return 0; |
| 5004 | ; |
| 5005 | return 0; |
| 5006 | } |
| 5007 | _ACEOF |
| 5008 | rm -f conftest.$ac_objext |
| 5009 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5010 | (eval $ac_compile) 2>&5 |
| 5011 | ac_status=$? |
| 5012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5013 | (exit $ac_status); } && |
| 5014 | { ac_try='test -s conftest.$ac_objext' |
| 5015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5016 | (eval $ac_try) 2>&5 |
| 5017 | ac_status=$? |
| 5018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5019 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5020 | ac_cv_type_pid_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5021 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5022 | echo "$as_me: failed program was:" >&5 |
| 5023 | cat conftest.$ac_ext >&5 |
| 5024 | ac_cv_type_pid_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5025 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5026 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5027 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5028 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
| 5029 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 5030 | if test $ac_cv_type_pid_t = yes; then |
| 5031 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5032 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5033 | |
| 5034 | cat >>confdefs.h <<_ACEOF |
| 5035 | #define pid_t int |
| 5036 | _ACEOF |
| 5037 | |
| 5038 | fi |
| 5039 | |
| 5040 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
| 5041 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 5042 | if test "${ac_cv_type_signal+set}" = set; then |
| 5043 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5044 | else |
| 5045 | cat >conftest.$ac_ext <<_ACEOF |
| 5046 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5047 | #include "confdefs.h" |
| 5048 | #include <sys/types.h> |
| 5049 | #include <signal.h> |
| 5050 | #ifdef signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5051 | # undef signal |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5052 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5053 | #ifdef __cplusplus |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5054 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 5055 | #else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 5056 | void (*signal ()) (); |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5057 | #endif |
| 5058 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5059 | #ifdef F77_DUMMY_MAIN |
| 5060 | # ifdef __cplusplus |
| 5061 | extern "C" |
| 5062 | # endif |
| 5063 | int F77_DUMMY_MAIN() { return 1; } |
| 5064 | #endif |
| 5065 | int |
| 5066 | main () |
| 5067 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5068 | int i; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5069 | ; |
| 5070 | return 0; |
| 5071 | } |
| 5072 | _ACEOF |
| 5073 | rm -f conftest.$ac_objext |
| 5074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5075 | (eval $ac_compile) 2>&5 |
| 5076 | ac_status=$? |
| 5077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5078 | (exit $ac_status); } && |
| 5079 | { ac_try='test -s conftest.$ac_objext' |
| 5080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5081 | (eval $ac_try) 2>&5 |
| 5082 | ac_status=$? |
| 5083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5084 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5085 | ac_cv_type_signal=void |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5086 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5087 | echo "$as_me: failed program was:" >&5 |
| 5088 | cat conftest.$ac_ext >&5 |
| 5089 | ac_cv_type_signal=int |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5090 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5091 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5092 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5093 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
| 5094 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 5095 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5096 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5097 | #define RETSIGTYPE $ac_cv_type_signal |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5098 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5099 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5100 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5101 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 5102 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 5103 | if test "${ac_cv_type_size_t+set}" = set; then |
| 5104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5105 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5106 | cat >conftest.$ac_ext <<_ACEOF |
| 5107 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5108 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5109 | $ac_includes_default |
| 5110 | #ifdef F77_DUMMY_MAIN |
| 5111 | # ifdef __cplusplus |
| 5112 | extern "C" |
| 5113 | # endif |
| 5114 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5115 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5116 | int |
| 5117 | main () |
| 5118 | { |
| 5119 | if ((size_t *) 0) |
| 5120 | return 0; |
| 5121 | if (sizeof (size_t)) |
| 5122 | return 0; |
| 5123 | ; |
| 5124 | return 0; |
| 5125 | } |
| 5126 | _ACEOF |
| 5127 | rm -f conftest.$ac_objext |
| 5128 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5129 | (eval $ac_compile) 2>&5 |
| 5130 | ac_status=$? |
| 5131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5132 | (exit $ac_status); } && |
| 5133 | { ac_try='test -s conftest.$ac_objext' |
| 5134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5135 | (eval $ac_try) 2>&5 |
| 5136 | ac_status=$? |
| 5137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5138 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 5139 | ac_cv_type_size_t=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5140 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5141 | echo "$as_me: failed program was:" >&5 |
| 5142 | cat conftest.$ac_ext >&5 |
| 5143 | ac_cv_type_size_t=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5144 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5145 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5146 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5147 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 5148 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 5149 | if test $ac_cv_type_size_t = yes; then |
| 5150 | : |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5151 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5152 | |
| 5153 | cat >>confdefs.h <<_ACEOF |
| 5154 | #define size_t unsigned |
| 5155 | _ACEOF |
| 5156 | |
| 5157 | fi |
| 5158 | |
| 5159 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
| 5160 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 |
| 5161 | if test "${ac_cv_type_uid_t+set}" = set; then |
| 5162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5163 | else |
| 5164 | cat >conftest.$ac_ext <<_ACEOF |
| 5165 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5166 | #include "confdefs.h" |
| 5167 | #include <sys/types.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5168 | |
| 5169 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5170 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5171 | egrep "uid_t" >/dev/null 2>&1; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5172 | ac_cv_type_uid_t=yes |
| 5173 | else |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5174 | ac_cv_type_uid_t=no |
| 5175 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 5176 | rm -f conftest* |
| 5177 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5178 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5179 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
| 5180 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5181 | if test $ac_cv_type_uid_t = no; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5182 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5183 | cat >>confdefs.h <<\_ACEOF |
| 5184 | #define uid_t int |
| 5185 | _ACEOF |
| 5186 | |
| 5187 | |
| 5188 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5189 | #define gid_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5190 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 5191 | |
| 5192 | fi |
| 5193 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 5194 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5195 | # Sizes of various common basic types |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5196 | echo "$as_me:$LINENO: checking for int" >&5 |
| 5197 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
| 5198 | if test "${ac_cv_type_int+set}" = set; then |
| 5199 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5200 | else |
| 5201 | cat >conftest.$ac_ext <<_ACEOF |
| 5202 | #line $LINENO "configure" |
| 5203 | #include "confdefs.h" |
| 5204 | $ac_includes_default |
| 5205 | #ifdef F77_DUMMY_MAIN |
| 5206 | # ifdef __cplusplus |
| 5207 | extern "C" |
| 5208 | # endif |
| 5209 | int F77_DUMMY_MAIN() { return 1; } |
| 5210 | #endif |
| 5211 | int |
| 5212 | main () |
| 5213 | { |
| 5214 | if ((int *) 0) |
| 5215 | return 0; |
| 5216 | if (sizeof (int)) |
| 5217 | return 0; |
| 5218 | ; |
| 5219 | return 0; |
| 5220 | } |
| 5221 | _ACEOF |
| 5222 | rm -f conftest.$ac_objext |
| 5223 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5224 | (eval $ac_compile) 2>&5 |
| 5225 | ac_status=$? |
| 5226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5227 | (exit $ac_status); } && |
| 5228 | { ac_try='test -s conftest.$ac_objext' |
| 5229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5230 | (eval $ac_try) 2>&5 |
| 5231 | ac_status=$? |
| 5232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5233 | (exit $ac_status); }; }; then |
| 5234 | ac_cv_type_int=yes |
| 5235 | else |
| 5236 | echo "$as_me: failed program was:" >&5 |
| 5237 | cat conftest.$ac_ext >&5 |
| 5238 | ac_cv_type_int=no |
| 5239 | fi |
| 5240 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5241 | fi |
| 5242 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
| 5243 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
| 5244 | |
| 5245 | echo "$as_me:$LINENO: checking size of int" >&5 |
| 5246 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
| 5247 | if test "${ac_cv_sizeof_int+set}" = set; then |
| 5248 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5249 | else |
| 5250 | if test "$ac_cv_type_int" = yes; then |
| 5251 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5252 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5253 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5254 | # This bug is HP SR number 8606223364. |
| 5255 | if test "$cross_compiling" = yes; then |
| 5256 | # Depending upon the size, compute the lo and hi bounds. |
| 5257 | cat >conftest.$ac_ext <<_ACEOF |
| 5258 | #line $LINENO "configure" |
| 5259 | #include "confdefs.h" |
| 5260 | $ac_includes_default |
| 5261 | #ifdef F77_DUMMY_MAIN |
| 5262 | # ifdef __cplusplus |
| 5263 | extern "C" |
| 5264 | # endif |
| 5265 | int F77_DUMMY_MAIN() { return 1; } |
| 5266 | #endif |
| 5267 | int |
| 5268 | main () |
| 5269 | { |
| 5270 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
| 5271 | test_array [0] = 0 |
| 5272 | |
| 5273 | ; |
| 5274 | return 0; |
| 5275 | } |
| 5276 | _ACEOF |
| 5277 | rm -f conftest.$ac_objext |
| 5278 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5279 | (eval $ac_compile) 2>&5 |
| 5280 | ac_status=$? |
| 5281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5282 | (exit $ac_status); } && |
| 5283 | { ac_try='test -s conftest.$ac_objext' |
| 5284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5285 | (eval $ac_try) 2>&5 |
| 5286 | ac_status=$? |
| 5287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5288 | (exit $ac_status); }; }; then |
| 5289 | ac_lo=0 ac_mid=0 |
| 5290 | while :; do |
| 5291 | cat >conftest.$ac_ext <<_ACEOF |
| 5292 | #line $LINENO "configure" |
| 5293 | #include "confdefs.h" |
| 5294 | $ac_includes_default |
| 5295 | #ifdef F77_DUMMY_MAIN |
| 5296 | # ifdef __cplusplus |
| 5297 | extern "C" |
| 5298 | # endif |
| 5299 | int F77_DUMMY_MAIN() { return 1; } |
| 5300 | #endif |
| 5301 | int |
| 5302 | main () |
| 5303 | { |
| 5304 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 5305 | test_array [0] = 0 |
| 5306 | |
| 5307 | ; |
| 5308 | return 0; |
| 5309 | } |
| 5310 | _ACEOF |
| 5311 | rm -f conftest.$ac_objext |
| 5312 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5313 | (eval $ac_compile) 2>&5 |
| 5314 | ac_status=$? |
| 5315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5316 | (exit $ac_status); } && |
| 5317 | { ac_try='test -s conftest.$ac_objext' |
| 5318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5319 | (eval $ac_try) 2>&5 |
| 5320 | ac_status=$? |
| 5321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5322 | (exit $ac_status); }; }; then |
| 5323 | ac_hi=$ac_mid; break |
| 5324 | else |
| 5325 | echo "$as_me: failed program was:" >&5 |
| 5326 | cat conftest.$ac_ext >&5 |
| 5327 | ac_lo=`expr $ac_mid + 1` |
| 5328 | if test $ac_lo -le $ac_mid; then |
| 5329 | ac_lo= ac_hi= |
| 5330 | break |
| 5331 | fi |
| 5332 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5333 | fi |
| 5334 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5335 | done |
| 5336 | else |
| 5337 | echo "$as_me: failed program was:" >&5 |
| 5338 | cat conftest.$ac_ext >&5 |
| 5339 | cat >conftest.$ac_ext <<_ACEOF |
| 5340 | #line $LINENO "configure" |
| 5341 | #include "confdefs.h" |
| 5342 | $ac_includes_default |
| 5343 | #ifdef F77_DUMMY_MAIN |
| 5344 | # ifdef __cplusplus |
| 5345 | extern "C" |
| 5346 | # endif |
| 5347 | int F77_DUMMY_MAIN() { return 1; } |
| 5348 | #endif |
| 5349 | int |
| 5350 | main () |
| 5351 | { |
| 5352 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
| 5353 | test_array [0] = 0 |
| 5354 | |
| 5355 | ; |
| 5356 | return 0; |
| 5357 | } |
| 5358 | _ACEOF |
| 5359 | rm -f conftest.$ac_objext |
| 5360 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5361 | (eval $ac_compile) 2>&5 |
| 5362 | ac_status=$? |
| 5363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5364 | (exit $ac_status); } && |
| 5365 | { ac_try='test -s conftest.$ac_objext' |
| 5366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5367 | (eval $ac_try) 2>&5 |
| 5368 | ac_status=$? |
| 5369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5370 | (exit $ac_status); }; }; then |
| 5371 | ac_hi=-1 ac_mid=-1 |
| 5372 | while :; do |
| 5373 | cat >conftest.$ac_ext <<_ACEOF |
| 5374 | #line $LINENO "configure" |
| 5375 | #include "confdefs.h" |
| 5376 | $ac_includes_default |
| 5377 | #ifdef F77_DUMMY_MAIN |
| 5378 | # ifdef __cplusplus |
| 5379 | extern "C" |
| 5380 | # endif |
| 5381 | int F77_DUMMY_MAIN() { return 1; } |
| 5382 | #endif |
| 5383 | int |
| 5384 | main () |
| 5385 | { |
| 5386 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
| 5387 | test_array [0] = 0 |
| 5388 | |
| 5389 | ; |
| 5390 | return 0; |
| 5391 | } |
| 5392 | _ACEOF |
| 5393 | rm -f conftest.$ac_objext |
| 5394 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5395 | (eval $ac_compile) 2>&5 |
| 5396 | ac_status=$? |
| 5397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5398 | (exit $ac_status); } && |
| 5399 | { ac_try='test -s conftest.$ac_objext' |
| 5400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5401 | (eval $ac_try) 2>&5 |
| 5402 | ac_status=$? |
| 5403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5404 | (exit $ac_status); }; }; then |
| 5405 | ac_lo=$ac_mid; break |
| 5406 | else |
| 5407 | echo "$as_me: failed program was:" >&5 |
| 5408 | cat conftest.$ac_ext >&5 |
| 5409 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5410 | if test $ac_mid -le $ac_hi; then |
| 5411 | ac_lo= ac_hi= |
| 5412 | break |
| 5413 | fi |
| 5414 | ac_mid=`expr 2 '*' $ac_mid` |
| 5415 | fi |
| 5416 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5417 | done |
| 5418 | else |
| 5419 | echo "$as_me: failed program was:" >&5 |
| 5420 | cat conftest.$ac_ext >&5 |
| 5421 | ac_lo= ac_hi= |
| 5422 | fi |
| 5423 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5424 | fi |
| 5425 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5426 | # Binary search between lo and hi bounds. |
| 5427 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5428 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5429 | cat >conftest.$ac_ext <<_ACEOF |
| 5430 | #line $LINENO "configure" |
| 5431 | #include "confdefs.h" |
| 5432 | $ac_includes_default |
| 5433 | #ifdef F77_DUMMY_MAIN |
| 5434 | # ifdef __cplusplus |
| 5435 | extern "C" |
| 5436 | # endif |
| 5437 | int F77_DUMMY_MAIN() { return 1; } |
| 5438 | #endif |
| 5439 | int |
| 5440 | main () |
| 5441 | { |
| 5442 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
| 5443 | test_array [0] = 0 |
| 5444 | |
| 5445 | ; |
| 5446 | return 0; |
| 5447 | } |
| 5448 | _ACEOF |
| 5449 | rm -f conftest.$ac_objext |
| 5450 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5451 | (eval $ac_compile) 2>&5 |
| 5452 | ac_status=$? |
| 5453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5454 | (exit $ac_status); } && |
| 5455 | { ac_try='test -s conftest.$ac_objext' |
| 5456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5457 | (eval $ac_try) 2>&5 |
| 5458 | ac_status=$? |
| 5459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5460 | (exit $ac_status); }; }; then |
| 5461 | ac_hi=$ac_mid |
| 5462 | else |
| 5463 | echo "$as_me: failed program was:" >&5 |
| 5464 | cat conftest.$ac_ext >&5 |
| 5465 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5466 | fi |
| 5467 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5468 | done |
| 5469 | case $ac_lo in |
| 5470 | ?*) ac_cv_sizeof_int=$ac_lo;; |
| 5471 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 |
| 5472 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} |
| 5473 | { (exit 1); exit 1; }; } ;; |
| 5474 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5475 | else |
| 5476 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5477 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 5478 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 5479 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5480 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5481 | cat >conftest.$ac_ext <<_ACEOF |
| 5482 | #line $LINENO "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5483 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5484 | $ac_includes_default |
| 5485 | long longval () { return (long) (sizeof (int)); } |
| 5486 | unsigned long ulongval () { return (long) (sizeof (int)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5487 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5488 | #include <stdlib.h> |
| 5489 | #ifdef F77_DUMMY_MAIN |
| 5490 | # ifdef __cplusplus |
| 5491 | extern "C" |
| 5492 | # endif |
| 5493 | int F77_DUMMY_MAIN() { return 1; } |
| 5494 | #endif |
| 5495 | int |
| 5496 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5497 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5498 | |
| 5499 | FILE *f = fopen ("conftest.val", "w"); |
| 5500 | if (! f) |
| 5501 | exit (1); |
| 5502 | if (((long) (sizeof (int))) < 0) |
| 5503 | { |
| 5504 | long i = longval (); |
| 5505 | if (i != ((long) (sizeof (int)))) |
| 5506 | exit (1); |
| 5507 | fprintf (f, "%ld\n", i); |
| 5508 | } |
| 5509 | else |
| 5510 | { |
| 5511 | unsigned long i = ulongval (); |
| 5512 | if (i != ((long) (sizeof (int)))) |
| 5513 | exit (1); |
| 5514 | fprintf (f, "%lu\n", i); |
| 5515 | } |
| 5516 | exit (ferror (f) || fclose (f) != 0); |
| 5517 | |
| 5518 | ; |
| 5519 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5520 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5521 | _ACEOF |
| 5522 | rm -f conftest$ac_exeext |
| 5523 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5524 | (eval $ac_link) 2>&5 |
| 5525 | ac_status=$? |
| 5526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5527 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5529 | (eval $ac_try) 2>&5 |
| 5530 | ac_status=$? |
| 5531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5532 | (exit $ac_status); }; }; then |
| 5533 | ac_cv_sizeof_int=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5534 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5535 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5536 | echo "$as_me: failed program was:" >&5 |
| 5537 | cat conftest.$ac_ext >&5 |
| 5538 | ( exit $ac_status ) |
| 5539 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5 |
| 5540 | echo "$as_me: error: cannot compute sizeof (int), 77" >&2;} |
| 5541 | { (exit 1); exit 1; }; } |
| 5542 | fi |
| 5543 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5544 | fi |
| 5545 | fi |
| 5546 | rm -f conftest.val |
| 5547 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5548 | ac_cv_sizeof_int=0 |
| 5549 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5550 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5551 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
| 5552 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
| 5553 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5554 | #define SIZEOF_INT $ac_cv_sizeof_int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5555 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5556 | |
| 5557 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5558 | echo "$as_me:$LINENO: checking for long" >&5 |
| 5559 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
| 5560 | if test "${ac_cv_type_long+set}" = set; then |
| 5561 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5562 | else |
| 5563 | cat >conftest.$ac_ext <<_ACEOF |
| 5564 | #line $LINENO "configure" |
| 5565 | #include "confdefs.h" |
| 5566 | $ac_includes_default |
| 5567 | #ifdef F77_DUMMY_MAIN |
| 5568 | # ifdef __cplusplus |
| 5569 | extern "C" |
| 5570 | # endif |
| 5571 | int F77_DUMMY_MAIN() { return 1; } |
| 5572 | #endif |
| 5573 | int |
| 5574 | main () |
| 5575 | { |
| 5576 | if ((long *) 0) |
| 5577 | return 0; |
| 5578 | if (sizeof (long)) |
| 5579 | return 0; |
| 5580 | ; |
| 5581 | return 0; |
| 5582 | } |
| 5583 | _ACEOF |
| 5584 | rm -f conftest.$ac_objext |
| 5585 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5586 | (eval $ac_compile) 2>&5 |
| 5587 | ac_status=$? |
| 5588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5589 | (exit $ac_status); } && |
| 5590 | { ac_try='test -s conftest.$ac_objext' |
| 5591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5592 | (eval $ac_try) 2>&5 |
| 5593 | ac_status=$? |
| 5594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5595 | (exit $ac_status); }; }; then |
| 5596 | ac_cv_type_long=yes |
| 5597 | else |
| 5598 | echo "$as_me: failed program was:" >&5 |
| 5599 | cat conftest.$ac_ext >&5 |
| 5600 | ac_cv_type_long=no |
| 5601 | fi |
| 5602 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5603 | fi |
| 5604 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
| 5605 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
| 5606 | |
| 5607 | echo "$as_me:$LINENO: checking size of long" >&5 |
| 5608 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
| 5609 | if test "${ac_cv_sizeof_long+set}" = set; then |
| 5610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5611 | else |
| 5612 | if test "$ac_cv_type_long" = yes; then |
| 5613 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5614 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5615 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5616 | # This bug is HP SR number 8606223364. |
| 5617 | if test "$cross_compiling" = yes; then |
| 5618 | # Depending upon the size, compute the lo and hi bounds. |
| 5619 | cat >conftest.$ac_ext <<_ACEOF |
| 5620 | #line $LINENO "configure" |
| 5621 | #include "confdefs.h" |
| 5622 | $ac_includes_default |
| 5623 | #ifdef F77_DUMMY_MAIN |
| 5624 | # ifdef __cplusplus |
| 5625 | extern "C" |
| 5626 | # endif |
| 5627 | int F77_DUMMY_MAIN() { return 1; } |
| 5628 | #endif |
| 5629 | int |
| 5630 | main () |
| 5631 | { |
| 5632 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
| 5633 | test_array [0] = 0 |
| 5634 | |
| 5635 | ; |
| 5636 | return 0; |
| 5637 | } |
| 5638 | _ACEOF |
| 5639 | rm -f conftest.$ac_objext |
| 5640 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5641 | (eval $ac_compile) 2>&5 |
| 5642 | ac_status=$? |
| 5643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5644 | (exit $ac_status); } && |
| 5645 | { ac_try='test -s conftest.$ac_objext' |
| 5646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5647 | (eval $ac_try) 2>&5 |
| 5648 | ac_status=$? |
| 5649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5650 | (exit $ac_status); }; }; then |
| 5651 | ac_lo=0 ac_mid=0 |
| 5652 | while :; do |
| 5653 | cat >conftest.$ac_ext <<_ACEOF |
| 5654 | #line $LINENO "configure" |
| 5655 | #include "confdefs.h" |
| 5656 | $ac_includes_default |
| 5657 | #ifdef F77_DUMMY_MAIN |
| 5658 | # ifdef __cplusplus |
| 5659 | extern "C" |
| 5660 | # endif |
| 5661 | int F77_DUMMY_MAIN() { return 1; } |
| 5662 | #endif |
| 5663 | int |
| 5664 | main () |
| 5665 | { |
| 5666 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 5667 | test_array [0] = 0 |
| 5668 | |
| 5669 | ; |
| 5670 | return 0; |
| 5671 | } |
| 5672 | _ACEOF |
| 5673 | rm -f conftest.$ac_objext |
| 5674 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5675 | (eval $ac_compile) 2>&5 |
| 5676 | ac_status=$? |
| 5677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5678 | (exit $ac_status); } && |
| 5679 | { ac_try='test -s conftest.$ac_objext' |
| 5680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5681 | (eval $ac_try) 2>&5 |
| 5682 | ac_status=$? |
| 5683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5684 | (exit $ac_status); }; }; then |
| 5685 | ac_hi=$ac_mid; break |
| 5686 | else |
| 5687 | echo "$as_me: failed program was:" >&5 |
| 5688 | cat conftest.$ac_ext >&5 |
| 5689 | ac_lo=`expr $ac_mid + 1` |
| 5690 | if test $ac_lo -le $ac_mid; then |
| 5691 | ac_lo= ac_hi= |
| 5692 | break |
| 5693 | fi |
| 5694 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 5695 | fi |
| 5696 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5697 | done |
| 5698 | else |
| 5699 | echo "$as_me: failed program was:" >&5 |
| 5700 | cat conftest.$ac_ext >&5 |
| 5701 | cat >conftest.$ac_ext <<_ACEOF |
| 5702 | #line $LINENO "configure" |
| 5703 | #include "confdefs.h" |
| 5704 | $ac_includes_default |
| 5705 | #ifdef F77_DUMMY_MAIN |
| 5706 | # ifdef __cplusplus |
| 5707 | extern "C" |
| 5708 | # endif |
| 5709 | int F77_DUMMY_MAIN() { return 1; } |
| 5710 | #endif |
| 5711 | int |
| 5712 | main () |
| 5713 | { |
| 5714 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
| 5715 | test_array [0] = 0 |
| 5716 | |
| 5717 | ; |
| 5718 | return 0; |
| 5719 | } |
| 5720 | _ACEOF |
| 5721 | rm -f conftest.$ac_objext |
| 5722 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5723 | (eval $ac_compile) 2>&5 |
| 5724 | ac_status=$? |
| 5725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5726 | (exit $ac_status); } && |
| 5727 | { ac_try='test -s conftest.$ac_objext' |
| 5728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5729 | (eval $ac_try) 2>&5 |
| 5730 | ac_status=$? |
| 5731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5732 | (exit $ac_status); }; }; then |
| 5733 | ac_hi=-1 ac_mid=-1 |
| 5734 | while :; do |
| 5735 | cat >conftest.$ac_ext <<_ACEOF |
| 5736 | #line $LINENO "configure" |
| 5737 | #include "confdefs.h" |
| 5738 | $ac_includes_default |
| 5739 | #ifdef F77_DUMMY_MAIN |
| 5740 | # ifdef __cplusplus |
| 5741 | extern "C" |
| 5742 | # endif |
| 5743 | int F77_DUMMY_MAIN() { return 1; } |
| 5744 | #endif |
| 5745 | int |
| 5746 | main () |
| 5747 | { |
| 5748 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
| 5749 | test_array [0] = 0 |
| 5750 | |
| 5751 | ; |
| 5752 | return 0; |
| 5753 | } |
| 5754 | _ACEOF |
| 5755 | rm -f conftest.$ac_objext |
| 5756 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5757 | (eval $ac_compile) 2>&5 |
| 5758 | ac_status=$? |
| 5759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5760 | (exit $ac_status); } && |
| 5761 | { ac_try='test -s conftest.$ac_objext' |
| 5762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5763 | (eval $ac_try) 2>&5 |
| 5764 | ac_status=$? |
| 5765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5766 | (exit $ac_status); }; }; then |
| 5767 | ac_lo=$ac_mid; break |
| 5768 | else |
| 5769 | echo "$as_me: failed program was:" >&5 |
| 5770 | cat conftest.$ac_ext >&5 |
| 5771 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 5772 | if test $ac_mid -le $ac_hi; then |
| 5773 | ac_lo= ac_hi= |
| 5774 | break |
| 5775 | fi |
| 5776 | ac_mid=`expr 2 '*' $ac_mid` |
| 5777 | fi |
| 5778 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5779 | done |
| 5780 | else |
| 5781 | echo "$as_me: failed program was:" >&5 |
| 5782 | cat conftest.$ac_ext >&5 |
| 5783 | ac_lo= ac_hi= |
| 5784 | fi |
| 5785 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5786 | fi |
| 5787 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5788 | # Binary search between lo and hi bounds. |
| 5789 | while test "x$ac_lo" != "x$ac_hi"; do |
| 5790 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 5791 | cat >conftest.$ac_ext <<_ACEOF |
| 5792 | #line $LINENO "configure" |
| 5793 | #include "confdefs.h" |
| 5794 | $ac_includes_default |
| 5795 | #ifdef F77_DUMMY_MAIN |
| 5796 | # ifdef __cplusplus |
| 5797 | extern "C" |
| 5798 | # endif |
| 5799 | int F77_DUMMY_MAIN() { return 1; } |
| 5800 | #endif |
| 5801 | int |
| 5802 | main () |
| 5803 | { |
| 5804 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
| 5805 | test_array [0] = 0 |
| 5806 | |
| 5807 | ; |
| 5808 | return 0; |
| 5809 | } |
| 5810 | _ACEOF |
| 5811 | rm -f conftest.$ac_objext |
| 5812 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5813 | (eval $ac_compile) 2>&5 |
| 5814 | ac_status=$? |
| 5815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5816 | (exit $ac_status); } && |
| 5817 | { ac_try='test -s conftest.$ac_objext' |
| 5818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5819 | (eval $ac_try) 2>&5 |
| 5820 | ac_status=$? |
| 5821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5822 | (exit $ac_status); }; }; then |
| 5823 | ac_hi=$ac_mid |
| 5824 | else |
| 5825 | echo "$as_me: failed program was:" >&5 |
| 5826 | cat conftest.$ac_ext >&5 |
| 5827 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 5828 | fi |
| 5829 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5830 | done |
| 5831 | case $ac_lo in |
| 5832 | ?*) ac_cv_sizeof_long=$ac_lo;; |
| 5833 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 |
| 5834 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} |
| 5835 | { (exit 1); exit 1; }; } ;; |
| 5836 | esac |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5837 | else |
| 5838 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5839 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 5840 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 5841 | { (exit 1); exit 1; }; } |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5842 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5843 | cat >conftest.$ac_ext <<_ACEOF |
| 5844 | #line $LINENO "configure" |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5845 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5846 | $ac_includes_default |
| 5847 | long longval () { return (long) (sizeof (long)); } |
| 5848 | unsigned long ulongval () { return (long) (sizeof (long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 5849 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5850 | #include <stdlib.h> |
| 5851 | #ifdef F77_DUMMY_MAIN |
| 5852 | # ifdef __cplusplus |
| 5853 | extern "C" |
| 5854 | # endif |
| 5855 | int F77_DUMMY_MAIN() { return 1; } |
| 5856 | #endif |
| 5857 | int |
| 5858 | main () |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5859 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5860 | |
| 5861 | FILE *f = fopen ("conftest.val", "w"); |
| 5862 | if (! f) |
| 5863 | exit (1); |
| 5864 | if (((long) (sizeof (long))) < 0) |
| 5865 | { |
| 5866 | long i = longval (); |
| 5867 | if (i != ((long) (sizeof (long)))) |
| 5868 | exit (1); |
| 5869 | fprintf (f, "%ld\n", i); |
| 5870 | } |
| 5871 | else |
| 5872 | { |
| 5873 | unsigned long i = ulongval (); |
| 5874 | if (i != ((long) (sizeof (long)))) |
| 5875 | exit (1); |
| 5876 | fprintf (f, "%lu\n", i); |
| 5877 | } |
| 5878 | exit (ferror (f) || fclose (f) != 0); |
| 5879 | |
| 5880 | ; |
| 5881 | return 0; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5882 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5883 | _ACEOF |
| 5884 | rm -f conftest$ac_exeext |
| 5885 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5886 | (eval $ac_link) 2>&5 |
| 5887 | ac_status=$? |
| 5888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5889 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5891 | (eval $ac_try) 2>&5 |
| 5892 | ac_status=$? |
| 5893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5894 | (exit $ac_status); }; }; then |
| 5895 | ac_cv_sizeof_long=`cat conftest.val` |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5896 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5897 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5898 | echo "$as_me: failed program was:" >&5 |
| 5899 | cat conftest.$ac_ext >&5 |
| 5900 | ( exit $ac_status ) |
| 5901 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5 |
| 5902 | echo "$as_me: error: cannot compute sizeof (long), 77" >&2;} |
| 5903 | { (exit 1); exit 1; }; } |
| 5904 | fi |
| 5905 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5906 | fi |
| 5907 | fi |
| 5908 | rm -f conftest.val |
| 5909 | else |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5910 | ac_cv_sizeof_long=0 |
| 5911 | fi |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5912 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5913 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
| 5914 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
| 5915 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5916 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5917 | _ACEOF |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 5918 | |
| 5919 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 5920 | echo "$as_me:$LINENO: checking for void *" >&5 |
| 5921 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
| 5922 | if test "${ac_cv_type_void_p+set}" = set; then |
| 5923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5924 | else |
| 5925 | cat >conftest.$ac_ext <<_ACEOF |
| 5926 | #line $LINENO "configure" |
| 5927 | #include "confdefs.h" |
| 5928 | $ac_includes_default |
| 5929 | #ifdef F77_DUMMY_MAIN |
| 5930 | # ifdef __cplusplus |
| 5931 | extern "C" |
| 5932 | # endif |
| 5933 | int F77_DUMMY_MAIN() { return 1; } |
| 5934 | #endif |
| 5935 | int |
| 5936 | main () |
| 5937 | { |
| 5938 | if ((void * *) 0) |
| 5939 | return 0; |
| 5940 | if (sizeof (void *)) |
| 5941 | return 0; |
| 5942 | ; |
| 5943 | return 0; |
| 5944 | } |
| 5945 | _ACEOF |
| 5946 | rm -f conftest.$ac_objext |
| 5947 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5948 | (eval $ac_compile) 2>&5 |
| 5949 | ac_status=$? |
| 5950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5951 | (exit $ac_status); } && |
| 5952 | { ac_try='test -s conftest.$ac_objext' |
| 5953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5954 | (eval $ac_try) 2>&5 |
| 5955 | ac_status=$? |
| 5956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5957 | (exit $ac_status); }; }; then |
| 5958 | ac_cv_type_void_p=yes |
| 5959 | else |
| 5960 | echo "$as_me: failed program was:" >&5 |
| 5961 | cat conftest.$ac_ext >&5 |
| 5962 | ac_cv_type_void_p=no |
| 5963 | fi |
| 5964 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5965 | fi |
| 5966 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
| 5967 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
| 5968 | |
| 5969 | echo "$as_me:$LINENO: checking size of void *" >&5 |
| 5970 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
| 5971 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
| 5972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5973 | else |
| 5974 | if test "$ac_cv_type_void_p" = yes; then |
| 5975 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 5976 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 5977 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 5978 | # This bug is HP SR number 8606223364. |
| 5979 | if test "$cross_compiling" = yes; then |
| 5980 | # Depending upon the size, compute the lo and hi bounds. |
| 5981 | cat >conftest.$ac_ext <<_ACEOF |
| 5982 | #line $LINENO "configure" |
| 5983 | #include "confdefs.h" |
| 5984 | $ac_includes_default |
| 5985 | #ifdef F77_DUMMY_MAIN |
| 5986 | # ifdef __cplusplus |
| 5987 | extern "C" |
| 5988 | # endif |
| 5989 | int F77_DUMMY_MAIN() { return 1; } |
| 5990 | #endif |
| 5991 | int |
| 5992 | main () |
| 5993 | { |
| 5994 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
| 5995 | test_array [0] = 0 |
| 5996 | |
| 5997 | ; |
| 5998 | return 0; |
| 5999 | } |
| 6000 | _ACEOF |
| 6001 | rm -f conftest.$ac_objext |
| 6002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6003 | (eval $ac_compile) 2>&5 |
| 6004 | ac_status=$? |
| 6005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6006 | (exit $ac_status); } && |
| 6007 | { ac_try='test -s conftest.$ac_objext' |
| 6008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6009 | (eval $ac_try) 2>&5 |
| 6010 | ac_status=$? |
| 6011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6012 | (exit $ac_status); }; }; then |
| 6013 | ac_lo=0 ac_mid=0 |
| 6014 | while :; do |
| 6015 | cat >conftest.$ac_ext <<_ACEOF |
| 6016 | #line $LINENO "configure" |
| 6017 | #include "confdefs.h" |
| 6018 | $ac_includes_default |
| 6019 | #ifdef F77_DUMMY_MAIN |
| 6020 | # ifdef __cplusplus |
| 6021 | extern "C" |
| 6022 | # endif |
| 6023 | int F77_DUMMY_MAIN() { return 1; } |
| 6024 | #endif |
| 6025 | int |
| 6026 | main () |
| 6027 | { |
| 6028 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 6029 | test_array [0] = 0 |
| 6030 | |
| 6031 | ; |
| 6032 | return 0; |
| 6033 | } |
| 6034 | _ACEOF |
| 6035 | rm -f conftest.$ac_objext |
| 6036 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6037 | (eval $ac_compile) 2>&5 |
| 6038 | ac_status=$? |
| 6039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6040 | (exit $ac_status); } && |
| 6041 | { ac_try='test -s conftest.$ac_objext' |
| 6042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6043 | (eval $ac_try) 2>&5 |
| 6044 | ac_status=$? |
| 6045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6046 | (exit $ac_status); }; }; then |
| 6047 | ac_hi=$ac_mid; break |
| 6048 | else |
| 6049 | echo "$as_me: failed program was:" >&5 |
| 6050 | cat conftest.$ac_ext >&5 |
| 6051 | ac_lo=`expr $ac_mid + 1` |
| 6052 | if test $ac_lo -le $ac_mid; then |
| 6053 | ac_lo= ac_hi= |
| 6054 | break |
| 6055 | fi |
| 6056 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6057 | fi |
| 6058 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6059 | done |
| 6060 | else |
| 6061 | echo "$as_me: failed program was:" >&5 |
| 6062 | cat conftest.$ac_ext >&5 |
| 6063 | cat >conftest.$ac_ext <<_ACEOF |
| 6064 | #line $LINENO "configure" |
| 6065 | #include "confdefs.h" |
| 6066 | $ac_includes_default |
| 6067 | #ifdef F77_DUMMY_MAIN |
| 6068 | # ifdef __cplusplus |
| 6069 | extern "C" |
| 6070 | # endif |
| 6071 | int F77_DUMMY_MAIN() { return 1; } |
| 6072 | #endif |
| 6073 | int |
| 6074 | main () |
| 6075 | { |
| 6076 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
| 6077 | test_array [0] = 0 |
| 6078 | |
| 6079 | ; |
| 6080 | return 0; |
| 6081 | } |
| 6082 | _ACEOF |
| 6083 | rm -f conftest.$ac_objext |
| 6084 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6085 | (eval $ac_compile) 2>&5 |
| 6086 | ac_status=$? |
| 6087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6088 | (exit $ac_status); } && |
| 6089 | { ac_try='test -s conftest.$ac_objext' |
| 6090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6091 | (eval $ac_try) 2>&5 |
| 6092 | ac_status=$? |
| 6093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6094 | (exit $ac_status); }; }; then |
| 6095 | ac_hi=-1 ac_mid=-1 |
| 6096 | while :; do |
| 6097 | cat >conftest.$ac_ext <<_ACEOF |
| 6098 | #line $LINENO "configure" |
| 6099 | #include "confdefs.h" |
| 6100 | $ac_includes_default |
| 6101 | #ifdef F77_DUMMY_MAIN |
| 6102 | # ifdef __cplusplus |
| 6103 | extern "C" |
| 6104 | # endif |
| 6105 | int F77_DUMMY_MAIN() { return 1; } |
| 6106 | #endif |
| 6107 | int |
| 6108 | main () |
| 6109 | { |
| 6110 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
| 6111 | test_array [0] = 0 |
| 6112 | |
| 6113 | ; |
| 6114 | return 0; |
| 6115 | } |
| 6116 | _ACEOF |
| 6117 | rm -f conftest.$ac_objext |
| 6118 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6119 | (eval $ac_compile) 2>&5 |
| 6120 | ac_status=$? |
| 6121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6122 | (exit $ac_status); } && |
| 6123 | { ac_try='test -s conftest.$ac_objext' |
| 6124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6125 | (eval $ac_try) 2>&5 |
| 6126 | ac_status=$? |
| 6127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6128 | (exit $ac_status); }; }; then |
| 6129 | ac_lo=$ac_mid; break |
| 6130 | else |
| 6131 | echo "$as_me: failed program was:" >&5 |
| 6132 | cat conftest.$ac_ext >&5 |
| 6133 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6134 | if test $ac_mid -le $ac_hi; then |
| 6135 | ac_lo= ac_hi= |
| 6136 | break |
| 6137 | fi |
| 6138 | ac_mid=`expr 2 '*' $ac_mid` |
| 6139 | fi |
| 6140 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6141 | done |
| 6142 | else |
| 6143 | echo "$as_me: failed program was:" >&5 |
| 6144 | cat conftest.$ac_ext >&5 |
| 6145 | ac_lo= ac_hi= |
| 6146 | fi |
| 6147 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6148 | fi |
| 6149 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6150 | # Binary search between lo and hi bounds. |
| 6151 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6152 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6153 | cat >conftest.$ac_ext <<_ACEOF |
| 6154 | #line $LINENO "configure" |
| 6155 | #include "confdefs.h" |
| 6156 | $ac_includes_default |
| 6157 | #ifdef F77_DUMMY_MAIN |
| 6158 | # ifdef __cplusplus |
| 6159 | extern "C" |
| 6160 | # endif |
| 6161 | int F77_DUMMY_MAIN() { return 1; } |
| 6162 | #endif |
| 6163 | int |
| 6164 | main () |
| 6165 | { |
| 6166 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
| 6167 | test_array [0] = 0 |
| 6168 | |
| 6169 | ; |
| 6170 | return 0; |
| 6171 | } |
| 6172 | _ACEOF |
| 6173 | rm -f conftest.$ac_objext |
| 6174 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6175 | (eval $ac_compile) 2>&5 |
| 6176 | ac_status=$? |
| 6177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6178 | (exit $ac_status); } && |
| 6179 | { ac_try='test -s conftest.$ac_objext' |
| 6180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6181 | (eval $ac_try) 2>&5 |
| 6182 | ac_status=$? |
| 6183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6184 | (exit $ac_status); }; }; then |
| 6185 | ac_hi=$ac_mid |
| 6186 | else |
| 6187 | echo "$as_me: failed program was:" >&5 |
| 6188 | cat conftest.$ac_ext >&5 |
| 6189 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6190 | fi |
| 6191 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6192 | done |
| 6193 | case $ac_lo in |
| 6194 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
| 6195 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 |
| 6196 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} |
| 6197 | { (exit 1); exit 1; }; } ;; |
| 6198 | esac |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6199 | else |
| 6200 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6201 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6202 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6203 | { (exit 1); exit 1; }; } |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6204 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6205 | cat >conftest.$ac_ext <<_ACEOF |
| 6206 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6207 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6208 | $ac_includes_default |
| 6209 | long longval () { return (long) (sizeof (void *)); } |
| 6210 | unsigned long ulongval () { return (long) (sizeof (void *)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6211 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6212 | #include <stdlib.h> |
| 6213 | #ifdef F77_DUMMY_MAIN |
| 6214 | # ifdef __cplusplus |
| 6215 | extern "C" |
| 6216 | # endif |
| 6217 | int F77_DUMMY_MAIN() { return 1; } |
| 6218 | #endif |
| 6219 | int |
| 6220 | main () |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6221 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6222 | |
| 6223 | FILE *f = fopen ("conftest.val", "w"); |
| 6224 | if (! f) |
| 6225 | exit (1); |
| 6226 | if (((long) (sizeof (void *))) < 0) |
| 6227 | { |
| 6228 | long i = longval (); |
| 6229 | if (i != ((long) (sizeof (void *)))) |
| 6230 | exit (1); |
| 6231 | fprintf (f, "%ld\n", i); |
| 6232 | } |
| 6233 | else |
| 6234 | { |
| 6235 | unsigned long i = ulongval (); |
| 6236 | if (i != ((long) (sizeof (void *)))) |
| 6237 | exit (1); |
| 6238 | fprintf (f, "%lu\n", i); |
| 6239 | } |
| 6240 | exit (ferror (f) || fclose (f) != 0); |
| 6241 | |
| 6242 | ; |
| 6243 | return 0; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6244 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6245 | _ACEOF |
| 6246 | rm -f conftest$ac_exeext |
| 6247 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6248 | (eval $ac_link) 2>&5 |
| 6249 | ac_status=$? |
| 6250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6251 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6253 | (eval $ac_try) 2>&5 |
| 6254 | ac_status=$? |
| 6255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6256 | (exit $ac_status); }; }; then |
| 6257 | ac_cv_sizeof_void_p=`cat conftest.val` |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6258 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6259 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6260 | echo "$as_me: failed program was:" >&5 |
| 6261 | cat conftest.$ac_ext >&5 |
| 6262 | ( exit $ac_status ) |
| 6263 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77" >&5 |
| 6264 | echo "$as_me: error: cannot compute sizeof (void *), 77" >&2;} |
| 6265 | { (exit 1); exit 1; }; } |
| 6266 | fi |
| 6267 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6268 | fi |
| 6269 | fi |
| 6270 | rm -f conftest.val |
| 6271 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6272 | ac_cv_sizeof_void_p=0 |
| 6273 | fi |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6274 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6275 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
| 6276 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
| 6277 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6278 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6279 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 6280 | |
| 6281 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6282 | echo "$as_me:$LINENO: checking for char" >&5 |
| 6283 | echo $ECHO_N "checking for char... $ECHO_C" >&6 |
| 6284 | if test "${ac_cv_type_char+set}" = set; then |
| 6285 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6286 | else |
| 6287 | cat >conftest.$ac_ext <<_ACEOF |
| 6288 | #line $LINENO "configure" |
| 6289 | #include "confdefs.h" |
| 6290 | $ac_includes_default |
| 6291 | #ifdef F77_DUMMY_MAIN |
| 6292 | # ifdef __cplusplus |
| 6293 | extern "C" |
| 6294 | # endif |
| 6295 | int F77_DUMMY_MAIN() { return 1; } |
| 6296 | #endif |
| 6297 | int |
| 6298 | main () |
| 6299 | { |
| 6300 | if ((char *) 0) |
| 6301 | return 0; |
| 6302 | if (sizeof (char)) |
| 6303 | return 0; |
| 6304 | ; |
| 6305 | return 0; |
| 6306 | } |
| 6307 | _ACEOF |
| 6308 | rm -f conftest.$ac_objext |
| 6309 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6310 | (eval $ac_compile) 2>&5 |
| 6311 | ac_status=$? |
| 6312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6313 | (exit $ac_status); } && |
| 6314 | { ac_try='test -s conftest.$ac_objext' |
| 6315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6316 | (eval $ac_try) 2>&5 |
| 6317 | ac_status=$? |
| 6318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6319 | (exit $ac_status); }; }; then |
| 6320 | ac_cv_type_char=yes |
| 6321 | else |
| 6322 | echo "$as_me: failed program was:" >&5 |
| 6323 | cat conftest.$ac_ext >&5 |
| 6324 | ac_cv_type_char=no |
| 6325 | fi |
| 6326 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6327 | fi |
| 6328 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
| 6329 | echo "${ECHO_T}$ac_cv_type_char" >&6 |
| 6330 | |
| 6331 | echo "$as_me:$LINENO: checking size of char" >&5 |
| 6332 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 |
| 6333 | if test "${ac_cv_sizeof_char+set}" = set; then |
| 6334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6335 | else |
| 6336 | if test "$ac_cv_type_char" = yes; then |
| 6337 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6338 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6339 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6340 | # This bug is HP SR number 8606223364. |
| 6341 | if test "$cross_compiling" = yes; then |
| 6342 | # Depending upon the size, compute the lo and hi bounds. |
| 6343 | cat >conftest.$ac_ext <<_ACEOF |
| 6344 | #line $LINENO "configure" |
| 6345 | #include "confdefs.h" |
| 6346 | $ac_includes_default |
| 6347 | #ifdef F77_DUMMY_MAIN |
| 6348 | # ifdef __cplusplus |
| 6349 | extern "C" |
| 6350 | # endif |
| 6351 | int F77_DUMMY_MAIN() { return 1; } |
| 6352 | #endif |
| 6353 | int |
| 6354 | main () |
| 6355 | { |
| 6356 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
| 6357 | test_array [0] = 0 |
| 6358 | |
| 6359 | ; |
| 6360 | return 0; |
| 6361 | } |
| 6362 | _ACEOF |
| 6363 | rm -f conftest.$ac_objext |
| 6364 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6365 | (eval $ac_compile) 2>&5 |
| 6366 | ac_status=$? |
| 6367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6368 | (exit $ac_status); } && |
| 6369 | { ac_try='test -s conftest.$ac_objext' |
| 6370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6371 | (eval $ac_try) 2>&5 |
| 6372 | ac_status=$? |
| 6373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6374 | (exit $ac_status); }; }; then |
| 6375 | ac_lo=0 ac_mid=0 |
| 6376 | while :; do |
| 6377 | cat >conftest.$ac_ext <<_ACEOF |
| 6378 | #line $LINENO "configure" |
| 6379 | #include "confdefs.h" |
| 6380 | $ac_includes_default |
| 6381 | #ifdef F77_DUMMY_MAIN |
| 6382 | # ifdef __cplusplus |
| 6383 | extern "C" |
| 6384 | # endif |
| 6385 | int F77_DUMMY_MAIN() { return 1; } |
| 6386 | #endif |
| 6387 | int |
| 6388 | main () |
| 6389 | { |
| 6390 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 6391 | test_array [0] = 0 |
| 6392 | |
| 6393 | ; |
| 6394 | return 0; |
| 6395 | } |
| 6396 | _ACEOF |
| 6397 | rm -f conftest.$ac_objext |
| 6398 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6399 | (eval $ac_compile) 2>&5 |
| 6400 | ac_status=$? |
| 6401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6402 | (exit $ac_status); } && |
| 6403 | { ac_try='test -s conftest.$ac_objext' |
| 6404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6405 | (eval $ac_try) 2>&5 |
| 6406 | ac_status=$? |
| 6407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6408 | (exit $ac_status); }; }; then |
| 6409 | ac_hi=$ac_mid; break |
| 6410 | else |
| 6411 | echo "$as_me: failed program was:" >&5 |
| 6412 | cat conftest.$ac_ext >&5 |
| 6413 | ac_lo=`expr $ac_mid + 1` |
| 6414 | if test $ac_lo -le $ac_mid; then |
| 6415 | ac_lo= ac_hi= |
| 6416 | break |
| 6417 | fi |
| 6418 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6419 | fi |
| 6420 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6421 | done |
| 6422 | else |
| 6423 | echo "$as_me: failed program was:" >&5 |
| 6424 | cat conftest.$ac_ext >&5 |
| 6425 | cat >conftest.$ac_ext <<_ACEOF |
| 6426 | #line $LINENO "configure" |
| 6427 | #include "confdefs.h" |
| 6428 | $ac_includes_default |
| 6429 | #ifdef F77_DUMMY_MAIN |
| 6430 | # ifdef __cplusplus |
| 6431 | extern "C" |
| 6432 | # endif |
| 6433 | int F77_DUMMY_MAIN() { return 1; } |
| 6434 | #endif |
| 6435 | int |
| 6436 | main () |
| 6437 | { |
| 6438 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
| 6439 | test_array [0] = 0 |
| 6440 | |
| 6441 | ; |
| 6442 | return 0; |
| 6443 | } |
| 6444 | _ACEOF |
| 6445 | rm -f conftest.$ac_objext |
| 6446 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6447 | (eval $ac_compile) 2>&5 |
| 6448 | ac_status=$? |
| 6449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6450 | (exit $ac_status); } && |
| 6451 | { ac_try='test -s conftest.$ac_objext' |
| 6452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6453 | (eval $ac_try) 2>&5 |
| 6454 | ac_status=$? |
| 6455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6456 | (exit $ac_status); }; }; then |
| 6457 | ac_hi=-1 ac_mid=-1 |
| 6458 | while :; do |
| 6459 | cat >conftest.$ac_ext <<_ACEOF |
| 6460 | #line $LINENO "configure" |
| 6461 | #include "confdefs.h" |
| 6462 | $ac_includes_default |
| 6463 | #ifdef F77_DUMMY_MAIN |
| 6464 | # ifdef __cplusplus |
| 6465 | extern "C" |
| 6466 | # endif |
| 6467 | int F77_DUMMY_MAIN() { return 1; } |
| 6468 | #endif |
| 6469 | int |
| 6470 | main () |
| 6471 | { |
| 6472 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
| 6473 | test_array [0] = 0 |
| 6474 | |
| 6475 | ; |
| 6476 | return 0; |
| 6477 | } |
| 6478 | _ACEOF |
| 6479 | rm -f conftest.$ac_objext |
| 6480 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6481 | (eval $ac_compile) 2>&5 |
| 6482 | ac_status=$? |
| 6483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6484 | (exit $ac_status); } && |
| 6485 | { ac_try='test -s conftest.$ac_objext' |
| 6486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6487 | (eval $ac_try) 2>&5 |
| 6488 | ac_status=$? |
| 6489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6490 | (exit $ac_status); }; }; then |
| 6491 | ac_lo=$ac_mid; break |
| 6492 | else |
| 6493 | echo "$as_me: failed program was:" >&5 |
| 6494 | cat conftest.$ac_ext >&5 |
| 6495 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6496 | if test $ac_mid -le $ac_hi; then |
| 6497 | ac_lo= ac_hi= |
| 6498 | break |
| 6499 | fi |
| 6500 | ac_mid=`expr 2 '*' $ac_mid` |
| 6501 | fi |
| 6502 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6503 | done |
| 6504 | else |
| 6505 | echo "$as_me: failed program was:" >&5 |
| 6506 | cat conftest.$ac_ext >&5 |
| 6507 | ac_lo= ac_hi= |
| 6508 | fi |
| 6509 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6510 | fi |
| 6511 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6512 | # Binary search between lo and hi bounds. |
| 6513 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6514 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6515 | cat >conftest.$ac_ext <<_ACEOF |
| 6516 | #line $LINENO "configure" |
| 6517 | #include "confdefs.h" |
| 6518 | $ac_includes_default |
| 6519 | #ifdef F77_DUMMY_MAIN |
| 6520 | # ifdef __cplusplus |
| 6521 | extern "C" |
| 6522 | # endif |
| 6523 | int F77_DUMMY_MAIN() { return 1; } |
| 6524 | #endif |
| 6525 | int |
| 6526 | main () |
| 6527 | { |
| 6528 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
| 6529 | test_array [0] = 0 |
| 6530 | |
| 6531 | ; |
| 6532 | return 0; |
| 6533 | } |
| 6534 | _ACEOF |
| 6535 | rm -f conftest.$ac_objext |
| 6536 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6537 | (eval $ac_compile) 2>&5 |
| 6538 | ac_status=$? |
| 6539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6540 | (exit $ac_status); } && |
| 6541 | { ac_try='test -s conftest.$ac_objext' |
| 6542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6543 | (eval $ac_try) 2>&5 |
| 6544 | ac_status=$? |
| 6545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6546 | (exit $ac_status); }; }; then |
| 6547 | ac_hi=$ac_mid |
| 6548 | else |
| 6549 | echo "$as_me: failed program was:" >&5 |
| 6550 | cat conftest.$ac_ext >&5 |
| 6551 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6552 | fi |
| 6553 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6554 | done |
| 6555 | case $ac_lo in |
| 6556 | ?*) ac_cv_sizeof_char=$ac_lo;; |
| 6557 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 |
| 6558 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} |
| 6559 | { (exit 1); exit 1; }; } ;; |
| 6560 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6561 | else |
| 6562 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6563 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6564 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6565 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6566 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6567 | cat >conftest.$ac_ext <<_ACEOF |
| 6568 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6569 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6570 | $ac_includes_default |
| 6571 | long longval () { return (long) (sizeof (char)); } |
| 6572 | unsigned long ulongval () { return (long) (sizeof (char)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6573 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6574 | #include <stdlib.h> |
| 6575 | #ifdef F77_DUMMY_MAIN |
| 6576 | # ifdef __cplusplus |
| 6577 | extern "C" |
| 6578 | # endif |
| 6579 | int F77_DUMMY_MAIN() { return 1; } |
| 6580 | #endif |
| 6581 | int |
| 6582 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6583 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6584 | |
| 6585 | FILE *f = fopen ("conftest.val", "w"); |
| 6586 | if (! f) |
| 6587 | exit (1); |
| 6588 | if (((long) (sizeof (char))) < 0) |
| 6589 | { |
| 6590 | long i = longval (); |
| 6591 | if (i != ((long) (sizeof (char)))) |
| 6592 | exit (1); |
| 6593 | fprintf (f, "%ld\n", i); |
| 6594 | } |
| 6595 | else |
| 6596 | { |
| 6597 | unsigned long i = ulongval (); |
| 6598 | if (i != ((long) (sizeof (char)))) |
| 6599 | exit (1); |
| 6600 | fprintf (f, "%lu\n", i); |
| 6601 | } |
| 6602 | exit (ferror (f) || fclose (f) != 0); |
| 6603 | |
| 6604 | ; |
| 6605 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6606 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6607 | _ACEOF |
| 6608 | rm -f conftest$ac_exeext |
| 6609 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6610 | (eval $ac_link) 2>&5 |
| 6611 | ac_status=$? |
| 6612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6613 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6615 | (eval $ac_try) 2>&5 |
| 6616 | ac_status=$? |
| 6617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6618 | (exit $ac_status); }; }; then |
| 6619 | ac_cv_sizeof_char=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6620 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6621 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6622 | echo "$as_me: failed program was:" >&5 |
| 6623 | cat conftest.$ac_ext >&5 |
| 6624 | ( exit $ac_status ) |
| 6625 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5 |
| 6626 | echo "$as_me: error: cannot compute sizeof (char), 77" >&2;} |
| 6627 | { (exit 1); exit 1; }; } |
| 6628 | fi |
| 6629 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6630 | fi |
| 6631 | fi |
| 6632 | rm -f conftest.val |
| 6633 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6634 | ac_cv_sizeof_char=0 |
| 6635 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6636 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6637 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
| 6638 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 |
| 6639 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6640 | #define SIZEOF_CHAR $ac_cv_sizeof_char |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6641 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6642 | |
| 6643 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6644 | echo "$as_me:$LINENO: checking for short" >&5 |
| 6645 | echo $ECHO_N "checking for short... $ECHO_C" >&6 |
| 6646 | if test "${ac_cv_type_short+set}" = set; then |
| 6647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6648 | else |
| 6649 | cat >conftest.$ac_ext <<_ACEOF |
| 6650 | #line $LINENO "configure" |
| 6651 | #include "confdefs.h" |
| 6652 | $ac_includes_default |
| 6653 | #ifdef F77_DUMMY_MAIN |
| 6654 | # ifdef __cplusplus |
| 6655 | extern "C" |
| 6656 | # endif |
| 6657 | int F77_DUMMY_MAIN() { return 1; } |
| 6658 | #endif |
| 6659 | int |
| 6660 | main () |
| 6661 | { |
| 6662 | if ((short *) 0) |
| 6663 | return 0; |
| 6664 | if (sizeof (short)) |
| 6665 | return 0; |
| 6666 | ; |
| 6667 | return 0; |
| 6668 | } |
| 6669 | _ACEOF |
| 6670 | rm -f conftest.$ac_objext |
| 6671 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6672 | (eval $ac_compile) 2>&5 |
| 6673 | ac_status=$? |
| 6674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6675 | (exit $ac_status); } && |
| 6676 | { ac_try='test -s conftest.$ac_objext' |
| 6677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6678 | (eval $ac_try) 2>&5 |
| 6679 | ac_status=$? |
| 6680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6681 | (exit $ac_status); }; }; then |
| 6682 | ac_cv_type_short=yes |
| 6683 | else |
| 6684 | echo "$as_me: failed program was:" >&5 |
| 6685 | cat conftest.$ac_ext >&5 |
| 6686 | ac_cv_type_short=no |
| 6687 | fi |
| 6688 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6689 | fi |
| 6690 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
| 6691 | echo "${ECHO_T}$ac_cv_type_short" >&6 |
| 6692 | |
| 6693 | echo "$as_me:$LINENO: checking size of short" >&5 |
| 6694 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 |
| 6695 | if test "${ac_cv_sizeof_short+set}" = set; then |
| 6696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 6697 | else |
| 6698 | if test "$ac_cv_type_short" = yes; then |
| 6699 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 6700 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 6701 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 6702 | # This bug is HP SR number 8606223364. |
| 6703 | if test "$cross_compiling" = yes; then |
| 6704 | # Depending upon the size, compute the lo and hi bounds. |
| 6705 | cat >conftest.$ac_ext <<_ACEOF |
| 6706 | #line $LINENO "configure" |
| 6707 | #include "confdefs.h" |
| 6708 | $ac_includes_default |
| 6709 | #ifdef F77_DUMMY_MAIN |
| 6710 | # ifdef __cplusplus |
| 6711 | extern "C" |
| 6712 | # endif |
| 6713 | int F77_DUMMY_MAIN() { return 1; } |
| 6714 | #endif |
| 6715 | int |
| 6716 | main () |
| 6717 | { |
| 6718 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
| 6719 | test_array [0] = 0 |
| 6720 | |
| 6721 | ; |
| 6722 | return 0; |
| 6723 | } |
| 6724 | _ACEOF |
| 6725 | rm -f conftest.$ac_objext |
| 6726 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6727 | (eval $ac_compile) 2>&5 |
| 6728 | ac_status=$? |
| 6729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6730 | (exit $ac_status); } && |
| 6731 | { ac_try='test -s conftest.$ac_objext' |
| 6732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6733 | (eval $ac_try) 2>&5 |
| 6734 | ac_status=$? |
| 6735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6736 | (exit $ac_status); }; }; then |
| 6737 | ac_lo=0 ac_mid=0 |
| 6738 | while :; do |
| 6739 | cat >conftest.$ac_ext <<_ACEOF |
| 6740 | #line $LINENO "configure" |
| 6741 | #include "confdefs.h" |
| 6742 | $ac_includes_default |
| 6743 | #ifdef F77_DUMMY_MAIN |
| 6744 | # ifdef __cplusplus |
| 6745 | extern "C" |
| 6746 | # endif |
| 6747 | int F77_DUMMY_MAIN() { return 1; } |
| 6748 | #endif |
| 6749 | int |
| 6750 | main () |
| 6751 | { |
| 6752 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 6753 | test_array [0] = 0 |
| 6754 | |
| 6755 | ; |
| 6756 | return 0; |
| 6757 | } |
| 6758 | _ACEOF |
| 6759 | rm -f conftest.$ac_objext |
| 6760 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6761 | (eval $ac_compile) 2>&5 |
| 6762 | ac_status=$? |
| 6763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6764 | (exit $ac_status); } && |
| 6765 | { ac_try='test -s conftest.$ac_objext' |
| 6766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6767 | (eval $ac_try) 2>&5 |
| 6768 | ac_status=$? |
| 6769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6770 | (exit $ac_status); }; }; then |
| 6771 | ac_hi=$ac_mid; break |
| 6772 | else |
| 6773 | echo "$as_me: failed program was:" >&5 |
| 6774 | cat conftest.$ac_ext >&5 |
| 6775 | ac_lo=`expr $ac_mid + 1` |
| 6776 | if test $ac_lo -le $ac_mid; then |
| 6777 | ac_lo= ac_hi= |
| 6778 | break |
| 6779 | fi |
| 6780 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 6781 | fi |
| 6782 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6783 | done |
| 6784 | else |
| 6785 | echo "$as_me: failed program was:" >&5 |
| 6786 | cat conftest.$ac_ext >&5 |
| 6787 | cat >conftest.$ac_ext <<_ACEOF |
| 6788 | #line $LINENO "configure" |
| 6789 | #include "confdefs.h" |
| 6790 | $ac_includes_default |
| 6791 | #ifdef F77_DUMMY_MAIN |
| 6792 | # ifdef __cplusplus |
| 6793 | extern "C" |
| 6794 | # endif |
| 6795 | int F77_DUMMY_MAIN() { return 1; } |
| 6796 | #endif |
| 6797 | int |
| 6798 | main () |
| 6799 | { |
| 6800 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
| 6801 | test_array [0] = 0 |
| 6802 | |
| 6803 | ; |
| 6804 | return 0; |
| 6805 | } |
| 6806 | _ACEOF |
| 6807 | rm -f conftest.$ac_objext |
| 6808 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6809 | (eval $ac_compile) 2>&5 |
| 6810 | ac_status=$? |
| 6811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6812 | (exit $ac_status); } && |
| 6813 | { ac_try='test -s conftest.$ac_objext' |
| 6814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6815 | (eval $ac_try) 2>&5 |
| 6816 | ac_status=$? |
| 6817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6818 | (exit $ac_status); }; }; then |
| 6819 | ac_hi=-1 ac_mid=-1 |
| 6820 | while :; do |
| 6821 | cat >conftest.$ac_ext <<_ACEOF |
| 6822 | #line $LINENO "configure" |
| 6823 | #include "confdefs.h" |
| 6824 | $ac_includes_default |
| 6825 | #ifdef F77_DUMMY_MAIN |
| 6826 | # ifdef __cplusplus |
| 6827 | extern "C" |
| 6828 | # endif |
| 6829 | int F77_DUMMY_MAIN() { return 1; } |
| 6830 | #endif |
| 6831 | int |
| 6832 | main () |
| 6833 | { |
| 6834 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
| 6835 | test_array [0] = 0 |
| 6836 | |
| 6837 | ; |
| 6838 | return 0; |
| 6839 | } |
| 6840 | _ACEOF |
| 6841 | rm -f conftest.$ac_objext |
| 6842 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6843 | (eval $ac_compile) 2>&5 |
| 6844 | ac_status=$? |
| 6845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6846 | (exit $ac_status); } && |
| 6847 | { ac_try='test -s conftest.$ac_objext' |
| 6848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6849 | (eval $ac_try) 2>&5 |
| 6850 | ac_status=$? |
| 6851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6852 | (exit $ac_status); }; }; then |
| 6853 | ac_lo=$ac_mid; break |
| 6854 | else |
| 6855 | echo "$as_me: failed program was:" >&5 |
| 6856 | cat conftest.$ac_ext >&5 |
| 6857 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 6858 | if test $ac_mid -le $ac_hi; then |
| 6859 | ac_lo= ac_hi= |
| 6860 | break |
| 6861 | fi |
| 6862 | ac_mid=`expr 2 '*' $ac_mid` |
| 6863 | fi |
| 6864 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6865 | done |
| 6866 | else |
| 6867 | echo "$as_me: failed program was:" >&5 |
| 6868 | cat conftest.$ac_ext >&5 |
| 6869 | ac_lo= ac_hi= |
| 6870 | fi |
| 6871 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6872 | fi |
| 6873 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6874 | # Binary search between lo and hi bounds. |
| 6875 | while test "x$ac_lo" != "x$ac_hi"; do |
| 6876 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 6877 | cat >conftest.$ac_ext <<_ACEOF |
| 6878 | #line $LINENO "configure" |
| 6879 | #include "confdefs.h" |
| 6880 | $ac_includes_default |
| 6881 | #ifdef F77_DUMMY_MAIN |
| 6882 | # ifdef __cplusplus |
| 6883 | extern "C" |
| 6884 | # endif |
| 6885 | int F77_DUMMY_MAIN() { return 1; } |
| 6886 | #endif |
| 6887 | int |
| 6888 | main () |
| 6889 | { |
| 6890 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
| 6891 | test_array [0] = 0 |
| 6892 | |
| 6893 | ; |
| 6894 | return 0; |
| 6895 | } |
| 6896 | _ACEOF |
| 6897 | rm -f conftest.$ac_objext |
| 6898 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 6899 | (eval $ac_compile) 2>&5 |
| 6900 | ac_status=$? |
| 6901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6902 | (exit $ac_status); } && |
| 6903 | { ac_try='test -s conftest.$ac_objext' |
| 6904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6905 | (eval $ac_try) 2>&5 |
| 6906 | ac_status=$? |
| 6907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6908 | (exit $ac_status); }; }; then |
| 6909 | ac_hi=$ac_mid |
| 6910 | else |
| 6911 | echo "$as_me: failed program was:" >&5 |
| 6912 | cat conftest.$ac_ext >&5 |
| 6913 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 6914 | fi |
| 6915 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 6916 | done |
| 6917 | case $ac_lo in |
| 6918 | ?*) ac_cv_sizeof_short=$ac_lo;; |
| 6919 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 |
| 6920 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} |
| 6921 | { (exit 1); exit 1; }; } ;; |
| 6922 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6923 | else |
| 6924 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6925 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 6926 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 6927 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6928 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6929 | cat >conftest.$ac_ext <<_ACEOF |
| 6930 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6931 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6932 | $ac_includes_default |
| 6933 | long longval () { return (long) (sizeof (short)); } |
| 6934 | unsigned long ulongval () { return (long) (sizeof (short)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 6935 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6936 | #include <stdlib.h> |
| 6937 | #ifdef F77_DUMMY_MAIN |
| 6938 | # ifdef __cplusplus |
| 6939 | extern "C" |
| 6940 | # endif |
| 6941 | int F77_DUMMY_MAIN() { return 1; } |
| 6942 | #endif |
| 6943 | int |
| 6944 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6945 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6946 | |
| 6947 | FILE *f = fopen ("conftest.val", "w"); |
| 6948 | if (! f) |
| 6949 | exit (1); |
| 6950 | if (((long) (sizeof (short))) < 0) |
| 6951 | { |
| 6952 | long i = longval (); |
| 6953 | if (i != ((long) (sizeof (short)))) |
| 6954 | exit (1); |
| 6955 | fprintf (f, "%ld\n", i); |
| 6956 | } |
| 6957 | else |
| 6958 | { |
| 6959 | unsigned long i = ulongval (); |
| 6960 | if (i != ((long) (sizeof (short)))) |
| 6961 | exit (1); |
| 6962 | fprintf (f, "%lu\n", i); |
| 6963 | } |
| 6964 | exit (ferror (f) || fclose (f) != 0); |
| 6965 | |
| 6966 | ; |
| 6967 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6968 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6969 | _ACEOF |
| 6970 | rm -f conftest$ac_exeext |
| 6971 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 6972 | (eval $ac_link) 2>&5 |
| 6973 | ac_status=$? |
| 6974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6975 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 6976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 6977 | (eval $ac_try) 2>&5 |
| 6978 | ac_status=$? |
| 6979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 6980 | (exit $ac_status); }; }; then |
| 6981 | ac_cv_sizeof_short=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6982 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6983 | echo "$as_me: program exited with status $ac_status" >&5 |
| 6984 | echo "$as_me: failed program was:" >&5 |
| 6985 | cat conftest.$ac_ext >&5 |
| 6986 | ( exit $ac_status ) |
| 6987 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5 |
| 6988 | echo "$as_me: error: cannot compute sizeof (short), 77" >&2;} |
| 6989 | { (exit 1); exit 1; }; } |
| 6990 | fi |
| 6991 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 6992 | fi |
| 6993 | fi |
| 6994 | rm -f conftest.val |
| 6995 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6996 | ac_cv_sizeof_short=0 |
| 6997 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 6998 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 6999 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
| 7000 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 |
| 7001 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7002 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7003 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7004 | |
| 7005 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7006 | echo "$as_me:$LINENO: checking for float" >&5 |
| 7007 | echo $ECHO_N "checking for float... $ECHO_C" >&6 |
| 7008 | if test "${ac_cv_type_float+set}" = set; then |
| 7009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7010 | else |
| 7011 | cat >conftest.$ac_ext <<_ACEOF |
| 7012 | #line $LINENO "configure" |
| 7013 | #include "confdefs.h" |
| 7014 | $ac_includes_default |
| 7015 | #ifdef F77_DUMMY_MAIN |
| 7016 | # ifdef __cplusplus |
| 7017 | extern "C" |
| 7018 | # endif |
| 7019 | int F77_DUMMY_MAIN() { return 1; } |
| 7020 | #endif |
| 7021 | int |
| 7022 | main () |
| 7023 | { |
| 7024 | if ((float *) 0) |
| 7025 | return 0; |
| 7026 | if (sizeof (float)) |
| 7027 | return 0; |
| 7028 | ; |
| 7029 | return 0; |
| 7030 | } |
| 7031 | _ACEOF |
| 7032 | rm -f conftest.$ac_objext |
| 7033 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7034 | (eval $ac_compile) 2>&5 |
| 7035 | ac_status=$? |
| 7036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7037 | (exit $ac_status); } && |
| 7038 | { ac_try='test -s conftest.$ac_objext' |
| 7039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7040 | (eval $ac_try) 2>&5 |
| 7041 | ac_status=$? |
| 7042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7043 | (exit $ac_status); }; }; then |
| 7044 | ac_cv_type_float=yes |
| 7045 | else |
| 7046 | echo "$as_me: failed program was:" >&5 |
| 7047 | cat conftest.$ac_ext >&5 |
| 7048 | ac_cv_type_float=no |
| 7049 | fi |
| 7050 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7051 | fi |
| 7052 | echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5 |
| 7053 | echo "${ECHO_T}$ac_cv_type_float" >&6 |
| 7054 | |
| 7055 | echo "$as_me:$LINENO: checking size of float" >&5 |
| 7056 | echo $ECHO_N "checking size of float... $ECHO_C" >&6 |
| 7057 | if test "${ac_cv_sizeof_float+set}" = set; then |
| 7058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7059 | else |
| 7060 | if test "$ac_cv_type_float" = yes; then |
| 7061 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7062 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7063 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7064 | # This bug is HP SR number 8606223364. |
| 7065 | if test "$cross_compiling" = yes; then |
| 7066 | # Depending upon the size, compute the lo and hi bounds. |
| 7067 | cat >conftest.$ac_ext <<_ACEOF |
| 7068 | #line $LINENO "configure" |
| 7069 | #include "confdefs.h" |
| 7070 | $ac_includes_default |
| 7071 | #ifdef F77_DUMMY_MAIN |
| 7072 | # ifdef __cplusplus |
| 7073 | extern "C" |
| 7074 | # endif |
| 7075 | int F77_DUMMY_MAIN() { return 1; } |
| 7076 | #endif |
| 7077 | int |
| 7078 | main () |
| 7079 | { |
| 7080 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)]; |
| 7081 | test_array [0] = 0 |
| 7082 | |
| 7083 | ; |
| 7084 | return 0; |
| 7085 | } |
| 7086 | _ACEOF |
| 7087 | rm -f conftest.$ac_objext |
| 7088 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7089 | (eval $ac_compile) 2>&5 |
| 7090 | ac_status=$? |
| 7091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7092 | (exit $ac_status); } && |
| 7093 | { ac_try='test -s conftest.$ac_objext' |
| 7094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7095 | (eval $ac_try) 2>&5 |
| 7096 | ac_status=$? |
| 7097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7098 | (exit $ac_status); }; }; then |
| 7099 | ac_lo=0 ac_mid=0 |
| 7100 | while :; do |
| 7101 | cat >conftest.$ac_ext <<_ACEOF |
| 7102 | #line $LINENO "configure" |
| 7103 | #include "confdefs.h" |
| 7104 | $ac_includes_default |
| 7105 | #ifdef F77_DUMMY_MAIN |
| 7106 | # ifdef __cplusplus |
| 7107 | extern "C" |
| 7108 | # endif |
| 7109 | int F77_DUMMY_MAIN() { return 1; } |
| 7110 | #endif |
| 7111 | int |
| 7112 | main () |
| 7113 | { |
| 7114 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 7115 | test_array [0] = 0 |
| 7116 | |
| 7117 | ; |
| 7118 | return 0; |
| 7119 | } |
| 7120 | _ACEOF |
| 7121 | rm -f conftest.$ac_objext |
| 7122 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7123 | (eval $ac_compile) 2>&5 |
| 7124 | ac_status=$? |
| 7125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7126 | (exit $ac_status); } && |
| 7127 | { ac_try='test -s conftest.$ac_objext' |
| 7128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7129 | (eval $ac_try) 2>&5 |
| 7130 | ac_status=$? |
| 7131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7132 | (exit $ac_status); }; }; then |
| 7133 | ac_hi=$ac_mid; break |
| 7134 | else |
| 7135 | echo "$as_me: failed program was:" >&5 |
| 7136 | cat conftest.$ac_ext >&5 |
| 7137 | ac_lo=`expr $ac_mid + 1` |
| 7138 | if test $ac_lo -le $ac_mid; then |
| 7139 | ac_lo= ac_hi= |
| 7140 | break |
| 7141 | fi |
| 7142 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7143 | fi |
| 7144 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7145 | done |
| 7146 | else |
| 7147 | echo "$as_me: failed program was:" >&5 |
| 7148 | cat conftest.$ac_ext >&5 |
| 7149 | cat >conftest.$ac_ext <<_ACEOF |
| 7150 | #line $LINENO "configure" |
| 7151 | #include "confdefs.h" |
| 7152 | $ac_includes_default |
| 7153 | #ifdef F77_DUMMY_MAIN |
| 7154 | # ifdef __cplusplus |
| 7155 | extern "C" |
| 7156 | # endif |
| 7157 | int F77_DUMMY_MAIN() { return 1; } |
| 7158 | #endif |
| 7159 | int |
| 7160 | main () |
| 7161 | { |
| 7162 | static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)]; |
| 7163 | test_array [0] = 0 |
| 7164 | |
| 7165 | ; |
| 7166 | return 0; |
| 7167 | } |
| 7168 | _ACEOF |
| 7169 | rm -f conftest.$ac_objext |
| 7170 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7171 | (eval $ac_compile) 2>&5 |
| 7172 | ac_status=$? |
| 7173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7174 | (exit $ac_status); } && |
| 7175 | { ac_try='test -s conftest.$ac_objext' |
| 7176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7177 | (eval $ac_try) 2>&5 |
| 7178 | ac_status=$? |
| 7179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7180 | (exit $ac_status); }; }; then |
| 7181 | ac_hi=-1 ac_mid=-1 |
| 7182 | while :; do |
| 7183 | cat >conftest.$ac_ext <<_ACEOF |
| 7184 | #line $LINENO "configure" |
| 7185 | #include "confdefs.h" |
| 7186 | $ac_includes_default |
| 7187 | #ifdef F77_DUMMY_MAIN |
| 7188 | # ifdef __cplusplus |
| 7189 | extern "C" |
| 7190 | # endif |
| 7191 | int F77_DUMMY_MAIN() { return 1; } |
| 7192 | #endif |
| 7193 | int |
| 7194 | main () |
| 7195 | { |
| 7196 | static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)]; |
| 7197 | test_array [0] = 0 |
| 7198 | |
| 7199 | ; |
| 7200 | return 0; |
| 7201 | } |
| 7202 | _ACEOF |
| 7203 | rm -f conftest.$ac_objext |
| 7204 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7205 | (eval $ac_compile) 2>&5 |
| 7206 | ac_status=$? |
| 7207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7208 | (exit $ac_status); } && |
| 7209 | { ac_try='test -s conftest.$ac_objext' |
| 7210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7211 | (eval $ac_try) 2>&5 |
| 7212 | ac_status=$? |
| 7213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7214 | (exit $ac_status); }; }; then |
| 7215 | ac_lo=$ac_mid; break |
| 7216 | else |
| 7217 | echo "$as_me: failed program was:" >&5 |
| 7218 | cat conftest.$ac_ext >&5 |
| 7219 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7220 | if test $ac_mid -le $ac_hi; then |
| 7221 | ac_lo= ac_hi= |
| 7222 | break |
| 7223 | fi |
| 7224 | ac_mid=`expr 2 '*' $ac_mid` |
| 7225 | fi |
| 7226 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7227 | done |
| 7228 | else |
| 7229 | echo "$as_me: failed program was:" >&5 |
| 7230 | cat conftest.$ac_ext >&5 |
| 7231 | ac_lo= ac_hi= |
| 7232 | fi |
| 7233 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7234 | fi |
| 7235 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7236 | # Binary search between lo and hi bounds. |
| 7237 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7238 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7239 | cat >conftest.$ac_ext <<_ACEOF |
| 7240 | #line $LINENO "configure" |
| 7241 | #include "confdefs.h" |
| 7242 | $ac_includes_default |
| 7243 | #ifdef F77_DUMMY_MAIN |
| 7244 | # ifdef __cplusplus |
| 7245 | extern "C" |
| 7246 | # endif |
| 7247 | int F77_DUMMY_MAIN() { return 1; } |
| 7248 | #endif |
| 7249 | int |
| 7250 | main () |
| 7251 | { |
| 7252 | static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)]; |
| 7253 | test_array [0] = 0 |
| 7254 | |
| 7255 | ; |
| 7256 | return 0; |
| 7257 | } |
| 7258 | _ACEOF |
| 7259 | rm -f conftest.$ac_objext |
| 7260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7261 | (eval $ac_compile) 2>&5 |
| 7262 | ac_status=$? |
| 7263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7264 | (exit $ac_status); } && |
| 7265 | { ac_try='test -s conftest.$ac_objext' |
| 7266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7267 | (eval $ac_try) 2>&5 |
| 7268 | ac_status=$? |
| 7269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7270 | (exit $ac_status); }; }; then |
| 7271 | ac_hi=$ac_mid |
| 7272 | else |
| 7273 | echo "$as_me: failed program was:" >&5 |
| 7274 | cat conftest.$ac_ext >&5 |
| 7275 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7276 | fi |
| 7277 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7278 | done |
| 7279 | case $ac_lo in |
| 7280 | ?*) ac_cv_sizeof_float=$ac_lo;; |
| 7281 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5 |
| 7282 | echo "$as_me: error: cannot compute sizeof (float), 77" >&2;} |
| 7283 | { (exit 1); exit 1; }; } ;; |
| 7284 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7285 | else |
| 7286 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7287 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7288 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7289 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7290 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7291 | cat >conftest.$ac_ext <<_ACEOF |
| 7292 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7293 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7294 | $ac_includes_default |
| 7295 | long longval () { return (long) (sizeof (float)); } |
| 7296 | unsigned long ulongval () { return (long) (sizeof (float)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7297 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7298 | #include <stdlib.h> |
| 7299 | #ifdef F77_DUMMY_MAIN |
| 7300 | # ifdef __cplusplus |
| 7301 | extern "C" |
| 7302 | # endif |
| 7303 | int F77_DUMMY_MAIN() { return 1; } |
| 7304 | #endif |
| 7305 | int |
| 7306 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7307 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7308 | |
| 7309 | FILE *f = fopen ("conftest.val", "w"); |
| 7310 | if (! f) |
| 7311 | exit (1); |
| 7312 | if (((long) (sizeof (float))) < 0) |
| 7313 | { |
| 7314 | long i = longval (); |
| 7315 | if (i != ((long) (sizeof (float)))) |
| 7316 | exit (1); |
| 7317 | fprintf (f, "%ld\n", i); |
| 7318 | } |
| 7319 | else |
| 7320 | { |
| 7321 | unsigned long i = ulongval (); |
| 7322 | if (i != ((long) (sizeof (float)))) |
| 7323 | exit (1); |
| 7324 | fprintf (f, "%lu\n", i); |
| 7325 | } |
| 7326 | exit (ferror (f) || fclose (f) != 0); |
| 7327 | |
| 7328 | ; |
| 7329 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7330 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7331 | _ACEOF |
| 7332 | rm -f conftest$ac_exeext |
| 7333 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7334 | (eval $ac_link) 2>&5 |
| 7335 | ac_status=$? |
| 7336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7337 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7339 | (eval $ac_try) 2>&5 |
| 7340 | ac_status=$? |
| 7341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7342 | (exit $ac_status); }; }; then |
| 7343 | ac_cv_sizeof_float=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7344 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7345 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7346 | echo "$as_me: failed program was:" >&5 |
| 7347 | cat conftest.$ac_ext >&5 |
| 7348 | ( exit $ac_status ) |
| 7349 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77" >&5 |
| 7350 | echo "$as_me: error: cannot compute sizeof (float), 77" >&2;} |
| 7351 | { (exit 1); exit 1; }; } |
| 7352 | fi |
| 7353 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7354 | fi |
| 7355 | fi |
| 7356 | rm -f conftest.val |
| 7357 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7358 | ac_cv_sizeof_float=0 |
| 7359 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7360 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7361 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5 |
| 7362 | echo "${ECHO_T}$ac_cv_sizeof_float" >&6 |
| 7363 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7364 | #define SIZEOF_FLOAT $ac_cv_sizeof_float |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7365 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7366 | |
| 7367 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7368 | echo "$as_me:$LINENO: checking for double" >&5 |
| 7369 | echo $ECHO_N "checking for double... $ECHO_C" >&6 |
| 7370 | if test "${ac_cv_type_double+set}" = set; then |
| 7371 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7372 | else |
| 7373 | cat >conftest.$ac_ext <<_ACEOF |
| 7374 | #line $LINENO "configure" |
| 7375 | #include "confdefs.h" |
| 7376 | $ac_includes_default |
| 7377 | #ifdef F77_DUMMY_MAIN |
| 7378 | # ifdef __cplusplus |
| 7379 | extern "C" |
| 7380 | # endif |
| 7381 | int F77_DUMMY_MAIN() { return 1; } |
| 7382 | #endif |
| 7383 | int |
| 7384 | main () |
| 7385 | { |
| 7386 | if ((double *) 0) |
| 7387 | return 0; |
| 7388 | if (sizeof (double)) |
| 7389 | return 0; |
| 7390 | ; |
| 7391 | return 0; |
| 7392 | } |
| 7393 | _ACEOF |
| 7394 | rm -f conftest.$ac_objext |
| 7395 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7396 | (eval $ac_compile) 2>&5 |
| 7397 | ac_status=$? |
| 7398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7399 | (exit $ac_status); } && |
| 7400 | { ac_try='test -s conftest.$ac_objext' |
| 7401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7402 | (eval $ac_try) 2>&5 |
| 7403 | ac_status=$? |
| 7404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7405 | (exit $ac_status); }; }; then |
| 7406 | ac_cv_type_double=yes |
| 7407 | else |
| 7408 | echo "$as_me: failed program was:" >&5 |
| 7409 | cat conftest.$ac_ext >&5 |
| 7410 | ac_cv_type_double=no |
| 7411 | fi |
| 7412 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7413 | fi |
| 7414 | echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5 |
| 7415 | echo "${ECHO_T}$ac_cv_type_double" >&6 |
| 7416 | |
| 7417 | echo "$as_me:$LINENO: checking size of double" >&5 |
| 7418 | echo $ECHO_N "checking size of double... $ECHO_C" >&6 |
| 7419 | if test "${ac_cv_sizeof_double+set}" = set; then |
| 7420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7421 | else |
| 7422 | if test "$ac_cv_type_double" = yes; then |
| 7423 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7424 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7425 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7426 | # This bug is HP SR number 8606223364. |
| 7427 | if test "$cross_compiling" = yes; then |
| 7428 | # Depending upon the size, compute the lo and hi bounds. |
| 7429 | cat >conftest.$ac_ext <<_ACEOF |
| 7430 | #line $LINENO "configure" |
| 7431 | #include "confdefs.h" |
| 7432 | $ac_includes_default |
| 7433 | #ifdef F77_DUMMY_MAIN |
| 7434 | # ifdef __cplusplus |
| 7435 | extern "C" |
| 7436 | # endif |
| 7437 | int F77_DUMMY_MAIN() { return 1; } |
| 7438 | #endif |
| 7439 | int |
| 7440 | main () |
| 7441 | { |
| 7442 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)]; |
| 7443 | test_array [0] = 0 |
| 7444 | |
| 7445 | ; |
| 7446 | return 0; |
| 7447 | } |
| 7448 | _ACEOF |
| 7449 | rm -f conftest.$ac_objext |
| 7450 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7451 | (eval $ac_compile) 2>&5 |
| 7452 | ac_status=$? |
| 7453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7454 | (exit $ac_status); } && |
| 7455 | { ac_try='test -s conftest.$ac_objext' |
| 7456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7457 | (eval $ac_try) 2>&5 |
| 7458 | ac_status=$? |
| 7459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7460 | (exit $ac_status); }; }; then |
| 7461 | ac_lo=0 ac_mid=0 |
| 7462 | while :; do |
| 7463 | cat >conftest.$ac_ext <<_ACEOF |
| 7464 | #line $LINENO "configure" |
| 7465 | #include "confdefs.h" |
| 7466 | $ac_includes_default |
| 7467 | #ifdef F77_DUMMY_MAIN |
| 7468 | # ifdef __cplusplus |
| 7469 | extern "C" |
| 7470 | # endif |
| 7471 | int F77_DUMMY_MAIN() { return 1; } |
| 7472 | #endif |
| 7473 | int |
| 7474 | main () |
| 7475 | { |
| 7476 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 7477 | test_array [0] = 0 |
| 7478 | |
| 7479 | ; |
| 7480 | return 0; |
| 7481 | } |
| 7482 | _ACEOF |
| 7483 | rm -f conftest.$ac_objext |
| 7484 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7485 | (eval $ac_compile) 2>&5 |
| 7486 | ac_status=$? |
| 7487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7488 | (exit $ac_status); } && |
| 7489 | { ac_try='test -s conftest.$ac_objext' |
| 7490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7491 | (eval $ac_try) 2>&5 |
| 7492 | ac_status=$? |
| 7493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7494 | (exit $ac_status); }; }; then |
| 7495 | ac_hi=$ac_mid; break |
| 7496 | else |
| 7497 | echo "$as_me: failed program was:" >&5 |
| 7498 | cat conftest.$ac_ext >&5 |
| 7499 | ac_lo=`expr $ac_mid + 1` |
| 7500 | if test $ac_lo -le $ac_mid; then |
| 7501 | ac_lo= ac_hi= |
| 7502 | break |
| 7503 | fi |
| 7504 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7505 | fi |
| 7506 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7507 | done |
| 7508 | else |
| 7509 | echo "$as_me: failed program was:" >&5 |
| 7510 | cat conftest.$ac_ext >&5 |
| 7511 | cat >conftest.$ac_ext <<_ACEOF |
| 7512 | #line $LINENO "configure" |
| 7513 | #include "confdefs.h" |
| 7514 | $ac_includes_default |
| 7515 | #ifdef F77_DUMMY_MAIN |
| 7516 | # ifdef __cplusplus |
| 7517 | extern "C" |
| 7518 | # endif |
| 7519 | int F77_DUMMY_MAIN() { return 1; } |
| 7520 | #endif |
| 7521 | int |
| 7522 | main () |
| 7523 | { |
| 7524 | static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)]; |
| 7525 | test_array [0] = 0 |
| 7526 | |
| 7527 | ; |
| 7528 | return 0; |
| 7529 | } |
| 7530 | _ACEOF |
| 7531 | rm -f conftest.$ac_objext |
| 7532 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7533 | (eval $ac_compile) 2>&5 |
| 7534 | ac_status=$? |
| 7535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7536 | (exit $ac_status); } && |
| 7537 | { ac_try='test -s conftest.$ac_objext' |
| 7538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7539 | (eval $ac_try) 2>&5 |
| 7540 | ac_status=$? |
| 7541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7542 | (exit $ac_status); }; }; then |
| 7543 | ac_hi=-1 ac_mid=-1 |
| 7544 | while :; do |
| 7545 | cat >conftest.$ac_ext <<_ACEOF |
| 7546 | #line $LINENO "configure" |
| 7547 | #include "confdefs.h" |
| 7548 | $ac_includes_default |
| 7549 | #ifdef F77_DUMMY_MAIN |
| 7550 | # ifdef __cplusplus |
| 7551 | extern "C" |
| 7552 | # endif |
| 7553 | int F77_DUMMY_MAIN() { return 1; } |
| 7554 | #endif |
| 7555 | int |
| 7556 | main () |
| 7557 | { |
| 7558 | static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)]; |
| 7559 | test_array [0] = 0 |
| 7560 | |
| 7561 | ; |
| 7562 | return 0; |
| 7563 | } |
| 7564 | _ACEOF |
| 7565 | rm -f conftest.$ac_objext |
| 7566 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7567 | (eval $ac_compile) 2>&5 |
| 7568 | ac_status=$? |
| 7569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7570 | (exit $ac_status); } && |
| 7571 | { ac_try='test -s conftest.$ac_objext' |
| 7572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7573 | (eval $ac_try) 2>&5 |
| 7574 | ac_status=$? |
| 7575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7576 | (exit $ac_status); }; }; then |
| 7577 | ac_lo=$ac_mid; break |
| 7578 | else |
| 7579 | echo "$as_me: failed program was:" >&5 |
| 7580 | cat conftest.$ac_ext >&5 |
| 7581 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7582 | if test $ac_mid -le $ac_hi; then |
| 7583 | ac_lo= ac_hi= |
| 7584 | break |
| 7585 | fi |
| 7586 | ac_mid=`expr 2 '*' $ac_mid` |
| 7587 | fi |
| 7588 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7589 | done |
| 7590 | else |
| 7591 | echo "$as_me: failed program was:" >&5 |
| 7592 | cat conftest.$ac_ext >&5 |
| 7593 | ac_lo= ac_hi= |
| 7594 | fi |
| 7595 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7596 | fi |
| 7597 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7598 | # Binary search between lo and hi bounds. |
| 7599 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7600 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7601 | cat >conftest.$ac_ext <<_ACEOF |
| 7602 | #line $LINENO "configure" |
| 7603 | #include "confdefs.h" |
| 7604 | $ac_includes_default |
| 7605 | #ifdef F77_DUMMY_MAIN |
| 7606 | # ifdef __cplusplus |
| 7607 | extern "C" |
| 7608 | # endif |
| 7609 | int F77_DUMMY_MAIN() { return 1; } |
| 7610 | #endif |
| 7611 | int |
| 7612 | main () |
| 7613 | { |
| 7614 | static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)]; |
| 7615 | test_array [0] = 0 |
| 7616 | |
| 7617 | ; |
| 7618 | return 0; |
| 7619 | } |
| 7620 | _ACEOF |
| 7621 | rm -f conftest.$ac_objext |
| 7622 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7623 | (eval $ac_compile) 2>&5 |
| 7624 | ac_status=$? |
| 7625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7626 | (exit $ac_status); } && |
| 7627 | { ac_try='test -s conftest.$ac_objext' |
| 7628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7629 | (eval $ac_try) 2>&5 |
| 7630 | ac_status=$? |
| 7631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7632 | (exit $ac_status); }; }; then |
| 7633 | ac_hi=$ac_mid |
| 7634 | else |
| 7635 | echo "$as_me: failed program was:" >&5 |
| 7636 | cat conftest.$ac_ext >&5 |
| 7637 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 7638 | fi |
| 7639 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7640 | done |
| 7641 | case $ac_lo in |
| 7642 | ?*) ac_cv_sizeof_double=$ac_lo;; |
| 7643 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5 |
| 7644 | echo "$as_me: error: cannot compute sizeof (double), 77" >&2;} |
| 7645 | { (exit 1); exit 1; }; } ;; |
| 7646 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7647 | else |
| 7648 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7649 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 7650 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 7651 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7652 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7653 | cat >conftest.$ac_ext <<_ACEOF |
| 7654 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7655 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7656 | $ac_includes_default |
| 7657 | long longval () { return (long) (sizeof (double)); } |
| 7658 | unsigned long ulongval () { return (long) (sizeof (double)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 7659 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7660 | #include <stdlib.h> |
| 7661 | #ifdef F77_DUMMY_MAIN |
| 7662 | # ifdef __cplusplus |
| 7663 | extern "C" |
| 7664 | # endif |
| 7665 | int F77_DUMMY_MAIN() { return 1; } |
| 7666 | #endif |
| 7667 | int |
| 7668 | main () |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7669 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7670 | |
| 7671 | FILE *f = fopen ("conftest.val", "w"); |
| 7672 | if (! f) |
| 7673 | exit (1); |
| 7674 | if (((long) (sizeof (double))) < 0) |
| 7675 | { |
| 7676 | long i = longval (); |
| 7677 | if (i != ((long) (sizeof (double)))) |
| 7678 | exit (1); |
| 7679 | fprintf (f, "%ld\n", i); |
| 7680 | } |
| 7681 | else |
| 7682 | { |
| 7683 | unsigned long i = ulongval (); |
| 7684 | if (i != ((long) (sizeof (double)))) |
| 7685 | exit (1); |
| 7686 | fprintf (f, "%lu\n", i); |
| 7687 | } |
| 7688 | exit (ferror (f) || fclose (f) != 0); |
| 7689 | |
| 7690 | ; |
| 7691 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7692 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7693 | _ACEOF |
| 7694 | rm -f conftest$ac_exeext |
| 7695 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 7696 | (eval $ac_link) 2>&5 |
| 7697 | ac_status=$? |
| 7698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7699 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 7700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7701 | (eval $ac_try) 2>&5 |
| 7702 | ac_status=$? |
| 7703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7704 | (exit $ac_status); }; }; then |
| 7705 | ac_cv_sizeof_double=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7706 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7707 | echo "$as_me: program exited with status $ac_status" >&5 |
| 7708 | echo "$as_me: failed program was:" >&5 |
| 7709 | cat conftest.$ac_ext >&5 |
| 7710 | ( exit $ac_status ) |
| 7711 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77" >&5 |
| 7712 | echo "$as_me: error: cannot compute sizeof (double), 77" >&2;} |
| 7713 | { (exit 1); exit 1; }; } |
| 7714 | fi |
| 7715 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 7716 | fi |
| 7717 | fi |
| 7718 | rm -f conftest.val |
| 7719 | else |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7720 | ac_cv_sizeof_double=0 |
| 7721 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7722 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7723 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5 |
| 7724 | echo "${ECHO_T}$ac_cv_sizeof_double" >&6 |
| 7725 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7726 | #define SIZEOF_DOUBLE $ac_cv_sizeof_double |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7727 | _ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 7728 | |
| 7729 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 7730 | echo "$as_me:$LINENO: checking for fpos_t" >&5 |
| 7731 | echo $ECHO_N "checking for fpos_t... $ECHO_C" >&6 |
| 7732 | if test "${ac_cv_type_fpos_t+set}" = set; then |
| 7733 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7734 | else |
| 7735 | cat >conftest.$ac_ext <<_ACEOF |
| 7736 | #line $LINENO "configure" |
| 7737 | #include "confdefs.h" |
| 7738 | $ac_includes_default |
| 7739 | #ifdef F77_DUMMY_MAIN |
| 7740 | # ifdef __cplusplus |
| 7741 | extern "C" |
| 7742 | # endif |
| 7743 | int F77_DUMMY_MAIN() { return 1; } |
| 7744 | #endif |
| 7745 | int |
| 7746 | main () |
| 7747 | { |
| 7748 | if ((fpos_t *) 0) |
| 7749 | return 0; |
| 7750 | if (sizeof (fpos_t)) |
| 7751 | return 0; |
| 7752 | ; |
| 7753 | return 0; |
| 7754 | } |
| 7755 | _ACEOF |
| 7756 | rm -f conftest.$ac_objext |
| 7757 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7758 | (eval $ac_compile) 2>&5 |
| 7759 | ac_status=$? |
| 7760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7761 | (exit $ac_status); } && |
| 7762 | { ac_try='test -s conftest.$ac_objext' |
| 7763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7764 | (eval $ac_try) 2>&5 |
| 7765 | ac_status=$? |
| 7766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7767 | (exit $ac_status); }; }; then |
| 7768 | ac_cv_type_fpos_t=yes |
| 7769 | else |
| 7770 | echo "$as_me: failed program was:" >&5 |
| 7771 | cat conftest.$ac_ext >&5 |
| 7772 | ac_cv_type_fpos_t=no |
| 7773 | fi |
| 7774 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7775 | fi |
| 7776 | echo "$as_me:$LINENO: result: $ac_cv_type_fpos_t" >&5 |
| 7777 | echo "${ECHO_T}$ac_cv_type_fpos_t" >&6 |
| 7778 | |
| 7779 | echo "$as_me:$LINENO: checking size of fpos_t" >&5 |
| 7780 | echo $ECHO_N "checking size of fpos_t... $ECHO_C" >&6 |
| 7781 | if test "${ac_cv_sizeof_fpos_t+set}" = set; then |
| 7782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 7783 | else |
| 7784 | if test "$ac_cv_type_fpos_t" = yes; then |
| 7785 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 7786 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 7787 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 7788 | # This bug is HP SR number 8606223364. |
| 7789 | if test "$cross_compiling" = yes; then |
| 7790 | # Depending upon the size, compute the lo and hi bounds. |
| 7791 | cat >conftest.$ac_ext <<_ACEOF |
| 7792 | #line $LINENO "configure" |
| 7793 | #include "confdefs.h" |
| 7794 | $ac_includes_default |
| 7795 | #ifdef F77_DUMMY_MAIN |
| 7796 | # ifdef __cplusplus |
| 7797 | extern "C" |
| 7798 | # endif |
| 7799 | int F77_DUMMY_MAIN() { return 1; } |
| 7800 | #endif |
| 7801 | int |
| 7802 | main () |
| 7803 | { |
| 7804 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= 0)]; |
| 7805 | test_array [0] = 0 |
| 7806 | |
| 7807 | ; |
| 7808 | return 0; |
| 7809 | } |
| 7810 | _ACEOF |
| 7811 | rm -f conftest.$ac_objext |
| 7812 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7813 | (eval $ac_compile) 2>&5 |
| 7814 | ac_status=$? |
| 7815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7816 | (exit $ac_status); } && |
| 7817 | { ac_try='test -s conftest.$ac_objext' |
| 7818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7819 | (eval $ac_try) 2>&5 |
| 7820 | ac_status=$? |
| 7821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7822 | (exit $ac_status); }; }; then |
| 7823 | ac_lo=0 ac_mid=0 |
| 7824 | while :; do |
| 7825 | cat >conftest.$ac_ext <<_ACEOF |
| 7826 | #line $LINENO "configure" |
| 7827 | #include "confdefs.h" |
| 7828 | $ac_includes_default |
| 7829 | #ifdef F77_DUMMY_MAIN |
| 7830 | # ifdef __cplusplus |
| 7831 | extern "C" |
| 7832 | # endif |
| 7833 | int F77_DUMMY_MAIN() { return 1; } |
| 7834 | #endif |
| 7835 | int |
| 7836 | main () |
| 7837 | { |
| 7838 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 7839 | test_array [0] = 0 |
| 7840 | |
| 7841 | ; |
| 7842 | return 0; |
| 7843 | } |
| 7844 | _ACEOF |
| 7845 | rm -f conftest.$ac_objext |
| 7846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7847 | (eval $ac_compile) 2>&5 |
| 7848 | ac_status=$? |
| 7849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7850 | (exit $ac_status); } && |
| 7851 | { ac_try='test -s conftest.$ac_objext' |
| 7852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7853 | (eval $ac_try) 2>&5 |
| 7854 | ac_status=$? |
| 7855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7856 | (exit $ac_status); }; }; then |
| 7857 | ac_hi=$ac_mid; break |
| 7858 | else |
| 7859 | echo "$as_me: failed program was:" >&5 |
| 7860 | cat conftest.$ac_ext >&5 |
| 7861 | ac_lo=`expr $ac_mid + 1` |
| 7862 | if test $ac_lo -le $ac_mid; then |
| 7863 | ac_lo= ac_hi= |
| 7864 | break |
| 7865 | fi |
| 7866 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 7867 | fi |
| 7868 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7869 | done |
| 7870 | else |
| 7871 | echo "$as_me: failed program was:" >&5 |
| 7872 | cat conftest.$ac_ext >&5 |
| 7873 | cat >conftest.$ac_ext <<_ACEOF |
| 7874 | #line $LINENO "configure" |
| 7875 | #include "confdefs.h" |
| 7876 | $ac_includes_default |
| 7877 | #ifdef F77_DUMMY_MAIN |
| 7878 | # ifdef __cplusplus |
| 7879 | extern "C" |
| 7880 | # endif |
| 7881 | int F77_DUMMY_MAIN() { return 1; } |
| 7882 | #endif |
| 7883 | int |
| 7884 | main () |
| 7885 | { |
| 7886 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) < 0)]; |
| 7887 | test_array [0] = 0 |
| 7888 | |
| 7889 | ; |
| 7890 | return 0; |
| 7891 | } |
| 7892 | _ACEOF |
| 7893 | rm -f conftest.$ac_objext |
| 7894 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7895 | (eval $ac_compile) 2>&5 |
| 7896 | ac_status=$? |
| 7897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7898 | (exit $ac_status); } && |
| 7899 | { ac_try='test -s conftest.$ac_objext' |
| 7900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7901 | (eval $ac_try) 2>&5 |
| 7902 | ac_status=$? |
| 7903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7904 | (exit $ac_status); }; }; then |
| 7905 | ac_hi=-1 ac_mid=-1 |
| 7906 | while :; do |
| 7907 | cat >conftest.$ac_ext <<_ACEOF |
| 7908 | #line $LINENO "configure" |
| 7909 | #include "confdefs.h" |
| 7910 | $ac_includes_default |
| 7911 | #ifdef F77_DUMMY_MAIN |
| 7912 | # ifdef __cplusplus |
| 7913 | extern "C" |
| 7914 | # endif |
| 7915 | int F77_DUMMY_MAIN() { return 1; } |
| 7916 | #endif |
| 7917 | int |
| 7918 | main () |
| 7919 | { |
| 7920 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) >= $ac_mid)]; |
| 7921 | test_array [0] = 0 |
| 7922 | |
| 7923 | ; |
| 7924 | return 0; |
| 7925 | } |
| 7926 | _ACEOF |
| 7927 | rm -f conftest.$ac_objext |
| 7928 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7929 | (eval $ac_compile) 2>&5 |
| 7930 | ac_status=$? |
| 7931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7932 | (exit $ac_status); } && |
| 7933 | { ac_try='test -s conftest.$ac_objext' |
| 7934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7935 | (eval $ac_try) 2>&5 |
| 7936 | ac_status=$? |
| 7937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7938 | (exit $ac_status); }; }; then |
| 7939 | ac_lo=$ac_mid; break |
| 7940 | else |
| 7941 | echo "$as_me: failed program was:" >&5 |
| 7942 | cat conftest.$ac_ext >&5 |
| 7943 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 7944 | if test $ac_mid -le $ac_hi; then |
| 7945 | ac_lo= ac_hi= |
| 7946 | break |
| 7947 | fi |
| 7948 | ac_mid=`expr 2 '*' $ac_mid` |
| 7949 | fi |
| 7950 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7951 | done |
| 7952 | else |
| 7953 | echo "$as_me: failed program was:" >&5 |
| 7954 | cat conftest.$ac_ext >&5 |
| 7955 | ac_lo= ac_hi= |
| 7956 | fi |
| 7957 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7958 | fi |
| 7959 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 7960 | # Binary search between lo and hi bounds. |
| 7961 | while test "x$ac_lo" != "x$ac_hi"; do |
| 7962 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 7963 | cat >conftest.$ac_ext <<_ACEOF |
| 7964 | #line $LINENO "configure" |
| 7965 | #include "confdefs.h" |
| 7966 | $ac_includes_default |
| 7967 | #ifdef F77_DUMMY_MAIN |
| 7968 | # ifdef __cplusplus |
| 7969 | extern "C" |
| 7970 | # endif |
| 7971 | int F77_DUMMY_MAIN() { return 1; } |
| 7972 | #endif |
| 7973 | int |
| 7974 | main () |
| 7975 | { |
| 7976 | static int test_array [1 - 2 * !(((long) (sizeof (fpos_t))) <= $ac_mid)]; |
| 7977 | test_array [0] = 0 |
| 7978 | |
| 7979 | ; |
| 7980 | return 0; |
| 7981 | } |
| 7982 | _ACEOF |
| 7983 | rm -f conftest.$ac_objext |
| 7984 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 7985 | (eval $ac_compile) 2>&5 |
| 7986 | ac_status=$? |
| 7987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7988 | (exit $ac_status); } && |
| 7989 | { ac_try='test -s conftest.$ac_objext' |
| 7990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 7991 | (eval $ac_try) 2>&5 |
| 7992 | ac_status=$? |
| 7993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 7994 | (exit $ac_status); }; }; then |
| 7995 | ac_hi=$ac_mid |
| 7996 | else |
| 7997 | echo "$as_me: failed program was:" >&5 |
| 7998 | cat conftest.$ac_ext >&5 |
| 7999 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8000 | fi |
| 8001 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8002 | done |
| 8003 | case $ac_lo in |
| 8004 | ?*) ac_cv_sizeof_fpos_t=$ac_lo;; |
| 8005 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5 |
| 8006 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;} |
| 8007 | { (exit 1); exit 1; }; } ;; |
| 8008 | esac |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8009 | else |
| 8010 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8011 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 8012 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 8013 | { (exit 1); exit 1; }; } |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8014 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8015 | cat >conftest.$ac_ext <<_ACEOF |
| 8016 | #line $LINENO "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8017 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8018 | $ac_includes_default |
| 8019 | long longval () { return (long) (sizeof (fpos_t)); } |
| 8020 | unsigned long ulongval () { return (long) (sizeof (fpos_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8021 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8022 | #include <stdlib.h> |
| 8023 | #ifdef F77_DUMMY_MAIN |
| 8024 | # ifdef __cplusplus |
| 8025 | extern "C" |
| 8026 | # endif |
| 8027 | int F77_DUMMY_MAIN() { return 1; } |
| 8028 | #endif |
| 8029 | int |
| 8030 | main () |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8031 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8032 | |
| 8033 | FILE *f = fopen ("conftest.val", "w"); |
| 8034 | if (! f) |
| 8035 | exit (1); |
| 8036 | if (((long) (sizeof (fpos_t))) < 0) |
| 8037 | { |
| 8038 | long i = longval (); |
| 8039 | if (i != ((long) (sizeof (fpos_t)))) |
| 8040 | exit (1); |
| 8041 | fprintf (f, "%ld\n", i); |
| 8042 | } |
| 8043 | else |
| 8044 | { |
| 8045 | unsigned long i = ulongval (); |
| 8046 | if (i != ((long) (sizeof (fpos_t)))) |
| 8047 | exit (1); |
| 8048 | fprintf (f, "%lu\n", i); |
| 8049 | } |
| 8050 | exit (ferror (f) || fclose (f) != 0); |
| 8051 | |
| 8052 | ; |
| 8053 | return 0; |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8054 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8055 | _ACEOF |
| 8056 | rm -f conftest$ac_exeext |
| 8057 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8058 | (eval $ac_link) 2>&5 |
| 8059 | ac_status=$? |
| 8060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8061 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8063 | (eval $ac_try) 2>&5 |
| 8064 | ac_status=$? |
| 8065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8066 | (exit $ac_status); }; }; then |
| 8067 | ac_cv_sizeof_fpos_t=`cat conftest.val` |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8068 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8069 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8070 | echo "$as_me: failed program was:" >&5 |
| 8071 | cat conftest.$ac_ext >&5 |
| 8072 | ( exit $ac_status ) |
| 8073 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (fpos_t), 77" >&5 |
| 8074 | echo "$as_me: error: cannot compute sizeof (fpos_t), 77" >&2;} |
| 8075 | { (exit 1); exit 1; }; } |
| 8076 | fi |
| 8077 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8078 | fi |
| 8079 | fi |
| 8080 | rm -f conftest.val |
| 8081 | else |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8082 | ac_cv_sizeof_fpos_t=0 |
| 8083 | fi |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8084 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8085 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_fpos_t" >&5 |
| 8086 | echo "${ECHO_T}$ac_cv_sizeof_fpos_t" >&6 |
| 8087 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8088 | #define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8089 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8090 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8091 | |
| 8092 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8093 | echo "$as_me:$LINENO: checking for long long support" >&5 |
| 8094 | echo $ECHO_N "checking for long long support... $ECHO_C" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8095 | have_long_long=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8096 | cat >conftest.$ac_ext <<_ACEOF |
| 8097 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8098 | #include "confdefs.h" |
| 8099 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8100 | #ifdef F77_DUMMY_MAIN |
| 8101 | # ifdef __cplusplus |
| 8102 | extern "C" |
| 8103 | # endif |
| 8104 | int F77_DUMMY_MAIN() { return 1; } |
| 8105 | #endif |
| 8106 | int |
| 8107 | main () |
| 8108 | { |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8109 | long long x; x = (long long)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8110 | ; |
| 8111 | return 0; |
| 8112 | } |
| 8113 | _ACEOF |
| 8114 | rm -f conftest.$ac_objext |
| 8115 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8116 | (eval $ac_compile) 2>&5 |
| 8117 | ac_status=$? |
| 8118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8119 | (exit $ac_status); } && |
| 8120 | { ac_try='test -s conftest.$ac_objext' |
| 8121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8122 | (eval $ac_try) 2>&5 |
| 8123 | ac_status=$? |
| 8124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8125 | (exit $ac_status); }; }; then |
| 8126 | |
| 8127 | |
| 8128 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8129 | #define HAVE_LONG_LONG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8130 | _ACEOF |
| 8131 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8132 | have_long_long=yes |
| 8133 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8134 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8135 | echo "$as_me: failed program was:" >&5 |
| 8136 | cat conftest.$ac_ext >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8137 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8138 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8139 | echo "$as_me:$LINENO: result: $have_long_long" >&5 |
| 8140 | echo "${ECHO_T}$have_long_long" >&6 |
Guido van Rossum | 96f2eb9 | 1999-04-10 16:02:18 +0000 | [diff] [blame] | 8141 | if test "$have_long_long" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8142 | echo "$as_me:$LINENO: checking for long long" >&5 |
| 8143 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 |
| 8144 | if test "${ac_cv_type_long_long+set}" = set; then |
| 8145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8146 | else |
| 8147 | cat >conftest.$ac_ext <<_ACEOF |
| 8148 | #line $LINENO "configure" |
| 8149 | #include "confdefs.h" |
| 8150 | $ac_includes_default |
| 8151 | #ifdef F77_DUMMY_MAIN |
| 8152 | # ifdef __cplusplus |
| 8153 | extern "C" |
| 8154 | # endif |
| 8155 | int F77_DUMMY_MAIN() { return 1; } |
| 8156 | #endif |
| 8157 | int |
| 8158 | main () |
| 8159 | { |
| 8160 | if ((long long *) 0) |
| 8161 | return 0; |
| 8162 | if (sizeof (long long)) |
| 8163 | return 0; |
| 8164 | ; |
| 8165 | return 0; |
| 8166 | } |
| 8167 | _ACEOF |
| 8168 | rm -f conftest.$ac_objext |
| 8169 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8170 | (eval $ac_compile) 2>&5 |
| 8171 | ac_status=$? |
| 8172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8173 | (exit $ac_status); } && |
| 8174 | { ac_try='test -s conftest.$ac_objext' |
| 8175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8176 | (eval $ac_try) 2>&5 |
| 8177 | ac_status=$? |
| 8178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8179 | (exit $ac_status); }; }; then |
| 8180 | ac_cv_type_long_long=yes |
| 8181 | else |
| 8182 | echo "$as_me: failed program was:" >&5 |
| 8183 | cat conftest.$ac_ext >&5 |
| 8184 | ac_cv_type_long_long=no |
| 8185 | fi |
| 8186 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8187 | fi |
| 8188 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
| 8189 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 |
| 8190 | |
| 8191 | echo "$as_me:$LINENO: checking size of long long" >&5 |
| 8192 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 |
| 8193 | if test "${ac_cv_sizeof_long_long+set}" = set; then |
| 8194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8195 | else |
| 8196 | if test "$ac_cv_type_long_long" = yes; then |
| 8197 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8198 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8199 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8200 | # This bug is HP SR number 8606223364. |
| 8201 | if test "$cross_compiling" = yes; then |
| 8202 | # Depending upon the size, compute the lo and hi bounds. |
| 8203 | cat >conftest.$ac_ext <<_ACEOF |
| 8204 | #line $LINENO "configure" |
| 8205 | #include "confdefs.h" |
| 8206 | $ac_includes_default |
| 8207 | #ifdef F77_DUMMY_MAIN |
| 8208 | # ifdef __cplusplus |
| 8209 | extern "C" |
| 8210 | # endif |
| 8211 | int F77_DUMMY_MAIN() { return 1; } |
| 8212 | #endif |
| 8213 | int |
| 8214 | main () |
| 8215 | { |
| 8216 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; |
| 8217 | test_array [0] = 0 |
| 8218 | |
| 8219 | ; |
| 8220 | return 0; |
| 8221 | } |
| 8222 | _ACEOF |
| 8223 | rm -f conftest.$ac_objext |
| 8224 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8225 | (eval $ac_compile) 2>&5 |
| 8226 | ac_status=$? |
| 8227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8228 | (exit $ac_status); } && |
| 8229 | { ac_try='test -s conftest.$ac_objext' |
| 8230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8231 | (eval $ac_try) 2>&5 |
| 8232 | ac_status=$? |
| 8233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8234 | (exit $ac_status); }; }; then |
| 8235 | ac_lo=0 ac_mid=0 |
| 8236 | while :; do |
| 8237 | cat >conftest.$ac_ext <<_ACEOF |
| 8238 | #line $LINENO "configure" |
| 8239 | #include "confdefs.h" |
| 8240 | $ac_includes_default |
| 8241 | #ifdef F77_DUMMY_MAIN |
| 8242 | # ifdef __cplusplus |
| 8243 | extern "C" |
| 8244 | # endif |
| 8245 | int F77_DUMMY_MAIN() { return 1; } |
| 8246 | #endif |
| 8247 | int |
| 8248 | main () |
| 8249 | { |
| 8250 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 8251 | test_array [0] = 0 |
| 8252 | |
| 8253 | ; |
| 8254 | return 0; |
| 8255 | } |
| 8256 | _ACEOF |
| 8257 | rm -f conftest.$ac_objext |
| 8258 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8259 | (eval $ac_compile) 2>&5 |
| 8260 | ac_status=$? |
| 8261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8262 | (exit $ac_status); } && |
| 8263 | { ac_try='test -s conftest.$ac_objext' |
| 8264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8265 | (eval $ac_try) 2>&5 |
| 8266 | ac_status=$? |
| 8267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8268 | (exit $ac_status); }; }; then |
| 8269 | ac_hi=$ac_mid; break |
| 8270 | else |
| 8271 | echo "$as_me: failed program was:" >&5 |
| 8272 | cat conftest.$ac_ext >&5 |
| 8273 | ac_lo=`expr $ac_mid + 1` |
| 8274 | if test $ac_lo -le $ac_mid; then |
| 8275 | ac_lo= ac_hi= |
| 8276 | break |
| 8277 | fi |
| 8278 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8279 | fi |
| 8280 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8281 | done |
| 8282 | else |
| 8283 | echo "$as_me: failed program was:" >&5 |
| 8284 | cat conftest.$ac_ext >&5 |
| 8285 | cat >conftest.$ac_ext <<_ACEOF |
| 8286 | #line $LINENO "configure" |
| 8287 | #include "confdefs.h" |
| 8288 | $ac_includes_default |
| 8289 | #ifdef F77_DUMMY_MAIN |
| 8290 | # ifdef __cplusplus |
| 8291 | extern "C" |
| 8292 | # endif |
| 8293 | int F77_DUMMY_MAIN() { return 1; } |
| 8294 | #endif |
| 8295 | int |
| 8296 | main () |
| 8297 | { |
| 8298 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; |
| 8299 | test_array [0] = 0 |
| 8300 | |
| 8301 | ; |
| 8302 | return 0; |
| 8303 | } |
| 8304 | _ACEOF |
| 8305 | rm -f conftest.$ac_objext |
| 8306 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8307 | (eval $ac_compile) 2>&5 |
| 8308 | ac_status=$? |
| 8309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8310 | (exit $ac_status); } && |
| 8311 | { ac_try='test -s conftest.$ac_objext' |
| 8312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8313 | (eval $ac_try) 2>&5 |
| 8314 | ac_status=$? |
| 8315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8316 | (exit $ac_status); }; }; then |
| 8317 | ac_hi=-1 ac_mid=-1 |
| 8318 | while :; do |
| 8319 | cat >conftest.$ac_ext <<_ACEOF |
| 8320 | #line $LINENO "configure" |
| 8321 | #include "confdefs.h" |
| 8322 | $ac_includes_default |
| 8323 | #ifdef F77_DUMMY_MAIN |
| 8324 | # ifdef __cplusplus |
| 8325 | extern "C" |
| 8326 | # endif |
| 8327 | int F77_DUMMY_MAIN() { return 1; } |
| 8328 | #endif |
| 8329 | int |
| 8330 | main () |
| 8331 | { |
| 8332 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; |
| 8333 | test_array [0] = 0 |
| 8334 | |
| 8335 | ; |
| 8336 | return 0; |
| 8337 | } |
| 8338 | _ACEOF |
| 8339 | rm -f conftest.$ac_objext |
| 8340 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8341 | (eval $ac_compile) 2>&5 |
| 8342 | ac_status=$? |
| 8343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8344 | (exit $ac_status); } && |
| 8345 | { ac_try='test -s conftest.$ac_objext' |
| 8346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8347 | (eval $ac_try) 2>&5 |
| 8348 | ac_status=$? |
| 8349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8350 | (exit $ac_status); }; }; then |
| 8351 | ac_lo=$ac_mid; break |
| 8352 | else |
| 8353 | echo "$as_me: failed program was:" >&5 |
| 8354 | cat conftest.$ac_ext >&5 |
| 8355 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8356 | if test $ac_mid -le $ac_hi; then |
| 8357 | ac_lo= ac_hi= |
| 8358 | break |
| 8359 | fi |
| 8360 | ac_mid=`expr 2 '*' $ac_mid` |
| 8361 | fi |
| 8362 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8363 | done |
| 8364 | else |
| 8365 | echo "$as_me: failed program was:" >&5 |
| 8366 | cat conftest.$ac_ext >&5 |
| 8367 | ac_lo= ac_hi= |
| 8368 | fi |
| 8369 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8370 | fi |
| 8371 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8372 | # Binary search between lo and hi bounds. |
| 8373 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8374 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8375 | cat >conftest.$ac_ext <<_ACEOF |
| 8376 | #line $LINENO "configure" |
| 8377 | #include "confdefs.h" |
| 8378 | $ac_includes_default |
| 8379 | #ifdef F77_DUMMY_MAIN |
| 8380 | # ifdef __cplusplus |
| 8381 | extern "C" |
| 8382 | # endif |
| 8383 | int F77_DUMMY_MAIN() { return 1; } |
| 8384 | #endif |
| 8385 | int |
| 8386 | main () |
| 8387 | { |
| 8388 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
| 8389 | test_array [0] = 0 |
| 8390 | |
| 8391 | ; |
| 8392 | return 0; |
| 8393 | } |
| 8394 | _ACEOF |
| 8395 | rm -f conftest.$ac_objext |
| 8396 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8397 | (eval $ac_compile) 2>&5 |
| 8398 | ac_status=$? |
| 8399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8400 | (exit $ac_status); } && |
| 8401 | { ac_try='test -s conftest.$ac_objext' |
| 8402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8403 | (eval $ac_try) 2>&5 |
| 8404 | ac_status=$? |
| 8405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8406 | (exit $ac_status); }; }; then |
| 8407 | ac_hi=$ac_mid |
| 8408 | else |
| 8409 | echo "$as_me: failed program was:" >&5 |
| 8410 | cat conftest.$ac_ext >&5 |
| 8411 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8412 | fi |
| 8413 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8414 | done |
| 8415 | case $ac_lo in |
| 8416 | ?*) ac_cv_sizeof_long_long=$ac_lo;; |
| 8417 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 8418 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 8419 | { (exit 1); exit 1; }; } ;; |
| 8420 | esac |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8421 | else |
| 8422 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8423 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 8424 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 8425 | { (exit 1); exit 1; }; } |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8426 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8427 | cat >conftest.$ac_ext <<_ACEOF |
| 8428 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8429 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8430 | $ac_includes_default |
| 8431 | long longval () { return (long) (sizeof (long long)); } |
| 8432 | unsigned long ulongval () { return (long) (sizeof (long long)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8433 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8434 | #include <stdlib.h> |
| 8435 | #ifdef F77_DUMMY_MAIN |
| 8436 | # ifdef __cplusplus |
| 8437 | extern "C" |
| 8438 | # endif |
| 8439 | int F77_DUMMY_MAIN() { return 1; } |
| 8440 | #endif |
| 8441 | int |
| 8442 | main () |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8443 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8444 | |
| 8445 | FILE *f = fopen ("conftest.val", "w"); |
| 8446 | if (! f) |
| 8447 | exit (1); |
| 8448 | if (((long) (sizeof (long long))) < 0) |
| 8449 | { |
| 8450 | long i = longval (); |
| 8451 | if (i != ((long) (sizeof (long long)))) |
| 8452 | exit (1); |
| 8453 | fprintf (f, "%ld\n", i); |
| 8454 | } |
| 8455 | else |
| 8456 | { |
| 8457 | unsigned long i = ulongval (); |
| 8458 | if (i != ((long) (sizeof (long long)))) |
| 8459 | exit (1); |
| 8460 | fprintf (f, "%lu\n", i); |
| 8461 | } |
| 8462 | exit (ferror (f) || fclose (f) != 0); |
| 8463 | |
| 8464 | ; |
| 8465 | return 0; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8466 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8467 | _ACEOF |
| 8468 | rm -f conftest$ac_exeext |
| 8469 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8470 | (eval $ac_link) 2>&5 |
| 8471 | ac_status=$? |
| 8472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8473 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8475 | (eval $ac_try) 2>&5 |
| 8476 | ac_status=$? |
| 8477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8478 | (exit $ac_status); }; }; then |
| 8479 | ac_cv_sizeof_long_long=`cat conftest.val` |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8480 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8481 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8482 | echo "$as_me: failed program was:" >&5 |
| 8483 | cat conftest.$ac_ext >&5 |
| 8484 | ( exit $ac_status ) |
| 8485 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77" >&5 |
| 8486 | echo "$as_me: error: cannot compute sizeof (long long), 77" >&2;} |
| 8487 | { (exit 1); exit 1; }; } |
| 8488 | fi |
| 8489 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8490 | fi |
| 8491 | fi |
| 8492 | rm -f conftest.val |
| 8493 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8494 | ac_cv_sizeof_long_long=0 |
| 8495 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8496 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8497 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
| 8498 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 |
| 8499 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8500 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8501 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8502 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8503 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 8504 | fi |
| 8505 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8506 | echo "$as_me:$LINENO: checking for uintptr_t support" >&5 |
| 8507 | echo $ECHO_N "checking for uintptr_t support... $ECHO_C" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8508 | have_uintptr_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8509 | cat >conftest.$ac_ext <<_ACEOF |
| 8510 | #line $LINENO "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8511 | #include "confdefs.h" |
| 8512 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8513 | #ifdef F77_DUMMY_MAIN |
| 8514 | # ifdef __cplusplus |
| 8515 | extern "C" |
| 8516 | # endif |
| 8517 | int F77_DUMMY_MAIN() { return 1; } |
| 8518 | #endif |
| 8519 | int |
| 8520 | main () |
| 8521 | { |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8522 | uintptr_t x; x = (uintptr_t)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8523 | ; |
| 8524 | return 0; |
| 8525 | } |
| 8526 | _ACEOF |
| 8527 | rm -f conftest.$ac_objext |
| 8528 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8529 | (eval $ac_compile) 2>&5 |
| 8530 | ac_status=$? |
| 8531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8532 | (exit $ac_status); } && |
| 8533 | { ac_try='test -s conftest.$ac_objext' |
| 8534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8535 | (eval $ac_try) 2>&5 |
| 8536 | ac_status=$? |
| 8537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8538 | (exit $ac_status); }; }; then |
| 8539 | |
| 8540 | |
| 8541 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8542 | #define HAVE_UINTPTR_T 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8543 | _ACEOF |
| 8544 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 8545 | have_uintptr_t=yes |
| 8546 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8547 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8548 | echo "$as_me: failed program was:" >&5 |
| 8549 | cat conftest.$ac_ext >&5 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8550 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8551 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8552 | echo "$as_me:$LINENO: result: $have_uintptr_t" >&5 |
| 8553 | echo "${ECHO_T}$have_uintptr_t" >&6 |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8554 | if test "$have_uintptr_t" = yes ; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8555 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
| 8556 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
| 8557 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
| 8558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8559 | else |
| 8560 | cat >conftest.$ac_ext <<_ACEOF |
| 8561 | #line $LINENO "configure" |
| 8562 | #include "confdefs.h" |
| 8563 | $ac_includes_default |
| 8564 | #ifdef F77_DUMMY_MAIN |
| 8565 | # ifdef __cplusplus |
| 8566 | extern "C" |
| 8567 | # endif |
| 8568 | int F77_DUMMY_MAIN() { return 1; } |
| 8569 | #endif |
| 8570 | int |
| 8571 | main () |
| 8572 | { |
| 8573 | if ((uintptr_t *) 0) |
| 8574 | return 0; |
| 8575 | if (sizeof (uintptr_t)) |
| 8576 | return 0; |
| 8577 | ; |
| 8578 | return 0; |
| 8579 | } |
| 8580 | _ACEOF |
| 8581 | rm -f conftest.$ac_objext |
| 8582 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8583 | (eval $ac_compile) 2>&5 |
| 8584 | ac_status=$? |
| 8585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8586 | (exit $ac_status); } && |
| 8587 | { ac_try='test -s conftest.$ac_objext' |
| 8588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8589 | (eval $ac_try) 2>&5 |
| 8590 | ac_status=$? |
| 8591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8592 | (exit $ac_status); }; }; then |
| 8593 | ac_cv_type_uintptr_t=yes |
| 8594 | else |
| 8595 | echo "$as_me: failed program was:" >&5 |
| 8596 | cat conftest.$ac_ext >&5 |
| 8597 | ac_cv_type_uintptr_t=no |
| 8598 | fi |
| 8599 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8600 | fi |
| 8601 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
| 8602 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
| 8603 | |
| 8604 | echo "$as_me:$LINENO: checking size of uintptr_t" >&5 |
| 8605 | echo $ECHO_N "checking size of uintptr_t... $ECHO_C" >&6 |
| 8606 | if test "${ac_cv_sizeof_uintptr_t+set}" = set; then |
| 8607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 8608 | else |
| 8609 | if test "$ac_cv_type_uintptr_t" = yes; then |
| 8610 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 8611 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 8612 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 8613 | # This bug is HP SR number 8606223364. |
| 8614 | if test "$cross_compiling" = yes; then |
| 8615 | # Depending upon the size, compute the lo and hi bounds. |
| 8616 | cat >conftest.$ac_ext <<_ACEOF |
| 8617 | #line $LINENO "configure" |
| 8618 | #include "confdefs.h" |
| 8619 | $ac_includes_default |
| 8620 | #ifdef F77_DUMMY_MAIN |
| 8621 | # ifdef __cplusplus |
| 8622 | extern "C" |
| 8623 | # endif |
| 8624 | int F77_DUMMY_MAIN() { return 1; } |
| 8625 | #endif |
| 8626 | int |
| 8627 | main () |
| 8628 | { |
| 8629 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= 0)]; |
| 8630 | test_array [0] = 0 |
| 8631 | |
| 8632 | ; |
| 8633 | return 0; |
| 8634 | } |
| 8635 | _ACEOF |
| 8636 | rm -f conftest.$ac_objext |
| 8637 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8638 | (eval $ac_compile) 2>&5 |
| 8639 | ac_status=$? |
| 8640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8641 | (exit $ac_status); } && |
| 8642 | { ac_try='test -s conftest.$ac_objext' |
| 8643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8644 | (eval $ac_try) 2>&5 |
| 8645 | ac_status=$? |
| 8646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8647 | (exit $ac_status); }; }; then |
| 8648 | ac_lo=0 ac_mid=0 |
| 8649 | while :; do |
| 8650 | cat >conftest.$ac_ext <<_ACEOF |
| 8651 | #line $LINENO "configure" |
| 8652 | #include "confdefs.h" |
| 8653 | $ac_includes_default |
| 8654 | #ifdef F77_DUMMY_MAIN |
| 8655 | # ifdef __cplusplus |
| 8656 | extern "C" |
| 8657 | # endif |
| 8658 | int F77_DUMMY_MAIN() { return 1; } |
| 8659 | #endif |
| 8660 | int |
| 8661 | main () |
| 8662 | { |
| 8663 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 8664 | test_array [0] = 0 |
| 8665 | |
| 8666 | ; |
| 8667 | return 0; |
| 8668 | } |
| 8669 | _ACEOF |
| 8670 | rm -f conftest.$ac_objext |
| 8671 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8672 | (eval $ac_compile) 2>&5 |
| 8673 | ac_status=$? |
| 8674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8675 | (exit $ac_status); } && |
| 8676 | { ac_try='test -s conftest.$ac_objext' |
| 8677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8678 | (eval $ac_try) 2>&5 |
| 8679 | ac_status=$? |
| 8680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8681 | (exit $ac_status); }; }; then |
| 8682 | ac_hi=$ac_mid; break |
| 8683 | else |
| 8684 | echo "$as_me: failed program was:" >&5 |
| 8685 | cat conftest.$ac_ext >&5 |
| 8686 | ac_lo=`expr $ac_mid + 1` |
| 8687 | if test $ac_lo -le $ac_mid; then |
| 8688 | ac_lo= ac_hi= |
| 8689 | break |
| 8690 | fi |
| 8691 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 8692 | fi |
| 8693 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8694 | done |
| 8695 | else |
| 8696 | echo "$as_me: failed program was:" >&5 |
| 8697 | cat conftest.$ac_ext >&5 |
| 8698 | cat >conftest.$ac_ext <<_ACEOF |
| 8699 | #line $LINENO "configure" |
| 8700 | #include "confdefs.h" |
| 8701 | $ac_includes_default |
| 8702 | #ifdef F77_DUMMY_MAIN |
| 8703 | # ifdef __cplusplus |
| 8704 | extern "C" |
| 8705 | # endif |
| 8706 | int F77_DUMMY_MAIN() { return 1; } |
| 8707 | #endif |
| 8708 | int |
| 8709 | main () |
| 8710 | { |
| 8711 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) < 0)]; |
| 8712 | test_array [0] = 0 |
| 8713 | |
| 8714 | ; |
| 8715 | return 0; |
| 8716 | } |
| 8717 | _ACEOF |
| 8718 | rm -f conftest.$ac_objext |
| 8719 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8720 | (eval $ac_compile) 2>&5 |
| 8721 | ac_status=$? |
| 8722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8723 | (exit $ac_status); } && |
| 8724 | { ac_try='test -s conftest.$ac_objext' |
| 8725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8726 | (eval $ac_try) 2>&5 |
| 8727 | ac_status=$? |
| 8728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8729 | (exit $ac_status); }; }; then |
| 8730 | ac_hi=-1 ac_mid=-1 |
| 8731 | while :; do |
| 8732 | cat >conftest.$ac_ext <<_ACEOF |
| 8733 | #line $LINENO "configure" |
| 8734 | #include "confdefs.h" |
| 8735 | $ac_includes_default |
| 8736 | #ifdef F77_DUMMY_MAIN |
| 8737 | # ifdef __cplusplus |
| 8738 | extern "C" |
| 8739 | # endif |
| 8740 | int F77_DUMMY_MAIN() { return 1; } |
| 8741 | #endif |
| 8742 | int |
| 8743 | main () |
| 8744 | { |
| 8745 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) >= $ac_mid)]; |
| 8746 | test_array [0] = 0 |
| 8747 | |
| 8748 | ; |
| 8749 | return 0; |
| 8750 | } |
| 8751 | _ACEOF |
| 8752 | rm -f conftest.$ac_objext |
| 8753 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8754 | (eval $ac_compile) 2>&5 |
| 8755 | ac_status=$? |
| 8756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8757 | (exit $ac_status); } && |
| 8758 | { ac_try='test -s conftest.$ac_objext' |
| 8759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8760 | (eval $ac_try) 2>&5 |
| 8761 | ac_status=$? |
| 8762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8763 | (exit $ac_status); }; }; then |
| 8764 | ac_lo=$ac_mid; break |
| 8765 | else |
| 8766 | echo "$as_me: failed program was:" >&5 |
| 8767 | cat conftest.$ac_ext >&5 |
| 8768 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 8769 | if test $ac_mid -le $ac_hi; then |
| 8770 | ac_lo= ac_hi= |
| 8771 | break |
| 8772 | fi |
| 8773 | ac_mid=`expr 2 '*' $ac_mid` |
| 8774 | fi |
| 8775 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8776 | done |
| 8777 | else |
| 8778 | echo "$as_me: failed program was:" >&5 |
| 8779 | cat conftest.$ac_ext >&5 |
| 8780 | ac_lo= ac_hi= |
| 8781 | fi |
| 8782 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8783 | fi |
| 8784 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8785 | # Binary search between lo and hi bounds. |
| 8786 | while test "x$ac_lo" != "x$ac_hi"; do |
| 8787 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 8788 | cat >conftest.$ac_ext <<_ACEOF |
| 8789 | #line $LINENO "configure" |
| 8790 | #include "confdefs.h" |
| 8791 | $ac_includes_default |
| 8792 | #ifdef F77_DUMMY_MAIN |
| 8793 | # ifdef __cplusplus |
| 8794 | extern "C" |
| 8795 | # endif |
| 8796 | int F77_DUMMY_MAIN() { return 1; } |
| 8797 | #endif |
| 8798 | int |
| 8799 | main () |
| 8800 | { |
| 8801 | static int test_array [1 - 2 * !(((long) (sizeof (uintptr_t))) <= $ac_mid)]; |
| 8802 | test_array [0] = 0 |
| 8803 | |
| 8804 | ; |
| 8805 | return 0; |
| 8806 | } |
| 8807 | _ACEOF |
| 8808 | rm -f conftest.$ac_objext |
| 8809 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 8810 | (eval $ac_compile) 2>&5 |
| 8811 | ac_status=$? |
| 8812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8813 | (exit $ac_status); } && |
| 8814 | { ac_try='test -s conftest.$ac_objext' |
| 8815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8816 | (eval $ac_try) 2>&5 |
| 8817 | ac_status=$? |
| 8818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8819 | (exit $ac_status); }; }; then |
| 8820 | ac_hi=$ac_mid |
| 8821 | else |
| 8822 | echo "$as_me: failed program was:" >&5 |
| 8823 | cat conftest.$ac_ext >&5 |
| 8824 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 8825 | fi |
| 8826 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 8827 | done |
| 8828 | case $ac_lo in |
| 8829 | ?*) ac_cv_sizeof_uintptr_t=$ac_lo;; |
| 8830 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5 |
| 8831 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;} |
| 8832 | { (exit 1); exit 1; }; } ;; |
| 8833 | esac |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8834 | else |
| 8835 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8836 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 8837 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 8838 | { (exit 1); exit 1; }; } |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8839 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8840 | cat >conftest.$ac_ext <<_ACEOF |
| 8841 | #line $LINENO "configure" |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8842 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8843 | $ac_includes_default |
| 8844 | long longval () { return (long) (sizeof (uintptr_t)); } |
| 8845 | unsigned long ulongval () { return (long) (sizeof (uintptr_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8846 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8847 | #include <stdlib.h> |
| 8848 | #ifdef F77_DUMMY_MAIN |
| 8849 | # ifdef __cplusplus |
| 8850 | extern "C" |
| 8851 | # endif |
| 8852 | int F77_DUMMY_MAIN() { return 1; } |
| 8853 | #endif |
| 8854 | int |
| 8855 | main () |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8856 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8857 | |
| 8858 | FILE *f = fopen ("conftest.val", "w"); |
| 8859 | if (! f) |
| 8860 | exit (1); |
| 8861 | if (((long) (sizeof (uintptr_t))) < 0) |
| 8862 | { |
| 8863 | long i = longval (); |
| 8864 | if (i != ((long) (sizeof (uintptr_t)))) |
| 8865 | exit (1); |
| 8866 | fprintf (f, "%ld\n", i); |
| 8867 | } |
| 8868 | else |
| 8869 | { |
| 8870 | unsigned long i = ulongval (); |
| 8871 | if (i != ((long) (sizeof (uintptr_t)))) |
| 8872 | exit (1); |
| 8873 | fprintf (f, "%lu\n", i); |
| 8874 | } |
| 8875 | exit (ferror (f) || fclose (f) != 0); |
| 8876 | |
| 8877 | ; |
| 8878 | return 0; |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8879 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8880 | _ACEOF |
| 8881 | rm -f conftest$ac_exeext |
| 8882 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8883 | (eval $ac_link) 2>&5 |
| 8884 | ac_status=$? |
| 8885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8886 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8888 | (eval $ac_try) 2>&5 |
| 8889 | ac_status=$? |
| 8890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8891 | (exit $ac_status); }; }; then |
| 8892 | ac_cv_sizeof_uintptr_t=`cat conftest.val` |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8893 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8894 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8895 | echo "$as_me: failed program was:" >&5 |
| 8896 | cat conftest.$ac_ext >&5 |
| 8897 | ( exit $ac_status ) |
| 8898 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uintptr_t), 77" >&5 |
| 8899 | echo "$as_me: error: cannot compute sizeof (uintptr_t), 77" >&2;} |
| 8900 | { (exit 1); exit 1; }; } |
| 8901 | fi |
| 8902 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 8903 | fi |
| 8904 | fi |
| 8905 | rm -f conftest.val |
| 8906 | else |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8907 | ac_cv_sizeof_uintptr_t=0 |
| 8908 | fi |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8909 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8910 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 8911 | echo "${ECHO_T}$ac_cv_sizeof_uintptr_t" >&6 |
| 8912 | cat >>confdefs.h <<_ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8913 | #define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8914 | _ACEOF |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8915 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8916 | |
Barry Warsaw | bc7c7f9 | 2000-08-18 04:53:33 +0000 | [diff] [blame] | 8917 | fi |
| 8918 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8919 | # Hmph. AC_CHECK_SIZEOF() doesn't include <sys/types.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8920 | echo "$as_me:$LINENO: checking size of off_t" >&5 |
| 8921 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 |
| 8922 | if test "${ac_cv_sizeof_off_t+set}" = set; then |
| 8923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8924 | else |
| 8925 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 8926 | ac_cv_sizeof_off_t=4 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8927 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8928 | cat >conftest.$ac_ext <<_ACEOF |
| 8929 | #line $LINENO "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8930 | #include "confdefs.h" |
| 8931 | #include <stdio.h> |
| 8932 | #include <sys/types.h> |
| 8933 | main() |
| 8934 | { |
| 8935 | FILE *f=fopen("conftestval", "w"); |
| 8936 | if (!f) exit(1); |
| 8937 | fprintf(f, "%d\n", sizeof(off_t)); |
| 8938 | exit(0); |
| 8939 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8940 | _ACEOF |
| 8941 | rm -f conftest$ac_exeext |
| 8942 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 8943 | (eval $ac_link) 2>&5 |
| 8944 | ac_status=$? |
| 8945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8946 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 8947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 8948 | (eval $ac_try) 2>&5 |
| 8949 | ac_status=$? |
| 8950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8951 | (exit $ac_status); }; }; then |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8952 | ac_cv_sizeof_off_t=`cat conftestval` |
| 8953 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8954 | echo "$as_me: program exited with status $ac_status" >&5 |
| 8955 | echo "$as_me: failed program was:" >&5 |
| 8956 | cat conftest.$ac_ext >&5 |
| 8957 | ( exit $ac_status ) |
| 8958 | ac_cv_sizeof_off_t=0 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8959 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8960 | 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] | 8961 | fi |
| 8962 | |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8963 | fi |
| 8964 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8965 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
| 8966 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 |
| 8967 | |
| 8968 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8969 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8970 | _ACEOF |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8971 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 8972 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8973 | echo "$as_me:$LINENO: checking whether to enable large file support" >&5 |
| 8974 | 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] | 8975 | if test "$have_long_long" = yes -a \ |
| 8976 | "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ |
| 8977 | "$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] | 8978 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8979 | cat >>confdefs.h <<\_ACEOF |
| 8980 | #define HAVE_LARGEFILE_SUPPORT 1 |
| 8981 | _ACEOF |
| 8982 | |
| 8983 | echo "$as_me:$LINENO: result: yes" >&5 |
| 8984 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8985 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8986 | echo "$as_me:$LINENO: result: no" >&5 |
| 8987 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 8988 | fi |
| 8989 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8990 | # AC_CHECK_SIZEOF() doesn't include <time.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8991 | echo "$as_me:$LINENO: checking size of time_t" >&5 |
| 8992 | echo $ECHO_N "checking size of time_t... $ECHO_C" >&6 |
| 8993 | if test "${ac_cv_sizeof_time_t+set}" = set; then |
| 8994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8995 | else |
| 8996 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 8997 | ac_cv_sizeof_time_t=4 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 8998 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 8999 | cat >conftest.$ac_ext <<_ACEOF |
| 9000 | #line $LINENO "configure" |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9001 | #include "confdefs.h" |
| 9002 | #include <stdio.h> |
| 9003 | #include <time.h> |
| 9004 | main() |
| 9005 | { |
| 9006 | FILE *f=fopen("conftestval", "w"); |
| 9007 | if (!f) exit(1); |
| 9008 | fprintf(f, "%d\n", sizeof(time_t)); |
| 9009 | exit(0); |
| 9010 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9011 | _ACEOF |
| 9012 | rm -f conftest$ac_exeext |
| 9013 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9014 | (eval $ac_link) 2>&5 |
| 9015 | ac_status=$? |
| 9016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9017 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9019 | (eval $ac_try) 2>&5 |
| 9020 | ac_status=$? |
| 9021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9022 | (exit $ac_status); }; }; then |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9023 | ac_cv_sizeof_time_t=`cat conftestval` |
| 9024 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9025 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9026 | echo "$as_me: failed program was:" >&5 |
| 9027 | cat conftest.$ac_ext >&5 |
| 9028 | ( exit $ac_status ) |
| 9029 | ac_cv_sizeof_time_t=0 |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9030 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9031 | 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] | 9032 | fi |
| 9033 | |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9034 | fi |
| 9035 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9036 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5 |
| 9037 | echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6 |
| 9038 | |
| 9039 | cat >>confdefs.h <<_ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9040 | #define SIZEOF_TIME_T $ac_cv_sizeof_time_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9041 | _ACEOF |
Guido van Rossum | b9a22a1 | 2000-06-30 02:48:53 +0000 | [diff] [blame] | 9042 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9043 | |
| 9044 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9045 | # if have pthread_t then define SIZEOF_PTHREAD_T |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9046 | ac_save_cc="$CC" |
| 9047 | if test "$ac_cv_kpthread" = "yes" |
| 9048 | then CC="$CC -Kpthread" |
| 9049 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9050 | echo "$as_me:$LINENO: checking for pthread_t" >&5 |
| 9051 | echo $ECHO_N "checking for pthread_t... $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9052 | have_pthread_t=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9053 | cat >conftest.$ac_ext <<_ACEOF |
| 9054 | #line $LINENO "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9055 | #include "confdefs.h" |
| 9056 | #include <pthread.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9057 | #ifdef F77_DUMMY_MAIN |
| 9058 | # ifdef __cplusplus |
| 9059 | extern "C" |
| 9060 | # endif |
| 9061 | int F77_DUMMY_MAIN() { return 1; } |
| 9062 | #endif |
| 9063 | int |
| 9064 | main () |
| 9065 | { |
Guido van Rossum | 1258049 | 2000-09-24 16:47:19 +0000 | [diff] [blame] | 9066 | pthread_t x; x = *(pthread_t*)0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9067 | ; |
| 9068 | return 0; |
| 9069 | } |
| 9070 | _ACEOF |
| 9071 | rm -f conftest.$ac_objext |
| 9072 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 9073 | (eval $ac_compile) 2>&5 |
| 9074 | ac_status=$? |
| 9075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9076 | (exit $ac_status); } && |
| 9077 | { ac_try='test -s conftest.$ac_objext' |
| 9078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9079 | (eval $ac_try) 2>&5 |
| 9080 | ac_status=$? |
| 9081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9082 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9083 | have_pthread_t=yes |
| 9084 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9085 | echo "$as_me: failed program was:" >&5 |
| 9086 | cat conftest.$ac_ext >&5 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9087 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9088 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 9089 | echo "$as_me:$LINENO: result: $have_pthread_t" >&5 |
| 9090 | echo "${ECHO_T}$have_pthread_t" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9091 | if test "$have_pthread_t" = yes ; then |
| 9092 | # AC_CHECK_SIZEOF() doesn't include <pthread.h>. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9093 | echo "$as_me:$LINENO: checking size of pthread_t" >&5 |
| 9094 | echo $ECHO_N "checking size of pthread_t... $ECHO_C" >&6 |
| 9095 | if test "${ac_cv_sizeof_pthread_t+set}" = set; then |
| 9096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9097 | else |
| 9098 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 9099 | ac_cv_sizeof_pthread_t=4 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9100 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9101 | cat >conftest.$ac_ext <<_ACEOF |
| 9102 | #line $LINENO "configure" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9103 | #include "confdefs.h" |
| 9104 | #include <stdio.h> |
| 9105 | #include <pthread.h> |
| 9106 | main() |
| 9107 | { |
| 9108 | FILE *f=fopen("conftestval", "w"); |
| 9109 | if (!f) exit(1); |
| 9110 | fprintf(f, "%d\n", sizeof(pthread_t)); |
| 9111 | exit(0); |
| 9112 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9113 | _ACEOF |
| 9114 | rm -f conftest$ac_exeext |
| 9115 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9116 | (eval $ac_link) 2>&5 |
| 9117 | ac_status=$? |
| 9118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9119 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 9120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9121 | (eval $ac_try) 2>&5 |
| 9122 | ac_status=$? |
| 9123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9124 | (exit $ac_status); }; }; then |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9125 | ac_cv_sizeof_pthread_t=`cat conftestval` |
| 9126 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9127 | echo "$as_me: program exited with status $ac_status" >&5 |
| 9128 | echo "$as_me: failed program was:" >&5 |
| 9129 | cat conftest.$ac_ext >&5 |
| 9130 | ( exit $ac_status ) |
| 9131 | ac_cv_sizeof_pthread_t=0 |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9132 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9133 | 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] | 9134 | fi |
| 9135 | |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9136 | fi |
| 9137 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9138 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5 |
| 9139 | echo "${ECHO_T}$ac_cv_sizeof_pthread_t" >&6 |
| 9140 | |
| 9141 | cat >>confdefs.h <<_ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9142 | #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9143 | _ACEOF |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9144 | |
| 9145 | fi |
Martin v. Löwis | 123cbd2 | 2001-07-19 14:21:10 +0000 | [diff] [blame] | 9146 | CC="$ac_save_cc" |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9147 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9148 | echo "$as_me:$LINENO: checking for --enable-toolbox-glue" >&5 |
| 9149 | echo $ECHO_N "checking for --enable-toolbox-glue... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9150 | # Check whether --enable-toolbox-glue or --disable-toolbox-glue was given. |
| 9151 | if test "${enable_toolbox_glue+set}" = set; then |
| 9152 | enableval="$enable_toolbox_glue" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9153 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9154 | fi; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9155 | |
| 9156 | if test -z "$enable_toolbox_glue" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9157 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9158 | case $ac_sys_system/$ac_sys_release in |
| 9159 | Darwin/*) |
| 9160 | enable_toolbox_glue="yes";; |
| 9161 | *) |
| 9162 | enable_toolbox_glue="no";; |
| 9163 | esac |
| 9164 | fi |
| 9165 | case "$enable_toolbox_glue" in |
| 9166 | yes) |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 9167 | extra_frameworks="-framework CoreServices -framework Foundation" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9168 | extra_machdep_objs="Python/mactoolboxglue.o" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9169 | extra_undefs="-u __dummy -u _PyMac_Error" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9170 | |
| 9171 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9172 | #define USE_TOOLBOX_OBJECT_GLUE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9173 | _ACEOF |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9174 | |
| 9175 | ;; |
| 9176 | *) |
| 9177 | extra_frameworks="" |
| 9178 | extra_machdep_objs="" |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9179 | extra_undefs="" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9180 | ;; |
| 9181 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9182 | echo "$as_me:$LINENO: result: $enable_toolbox_glue" >&5 |
| 9183 | echo "${ECHO_T}$enable_toolbox_glue" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9184 | |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9185 | |
| 9186 | case $ac_sys_system/$ac_sys_release in |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9187 | Darwin/1.3*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9188 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9189 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9190 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' |
| 9191 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 5839e58 | 2000-10-09 19:52:35 +0000 | [diff] [blame] | 9192 | Darwin/*) |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9193 | LIBTOOL_CRUFT="-lcc_dynamic -arch_only ppc" |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9194 | LIBTOOL_CRUFT="$LIBTOOL_CRUFT $extra_frameworks" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9195 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/Python' |
| 9196 | LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9197 | esac |
| 9198 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9199 | echo "$as_me:$LINENO: checking for --enable-framework" >&5 |
| 9200 | echo $ECHO_N "checking for --enable-framework... $ECHO_C" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9201 | if test "$enable_framework" |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9202 | then |
Jack Jansen | ca06bc6 | 2001-08-03 15:32:23 +0000 | [diff] [blame] | 9203 | OPT="$OPT -fno-common -dynamic" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9204 | # -F. is needed to allow linking to the framework while |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9205 | # in the build location. |
Jack Jansen | ea0c382 | 2002-08-01 21:57:49 +0000 | [diff] [blame] | 9206 | LDFLAGS="$LDFLAGS -Wl,-F." |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9207 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9208 | cat >>confdefs.h <<\_ACEOF |
| 9209 | #define WITH_NEXT_FRAMEWORK 1 |
| 9210 | _ACEOF |
| 9211 | |
| 9212 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9213 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9214 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9215 | echo "$as_me:$LINENO: result: no" >&5 |
| 9216 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9217 | fi |
| 9218 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9219 | echo "$as_me:$LINENO: checking for dyld" >&5 |
| 9220 | echo $ECHO_N "checking for dyld... $ECHO_C" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9221 | case $ac_sys_system/$ac_sys_release in |
| 9222 | Darwin/*) |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9223 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9224 | cat >>confdefs.h <<\_ACEOF |
| 9225 | #define WITH_DYLD 1 |
| 9226 | _ACEOF |
| 9227 | |
| 9228 | echo "$as_me:$LINENO: result: always on for Darwin" >&5 |
| 9229 | echo "${ECHO_T}always on for Darwin" >&6 |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9230 | ;; |
| 9231 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9232 | echo "$as_me:$LINENO: result: no" >&5 |
| 9233 | echo "${ECHO_T}no" >&6 |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9234 | ;; |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 9235 | esac |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9236 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9237 | # Set info about shared libraries. |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9238 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9239 | |
| 9240 | |
| 9241 | |
| 9242 | |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9243 | # SO is the extension of shared libraries `(including the dot!) |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 9244 | # -- usually .so, .sl on HP-UX, .dll on Cygwin |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9245 | echo "$as_me:$LINENO: checking SO" >&5 |
| 9246 | echo $ECHO_N "checking SO... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9247 | if test -z "$SO" |
| 9248 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9249 | case $ac_sys_system in |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 9250 | hp*|HP*) SO=.sl;; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 9251 | CYGWIN*) SO=.dll;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 9252 | *) SO=.so;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9253 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9254 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9255 | echo "$as_me:$LINENO: result: $SO" >&5 |
| 9256 | echo "${ECHO_T}$SO" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9257 | # LDSHARED is the ld *command* used to create shared library |
Martin v. Löwis | 5b718fc | 2001-09-10 15:34:42 +0000 | [diff] [blame] | 9258 | # -- "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] | 9259 | # (Shared libraries in this instance are shared modules to be loaded into |
| 9260 | # 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] | 9261 | echo "$as_me:$LINENO: checking LDSHARED" >&5 |
| 9262 | echo $ECHO_N "checking LDSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9263 | if test -z "$LDSHARED" |
| 9264 | then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9265 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9266 | AIX*) |
| 9267 | BLDSHARED="\$(srcdir)/Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 9268 | LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9269 | ;; |
| 9270 | BeOS*) |
| 9271 | BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" |
Guido van Rossum | ce608b0 | 2001-09-28 15:59:38 +0000 | [diff] [blame] | 9272 | LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9273 | ;; |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9274 | IRIX/5*) LDSHARED="ld -shared";; |
Guido van Rossum | 9192267 | 1997-10-09 20:24:13 +0000 | [diff] [blame] | 9275 | IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9276 | SunOS/4*) LDSHARED="ld";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9277 | SunOS/5*) |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 9278 | if test "$GCC" = "yes" |
Neil Schemenauer | 8ba9445 | 2001-02-19 18:18:48 +0000 | [diff] [blame] | 9279 | then LDSHARED='$(CC) -shared' |
Martin v. Löwis | aa5afe1 | 2002-10-07 06:21:41 +0000 | [diff] [blame] | 9280 | else LDSHARED='$(CC) -G'; |
Greg Ward | 57c9a66 | 2000-05-26 12:22:54 +0000 | [diff] [blame] | 9281 | fi ;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9282 | hp*|HP*) LDSHARED="ld -b";; |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 9283 | OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; |
| 9284 | DYNIX/ptx*) LDSHARED="ld -G";; |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9285 | Darwin/1.3*) |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9286 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 9287 | if test "$enable_framework" ; then |
| 9288 | # Link against the framework. All externals should be defined. |
| 9289 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 9290 | else |
| 9291 | # No framework. Ignore undefined symbols, assuming they come from Python |
Jack Jansen | 418c3b1 | 2001-11-14 10:59:57 +0000 | [diff] [blame] | 9292 | LDSHARED="$LDSHARED -undefined suppress" |
Jack Jansen | a3891ea | 2001-09-07 14:25:12 +0000 | [diff] [blame] | 9293 | fi ;; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9294 | Darwin/*) |
| 9295 | LDSHARED='$(CC) $(LDFLAGS) -bundle' |
| 9296 | if test "$enable_framework" ; then |
| 9297 | # Link against the framework. All externals should be defined. |
| 9298 | LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' |
| 9299 | else |
Michael W. Hudson | 594bc80 | 2002-03-07 09:59:15 +0000 | [diff] [blame] | 9300 | # No framework, use the Python app as bundle-loader |
| 9301 | BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' |
| 9302 | LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/$(PYTHON)' |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9303 | fi ;; |
Martin v. Löwis | 3cba5c0 | 2002-09-16 17:50:59 +0000 | [diff] [blame] | 9304 | Linux*|GNU*) LDSHARED='$(CC) -shared';; |
Guido van Rossum | 3c4bb80 | 1997-12-18 23:55:32 +0000 | [diff] [blame] | 9305 | dgux*) LDSHARED="ld -G";; |
Guido van Rossum | 458e7fa | 1999-09-17 15:40:40 +0000 | [diff] [blame] | 9306 | BSD/OS*/4*) LDSHARED="gcc -shared";; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 9307 | OpenBSD*|FreeBSD*) |
Jeremy Hylton | 4bcc7c5 | 2000-08-31 17:45:35 +0000 | [diff] [blame] | 9308 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
Guido van Rossum | 0286ae8 | 2000-08-29 15:06:49 +0000 | [diff] [blame] | 9309 | then |
| 9310 | LDSHARED="cc -shared ${LDFLAGS}" |
| 9311 | else |
| 9312 | LDSHARED="ld -Bshareable ${LDFLAGS}" |
| 9313 | fi;; |
Martin v. Löwis | d61888b | 2002-09-30 11:17:27 +0000 | [diff] [blame] | 9314 | NetBSD*) LDSHARED="cc -shared ${LDFLAGS}";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9315 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9316 | if test "$GCC" = "yes" |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 9317 | then LDSHARED='$(CC) -shared' |
| 9318 | else LDSHARED='$(CC) -G' |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9319 | fi;; |
Martin v. Löwis | 79f3c53 | 2002-12-11 12:51:58 +0000 | [diff] [blame] | 9320 | SCO_SV*) LDSHARED='$(CC) -Wl,-G,-Bexport';; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9321 | Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; |
Guido van Rossum | aef734b | 2001-01-10 21:09:12 +0000 | [diff] [blame] | 9322 | CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9323 | atheos*) LDSHARED="gcc -shared";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9324 | *) LDSHARED="ld";; |
| 9325 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9326 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9327 | echo "$as_me:$LINENO: result: $LDSHARED" >&5 |
| 9328 | echo "${ECHO_T}$LDSHARED" >&6 |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9329 | BLDSHARED=${BLDSHARED-$LDSHARED} |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9330 | # 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] | 9331 | # library (module) -- this is only needed for a few systems |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9332 | echo "$as_me:$LINENO: checking CCSHARED" >&5 |
| 9333 | echo $ECHO_N "checking CCSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9334 | if test -z "$CCSHARED" |
| 9335 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9336 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 9337 | SunOS*) if test "$GCC" = yes; |
| 9338 | then CCSHARED="-fPIC"; |
| 9339 | fi;; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9340 | hp*|HP*) if test "$GCC" = yes; |
Martin v. Löwis | 703ad70 | 2001-09-05 08:36:52 +0000 | [diff] [blame] | 9341 | then CCSHARED="-fPIC"; |
Guido van Rossum | af07a44 | 1995-02-13 19:45:27 +0000 | [diff] [blame] | 9342 | else CCSHARED="+z"; |
| 9343 | fi;; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9344 | Linux*|GNU*) CCSHARED="-fPIC";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9345 | BSD/OS*/4*) CCSHARED="-fpic";; |
Martin v. Löwis | 36546db | 2001-09-05 14:24:43 +0000 | [diff] [blame] | 9346 | FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9347 | OpenUNIX*|UnixWare*) |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9348 | if test "$GCC" = "yes" |
| 9349 | then CCSHARED="-fPIC" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 9350 | else CCSHARED="-KPIC" |
Martin v. Löwis | bec1958 | 2001-03-21 15:57:54 +0000 | [diff] [blame] | 9351 | fi;; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9352 | SCO_SV*) |
| 9353 | if test "$GCC" = "yes" |
| 9354 | then CCSHARED="-fPIC" |
| 9355 | else CCSHARED="-Kpic -belf" |
| 9356 | fi;; |
Trent Mick | 635f6fb | 2000-08-23 21:33:05 +0000 | [diff] [blame] | 9357 | Monterey*) CCSHARED="-G";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9358 | IRIX*/6*) case $CC in |
| 9359 | *gcc*) CCSHARED="-shared";; |
Guido van Rossum | ee21f41 | 1998-04-20 18:51:54 +0000 | [diff] [blame] | 9360 | *) CCSHARED="";; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9361 | esac;; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9362 | atheos*) CCSHARED="-fPIC";; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9363 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9364 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9365 | echo "$as_me:$LINENO: result: $CCSHARED" >&5 |
| 9366 | echo "${ECHO_T}$CCSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9367 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9368 | # 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] | 9369 | echo "$as_me:$LINENO: checking LINKFORSHARED" >&5 |
| 9370 | echo $ECHO_N "checking LINKFORSHARED... $ECHO_C" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9371 | if test -z "$LINKFORSHARED" |
| 9372 | then |
Guido van Rossum | 0739797 | 1997-04-29 21:49:50 +0000 | [diff] [blame] | 9373 | case $ac_sys_system/$ac_sys_release in |
Neil Schemenauer | 4a7bbcb | 2001-02-16 03:37:54 +0000 | [diff] [blame] | 9374 | AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; |
Guido van Rossum | ccaf3b6 | 1996-12-06 21:19:16 +0000 | [diff] [blame] | 9375 | hp*|HP*) |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 9376 | LINKFORSHARED="-Wl,-E -Wl,+s";; |
| 9377 | # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; |
Guido van Rossum | f5957ea | 1999-10-05 21:59:33 +0000 | [diff] [blame] | 9378 | BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 9379 | Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; |
Guido van Rossum | 54ecc3d | 1999-01-27 17:53:11 +0000 | [diff] [blame] | 9380 | # -u libsys_s pulls in all symbols in libsys |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9381 | Darwin/*) |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9382 | # -u __dummy makes the linker aware of the objc runtime |
| 9383 | # in System.framework; otherwise, __objcInit (referenced in |
| 9384 | # crt1.o) gets erroneously defined as common, which breaks dynamic |
| 9385 | # loading of any modules which reference it in System.framework. |
| 9386 | # -u _PyMac_Error is needed to pull in the mac toolbox glue, which is |
| 9387 | # not used by the core itself but which needs to be in the core so |
| 9388 | # that dynamically loaded extension modules have access to it. |
Jack Jansen | 591cbed | 2001-08-15 13:55:15 +0000 | [diff] [blame] | 9389 | LINKFORSHARED="$extra_undefs -framework System" |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 9390 | if test "$enable_framework" |
| 9391 | then |
| 9392 | LINKFORSHARED="$LINKFORSHARED -framework Python" |
| 9393 | fi |
| 9394 | LINKFORSHARED="$LINKFORSHARED $extra_frameworks";; |
Martin v. Löwis | 25ae43b | 2001-10-07 08:39:18 +0000 | [diff] [blame] | 9395 | OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; |
Martin v. Löwis | 21ee409 | 2002-09-30 16:19:48 +0000 | [diff] [blame] | 9396 | SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; |
Fred Drake | 02706f5 | 2000-09-25 15:08:46 +0000 | [diff] [blame] | 9397 | ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9398 | FreeBSD*|NetBSD*|OpenBSD*) |
Guido van Rossum | df69365 | 1999-01-07 21:50:41 +0000 | [diff] [blame] | 9399 | if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] |
| 9400 | then |
| 9401 | LINKFORSHARED="-Wl,--export-dynamic" |
| 9402 | fi;; |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9403 | SunOS/5*) case $CC in |
| 9404 | *gcc*) |
Martin v. Löwis | a454857 | 2002-04-18 14:51:36 +0000 | [diff] [blame] | 9405 | if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null |
Guido van Rossum | 8f4ceb1 | 1997-12-18 23:42:19 +0000 | [diff] [blame] | 9406 | then |
| 9407 | LINKFORSHARED="-Xlinker --export-dynamic" |
Guido van Rossum | 2b5ca00 | 1998-03-05 15:41:09 +0000 | [diff] [blame] | 9408 | fi;; |
| 9409 | esac;; |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9410 | esac |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9411 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9412 | echo "$as_me:$LINENO: result: $LINKFORSHARED" >&5 |
| 9413 | echo "${ECHO_T}$LINKFORSHARED" >&6 |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 9414 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 9415 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9416 | echo "$as_me:$LINENO: checking CFLAGSFORSHARED" >&5 |
| 9417 | echo $ECHO_N "checking CFLAGSFORSHARED... $ECHO_C" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9418 | if test ! "$LIBRARY" = "$LDLIBRARY" |
| 9419 | then |
Neil Schemenauer | 0c6141f | 2001-01-27 21:40:54 +0000 | [diff] [blame] | 9420 | case $ac_sys_system in |
| 9421 | CYGWIN*) |
| 9422 | # Cygwin needs CCSHARED when building extension DLLs |
| 9423 | # but not when building the interpreter DLL. |
| 9424 | CFLAGSFORSHARED='';; |
| 9425 | *) |
| 9426 | CFLAGSFORSHARED='$(CCSHARED)' |
| 9427 | esac |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9428 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9429 | echo "$as_me:$LINENO: result: $CFLAGSFORSHARED" >&5 |
| 9430 | echo "${ECHO_T}$CFLAGSFORSHARED" >&6 |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 9431 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9432 | # SHLIBS are libraries (except -lc and -lm) to link to the python shared |
| 9433 | # library (with --enable-shared). |
| 9434 | # 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] | 9435 | # symbols, this must be set to $(LIBS) (expanded by make). We do this even |
| 9436 | # if it is not required, since it creates a dependency of the shared library |
| 9437 | # to LIBS. This, in turn, means that applications linking the shared libpython |
| 9438 | # don't need to link LIBS explicitly. The default should be only changed |
| 9439 | # on systems where this approach causes problems. |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9440 | |
| 9441 | echo "$as_me:$LINENO: checking SHLIBS" >&5 |
| 9442 | echo $ECHO_N "checking SHLIBS... $ECHO_C" >&6 |
| 9443 | case "$ac_sys_system" in |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9444 | *) |
Martin v. Löwis | d6359c5 | 2002-08-04 12:38:50 +0000 | [diff] [blame] | 9445 | SHLIBS='$(LIBS)';; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 9446 | esac |
| 9447 | echo "$as_me:$LINENO: result: $SHLIBS" >&5 |
| 9448 | echo "${ECHO_T}$SHLIBS" >&6 |
| 9449 | |
| 9450 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9451 | # checks for libraries |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9452 | |
| 9453 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
| 9454 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 |
| 9455 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
| 9456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9457 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9458 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9459 | LIBS="-ldl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9460 | cat >conftest.$ac_ext <<_ACEOF |
| 9461 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9462 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9463 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9464 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9465 | #ifdef __cplusplus |
| 9466 | extern "C" |
| 9467 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9468 | /* 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] | 9469 | builtin and then its argument prototype would still apply. */ |
| 9470 | char dlopen (); |
| 9471 | #ifdef F77_DUMMY_MAIN |
| 9472 | # ifdef __cplusplus |
| 9473 | extern "C" |
| 9474 | # endif |
| 9475 | int F77_DUMMY_MAIN() { return 1; } |
| 9476 | #endif |
| 9477 | int |
| 9478 | main () |
| 9479 | { |
| 9480 | dlopen (); |
| 9481 | ; |
| 9482 | return 0; |
| 9483 | } |
| 9484 | _ACEOF |
| 9485 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9486 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9487 | (eval $ac_link) 2>&5 |
| 9488 | ac_status=$? |
| 9489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9490 | (exit $ac_status); } && |
| 9491 | { ac_try='test -s conftest$ac_exeext' |
| 9492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9493 | (eval $ac_try) 2>&5 |
| 9494 | ac_status=$? |
| 9495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9496 | (exit $ac_status); }; }; then |
| 9497 | ac_cv_lib_dl_dlopen=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9498 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9499 | echo "$as_me: failed program was:" >&5 |
| 9500 | cat conftest.$ac_ext >&5 |
| 9501 | ac_cv_lib_dl_dlopen=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9502 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9503 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9504 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9505 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9506 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
| 9507 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 |
| 9508 | if test $ac_cv_lib_dl_dlopen = yes; then |
| 9509 | cat >>confdefs.h <<_ACEOF |
| 9510 | #define HAVE_LIBDL 1 |
| 9511 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9512 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9513 | LIBS="-ldl $LIBS" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9514 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9515 | fi |
| 9516 | # Dynamic linking for SunOS/Solaris and SYSV |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9517 | |
| 9518 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
| 9519 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 |
| 9520 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
| 9521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9522 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9523 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9524 | LIBS="-ldld $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9525 | cat >conftest.$ac_ext <<_ACEOF |
| 9526 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9527 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9528 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9529 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9530 | #ifdef __cplusplus |
| 9531 | extern "C" |
| 9532 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9533 | /* 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] | 9534 | builtin and then its argument prototype would still apply. */ |
| 9535 | char shl_load (); |
| 9536 | #ifdef F77_DUMMY_MAIN |
| 9537 | # ifdef __cplusplus |
| 9538 | extern "C" |
| 9539 | # endif |
| 9540 | int F77_DUMMY_MAIN() { return 1; } |
| 9541 | #endif |
| 9542 | int |
| 9543 | main () |
| 9544 | { |
| 9545 | shl_load (); |
| 9546 | ; |
| 9547 | return 0; |
| 9548 | } |
| 9549 | _ACEOF |
| 9550 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9551 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9552 | (eval $ac_link) 2>&5 |
| 9553 | ac_status=$? |
| 9554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9555 | (exit $ac_status); } && |
| 9556 | { ac_try='test -s conftest$ac_exeext' |
| 9557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9558 | (eval $ac_try) 2>&5 |
| 9559 | ac_status=$? |
| 9560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9561 | (exit $ac_status); }; }; then |
| 9562 | ac_cv_lib_dld_shl_load=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9563 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9564 | echo "$as_me: failed program was:" >&5 |
| 9565 | cat conftest.$ac_ext >&5 |
| 9566 | ac_cv_lib_dld_shl_load=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9567 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9568 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9569 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9570 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9571 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
| 9572 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 |
| 9573 | if test $ac_cv_lib_dld_shl_load = yes; then |
| 9574 | cat >>confdefs.h <<_ACEOF |
| 9575 | #define HAVE_LIBDLD 1 |
| 9576 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 9577 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9578 | LIBS="-ldld $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9579 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9580 | fi |
| 9581 | # Dynamic linking for HP-UX |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9582 | echo "$as_me:$LINENO: checking for library containing sem_init" >&5 |
| 9583 | echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6 |
| 9584 | if test "${ac_cv_search_sem_init+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9586 | else |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9587 | ac_func_search_save_LIBS=$LIBS |
| 9588 | ac_cv_search_sem_init=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9589 | cat >conftest.$ac_ext <<_ACEOF |
| 9590 | #line $LINENO "configure" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9591 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9592 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9593 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9594 | #ifdef __cplusplus |
| 9595 | extern "C" |
| 9596 | #endif |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9597 | /* 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] | 9598 | builtin and then its argument prototype would still apply. */ |
| 9599 | char sem_init (); |
| 9600 | #ifdef F77_DUMMY_MAIN |
| 9601 | # ifdef __cplusplus |
| 9602 | extern "C" |
| 9603 | # endif |
| 9604 | int F77_DUMMY_MAIN() { return 1; } |
| 9605 | #endif |
| 9606 | int |
| 9607 | main () |
| 9608 | { |
| 9609 | sem_init (); |
| 9610 | ; |
| 9611 | return 0; |
| 9612 | } |
| 9613 | _ACEOF |
| 9614 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9615 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9616 | (eval $ac_link) 2>&5 |
| 9617 | ac_status=$? |
| 9618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9619 | (exit $ac_status); } && |
| 9620 | { ac_try='test -s conftest$ac_exeext' |
| 9621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9622 | (eval $ac_try) 2>&5 |
| 9623 | ac_status=$? |
| 9624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9625 | (exit $ac_status); }; }; then |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9626 | ac_cv_search_sem_init="none required" |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9627 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9628 | echo "$as_me: failed program was:" >&5 |
| 9629 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9630 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9631 | 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] | 9632 | if test "$ac_cv_search_sem_init" = no; then |
| 9633 | for ac_lib in rt posix4; do |
| 9634 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 9635 | cat >conftest.$ac_ext <<_ACEOF |
| 9636 | #line $LINENO "configure" |
| 9637 | #include "confdefs.h" |
| 9638 | |
| 9639 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 9640 | #ifdef __cplusplus |
| 9641 | extern "C" |
| 9642 | #endif |
| 9643 | /* We use char because int might match the return type of a gcc2 |
| 9644 | builtin and then its argument prototype would still apply. */ |
| 9645 | char sem_init (); |
| 9646 | #ifdef F77_DUMMY_MAIN |
| 9647 | # ifdef __cplusplus |
| 9648 | extern "C" |
| 9649 | # endif |
| 9650 | int F77_DUMMY_MAIN() { return 1; } |
| 9651 | #endif |
| 9652 | int |
| 9653 | main () |
| 9654 | { |
| 9655 | sem_init (); |
| 9656 | ; |
| 9657 | return 0; |
| 9658 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9659 | _ACEOF |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9660 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9661 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9662 | (eval $ac_link) 2>&5 |
| 9663 | ac_status=$? |
| 9664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9665 | (exit $ac_status); } && |
| 9666 | { ac_try='test -s conftest$ac_exeext' |
| 9667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9668 | (eval $ac_try) 2>&5 |
| 9669 | ac_status=$? |
| 9670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9671 | (exit $ac_status); }; }; then |
| 9672 | ac_cv_search_sem_init="-l$ac_lib" |
| 9673 | break |
| 9674 | else |
| 9675 | echo "$as_me: failed program was:" >&5 |
| 9676 | cat conftest.$ac_ext >&5 |
| 9677 | fi |
| 9678 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9679 | done |
| 9680 | fi |
| 9681 | LIBS=$ac_func_search_save_LIBS |
| 9682 | fi |
| 9683 | echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5 |
| 9684 | echo "${ECHO_T}$ac_cv_search_sem_init" >&6 |
| 9685 | if test "$ac_cv_search_sem_init" != no; then |
| 9686 | 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] | 9687 | |
Martin v. Löwis | 41933dd | 2002-03-21 15:10:58 +0000 | [diff] [blame] | 9688 | fi |
Martin v. Löwis | 82c19a7 | 2002-10-06 11:48:09 +0000 | [diff] [blame] | 9689 | # 'Real Time' functions on Solaris, |
| 9690 | # posix4 on Solaris 2.6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9691 | |
| 9692 | # checks for system dependent C++ extensions support |
| 9693 | case "$ac_sys_system" in |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9694 | AIX*) echo "$as_me:$LINENO: checking for genuine AIX C++ extensions support" >&5 |
| 9695 | echo $ECHO_N "checking for genuine AIX C++ extensions support... $ECHO_C" >&6 |
| 9696 | cat >conftest.$ac_ext <<_ACEOF |
| 9697 | #line $LINENO "configure" |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9698 | #include "confdefs.h" |
| 9699 | #include "/usr/lpp/xlC/include/load.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9700 | #ifdef F77_DUMMY_MAIN |
| 9701 | # ifdef __cplusplus |
| 9702 | extern "C" |
| 9703 | # endif |
| 9704 | int F77_DUMMY_MAIN() { return 1; } |
| 9705 | #endif |
| 9706 | int |
| 9707 | main () |
| 9708 | { |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9709 | loadAndInit("", 0, "") |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9710 | ; |
| 9711 | return 0; |
| 9712 | } |
| 9713 | _ACEOF |
| 9714 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9715 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9716 | (eval $ac_link) 2>&5 |
| 9717 | ac_status=$? |
| 9718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9719 | (exit $ac_status); } && |
| 9720 | { ac_try='test -s conftest$ac_exeext' |
| 9721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9722 | (eval $ac_try) 2>&5 |
| 9723 | ac_status=$? |
| 9724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9725 | (exit $ac_status); }; }; then |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9726 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9727 | cat >>confdefs.h <<\_ACEOF |
| 9728 | #define AIX_GENUINE_CPLUSPLUS 1 |
| 9729 | _ACEOF |
| 9730 | |
| 9731 | echo "$as_me:$LINENO: result: yes" >&5 |
| 9732 | echo "${ECHO_T}yes" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9733 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9734 | echo "$as_me: failed program was:" >&5 |
| 9735 | cat conftest.$ac_ext >&5 |
| 9736 | echo "$as_me:$LINENO: result: no" >&5 |
| 9737 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9738 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9739 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext;; |
Guido van Rossum | 0eefa3f | 1999-11-16 15:57:37 +0000 | [diff] [blame] | 9740 | *) ;; |
| 9741 | esac |
| 9742 | |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9743 | # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. |
Martin v. Löwis | e117258 | 2002-11-13 08:51:19 +0000 | [diff] [blame] | 9744 | # However on SGI IRIX 4, these exist but are broken. |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9745 | # BeOS' sockets are stashed in libnet. |
| 9746 | case "$ac_sys_system" in |
| 9747 | IRIX*) ;; |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 9748 | *) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9749 | echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5 |
| 9750 | echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6 |
| 9751 | if test "${ac_cv_lib_nsl_t_open+set}" = set; then |
| 9752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9753 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9754 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9755 | LIBS="-lnsl $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9756 | cat >conftest.$ac_ext <<_ACEOF |
| 9757 | #line $LINENO "configure" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9758 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9759 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9760 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9761 | #ifdef __cplusplus |
| 9762 | extern "C" |
| 9763 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 9764 | /* 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] | 9765 | builtin and then its argument prototype would still apply. */ |
| 9766 | char t_open (); |
| 9767 | #ifdef F77_DUMMY_MAIN |
| 9768 | # ifdef __cplusplus |
| 9769 | extern "C" |
| 9770 | # endif |
| 9771 | int F77_DUMMY_MAIN() { return 1; } |
| 9772 | #endif |
| 9773 | int |
| 9774 | main () |
| 9775 | { |
| 9776 | t_open (); |
| 9777 | ; |
| 9778 | return 0; |
| 9779 | } |
| 9780 | _ACEOF |
| 9781 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9782 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9783 | (eval $ac_link) 2>&5 |
| 9784 | ac_status=$? |
| 9785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9786 | (exit $ac_status); } && |
| 9787 | { ac_try='test -s conftest$ac_exeext' |
| 9788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9789 | (eval $ac_try) 2>&5 |
| 9790 | ac_status=$? |
| 9791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9792 | (exit $ac_status); }; }; then |
| 9793 | ac_cv_lib_nsl_t_open=yes |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9794 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9795 | echo "$as_me: failed program was:" >&5 |
| 9796 | cat conftest.$ac_ext >&5 |
| 9797 | ac_cv_lib_nsl_t_open=no |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9798 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9799 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9800 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9801 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9802 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5 |
| 9803 | echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6 |
| 9804 | if test $ac_cv_lib_nsl_t_open = yes; then |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9805 | LIBS="-lnsl $LIBS" |
Guido van Rossum | 79dddcb | 1995-01-12 12:25:42 +0000 | [diff] [blame] | 9806 | fi |
Guido van Rossum | 0ddb028 | 1995-01-17 16:46:14 +0000 | [diff] [blame] | 9807 | # SVR4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9808 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 |
| 9809 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
| 9810 | if test "${ac_cv_lib_socket_socket+set}" = set; then |
| 9811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 9812 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9813 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 9814 | LIBS="-lsocket $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9815 | cat >conftest.$ac_ext <<_ACEOF |
| 9816 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9817 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9818 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9819 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9820 | #ifdef __cplusplus |
| 9821 | extern "C" |
| 9822 | #endif |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9823 | /* 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] | 9824 | builtin and then its argument prototype would still apply. */ |
| 9825 | char socket (); |
| 9826 | #ifdef F77_DUMMY_MAIN |
| 9827 | # ifdef __cplusplus |
| 9828 | extern "C" |
| 9829 | # endif |
| 9830 | int F77_DUMMY_MAIN() { return 1; } |
| 9831 | #endif |
| 9832 | int |
| 9833 | main () |
| 9834 | { |
| 9835 | socket (); |
| 9836 | ; |
| 9837 | return 0; |
| 9838 | } |
| 9839 | _ACEOF |
| 9840 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9841 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9842 | (eval $ac_link) 2>&5 |
| 9843 | ac_status=$? |
| 9844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9845 | (exit $ac_status); } && |
| 9846 | { ac_try='test -s conftest$ac_exeext' |
| 9847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9848 | (eval $ac_try) 2>&5 |
| 9849 | ac_status=$? |
| 9850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9851 | (exit $ac_status); }; }; then |
| 9852 | ac_cv_lib_socket_socket=yes |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9853 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9854 | echo "$as_me: failed program was:" >&5 |
| 9855 | cat conftest.$ac_ext >&5 |
| 9856 | ac_cv_lib_socket_socket=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9857 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9858 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9859 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9860 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9861 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 |
| 9862 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 |
| 9863 | if test $ac_cv_lib_socket_socket = yes; then |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9864 | LIBS="-lsocket $LIBS" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9865 | fi |
| 9866 | # SVR4 sockets |
Jeremy Hylton | cb25d5e | 2000-07-27 21:23:28 +0000 | [diff] [blame] | 9867 | ;; |
| 9868 | esac |
| 9869 | case "$ac_sys_system" in |
| 9870 | BeOS*) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9871 | echo "$as_me:$LINENO: checking for socket in -lnet" >&5 |
| 9872 | echo $ECHO_N "checking for socket in -lnet... $ECHO_C" >&6 |
| 9873 | if test "${ac_cv_lib_net_socket+set}" = set; then |
| 9874 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9875 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9876 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9877 | LIBS="-lnet $LIBS $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9878 | cat >conftest.$ac_ext <<_ACEOF |
| 9879 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9880 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9881 | |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9882 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9883 | #ifdef __cplusplus |
| 9884 | extern "C" |
| 9885 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9886 | /* 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] | 9887 | builtin and then its argument prototype would still apply. */ |
| 9888 | char socket (); |
| 9889 | #ifdef F77_DUMMY_MAIN |
| 9890 | # ifdef __cplusplus |
| 9891 | extern "C" |
| 9892 | # endif |
| 9893 | int F77_DUMMY_MAIN() { return 1; } |
| 9894 | #endif |
| 9895 | int |
| 9896 | main () |
| 9897 | { |
| 9898 | socket (); |
| 9899 | ; |
| 9900 | return 0; |
| 9901 | } |
| 9902 | _ACEOF |
| 9903 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 9904 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 9905 | (eval $ac_link) 2>&5 |
| 9906 | ac_status=$? |
| 9907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9908 | (exit $ac_status); } && |
| 9909 | { ac_try='test -s conftest$ac_exeext' |
| 9910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 9911 | (eval $ac_try) 2>&5 |
| 9912 | ac_status=$? |
| 9913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9914 | (exit $ac_status); }; }; then |
| 9915 | ac_cv_lib_net_socket=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9916 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9917 | echo "$as_me: failed program was:" >&5 |
| 9918 | cat conftest.$ac_ext >&5 |
| 9919 | ac_cv_lib_net_socket=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9920 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9921 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 9922 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 9923 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9924 | echo "$as_me:$LINENO: result: $ac_cv_lib_net_socket" >&5 |
| 9925 | echo "${ECHO_T}$ac_cv_lib_net_socket" >&6 |
| 9926 | if test $ac_cv_lib_net_socket = yes; then |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9927 | LIBS="-lnet $LIBS" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 9928 | fi |
| 9929 | # BeOS |
| 9930 | ;; |
| 9931 | esac |
Guido van Rossum | 70c7f48 | 1998-03-26 18:44:10 +0000 | [diff] [blame] | 9932 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9933 | echo "$as_me:$LINENO: checking for --with-libs" >&5 |
| 9934 | echo $ECHO_N "checking for --with-libs... $ECHO_C" >&6 |
| 9935 | |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9936 | # Check whether --with-libs or --without-libs was given. |
| 9937 | if test "${with_libs+set}" = set; then |
| 9938 | withval="$with_libs" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9939 | |
| 9940 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 9941 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | a68acba | 1996-07-31 17:36:39 +0000 | [diff] [blame] | 9942 | LIBS="$withval $LIBS" |
| 9943 | |
| 9944 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9945 | echo "$as_me:$LINENO: result: no" >&5 |
| 9946 | echo "${ECHO_T}no" >&6 |
| 9947 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 9948 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 9949 | # Determine if signalmodule should be used. |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9950 | |
| 9951 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9952 | echo "$as_me:$LINENO: checking for --with-signal-module" >&5 |
| 9953 | echo $ECHO_N "checking for --with-signal-module... $ECHO_C" >&6 |
| 9954 | |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9955 | # Check whether --with-signal-module or --without-signal-module was given. |
| 9956 | if test "${with_signal_module+set}" = set; then |
| 9957 | withval="$with_signal_module" |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9958 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9959 | fi; |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9960 | |
| 9961 | if test -z "$with_signal_module" |
| 9962 | then with_signal_module="yes" |
| 9963 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9964 | echo "$as_me:$LINENO: result: $with_signal_module" >&5 |
| 9965 | echo "${ECHO_T}$with_signal_module" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 9966 | |
| 9967 | if test "${with_signal_module}" = "yes"; then |
| 9968 | USE_SIGNAL_MODULE="" |
| 9969 | SIGNAL_OBJS="" |
| 9970 | else |
| 9971 | USE_SIGNAL_MODULE="#" |
| 9972 | SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" |
| 9973 | fi |
| 9974 | |
Guido van Rossum | 3d15bd8 | 2001-01-10 18:53:48 +0000 | [diff] [blame] | 9975 | # This is used to generate Setup.config |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9976 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 9977 | USE_THREAD_MODULE="" |
Guido van Rossum | 009f787 | 1997-12-04 00:51:42 +0000 | [diff] [blame] | 9978 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9979 | echo "$as_me:$LINENO: checking for --with-dec-threads" >&5 |
| 9980 | echo $ECHO_N "checking for --with-dec-threads... $ECHO_C" >&6 |
| 9981 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9982 | |
| 9983 | # Check whether --with-dec-threads or --without-dec-threads was given. |
| 9984 | if test "${with_dec_threads+set}" = set; then |
| 9985 | withval="$with_dec_threads" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9986 | |
| 9987 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 9988 | echo "${ECHO_T}$withval" >&6 |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9989 | LDLAST=-threads |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9990 | if test "${with_thread+set}" != set; then |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9991 | with_thread="$withval"; |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 9992 | fi |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 9993 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 9994 | echo "$as_me:$LINENO: result: no" >&5 |
| 9995 | echo "${ECHO_T}no" >&6 |
| 9996 | fi; |
| 9997 | |
| 9998 | # Templates for things AC_DEFINEd more than once. |
| 9999 | # For a single AC_DEFINE, no template is needed. |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10000 | |
| 10001 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10002 | |
| 10003 | |
| 10004 | |
| 10005 | |
| 10006 | |
| 10007 | echo "$as_me:$LINENO: checking for --with-threads" >&5 |
| 10008 | echo $ECHO_N "checking for --with-threads... $ECHO_C" >&6 |
| 10009 | |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10010 | # Check whether --with-threads or --without-threads was given. |
| 10011 | if test "${with_threads+set}" = set; then |
| 10012 | withval="$with_threads" |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10013 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10014 | fi; |
Guido van Rossum | ec2f073 | 1997-01-22 20:54:01 +0000 | [diff] [blame] | 10015 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10016 | # --with-thread is deprecated, but check for it anyway |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10017 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10018 | # Check whether --with-thread or --without-thread was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 10019 | if test "${with_thread+set}" = set; then |
| 10020 | withval="$with_thread" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10021 | with_threads=$with_thread |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10022 | fi; |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10023 | |
| 10024 | if test -z "$with_threads" |
| 10025 | then with_threads="yes" |
| 10026 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10027 | echo "$as_me:$LINENO: result: $with_threads" >&5 |
| 10028 | echo "${ECHO_T}$with_threads" >&6 |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10029 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10030 | |
Barry Warsaw | c0d24d8 | 2000-06-29 16:12:00 +0000 | [diff] [blame] | 10031 | if test "$with_threads" = "no" |
| 10032 | then |
| 10033 | USE_THREAD_MODULE="#" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10034 | elif test "$ac_cv_pthread_is_default" = yes |
| 10035 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10036 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10037 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10038 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10039 | |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10040 | # Defining _REENTRANT on system with POSIX threads should not hurt. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10041 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10042 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10043 | _ACEOF |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 10044 | |
| 10045 | posix_threads=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10046 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10047 | elif test "$ac_cv_kpthread" = "yes" |
| 10048 | then |
| 10049 | CC="$CC -Kpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10050 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 10051 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10052 | _ACEOF |
Guido van Rossum | 2242f2f | 2001-04-11 20:58:20 +0000 | [diff] [blame] | 10053 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10054 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10055 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10056 | else |
| 10057 | if test ! -z "$with_threads" -a -d "$with_threads" |
| 10058 | then LDFLAGS="$LDFLAGS -L$with_threads" |
| 10059 | fi |
| 10060 | if test ! -z "$withval" -a -d "$withval" |
| 10061 | then LDFLAGS="$LDFLAGS -L$withval" |
| 10062 | fi |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10063 | |
| 10064 | # According to the POSIX spec, a pthreads implementation must |
| 10065 | # 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] | 10066 | echo "$as_me:$LINENO: checking for _POSIX_THREADS in unistd.h" >&5 |
| 10067 | echo $ECHO_N "checking for _POSIX_THREADS in unistd.h... $ECHO_C" >&6 |
| 10068 | cat >conftest.$ac_ext <<_ACEOF |
| 10069 | #line $LINENO "configure" |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10070 | #include "confdefs.h" |
| 10071 | #include <unistd.h> |
| 10072 | #ifdef _POSIX_THREADS |
| 10073 | yes |
| 10074 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10075 | |
| 10076 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10077 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 10078 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10079 | unistd_defines_pthreads=yes |
| 10080 | else |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10081 | unistd_defines_pthreads=no |
| 10082 | fi |
| 10083 | rm -f conftest* |
| 10084 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10085 | echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5 |
| 10086 | echo "${ECHO_T}$unistd_defines_pthreads" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10087 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10088 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10089 | #define _REENTRANT 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10090 | _ACEOF |
Guido van Rossum | 9caf77a | 1996-08-01 00:52:26 +0000 | [diff] [blame] | 10091 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10092 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10093 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 10094 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 10095 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10097 | fi |
| 10098 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 10099 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10100 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10101 | # Is the header compilable? |
| 10102 | echo "$as_me:$LINENO: checking cthreads.h usability" >&5 |
| 10103 | echo $ECHO_N "checking cthreads.h usability... $ECHO_C" >&6 |
| 10104 | cat >conftest.$ac_ext <<_ACEOF |
| 10105 | #line $LINENO "configure" |
| 10106 | #include "confdefs.h" |
| 10107 | $ac_includes_default |
| 10108 | #include <cthreads.h> |
| 10109 | _ACEOF |
| 10110 | rm -f conftest.$ac_objext |
| 10111 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10112 | (eval $ac_compile) 2>&5 |
| 10113 | ac_status=$? |
| 10114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10115 | (exit $ac_status); } && |
| 10116 | { ac_try='test -s conftest.$ac_objext' |
| 10117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10118 | (eval $ac_try) 2>&5 |
| 10119 | ac_status=$? |
| 10120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10121 | (exit $ac_status); }; }; then |
| 10122 | ac_header_compiler=yes |
| 10123 | else |
| 10124 | echo "$as_me: failed program was:" >&5 |
| 10125 | cat conftest.$ac_ext >&5 |
| 10126 | ac_header_compiler=no |
| 10127 | fi |
| 10128 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10129 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10130 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10131 | |
| 10132 | # Is the header present? |
| 10133 | echo "$as_me:$LINENO: checking cthreads.h presence" >&5 |
| 10134 | echo $ECHO_N "checking cthreads.h presence... $ECHO_C" >&6 |
| 10135 | cat >conftest.$ac_ext <<_ACEOF |
| 10136 | #line $LINENO "configure" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10137 | #include "confdefs.h" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10138 | #include <cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10139 | _ACEOF |
| 10140 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10141 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10142 | ac_status=$? |
| 10143 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 10144 | rm -f conftest.er1 |
| 10145 | cat conftest.err >&5 |
| 10146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10147 | (exit $ac_status); } >/dev/null; then |
| 10148 | if test -s conftest.err; then |
| 10149 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10150 | else |
| 10151 | ac_cpp_err= |
| 10152 | fi |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10153 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10154 | ac_cpp_err=yes |
| 10155 | fi |
| 10156 | if test -z "$ac_cpp_err"; then |
| 10157 | ac_header_preproc=yes |
| 10158 | else |
| 10159 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 10160 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10161 | ac_header_preproc=no |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10162 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10163 | rm -f conftest.err conftest.$ac_ext |
| 10164 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10165 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10166 | |
| 10167 | # So? What about this header? |
| 10168 | case $ac_header_compiler:$ac_header_preproc in |
| 10169 | yes:no ) |
| 10170 | { echo "$as_me:$LINENO: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10171 | echo "$as_me: WARNING: cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10172 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10173 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10174 | no:yes ) |
| 10175 | { echo "$as_me:$LINENO: WARNING: cthreads.h: present but cannot be compiled" >&5 |
| 10176 | echo "$as_me: WARNING: cthreads.h: present but cannot be compiled" >&2;} |
| 10177 | { echo "$as_me:$LINENO: WARNING: cthreads.h: check for missing prerequisite headers?" >&5 |
| 10178 | echo "$as_me: WARNING: cthreads.h: check for missing prerequisite headers?" >&2;} |
| 10179 | { echo "$as_me:$LINENO: WARNING: cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10180 | echo "$as_me: WARNING: cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10181 | esac |
| 10182 | echo "$as_me:$LINENO: checking for cthreads.h" >&5 |
| 10183 | echo $ECHO_N "checking for cthreads.h... $ECHO_C" >&6 |
| 10184 | if test "${ac_cv_header_cthreads_h+set}" = set; then |
| 10185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10186 | else |
| 10187 | ac_cv_header_cthreads_h=$ac_header_preproc |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10188 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10189 | echo "$as_me:$LINENO: result: $ac_cv_header_cthreads_h" >&5 |
| 10190 | echo "${ECHO_T}$ac_cv_header_cthreads_h" >&6 |
| 10191 | |
| 10192 | fi |
| 10193 | if test $ac_cv_header_cthreads_h = yes; then |
| 10194 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10195 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10196 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10197 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10198 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10199 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10200 | _ACEOF |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10201 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10202 | |
| 10203 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10204 | #define HURD_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10205 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10206 | |
| 10207 | LIBS="$LIBS -lthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10208 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10209 | else |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10210 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10211 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10212 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 10213 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 10214 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10216 | fi |
| 10217 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 10218 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10219 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10220 | # Is the header compilable? |
| 10221 | echo "$as_me:$LINENO: checking mach/cthreads.h usability" >&5 |
| 10222 | echo $ECHO_N "checking mach/cthreads.h usability... $ECHO_C" >&6 |
| 10223 | cat >conftest.$ac_ext <<_ACEOF |
| 10224 | #line $LINENO "configure" |
| 10225 | #include "confdefs.h" |
| 10226 | $ac_includes_default |
| 10227 | #include <mach/cthreads.h> |
| 10228 | _ACEOF |
| 10229 | rm -f conftest.$ac_objext |
| 10230 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10231 | (eval $ac_compile) 2>&5 |
| 10232 | ac_status=$? |
| 10233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10234 | (exit $ac_status); } && |
| 10235 | { ac_try='test -s conftest.$ac_objext' |
| 10236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10237 | (eval $ac_try) 2>&5 |
| 10238 | ac_status=$? |
| 10239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10240 | (exit $ac_status); }; }; then |
| 10241 | ac_header_compiler=yes |
| 10242 | else |
| 10243 | echo "$as_me: failed program was:" >&5 |
| 10244 | cat conftest.$ac_ext >&5 |
| 10245 | ac_header_compiler=no |
| 10246 | fi |
| 10247 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10248 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10249 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10250 | |
| 10251 | # Is the header present? |
| 10252 | echo "$as_me:$LINENO: checking mach/cthreads.h presence" >&5 |
| 10253 | echo $ECHO_N "checking mach/cthreads.h presence... $ECHO_C" >&6 |
| 10254 | cat >conftest.$ac_ext <<_ACEOF |
| 10255 | #line $LINENO "configure" |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10256 | #include "confdefs.h" |
| 10257 | #include <mach/cthreads.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10258 | _ACEOF |
| 10259 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10260 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10261 | ac_status=$? |
| 10262 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 10263 | rm -f conftest.er1 |
| 10264 | cat conftest.err >&5 |
| 10265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10266 | (exit $ac_status); } >/dev/null; then |
| 10267 | if test -s conftest.err; then |
| 10268 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10269 | else |
| 10270 | ac_cpp_err= |
| 10271 | fi |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10272 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10273 | ac_cpp_err=yes |
| 10274 | fi |
| 10275 | if test -z "$ac_cpp_err"; then |
| 10276 | ac_header_preproc=yes |
| 10277 | else |
| 10278 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10279 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10280 | ac_header_preproc=no |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10281 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10282 | rm -f conftest.err conftest.$ac_ext |
| 10283 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10284 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10285 | |
| 10286 | # So? What about this header? |
| 10287 | case $ac_header_compiler:$ac_header_preproc in |
| 10288 | yes:no ) |
| 10289 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10290 | echo "$as_me: WARNING: mach/cthreads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10291 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10292 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10293 | no:yes ) |
| 10294 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: present but cannot be compiled" >&5 |
| 10295 | echo "$as_me: WARNING: mach/cthreads.h: present but cannot be compiled" >&2;} |
| 10296 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&5 |
| 10297 | echo "$as_me: WARNING: mach/cthreads.h: check for missing prerequisite headers?" >&2;} |
| 10298 | { echo "$as_me:$LINENO: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&5 |
| 10299 | echo "$as_me: WARNING: mach/cthreads.h: proceeding with the preprocessor's result" >&2;};; |
| 10300 | esac |
| 10301 | echo "$as_me:$LINENO: checking for mach/cthreads.h" >&5 |
| 10302 | echo $ECHO_N "checking for mach/cthreads.h... $ECHO_C" >&6 |
| 10303 | if test "${ac_cv_header_mach_cthreads_h+set}" = set; then |
| 10304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10305 | else |
| 10306 | ac_cv_header_mach_cthreads_h=$ac_header_preproc |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10307 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10308 | echo "$as_me:$LINENO: result: $ac_cv_header_mach_cthreads_h" >&5 |
| 10309 | echo "${ECHO_T}$ac_cv_header_mach_cthreads_h" >&6 |
| 10310 | |
| 10311 | fi |
| 10312 | if test $ac_cv_header_mach_cthreads_h = yes; then |
| 10313 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10314 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10315 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10316 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10317 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10318 | #define C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10319 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10320 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10321 | |
| 10322 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10323 | #define MACH_C_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10324 | _ACEOF |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 10325 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10326 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10327 | else |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 10328 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10329 | echo "$as_me:$LINENO: checking for --with-pth" >&5 |
| 10330 | echo $ECHO_N "checking for --with-pth... $ECHO_C" >&6 |
| 10331 | |
| 10332 | # Check whether --with-pth or --without-pth was given. |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10333 | if test "${with_pth+set}" = set; then |
| 10334 | withval="$with_pth" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10335 | echo "$as_me:$LINENO: result: $withval" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10336 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10337 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10338 | #define WITH_THREAD 1 |
| 10339 | _ACEOF |
| 10340 | |
| 10341 | |
| 10342 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10343 | #define HAVE_PTH 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10344 | _ACEOF |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10345 | |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10346 | LIBS="-lpth $LIBS" |
| 10347 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 9e8181b | 2000-09-19 00:46:46 +0000 | [diff] [blame] | 10348 | else |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 10349 | echo "$as_me:$LINENO: result: no" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10350 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10351 | |
| 10352 | # Just looking for pthread_create in libpthread is not enough: |
| 10353 | # on HP/UX, pthread.h renames pthread_create to a different symbol name. |
| 10354 | # So we really have to include pthread.h, and then link. |
| 10355 | _libs=$LIBS |
| 10356 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10357 | echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
| 10358 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6 |
| 10359 | cat >conftest.$ac_ext <<_ACEOF |
| 10360 | #line $LINENO "configure" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10361 | #include "confdefs.h" |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10362 | #include <pthread.h> |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10363 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10364 | void * start_routine (void *arg) { exit (0); } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10365 | #ifdef F77_DUMMY_MAIN |
| 10366 | # ifdef __cplusplus |
| 10367 | extern "C" |
| 10368 | # endif |
| 10369 | int F77_DUMMY_MAIN() { return 1; } |
| 10370 | #endif |
| 10371 | int |
| 10372 | main () |
| 10373 | { |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10374 | |
| 10375 | pthread_create (NULL, NULL, start_routine, NULL) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10376 | ; |
| 10377 | return 0; |
| 10378 | } |
| 10379 | _ACEOF |
| 10380 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10381 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10382 | (eval $ac_link) 2>&5 |
| 10383 | ac_status=$? |
| 10384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10385 | (exit $ac_status); } && |
| 10386 | { ac_try='test -s conftest$ac_exeext' |
| 10387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10388 | (eval $ac_try) 2>&5 |
| 10389 | ac_status=$? |
| 10390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10391 | (exit $ac_status); }; }; then |
| 10392 | |
| 10393 | echo "$as_me:$LINENO: result: yes" >&5 |
| 10394 | echo "${ECHO_T}yes" >&6 |
| 10395 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10396 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10397 | _ACEOF |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10398 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10399 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10400 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 02a1c40 | 2000-02-25 19:26:31 +0000 | [diff] [blame] | 10401 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10402 | echo "$as_me: failed program was:" >&5 |
| 10403 | cat conftest.$ac_ext >&5 |
| 10404 | |
Martin v. Löwis | 8158b5a | 2001-10-08 13:17:28 +0000 | [diff] [blame] | 10405 | LIBS=$_libs |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10406 | echo "$as_me:$LINENO: checking for pthread_detach" >&5 |
| 10407 | echo $ECHO_N "checking for pthread_detach... $ECHO_C" >&6 |
| 10408 | if test "${ac_cv_func_pthread_detach+set}" = set; then |
| 10409 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10410 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10411 | cat >conftest.$ac_ext <<_ACEOF |
| 10412 | #line $LINENO "configure" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10413 | #include "confdefs.h" |
| 10414 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10415 | which can conflict with char pthread_detach (); below. */ |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10416 | #include <assert.h> |
| 10417 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10418 | #ifdef __cplusplus |
| 10419 | extern "C" |
| 10420 | #endif |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10421 | /* 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] | 10422 | builtin and then its argument prototype would still apply. */ |
| 10423 | char pthread_detach (); |
| 10424 | char (*f) (); |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10425 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10426 | #ifdef F77_DUMMY_MAIN |
| 10427 | # ifdef __cplusplus |
| 10428 | extern "C" |
| 10429 | # endif |
| 10430 | int F77_DUMMY_MAIN() { return 1; } |
| 10431 | #endif |
| 10432 | int |
| 10433 | main () |
| 10434 | { |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10435 | /* The GNU C library defines this for functions which it implements |
| 10436 | to always fail with ENOSYS. Some functions are actually named |
| 10437 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | ea51632 | 1998-12-17 18:08:55 +0000 | [diff] [blame] | 10438 | #if defined (__stub_pthread_detach) || defined (__stub___pthread_detach) |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10439 | choke me |
| 10440 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10441 | f = pthread_detach; |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10442 | #endif |
| 10443 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10444 | ; |
| 10445 | return 0; |
| 10446 | } |
| 10447 | _ACEOF |
| 10448 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10449 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10450 | (eval $ac_link) 2>&5 |
| 10451 | ac_status=$? |
| 10452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10453 | (exit $ac_status); } && |
| 10454 | { ac_try='test -s conftest$ac_exeext' |
| 10455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10456 | (eval $ac_try) 2>&5 |
| 10457 | ac_status=$? |
| 10458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10459 | (exit $ac_status); }; }; then |
| 10460 | ac_cv_func_pthread_detach=yes |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10461 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10462 | echo "$as_me: failed program was:" >&5 |
| 10463 | cat conftest.$ac_ext >&5 |
| 10464 | ac_cv_func_pthread_detach=no |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10465 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10466 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10467 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10468 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_detach" >&5 |
| 10469 | echo "${ECHO_T}$ac_cv_func_pthread_detach" >&6 |
| 10470 | if test $ac_cv_func_pthread_detach = yes; then |
| 10471 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10472 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10473 | _ACEOF |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10474 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 10475 | posix_threads=yes |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10476 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10477 | else |
Guido van Rossum | ad678af | 1998-10-02 14:42:15 +0000 | [diff] [blame] | 10478 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 10479 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10480 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 10481 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 10482 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10483 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10484 | fi |
| 10485 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 10486 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 10487 | else |
| 10488 | # Is the header compilable? |
| 10489 | echo "$as_me:$LINENO: checking atheos/threads.h usability" >&5 |
| 10490 | echo $ECHO_N "checking atheos/threads.h usability... $ECHO_C" >&6 |
| 10491 | cat >conftest.$ac_ext <<_ACEOF |
| 10492 | #line $LINENO "configure" |
| 10493 | #include "confdefs.h" |
| 10494 | $ac_includes_default |
| 10495 | #include <atheos/threads.h> |
| 10496 | _ACEOF |
| 10497 | rm -f conftest.$ac_objext |
| 10498 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10499 | (eval $ac_compile) 2>&5 |
| 10500 | ac_status=$? |
| 10501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10502 | (exit $ac_status); } && |
| 10503 | { ac_try='test -s conftest.$ac_objext' |
| 10504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10505 | (eval $ac_try) 2>&5 |
| 10506 | ac_status=$? |
| 10507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10508 | (exit $ac_status); }; }; then |
| 10509 | ac_header_compiler=yes |
| 10510 | else |
| 10511 | echo "$as_me: failed program was:" >&5 |
| 10512 | cat conftest.$ac_ext >&5 |
| 10513 | ac_header_compiler=no |
| 10514 | fi |
| 10515 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10516 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10517 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10518 | |
| 10519 | # Is the header present? |
| 10520 | echo "$as_me:$LINENO: checking atheos/threads.h presence" >&5 |
| 10521 | echo $ECHO_N "checking atheos/threads.h presence... $ECHO_C" >&6 |
| 10522 | cat >conftest.$ac_ext <<_ACEOF |
| 10523 | #line $LINENO "configure" |
| 10524 | #include "confdefs.h" |
| 10525 | #include <atheos/threads.h> |
| 10526 | _ACEOF |
| 10527 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10528 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10529 | ac_status=$? |
| 10530 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 10531 | rm -f conftest.er1 |
| 10532 | cat conftest.err >&5 |
| 10533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10534 | (exit $ac_status); } >/dev/null; then |
| 10535 | if test -s conftest.err; then |
| 10536 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10537 | else |
| 10538 | ac_cpp_err= |
| 10539 | fi |
| 10540 | else |
| 10541 | ac_cpp_err=yes |
| 10542 | fi |
| 10543 | if test -z "$ac_cpp_err"; then |
| 10544 | ac_header_preproc=yes |
| 10545 | else |
| 10546 | echo "$as_me: failed program was:" >&5 |
| 10547 | cat conftest.$ac_ext >&5 |
| 10548 | ac_header_preproc=no |
| 10549 | fi |
| 10550 | rm -f conftest.err conftest.$ac_ext |
| 10551 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10552 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 10553 | |
| 10554 | # So? What about this header? |
| 10555 | case $ac_header_compiler:$ac_header_preproc in |
| 10556 | yes:no ) |
| 10557 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10558 | echo "$as_me: WARNING: atheos/threads.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10559 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 10560 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};; |
| 10561 | no:yes ) |
| 10562 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: present but cannot be compiled" >&5 |
| 10563 | echo "$as_me: WARNING: atheos/threads.h: present but cannot be compiled" >&2;} |
| 10564 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&5 |
| 10565 | echo "$as_me: WARNING: atheos/threads.h: check for missing prerequisite headers?" >&2;} |
| 10566 | { echo "$as_me:$LINENO: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&5 |
| 10567 | echo "$as_me: WARNING: atheos/threads.h: proceeding with the preprocessor's result" >&2;};; |
| 10568 | esac |
| 10569 | echo "$as_me:$LINENO: checking for atheos/threads.h" >&5 |
| 10570 | echo $ECHO_N "checking for atheos/threads.h... $ECHO_C" >&6 |
| 10571 | if test "${ac_cv_header_atheos_threads_h+set}" = set; then |
| 10572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10573 | else |
| 10574 | ac_cv_header_atheos_threads_h=$ac_header_preproc |
| 10575 | fi |
| 10576 | echo "$as_me:$LINENO: result: $ac_cv_header_atheos_threads_h" >&5 |
| 10577 | echo "${ECHO_T}$ac_cv_header_atheos_threads_h" >&6 |
| 10578 | |
| 10579 | fi |
| 10580 | if test $ac_cv_header_atheos_threads_h = yes; then |
| 10581 | cat >>confdefs.h <<\_ACEOF |
| 10582 | #define WITH_THREAD 1 |
| 10583 | _ACEOF |
| 10584 | |
| 10585 | |
| 10586 | cat >>confdefs.h <<\_ACEOF |
| 10587 | #define ATHEOS_THREADS 1 |
| 10588 | _ACEOF |
| 10589 | |
| 10590 | THREADOBJ="Python/thread.o" |
| 10591 | else |
| 10592 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10593 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10594 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 10595 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 10596 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10598 | fi |
| 10599 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 10600 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10601 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10602 | # Is the header compilable? |
| 10603 | echo "$as_me:$LINENO: checking kernel/OS.h usability" >&5 |
| 10604 | echo $ECHO_N "checking kernel/OS.h usability... $ECHO_C" >&6 |
| 10605 | cat >conftest.$ac_ext <<_ACEOF |
| 10606 | #line $LINENO "configure" |
| 10607 | #include "confdefs.h" |
| 10608 | $ac_includes_default |
| 10609 | #include <kernel/OS.h> |
| 10610 | _ACEOF |
| 10611 | rm -f conftest.$ac_objext |
| 10612 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 10613 | (eval $ac_compile) 2>&5 |
| 10614 | ac_status=$? |
| 10615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10616 | (exit $ac_status); } && |
| 10617 | { ac_try='test -s conftest.$ac_objext' |
| 10618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10619 | (eval $ac_try) 2>&5 |
| 10620 | ac_status=$? |
| 10621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10622 | (exit $ac_status); }; }; then |
| 10623 | ac_header_compiler=yes |
| 10624 | else |
| 10625 | echo "$as_me: failed program was:" >&5 |
| 10626 | cat conftest.$ac_ext >&5 |
| 10627 | ac_header_compiler=no |
| 10628 | fi |
| 10629 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 10630 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 10631 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 10632 | |
| 10633 | # Is the header present? |
| 10634 | echo "$as_me:$LINENO: checking kernel/OS.h presence" >&5 |
| 10635 | echo $ECHO_N "checking kernel/OS.h presence... $ECHO_C" >&6 |
| 10636 | cat >conftest.$ac_ext <<_ACEOF |
| 10637 | #line $LINENO "configure" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10638 | #include "confdefs.h" |
| 10639 | #include <kernel/OS.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10640 | _ACEOF |
| 10641 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 10642 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10643 | ac_status=$? |
| 10644 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 10645 | rm -f conftest.er1 |
| 10646 | cat conftest.err >&5 |
| 10647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10648 | (exit $ac_status); } >/dev/null; then |
| 10649 | if test -s conftest.err; then |
| 10650 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 10651 | else |
| 10652 | ac_cpp_err= |
| 10653 | fi |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10654 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10655 | ac_cpp_err=yes |
| 10656 | fi |
| 10657 | if test -z "$ac_cpp_err"; then |
| 10658 | ac_header_preproc=yes |
| 10659 | else |
| 10660 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10661 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10662 | ac_header_preproc=no |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10663 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10664 | rm -f conftest.err conftest.$ac_ext |
| 10665 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 10666 | echo "${ECHO_T}$ac_header_preproc" >&6 |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10667 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10668 | # So? What about this header? |
| 10669 | case $ac_header_compiler:$ac_header_preproc in |
| 10670 | yes:no ) |
| 10671 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 10672 | echo "$as_me: WARNING: kernel/OS.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 10673 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 10674 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};; |
| 10675 | no:yes ) |
| 10676 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: present but cannot be compiled" >&5 |
| 10677 | echo "$as_me: WARNING: kernel/OS.h: present but cannot be compiled" >&2;} |
| 10678 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&5 |
| 10679 | echo "$as_me: WARNING: kernel/OS.h: check for missing prerequisite headers?" >&2;} |
| 10680 | { echo "$as_me:$LINENO: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&5 |
| 10681 | echo "$as_me: WARNING: kernel/OS.h: proceeding with the preprocessor's result" >&2;};; |
| 10682 | esac |
| 10683 | echo "$as_me:$LINENO: checking for kernel/OS.h" >&5 |
| 10684 | echo $ECHO_N "checking for kernel/OS.h... $ECHO_C" >&6 |
| 10685 | if test "${ac_cv_header_kernel_OS_h+set}" = set; then |
| 10686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 10687 | else |
| 10688 | ac_cv_header_kernel_OS_h=$ac_header_preproc |
| 10689 | fi |
| 10690 | echo "$as_me:$LINENO: result: $ac_cv_header_kernel_OS_h" >&5 |
| 10691 | echo "${ECHO_T}$ac_cv_header_kernel_OS_h" >&6 |
| 10692 | |
| 10693 | fi |
| 10694 | if test $ac_cv_header_kernel_OS_h = yes; then |
| 10695 | cat >>confdefs.h <<\_ACEOF |
| 10696 | #define WITH_THREAD 1 |
| 10697 | _ACEOF |
| 10698 | |
| 10699 | |
| 10700 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10701 | #define BEOS_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10702 | _ACEOF |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10703 | |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10704 | THREADOBJ="Python/thread.o" |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10705 | else |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 10706 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10707 | echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5 |
| 10708 | echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6 |
| 10709 | if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then |
| 10710 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 10711 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10712 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 10713 | LIBS="-lpthreads $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10714 | cat >conftest.$ac_ext <<_ACEOF |
| 10715 | #line $LINENO "configure" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10716 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10717 | |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10718 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10719 | #ifdef __cplusplus |
| 10720 | extern "C" |
| 10721 | #endif |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10722 | /* 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] | 10723 | builtin and then its argument prototype would still apply. */ |
| 10724 | char pthread_create (); |
| 10725 | #ifdef F77_DUMMY_MAIN |
| 10726 | # ifdef __cplusplus |
| 10727 | extern "C" |
| 10728 | # endif |
| 10729 | int F77_DUMMY_MAIN() { return 1; } |
| 10730 | #endif |
| 10731 | int |
| 10732 | main () |
| 10733 | { |
| 10734 | pthread_create (); |
| 10735 | ; |
| 10736 | return 0; |
| 10737 | } |
| 10738 | _ACEOF |
| 10739 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10740 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10741 | (eval $ac_link) 2>&5 |
| 10742 | ac_status=$? |
| 10743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10744 | (exit $ac_status); } && |
| 10745 | { ac_try='test -s conftest$ac_exeext' |
| 10746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10747 | (eval $ac_try) 2>&5 |
| 10748 | ac_status=$? |
| 10749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10750 | (exit $ac_status); }; }; then |
| 10751 | ac_cv_lib_pthreads_pthread_create=yes |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10752 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10753 | echo "$as_me: failed program was:" >&5 |
| 10754 | cat conftest.$ac_ext >&5 |
| 10755 | ac_cv_lib_pthreads_pthread_create=no |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10756 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10757 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10758 | LIBS=$ac_check_lib_save_LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10759 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10760 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5 |
| 10761 | echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6 |
| 10762 | if test $ac_cv_lib_pthreads_pthread_create = yes; then |
| 10763 | cat >>confdefs.h <<\_ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10764 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10765 | _ACEOF |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10766 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10767 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10768 | LIBS="$LIBS -lpthreads" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10769 | THREADOBJ="Python/thread.o" |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10770 | else |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10771 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10772 | echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5 |
| 10773 | echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6 |
| 10774 | if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then |
| 10775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10776 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10777 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10778 | LIBS="-lc_r $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10779 | cat >conftest.$ac_ext <<_ACEOF |
| 10780 | #line $LINENO "configure" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10781 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10782 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10783 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10784 | #ifdef __cplusplus |
| 10785 | extern "C" |
| 10786 | #endif |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10787 | /* 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] | 10788 | builtin and then its argument prototype would still apply. */ |
| 10789 | char pthread_create (); |
| 10790 | #ifdef F77_DUMMY_MAIN |
| 10791 | # ifdef __cplusplus |
| 10792 | extern "C" |
| 10793 | # endif |
| 10794 | int F77_DUMMY_MAIN() { return 1; } |
| 10795 | #endif |
| 10796 | int |
| 10797 | main () |
| 10798 | { |
| 10799 | pthread_create (); |
| 10800 | ; |
| 10801 | return 0; |
| 10802 | } |
| 10803 | _ACEOF |
| 10804 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10805 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10806 | (eval $ac_link) 2>&5 |
| 10807 | ac_status=$? |
| 10808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10809 | (exit $ac_status); } && |
| 10810 | { ac_try='test -s conftest$ac_exeext' |
| 10811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10812 | (eval $ac_try) 2>&5 |
| 10813 | ac_status=$? |
| 10814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10815 | (exit $ac_status); }; }; then |
| 10816 | ac_cv_lib_c_r_pthread_create=yes |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10817 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10818 | echo "$as_me: failed program was:" >&5 |
| 10819 | cat conftest.$ac_ext >&5 |
| 10820 | ac_cv_lib_c_r_pthread_create=no |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10821 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10822 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10823 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10824 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10825 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5 |
| 10826 | echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6 |
| 10827 | if test $ac_cv_lib_c_r_pthread_create = yes; then |
| 10828 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10829 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10830 | _ACEOF |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10831 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10832 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10833 | LIBS="$LIBS -lc_r" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10834 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10835 | else |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10836 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10837 | echo "$as_me:$LINENO: checking for __d6_pthread_create in -lthread" >&5 |
| 10838 | echo $ECHO_N "checking for __d6_pthread_create in -lthread... $ECHO_C" >&6 |
| 10839 | if test "${ac_cv_lib_thread___d6_pthread_create+set}" = set; then |
| 10840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10841 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10842 | ac_check_lib_save_LIBS=$LIBS |
Greg Stein | adf63d6 | 2000-07-05 10:38:09 +0000 | [diff] [blame] | 10843 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10844 | cat >conftest.$ac_ext <<_ACEOF |
| 10845 | #line $LINENO "configure" |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10846 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10847 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10848 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10849 | #ifdef __cplusplus |
| 10850 | extern "C" |
| 10851 | #endif |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10852 | /* 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] | 10853 | builtin and then its argument prototype would still apply. */ |
| 10854 | char __d6_pthread_create (); |
| 10855 | #ifdef F77_DUMMY_MAIN |
| 10856 | # ifdef __cplusplus |
| 10857 | extern "C" |
| 10858 | # endif |
| 10859 | int F77_DUMMY_MAIN() { return 1; } |
| 10860 | #endif |
| 10861 | int |
| 10862 | main () |
| 10863 | { |
| 10864 | __d6_pthread_create (); |
| 10865 | ; |
| 10866 | return 0; |
| 10867 | } |
| 10868 | _ACEOF |
| 10869 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10870 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10871 | (eval $ac_link) 2>&5 |
| 10872 | ac_status=$? |
| 10873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10874 | (exit $ac_status); } && |
| 10875 | { ac_try='test -s conftest$ac_exeext' |
| 10876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10877 | (eval $ac_try) 2>&5 |
| 10878 | ac_status=$? |
| 10879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10880 | (exit $ac_status); }; }; then |
| 10881 | ac_cv_lib_thread___d6_pthread_create=yes |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10882 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10883 | echo "$as_me: failed program was:" >&5 |
| 10884 | cat conftest.$ac_ext >&5 |
| 10885 | ac_cv_lib_thread___d6_pthread_create=no |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10886 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10887 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10888 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10889 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10890 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread___d6_pthread_create" >&5 |
| 10891 | echo "${ECHO_T}$ac_cv_lib_thread___d6_pthread_create" >&6 |
| 10892 | if test $ac_cv_lib_thread___d6_pthread_create = yes; then |
| 10893 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10894 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10895 | _ACEOF |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 10896 | |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 10897 | echo Systems with __d6_pthread_create are not supported anymore. |
| 10898 | echo See README |
| 10899 | exit 1 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10900 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10901 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10902 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10903 | else |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 10904 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10905 | echo "$as_me:$LINENO: checking for __pthread_create_system in -lpthread" >&5 |
| 10906 | echo $ECHO_N "checking for __pthread_create_system in -lpthread... $ECHO_C" >&6 |
| 10907 | if test "${ac_cv_lib_pthread___pthread_create_system+set}" = set; then |
| 10908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10909 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10910 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10911 | LIBS="-lpthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10912 | cat >conftest.$ac_ext <<_ACEOF |
| 10913 | #line $LINENO "configure" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10914 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10915 | |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10916 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10917 | #ifdef __cplusplus |
| 10918 | extern "C" |
| 10919 | #endif |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10920 | /* 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] | 10921 | builtin and then its argument prototype would still apply. */ |
| 10922 | char __pthread_create_system (); |
| 10923 | #ifdef F77_DUMMY_MAIN |
| 10924 | # ifdef __cplusplus |
| 10925 | extern "C" |
| 10926 | # endif |
| 10927 | int F77_DUMMY_MAIN() { return 1; } |
| 10928 | #endif |
| 10929 | int |
| 10930 | main () |
| 10931 | { |
| 10932 | __pthread_create_system (); |
| 10933 | ; |
| 10934 | return 0; |
| 10935 | } |
| 10936 | _ACEOF |
| 10937 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 10938 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 10939 | (eval $ac_link) 2>&5 |
| 10940 | ac_status=$? |
| 10941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10942 | (exit $ac_status); } && |
| 10943 | { ac_try='test -s conftest$ac_exeext' |
| 10944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 10945 | (eval $ac_try) 2>&5 |
| 10946 | ac_status=$? |
| 10947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 10948 | (exit $ac_status); }; }; then |
| 10949 | ac_cv_lib_pthread___pthread_create_system=yes |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10950 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10951 | echo "$as_me: failed program was:" >&5 |
| 10952 | cat conftest.$ac_ext >&5 |
| 10953 | ac_cv_lib_pthread___pthread_create_system=no |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10954 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10955 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 10956 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10957 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10958 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_create_system" >&5 |
| 10959 | echo "${ECHO_T}$ac_cv_lib_pthread___pthread_create_system" >&6 |
| 10960 | if test $ac_cv_lib_pthread___pthread_create_system = yes; then |
| 10961 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10962 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10963 | _ACEOF |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10964 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 10965 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 10966 | LIBS="$LIBS -lpthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 10967 | THREADOBJ="Python/thread.o" |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10968 | else |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 10969 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10970 | echo "$as_me:$LINENO: checking for pthread_create in -lcma" >&5 |
| 10971 | echo $ECHO_N "checking for pthread_create in -lcma... $ECHO_C" >&6 |
| 10972 | if test "${ac_cv_lib_cma_pthread_create+set}" = set; then |
| 10973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10974 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10975 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10976 | LIBS="-lcma $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10977 | cat >conftest.$ac_ext <<_ACEOF |
| 10978 | #line $LINENO "configure" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10979 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10980 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10981 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 10982 | #ifdef __cplusplus |
| 10983 | extern "C" |
| 10984 | #endif |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 10985 | /* 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] | 10986 | builtin and then its argument prototype would still apply. */ |
| 10987 | char pthread_create (); |
| 10988 | #ifdef F77_DUMMY_MAIN |
| 10989 | # ifdef __cplusplus |
| 10990 | extern "C" |
| 10991 | # endif |
| 10992 | int F77_DUMMY_MAIN() { return 1; } |
| 10993 | #endif |
| 10994 | int |
| 10995 | main () |
| 10996 | { |
| 10997 | pthread_create (); |
| 10998 | ; |
| 10999 | return 0; |
| 11000 | } |
| 11001 | _ACEOF |
| 11002 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11003 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11004 | (eval $ac_link) 2>&5 |
| 11005 | ac_status=$? |
| 11006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11007 | (exit $ac_status); } && |
| 11008 | { ac_try='test -s conftest$ac_exeext' |
| 11009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11010 | (eval $ac_try) 2>&5 |
| 11011 | ac_status=$? |
| 11012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11013 | (exit $ac_status); }; }; then |
| 11014 | ac_cv_lib_cma_pthread_create=yes |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11015 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11016 | echo "$as_me: failed program was:" >&5 |
| 11017 | cat conftest.$ac_ext >&5 |
| 11018 | ac_cv_lib_cma_pthread_create=no |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11019 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11020 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11021 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11022 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11023 | echo "$as_me:$LINENO: result: $ac_cv_lib_cma_pthread_create" >&5 |
| 11024 | echo "${ECHO_T}$ac_cv_lib_cma_pthread_create" >&6 |
| 11025 | if test $ac_cv_lib_cma_pthread_create = yes; then |
| 11026 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11027 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11028 | _ACEOF |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11029 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11030 | posix_threads=yes |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11031 | LIBS="$LIBS -lcma" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11032 | THREADOBJ="Python/thread.o" |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11033 | else |
Thomas Wouters | 0db2b2b | 2000-08-26 11:33:43 +0000 | [diff] [blame] | 11034 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11035 | USE_THREAD_MODULE="#" |
Guido van Rossum | 2d38f91 | 1996-06-26 19:47:01 +0000 | [diff] [blame] | 11036 | fi |
| 11037 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11038 | |
Guido van Rossum | 7b3853f | 1996-07-30 18:09:35 +0000 | [diff] [blame] | 11039 | fi |
| 11040 | |
Guido van Rossum | 0be3e49 | 1997-05-22 20:33:33 +0000 | [diff] [blame] | 11041 | fi |
| 11042 | |
Guido van Rossum | 4954595 | 1997-12-02 19:28:29 +0000 | [diff] [blame] | 11043 | fi |
| 11044 | |
Guido van Rossum | b93a862 | 1998-05-07 13:27:32 +0000 | [diff] [blame] | 11045 | fi |
| 11046 | |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 11047 | fi |
| 11048 | |
Guido van Rossum | 07bd90e | 2000-05-08 13:41:38 +0000 | [diff] [blame] | 11049 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11050 | fi |
| 11051 | |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11052 | |
| 11053 | fi |
| 11054 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11055 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11056 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11057 | fi; |
| 11058 | fi |
| 11059 | |
| 11060 | |
| 11061 | fi |
| 11062 | |
Martin v. Löwis | a6e9758 | 2002-01-01 18:41:33 +0000 | [diff] [blame] | 11063 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11064 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11065 | if test "$posix_threads" = "yes"; then |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11066 | if test "$unistd_defines_pthreads" = "no"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11067 | |
| 11068 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11069 | #define _POSIX_THREADS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11070 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11071 | |
| 11072 | fi |
| 11073 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11074 | echo "$as_me:$LINENO: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 |
| 11075 | echo $ECHO_N "checking if PTHREAD_SCOPE_SYSTEM is supported... $ECHO_C" >&6 |
| 11076 | if test "${ac_cv_pthread_system_supported+set}" = set; then |
| 11077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11078 | else |
| 11079 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 11080 | ac_cv_pthread_system_supported=no |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11081 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11082 | cat >conftest.$ac_ext <<_ACEOF |
| 11083 | #line $LINENO "configure" |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11084 | #include "confdefs.h" |
| 11085 | #include <pthread.h> |
| 11086 | void *foo(void *parm) { |
| 11087 | return NULL; |
| 11088 | } |
| 11089 | main() { |
| 11090 | pthread_attr_t attr; |
Martin v. Löwis | a82d347 | 2002-02-24 16:05:05 +0000 | [diff] [blame] | 11091 | pthread_t id; |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11092 | if (pthread_attr_init(&attr)) exit(-1); |
| 11093 | if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); |
Martin v. Löwis | a82d347 | 2002-02-24 16:05:05 +0000 | [diff] [blame] | 11094 | if (pthread_create(&id, &attr, foo, NULL)) exit(-1); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11095 | exit(0); |
| 11096 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11097 | _ACEOF |
| 11098 | rm -f conftest$ac_exeext |
| 11099 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11100 | (eval $ac_link) 2>&5 |
| 11101 | ac_status=$? |
| 11102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11103 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11105 | (eval $ac_try) 2>&5 |
| 11106 | ac_status=$? |
| 11107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11108 | (exit $ac_status); }; }; then |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11109 | ac_cv_pthread_system_supported=yes |
| 11110 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11111 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11112 | echo "$as_me: failed program was:" >&5 |
| 11113 | cat conftest.$ac_ext >&5 |
| 11114 | ( exit $ac_status ) |
| 11115 | ac_cv_pthread_system_supported=no |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11116 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11117 | 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] | 11118 | fi |
| 11119 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11120 | fi |
| 11121 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11122 | echo "$as_me:$LINENO: result: $ac_cv_pthread_system_supported" >&5 |
| 11123 | echo "${ECHO_T}$ac_cv_pthread_system_supported" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11124 | if test "$ac_cv_pthread_system_supported" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11125 | |
| 11126 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11127 | #define PTHREAD_SYSTEM_SCHED_SUPPORTED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11128 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11129 | |
| 11130 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11131 | |
| 11132 | for ac_func in pthread_sigmask |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11133 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11134 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11135 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11136 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11137 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11139 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11140 | cat >conftest.$ac_ext <<_ACEOF |
| 11141 | #line $LINENO "configure" |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11142 | #include "confdefs.h" |
| 11143 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11144 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11145 | #include <assert.h> |
| 11146 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11147 | #ifdef __cplusplus |
| 11148 | extern "C" |
| 11149 | #endif |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11150 | /* 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] | 11151 | builtin and then its argument prototype would still apply. */ |
| 11152 | char $ac_func (); |
| 11153 | char (*f) (); |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11154 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11155 | #ifdef F77_DUMMY_MAIN |
| 11156 | # ifdef __cplusplus |
| 11157 | extern "C" |
| 11158 | # endif |
| 11159 | int F77_DUMMY_MAIN() { return 1; } |
| 11160 | #endif |
| 11161 | int |
| 11162 | main () |
| 11163 | { |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11164 | /* The GNU C library defines this for functions which it implements |
| 11165 | to always fail with ENOSYS. Some functions are actually named |
| 11166 | something starting with __ and the normal name is an alias. */ |
| 11167 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 11168 | choke me |
| 11169 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11170 | f = $ac_func; |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11171 | #endif |
| 11172 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11173 | ; |
| 11174 | return 0; |
| 11175 | } |
| 11176 | _ACEOF |
| 11177 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11178 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11179 | (eval $ac_link) 2>&5 |
| 11180 | ac_status=$? |
| 11181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11182 | (exit $ac_status); } && |
| 11183 | { ac_try='test -s conftest$ac_exeext' |
| 11184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11185 | (eval $ac_try) 2>&5 |
| 11186 | ac_status=$? |
| 11187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11188 | (exit $ac_status); }; }; then |
| 11189 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11190 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11191 | echo "$as_me: failed program was:" >&5 |
| 11192 | cat conftest.$ac_ext >&5 |
| 11193 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11194 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11195 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11196 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11197 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11198 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11199 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11200 | cat >>confdefs.h <<_ACEOF |
| 11201 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11202 | _ACEOF |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11203 | |
Martin v. Löwis | 69c0ff3 | 2001-10-15 14:34:42 +0000 | [diff] [blame] | 11204 | fi |
| 11205 | done |
| 11206 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 11207 | fi |
| 11208 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11209 | echo "$as_me:$LINENO: checking for usconfig in -lmpc" >&5 |
| 11210 | echo $ECHO_N "checking for usconfig in -lmpc... $ECHO_C" >&6 |
| 11211 | if test "${ac_cv_lib_mpc_usconfig+set}" = set; then |
| 11212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11213 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11214 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11215 | LIBS="-lmpc $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11216 | cat >conftest.$ac_ext <<_ACEOF |
| 11217 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11218 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11219 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11220 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11221 | #ifdef __cplusplus |
| 11222 | extern "C" |
| 11223 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11224 | /* 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] | 11225 | builtin and then its argument prototype would still apply. */ |
| 11226 | char usconfig (); |
| 11227 | #ifdef F77_DUMMY_MAIN |
| 11228 | # ifdef __cplusplus |
| 11229 | extern "C" |
| 11230 | # endif |
| 11231 | int F77_DUMMY_MAIN() { return 1; } |
| 11232 | #endif |
| 11233 | int |
| 11234 | main () |
| 11235 | { |
| 11236 | usconfig (); |
| 11237 | ; |
| 11238 | return 0; |
| 11239 | } |
| 11240 | _ACEOF |
| 11241 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11242 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11243 | (eval $ac_link) 2>&5 |
| 11244 | ac_status=$? |
| 11245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11246 | (exit $ac_status); } && |
| 11247 | { ac_try='test -s conftest$ac_exeext' |
| 11248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11249 | (eval $ac_try) 2>&5 |
| 11250 | ac_status=$? |
| 11251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11252 | (exit $ac_status); }; }; then |
| 11253 | ac_cv_lib_mpc_usconfig=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11254 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11255 | echo "$as_me: failed program was:" >&5 |
| 11256 | cat conftest.$ac_ext >&5 |
| 11257 | ac_cv_lib_mpc_usconfig=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11258 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11259 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11260 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11261 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11262 | echo "$as_me:$LINENO: result: $ac_cv_lib_mpc_usconfig" >&5 |
| 11263 | echo "${ECHO_T}$ac_cv_lib_mpc_usconfig" >&6 |
| 11264 | if test $ac_cv_lib_mpc_usconfig = yes; then |
| 11265 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11266 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11267 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11268 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11269 | LIBS="$LIBS -lmpc" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11270 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11271 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11272 | fi |
| 11273 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11274 | |
Neal Norwitz | a978ab0 | 2002-11-02 16:58:05 +0000 | [diff] [blame] | 11275 | if test "$posix_threads" != "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11276 | echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5 |
| 11277 | echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6 |
| 11278 | if test "${ac_cv_lib_thread_thr_create+set}" = set; then |
| 11279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11280 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11281 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 11282 | LIBS="-lthread $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11283 | cat >conftest.$ac_ext <<_ACEOF |
| 11284 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11285 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11286 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11287 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11288 | #ifdef __cplusplus |
| 11289 | extern "C" |
| 11290 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11291 | /* 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] | 11292 | builtin and then its argument prototype would still apply. */ |
| 11293 | char thr_create (); |
| 11294 | #ifdef F77_DUMMY_MAIN |
| 11295 | # ifdef __cplusplus |
| 11296 | extern "C" |
| 11297 | # endif |
| 11298 | int F77_DUMMY_MAIN() { return 1; } |
| 11299 | #endif |
| 11300 | int |
| 11301 | main () |
| 11302 | { |
| 11303 | thr_create (); |
| 11304 | ; |
| 11305 | return 0; |
| 11306 | } |
| 11307 | _ACEOF |
| 11308 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11309 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11310 | (eval $ac_link) 2>&5 |
| 11311 | ac_status=$? |
| 11312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11313 | (exit $ac_status); } && |
| 11314 | { ac_try='test -s conftest$ac_exeext' |
| 11315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11316 | (eval $ac_try) 2>&5 |
| 11317 | ac_status=$? |
| 11318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11319 | (exit $ac_status); }; }; then |
| 11320 | ac_cv_lib_thread_thr_create=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11321 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11322 | echo "$as_me: failed program was:" >&5 |
| 11323 | cat conftest.$ac_ext >&5 |
| 11324 | ac_cv_lib_thread_thr_create=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11325 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11326 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 11327 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11328 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11329 | echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5 |
| 11330 | echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6 |
| 11331 | if test $ac_cv_lib_thread_thr_create = yes; then |
| 11332 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11333 | #define WITH_THREAD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11334 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11335 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11336 | LIBS="$LIBS -lthread" |
Martin v. Löwis | 2d7e264 | 2002-04-05 16:50:53 +0000 | [diff] [blame] | 11337 | THREADOBJ="Python/thread.o" |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11338 | USE_THREAD_MODULE="" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11339 | fi |
| 11340 | |
Martin v. Löwis | 3d2b549 | 2002-03-15 13:48:21 +0000 | [diff] [blame] | 11341 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11342 | |
Martin v. Löwis | 130fb17 | 2001-07-19 11:00:41 +0000 | [diff] [blame] | 11343 | if test "$USE_THREAD_MODULE" != "#" |
| 11344 | then |
| 11345 | # If the above checks didn't disable threads, (at least) OSF1 |
| 11346 | # needs this '-threads' argument during linking. |
| 11347 | case $ac_sys_system in |
| 11348 | OSF1) LDLAST=-threads;; |
| 11349 | esac |
Jeremy Hylton | 1a2ca86 | 2000-10-16 16:59:12 +0000 | [diff] [blame] | 11350 | fi |
Martin v. Löwis | a7a76d3 | 2002-10-04 07:21:24 +0000 | [diff] [blame] | 11351 | |
| 11352 | if test "$posix_threads" = yes -a \ |
| 11353 | "$ac_sys_system" = "SunOS" -a \ |
| 11354 | "$ac_sys_release" = "5.6"; then |
| 11355 | |
| 11356 | cat >>confdefs.h <<\_ACEOF |
| 11357 | #define HAVE_PTHREAD_DESTRUCTOR 1 |
| 11358 | _ACEOF |
| 11359 | |
| 11360 | fi |
| 11361 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11362 | fi |
| 11363 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11364 | # Check for enable-ipv6 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11365 | |
| 11366 | |
| 11367 | echo "$as_me:$LINENO: checking if --enable-ipv6 is specified" >&5 |
| 11368 | 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] | 11369 | # Check whether --enable-ipv6 or --disable-ipv6 was given. |
| 11370 | if test "${enable_ipv6+set}" = set; then |
| 11371 | enableval="$enable_ipv6" |
| 11372 | case "$enableval" in |
| 11373 | no) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11374 | echo "$as_me:$LINENO: result: no" >&5 |
| 11375 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11376 | ipv6=no |
| 11377 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11378 | *) echo "$as_me:$LINENO: result: yes" >&5 |
| 11379 | echo "${ECHO_T}yes" >&6 |
| 11380 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11381 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11382 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11383 | |
| 11384 | ipv6=yes |
| 11385 | ;; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11386 | esac |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11387 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11388 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11389 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11390 | echo "$as_me:$LINENO: result: no" >&5 |
| 11391 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11392 | ipv6=no |
| 11393 | |
| 11394 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11395 | cat >conftest.$ac_ext <<_ACEOF |
| 11396 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11397 | #include "confdefs.h" |
| 11398 | /* AF_INET6 available check */ |
| 11399 | #include <sys/types.h> |
| 11400 | #include <sys/socket.h> |
| 11401 | main() |
| 11402 | { |
| 11403 | if (socket(AF_INET6, SOCK_STREAM, 0) < 0) |
| 11404 | exit(1); |
| 11405 | else |
| 11406 | exit(0); |
| 11407 | } |
| 11408 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11409 | _ACEOF |
| 11410 | rm -f conftest$ac_exeext |
| 11411 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11412 | (eval $ac_link) 2>&5 |
| 11413 | ac_status=$? |
| 11414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11415 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 11416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11417 | (eval $ac_try) 2>&5 |
| 11418 | ac_status=$? |
| 11419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11420 | (exit $ac_status); }; }; then |
| 11421 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11422 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11423 | ipv6=yes |
| 11424 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11425 | echo "$as_me: program exited with status $ac_status" >&5 |
| 11426 | echo "$as_me: failed program was:" >&5 |
| 11427 | cat conftest.$ac_ext >&5 |
| 11428 | ( exit $ac_status ) |
| 11429 | echo "$as_me:$LINENO: result: no" >&5 |
| 11430 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11431 | ipv6=no |
| 11432 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11433 | 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] | 11434 | fi |
| 11435 | |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11436 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11437 | echo "$as_me:$LINENO: checking if RFC2553 API is available" >&5 |
| 11438 | echo $ECHO_N "checking if RFC2553 API is available... $ECHO_C" >&6 |
| 11439 | cat >conftest.$ac_ext <<_ACEOF |
| 11440 | #line $LINENO "configure" |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11441 | #include "confdefs.h" |
| 11442 | #include <sys/types.h> |
| 11443 | #include <netinet/in.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11444 | #ifdef F77_DUMMY_MAIN |
| 11445 | # ifdef __cplusplus |
| 11446 | extern "C" |
| 11447 | # endif |
| 11448 | int F77_DUMMY_MAIN() { return 1; } |
| 11449 | #endif |
| 11450 | int |
| 11451 | main () |
| 11452 | { |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11453 | struct sockaddr_in6 x; |
| 11454 | x.sin6_scope_id; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11455 | ; |
| 11456 | return 0; |
| 11457 | } |
| 11458 | _ACEOF |
| 11459 | rm -f conftest.$ac_objext |
| 11460 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 11461 | (eval $ac_compile) 2>&5 |
| 11462 | ac_status=$? |
| 11463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11464 | (exit $ac_status); } && |
| 11465 | { ac_try='test -s conftest.$ac_objext' |
| 11466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11467 | (eval $ac_try) 2>&5 |
| 11468 | ac_status=$? |
| 11469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11470 | (exit $ac_status); }; }; then |
| 11471 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11472 | echo "${ECHO_T}yes" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11473 | ipv6=yes |
| 11474 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11475 | echo "$as_me: failed program was:" >&5 |
| 11476 | cat conftest.$ac_ext >&5 |
| 11477 | echo "$as_me:$LINENO: result: no" >&5 |
| 11478 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11479 | ipv6=no |
| 11480 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11481 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11482 | fi |
| 11483 | |
| 11484 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11485 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11486 | #define ENABLE_IPV6 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11487 | _ACEOF |
Martin v. Löwis | a5f8bb5 | 2001-09-05 08:22:34 +0000 | [diff] [blame] | 11488 | |
| 11489 | fi |
| 11490 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11491 | fi; |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11492 | |
| 11493 | ipv6type=unknown |
| 11494 | ipv6lib=none |
| 11495 | ipv6trylibc=no |
| 11496 | |
| 11497 | if test "$ipv6" = "yes"; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11498 | echo "$as_me:$LINENO: checking ipv6 stack type" >&5 |
| 11499 | echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6 |
Guido van Rossum | b855216 | 2001-09-05 14:58:11 +0000 | [diff] [blame] | 11500 | for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; |
| 11501 | do |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11502 | case $i in |
| 11503 | inria) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11504 | cat >conftest.$ac_ext <<_ACEOF |
| 11505 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11506 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11507 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11508 | #include <netinet/in.h> |
| 11509 | #ifdef IPV6_INRIA_VERSION |
| 11510 | yes |
| 11511 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11512 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11513 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11514 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11515 | ipv6type=$i |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11516 | fi |
| 11517 | rm -f conftest* |
| 11518 | |
| 11519 | ;; |
| 11520 | kame) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11521 | cat >conftest.$ac_ext <<_ACEOF |
| 11522 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11523 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11524 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11525 | #include <netinet/in.h> |
| 11526 | #ifdef __KAME__ |
| 11527 | yes |
| 11528 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11529 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11530 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11531 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11532 | ipv6type=$i; |
| 11533 | ipv6lib=inet6 |
| 11534 | ipv6libdir=/usr/local/v6/lib |
| 11535 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11536 | fi |
| 11537 | rm -f conftest* |
| 11538 | |
| 11539 | ;; |
| 11540 | linux-glibc) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11541 | cat >conftest.$ac_ext <<_ACEOF |
| 11542 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11543 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11544 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11545 | #include <features.h> |
| 11546 | #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) |
| 11547 | yes |
| 11548 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11549 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11550 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11551 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11552 | ipv6type=$i; |
| 11553 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11554 | fi |
| 11555 | rm -f conftest* |
| 11556 | |
| 11557 | ;; |
| 11558 | linux-inet6) |
| 11559 | if test -d /usr/inet6; then |
| 11560 | ipv6type=$i |
| 11561 | ipv6lib=inet6 |
| 11562 | ipv6libdir=/usr/inet6/lib |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11563 | OPT="-I/usr/inet6/include $OPT" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11564 | fi |
| 11565 | ;; |
| 11566 | solaris) |
| 11567 | if test -f /etc/netconfig; then |
| 11568 | if /usr/xpg4/bin/grep -q tcp6 /etc/netconfig; then |
| 11569 | ipv6type=$i |
| 11570 | ipv6trylibc=yes |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11571 | fi |
| 11572 | fi |
| 11573 | ;; |
| 11574 | toshiba) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11575 | cat >conftest.$ac_ext <<_ACEOF |
| 11576 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11577 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11578 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11579 | #include <sys/param.h> |
| 11580 | #ifdef _TOSHIBA_INET6 |
| 11581 | yes |
| 11582 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11583 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11584 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11585 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11586 | ipv6type=$i; |
| 11587 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11588 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11589 | fi |
| 11590 | rm -f conftest* |
| 11591 | |
| 11592 | ;; |
| 11593 | v6d) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11594 | cat >conftest.$ac_ext <<_ACEOF |
| 11595 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11596 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11597 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11598 | #include </usr/local/v6/include/sys/v6config.h> |
| 11599 | #ifdef __V6D__ |
| 11600 | yes |
| 11601 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11602 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11603 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11604 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11605 | ipv6type=$i; |
| 11606 | ipv6lib=v6; |
| 11607 | ipv6libdir=/usr/local/v6/lib; |
| 11608 | OPT="-I/usr/local/v6/include $OPT" |
| 11609 | fi |
| 11610 | rm -f conftest* |
| 11611 | |
| 11612 | ;; |
| 11613 | zeta) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11614 | cat >conftest.$ac_ext <<_ACEOF |
| 11615 | #line $LINENO "configure" |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11616 | #include "confdefs.h" |
Martin v. Löwis | a5f73f9 | 2001-10-15 08:06:29 +0000 | [diff] [blame] | 11617 | |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11618 | #include <sys/param.h> |
| 11619 | #ifdef _ZETA_MINAMI_INET6 |
| 11620 | yes |
| 11621 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11622 | _ACEOF |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11623 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 11624 | egrep "yes" >/dev/null 2>&1; then |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11625 | ipv6type=$i; |
| 11626 | ipv6lib=inet6; |
Martin v. Löwis | 44ddbde | 2001-12-02 10:15:37 +0000 | [diff] [blame] | 11627 | ipv6libdir=/usr/local/v6/lib |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11628 | fi |
| 11629 | rm -f conftest* |
| 11630 | |
| 11631 | ;; |
| 11632 | esac |
| 11633 | if test "$ipv6type" != "unknown"; then |
| 11634 | break |
| 11635 | fi |
| 11636 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11637 | echo "$as_me:$LINENO: result: $ipv6type" >&5 |
| 11638 | echo "${ECHO_T}$ipv6type" >&6 |
Martin v. Löwis | a2ac602 | 2001-08-09 11:40:14 +0000 | [diff] [blame] | 11639 | fi |
| 11640 | |
| 11641 | if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then |
| 11642 | if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then |
| 11643 | LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" |
| 11644 | echo "using lib$ipv6lib" |
| 11645 | else |
| 11646 | if test $ipv6trylibc = "yes"; then |
| 11647 | echo "using libc" |
| 11648 | else |
| 11649 | echo 'Fatal: no $ipv6lib library found. cannot continue.' |
| 11650 | echo "You need to fetch lib$ipv6lib.a from appropriate" |
| 11651 | echo 'ipv6 kit and compile beforehand.' |
| 11652 | exit 1 |
| 11653 | fi |
| 11654 | fi |
| 11655 | fi |
| 11656 | |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11657 | # Check for universal newline support |
Guido van Rossum | 402905e | 2002-08-15 13:56:35 +0000 | [diff] [blame] | 11658 | echo "$as_me:$LINENO: checking for --with-universal-newlines" >&5 |
| 11659 | echo $ECHO_N "checking for --with-universal-newlines... $ECHO_C" >&6 |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11660 | |
| 11661 | # Check whether --with-universal-newlines or --without-universal-newlines was given. |
| 11662 | if test "${with_universal_newlines+set}" = set; then |
| 11663 | withval="$with_universal_newlines" |
| 11664 | |
| 11665 | fi; |
| 11666 | |
| 11667 | if test -z "$with_universal_newlines" |
| 11668 | then with_universal_newlines="yes" |
| 11669 | fi |
Martin v. Löwis | 7e4cfcb | 2002-12-19 16:21:49 +0000 | [diff] [blame] | 11670 | if test "$with_universal_newlines" = "no" |
Martin v. Löwis | 03d00d5 | 2002-12-19 19:03:31 +0000 | [diff] [blame] | 11671 | then |
Martin v. Löwis | 7e4cfcb | 2002-12-19 16:21:49 +0000 | [diff] [blame] | 11672 | echo --without-universal-newlines is unsupported, see README |
| 11673 | exit 1 |
Martin v. Löwis | 03d00d5 | 2002-12-19 19:03:31 +0000 | [diff] [blame] | 11674 | else |
Martin v. Löwis | e8aea58 | 2002-04-16 05:51:02 +0000 | [diff] [blame] | 11675 | |
| 11676 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 7b8c754 | 2002-04-14 20:12:41 +0000 | [diff] [blame] | 11677 | #define WITH_UNIVERSAL_NEWLINES 1 |
| 11678 | _ACEOF |
| 11679 | |
| 11680 | fi |
| 11681 | echo "$as_me:$LINENO: result: $with_universal_newlines" >&5 |
| 11682 | echo "${ECHO_T}$with_universal_newlines" >&6 |
| 11683 | |
Martin v. Löwis | a3fb4f7 | 2002-06-09 13:33:54 +0000 | [diff] [blame] | 11684 | # Check for --with-doc-strings |
| 11685 | echo "$as_me:$LINENO: checking for --with-doc-strings" >&5 |
| 11686 | echo $ECHO_N "checking for --with-doc-strings... $ECHO_C" >&6 |
| 11687 | |
| 11688 | # Check whether --with-doc-strings or --without-doc-strings was given. |
| 11689 | if test "${with_doc_strings+set}" = set; then |
| 11690 | withval="$with_doc_strings" |
| 11691 | |
| 11692 | fi; |
| 11693 | |
| 11694 | if test -z "$with_doc_strings" |
| 11695 | then with_doc_strings="yes" |
| 11696 | fi |
| 11697 | if test "$with_doc_strings" != "no" |
| 11698 | then |
| 11699 | |
| 11700 | cat >>confdefs.h <<\_ACEOF |
| 11701 | #define WITH_DOC_STRINGS 1 |
| 11702 | _ACEOF |
| 11703 | |
| 11704 | fi |
| 11705 | echo "$as_me:$LINENO: result: $with_doc_strings" >&5 |
| 11706 | echo "${ECHO_T}$with_doc_strings" >&6 |
| 11707 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11708 | # Check for Python-specific malloc support |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11709 | echo "$as_me:$LINENO: checking for --with-pymalloc" >&5 |
| 11710 | echo $ECHO_N "checking for --with-pymalloc... $ECHO_C" >&6 |
| 11711 | |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11712 | # Check whether --with-pymalloc or --without-pymalloc was given. |
| 11713 | if test "${with_pymalloc+set}" = set; then |
| 11714 | withval="$with_pymalloc" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11715 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11716 | fi; |
Neil Schemenauer | a35c688 | 2001-02-27 04:45:05 +0000 | [diff] [blame] | 11717 | |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11718 | if test -z "$with_pymalloc" |
| 11719 | then with_pymalloc="yes" |
| 11720 | fi |
| 11721 | if test "$with_pymalloc" != "no" |
| 11722 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11723 | |
| 11724 | cat >>confdefs.h <<\_ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11725 | #define WITH_PYMALLOC 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11726 | _ACEOF |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11727 | |
| 11728 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11729 | echo "$as_me:$LINENO: result: $with_pymalloc" >&5 |
| 11730 | echo "${ECHO_T}$with_pymalloc" >&6 |
Neil Schemenauer | 16c2297 | 2002-03-22 15:34:49 +0000 | [diff] [blame] | 11731 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11732 | # Check for --with-wctype-functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11733 | echo "$as_me:$LINENO: checking for --with-wctype-functions" >&5 |
| 11734 | echo $ECHO_N "checking for --with-wctype-functions... $ECHO_C" >&6 |
| 11735 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11736 | # Check whether --with-wctype-functions or --without-wctype-functions was given. |
| 11737 | if test "${with_wctype_functions+set}" = set; then |
| 11738 | withval="$with_wctype_functions" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11739 | |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11740 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11741 | then |
| 11742 | |
| 11743 | cat >>confdefs.h <<\_ACEOF |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11744 | #define WANT_WCTYPE_FUNCTIONS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11745 | _ACEOF |
| 11746 | |
| 11747 | echo "$as_me:$LINENO: result: yes" >&5 |
| 11748 | echo "${ECHO_T}yes" >&6 |
| 11749 | else echo "$as_me:$LINENO: result: no" >&5 |
| 11750 | echo "${ECHO_T}no" >&6 |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11751 | fi |
| 11752 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11753 | echo "$as_me:$LINENO: result: no" >&5 |
| 11754 | echo "${ECHO_T}no" >&6 |
| 11755 | fi; |
Barry Warsaw | ef82cd7 | 2000-06-30 16:21:01 +0000 | [diff] [blame] | 11756 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11757 | # -I${DLINCLDIR} is added to the compile rule for importdl.o |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11758 | |
Guido van Rossum | 98935bf | 2001-09-05 19:13:16 +0000 | [diff] [blame] | 11759 | DLINCLDIR=. |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11760 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11761 | echo "$as_me:$LINENO: checking for --with-sgi-dl" >&5 |
| 11762 | echo $ECHO_N "checking for --with-sgi-dl... $ECHO_C" >&6 |
| 11763 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11764 | # Check whether --with-sgi-dl or --without-sgi-dl was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11765 | if test "${with_sgi_dl+set}" = set; then |
| 11766 | withval="$with_sgi_dl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11767 | |
| 11768 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11769 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 9ef3376 | 2002-12-02 22:23:56 +0000 | [diff] [blame] | 11770 | echo --with-sgi-dl is unsupported, see README |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 11771 | exit 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11772 | |
| 11773 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11774 | #define WITH_SGI_DL 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11775 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11776 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11777 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11778 | dldir=$withval |
Guido van Rossum | 4095101 | 2000-10-07 16:21:27 +0000 | [diff] [blame] | 11779 | if test ! -z "$dldir" -a -d "$dldir" |
Guido van Rossum | 84e7b24 | 1996-08-19 21:59:00 +0000 | [diff] [blame] | 11780 | then LDFLAGS="$LDFLAGS -L$dldir" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11781 | else { { echo "$as_me:$LINENO: error: proper usage is --with-sgi-dl=DIRECTORY" >&5 |
| 11782 | echo "$as_me: error: proper usage is --with-sgi-dl=DIRECTORY" >&2;} |
| 11783 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11784 | fi |
| 11785 | DLINCLDIR=${dldir} |
| 11786 | LIBS="$LIBS -ldl -lmld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11787 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11788 | echo "$as_me:$LINENO: result: no" >&5 |
| 11789 | echo "${ECHO_T}no" >&6 |
| 11790 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11791 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11792 | echo "$as_me:$LINENO: checking for --with-dl-dld" >&5 |
| 11793 | echo $ECHO_N "checking for --with-dl-dld... $ECHO_C" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11794 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11795 | # Check whether --with-dl-dld or --without-dl-dld was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 11796 | if test "${with_dl_dld+set}" = set; then |
| 11797 | withval="$with_dl_dld" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11798 | |
| 11799 | echo "$as_me:$LINENO: result: $withval" >&5 |
| 11800 | echo "${ECHO_T}$withval" >&6 |
Martin v. Löwis | 9ef3376 | 2002-12-02 22:23:56 +0000 | [diff] [blame] | 11801 | echo --with-dl-dld is unsupported, see README |
Martin v. Löwis | 779ffc0 | 2002-12-02 22:17:01 +0000 | [diff] [blame] | 11802 | exit 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11803 | |
| 11804 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 11805 | #define WITH_DL_DLD 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11806 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11807 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11808 | DYNLOADFILE="dynload_dl.o" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11809 | dldir=`echo "$withval" | sed 's/,.*//'` |
| 11810 | dlddir=`echo "$withval" | sed 's/.*,//'` |
Barry Warsaw | 7d1219d | 2000-10-05 18:45:53 +0000 | [diff] [blame] | 11811 | 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] | 11812 | then LDFLAGS="$LDFLAGS -L$dldir -L$dlddir" |
Martin v. Löwis | 3e2c632 | 2002-10-29 10:07:43 +0000 | [diff] [blame] | 11813 | else { { echo "$as_me:$LINENO: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&5 |
| 11814 | echo "$as_me: error: proper usage is --with-dl-dld=DL_DIRECTORY,DLD_DIRECTORY" >&2;} |
| 11815 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11816 | fi |
| 11817 | DLINCLDIR=${dldir} |
| 11818 | LIBS="$LIBS -ldl -ldld" |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 11819 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11820 | echo "$as_me:$LINENO: result: no" >&5 |
| 11821 | echo "${ECHO_T}no" >&6 |
| 11822 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 11823 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11824 | # the dlopen() function means we might want to use dynload_shlib.o. some |
| 11825 | # 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] | 11826 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11827 | for ac_func in dlopen |
| 11828 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11829 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 11830 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 11831 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11832 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 11833 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11834 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11835 | cat >conftest.$ac_ext <<_ACEOF |
| 11836 | #line $LINENO "configure" |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11837 | #include "confdefs.h" |
| 11838 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11839 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11840 | #include <assert.h> |
| 11841 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11842 | #ifdef __cplusplus |
| 11843 | extern "C" |
| 11844 | #endif |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11845 | /* 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] | 11846 | builtin and then its argument prototype would still apply. */ |
| 11847 | char $ac_func (); |
| 11848 | char (*f) (); |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11849 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11850 | #ifdef F77_DUMMY_MAIN |
| 11851 | # ifdef __cplusplus |
| 11852 | extern "C" |
| 11853 | # endif |
| 11854 | int F77_DUMMY_MAIN() { return 1; } |
| 11855 | #endif |
| 11856 | int |
| 11857 | main () |
| 11858 | { |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11859 | /* The GNU C library defines this for functions which it implements |
| 11860 | to always fail with ENOSYS. Some functions are actually named |
| 11861 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11862 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11863 | choke me |
| 11864 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11865 | f = $ac_func; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11866 | #endif |
| 11867 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11868 | ; |
| 11869 | return 0; |
| 11870 | } |
| 11871 | _ACEOF |
| 11872 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 11873 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 11874 | (eval $ac_link) 2>&5 |
| 11875 | ac_status=$? |
| 11876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11877 | (exit $ac_status); } && |
| 11878 | { ac_try='test -s conftest$ac_exeext' |
| 11879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 11880 | (eval $ac_try) 2>&5 |
| 11881 | ac_status=$? |
| 11882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 11883 | (exit $ac_status); }; }; then |
| 11884 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11885 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11886 | echo "$as_me: failed program was:" >&5 |
| 11887 | cat conftest.$ac_ext >&5 |
| 11888 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11889 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11890 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11891 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11892 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 11893 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11894 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 11895 | cat >>confdefs.h <<_ACEOF |
| 11896 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 11897 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11898 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11899 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 11900 | done |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11901 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11902 | |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11903 | # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic |
| 11904 | # loading of modules. |
| 11905 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11906 | echo "$as_me:$LINENO: checking DYNLOADFILE" >&5 |
| 11907 | echo $ECHO_N "checking DYNLOADFILE... $ECHO_C" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11908 | if test -z "$DYNLOADFILE" |
| 11909 | then |
| 11910 | case $ac_sys_system/$ac_sys_release in |
| 11911 | AIX*) DYNLOADFILE="dynload_aix.o";; |
| 11912 | BeOS*) DYNLOADFILE="dynload_beos.o";; |
| 11913 | hp*|HP*) DYNLOADFILE="dynload_hpux.o";; |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11914 | Darwin/*) DYNLOADFILE="dynload_next.o";; |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 11915 | atheos*) DYNLOADFILE="dynload_atheos.o";; |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11916 | *) |
| 11917 | # use dynload_shlib.c and dlopen() if we have it; otherwise stub |
| 11918 | # out any dynamic loading |
| 11919 | if test "$ac_cv_func_dlopen" = yes |
| 11920 | then DYNLOADFILE="dynload_shlib.o" |
| 11921 | else DYNLOADFILE="dynload_stub.o" |
| 11922 | fi |
| 11923 | ;; |
| 11924 | esac |
| 11925 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11926 | echo "$as_me:$LINENO: result: $DYNLOADFILE" >&5 |
| 11927 | echo "${ECHO_T}$DYNLOADFILE" >&6 |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11928 | if test "$DYNLOADFILE" != "dynload_stub.o" |
| 11929 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11930 | |
| 11931 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11932 | #define HAVE_DYNAMIC_LOADING 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11933 | _ACEOF |
Guido van Rossum | e97ee18 | 1999-12-20 21:27:22 +0000 | [diff] [blame] | 11934 | |
| 11935 | fi |
| 11936 | |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11937 | # MACHDEP_OBJS can be set to platform-specific object files needed by Python |
| 11938 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 11939 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11940 | echo "$as_me:$LINENO: checking MACHDEP_OBJS" >&5 |
| 11941 | echo $ECHO_N "checking MACHDEP_OBJS... $ECHO_C" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11942 | if test -z "$MACHDEP_OBJS" |
| 11943 | then |
Jack Jansen | e578a63 | 2001-08-15 01:27:14 +0000 | [diff] [blame] | 11944 | MACHDEP_OBJS=$extra_machdep_objs |
| 11945 | else |
| 11946 | MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11947 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 11948 | echo "$as_me:$LINENO: result: MACHDEP_OBJS" >&5 |
| 11949 | echo "${ECHO_T}MACHDEP_OBJS" >&6 |
Neil Schemenauer | 4e42561 | 2001-06-19 15:44:15 +0000 | [diff] [blame] | 11950 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 11951 | # checks for library functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 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 | |
| 11987 | |
| 11988 | |
| 11989 | |
| 11990 | |
| 11991 | |
| 11992 | |
| 11993 | |
| 11994 | |
| 11995 | |
| 11996 | |
| 11997 | |
| 11998 | |
| 11999 | |
| 12000 | |
| 12001 | |
| 12002 | |
| 12003 | |
| 12004 | |
| 12005 | |
| 12006 | |
| 12007 | |
| 12008 | |
| 12009 | |
| 12010 | |
| 12011 | |
| 12012 | |
| 12013 | |
| 12014 | |
| 12015 | |
| 12016 | |
| 12017 | |
| 12018 | |
| 12019 | |
| 12020 | |
| 12021 | |
| 12022 | |
| 12023 | |
| 12024 | |
Martin v. Löwis | 9c36c29 | 2002-12-21 18:34:06 +0000 | [diff] [blame] | 12025 | |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 12026 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12027 | for ac_func in alarm chown clock confstr ctermid execv \ |
Fred Drake | 6b3cc52 | 2002-04-15 19:20:27 +0000 | [diff] [blame] | 12028 | fchdir flock fork fsync fdatasync fpathconf ftime ftruncate \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 12029 | gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ |
| 12030 | getpriority getpwent getwd \ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12031 | hstrerror inet_pton kill killpg lchown lstat mkfifo mknod mktime \ |
Martin v. Löwis | a5f0907 | 2002-10-11 05:37:59 +0000 | [diff] [blame] | 12032 | mremap nice pathconf pause plock poll pthread_init \ |
Fred Drake | 35a092f | 1999-12-13 16:23:35 +0000 | [diff] [blame] | 12033 | putenv readlink \ |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12034 | select setegid seteuid setgid \ |
Martin v. Löwis | 791bfda | 2001-07-24 06:33:08 +0000 | [diff] [blame] | 12035 | setlocale setregid setreuid setsid setpgid setuid setvbuf snprintf \ |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12036 | sigaction siginterrupt sigrelse strftime strptime \ |
Michael W. Hudson | 34f20ea | 2002-05-27 15:08:24 +0000 | [diff] [blame] | 12037 | sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ |
Martin v. Löwis | 438b534 | 2002-12-27 10:16:42 +0000 | [diff] [blame] | 12038 | truncate uname unsetenv utimes waitpid wcscoll _getpty |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12039 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12040 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12041 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12042 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12043 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12044 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12045 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12046 | cat >conftest.$ac_ext <<_ACEOF |
| 12047 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12048 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12049 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12050 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12051 | #include <assert.h> |
| 12052 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12053 | #ifdef __cplusplus |
| 12054 | extern "C" |
| 12055 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12056 | /* 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] | 12057 | builtin and then its argument prototype would still apply. */ |
| 12058 | char $ac_func (); |
| 12059 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12060 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12061 | #ifdef F77_DUMMY_MAIN |
| 12062 | # ifdef __cplusplus |
| 12063 | extern "C" |
| 12064 | # endif |
| 12065 | int F77_DUMMY_MAIN() { return 1; } |
| 12066 | #endif |
| 12067 | int |
| 12068 | main () |
| 12069 | { |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12070 | /* The GNU C library defines this for functions which it implements |
| 12071 | to always fail with ENOSYS. Some functions are actually named |
| 12072 | something starting with __ and the normal name is an alias. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12073 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12074 | choke me |
| 12075 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12076 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12077 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12078 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12079 | ; |
| 12080 | return 0; |
| 12081 | } |
| 12082 | _ACEOF |
| 12083 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12084 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12085 | (eval $ac_link) 2>&5 |
| 12086 | ac_status=$? |
| 12087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12088 | (exit $ac_status); } && |
| 12089 | { ac_try='test -s conftest$ac_exeext' |
| 12090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12091 | (eval $ac_try) 2>&5 |
| 12092 | ac_status=$? |
| 12093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12094 | (exit $ac_status); }; }; then |
| 12095 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12096 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12097 | echo "$as_me: failed program was:" >&5 |
| 12098 | cat conftest.$ac_ext >&5 |
| 12099 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12100 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12101 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12102 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12103 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12104 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12105 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12106 | cat >>confdefs.h <<_ACEOF |
| 12107 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12108 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12109 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12110 | fi |
| 12111 | done |
| 12112 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12113 | |
Martin v. Löwis | c8ad7cc | 2002-11-11 13:23:45 +0000 | [diff] [blame] | 12114 | # For some functions, having a definition is not sufficient, since |
| 12115 | # we want to take their address. |
| 12116 | echo "$as_me:$LINENO: checking for chroot" >&5 |
| 12117 | echo $ECHO_N "checking for chroot... $ECHO_C" >&6 |
| 12118 | cat >conftest.$ac_ext <<_ACEOF |
| 12119 | #line $LINENO "configure" |
| 12120 | #include "confdefs.h" |
| 12121 | #include <unistd.h> |
| 12122 | #ifdef F77_DUMMY_MAIN |
| 12123 | # ifdef __cplusplus |
| 12124 | extern "C" |
| 12125 | # endif |
| 12126 | int F77_DUMMY_MAIN() { return 1; } |
| 12127 | #endif |
| 12128 | int |
| 12129 | main () |
| 12130 | { |
| 12131 | void *x=chroot |
| 12132 | ; |
| 12133 | return 0; |
| 12134 | } |
| 12135 | _ACEOF |
| 12136 | rm -f conftest.$ac_objext |
| 12137 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12138 | (eval $ac_compile) 2>&5 |
| 12139 | ac_status=$? |
| 12140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12141 | (exit $ac_status); } && |
| 12142 | { ac_try='test -s conftest.$ac_objext' |
| 12143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12144 | (eval $ac_try) 2>&5 |
| 12145 | ac_status=$? |
| 12146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12147 | (exit $ac_status); }; }; then |
| 12148 | |
| 12149 | cat >>confdefs.h <<\_ACEOF |
| 12150 | #define HAVE_CHROOT 1 |
| 12151 | _ACEOF |
| 12152 | |
| 12153 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12154 | echo "${ECHO_T}yes" >&6 |
| 12155 | else |
| 12156 | echo "$as_me: failed program was:" >&5 |
| 12157 | cat conftest.$ac_ext >&5 |
| 12158 | echo "$as_me:$LINENO: result: no" >&5 |
| 12159 | echo "${ECHO_T}no" >&6 |
| 12160 | |
| 12161 | fi |
| 12162 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12163 | echo "$as_me:$LINENO: checking for link" >&5 |
| 12164 | echo $ECHO_N "checking for link... $ECHO_C" >&6 |
| 12165 | cat >conftest.$ac_ext <<_ACEOF |
| 12166 | #line $LINENO "configure" |
| 12167 | #include "confdefs.h" |
| 12168 | #include <unistd.h> |
| 12169 | #ifdef F77_DUMMY_MAIN |
| 12170 | # ifdef __cplusplus |
| 12171 | extern "C" |
| 12172 | # endif |
| 12173 | int F77_DUMMY_MAIN() { return 1; } |
| 12174 | #endif |
| 12175 | int |
| 12176 | main () |
| 12177 | { |
| 12178 | void *x=link |
| 12179 | ; |
| 12180 | return 0; |
| 12181 | } |
| 12182 | _ACEOF |
| 12183 | rm -f conftest.$ac_objext |
| 12184 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12185 | (eval $ac_compile) 2>&5 |
| 12186 | ac_status=$? |
| 12187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12188 | (exit $ac_status); } && |
| 12189 | { ac_try='test -s conftest.$ac_objext' |
| 12190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12191 | (eval $ac_try) 2>&5 |
| 12192 | ac_status=$? |
| 12193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12194 | (exit $ac_status); }; }; then |
| 12195 | |
| 12196 | cat >>confdefs.h <<\_ACEOF |
| 12197 | #define HAVE_LINK 1 |
| 12198 | _ACEOF |
| 12199 | |
| 12200 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12201 | echo "${ECHO_T}yes" >&6 |
| 12202 | else |
| 12203 | echo "$as_me: failed program was:" >&5 |
| 12204 | cat conftest.$ac_ext >&5 |
| 12205 | echo "$as_me:$LINENO: result: no" >&5 |
| 12206 | echo "${ECHO_T}no" >&6 |
| 12207 | |
| 12208 | fi |
| 12209 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12210 | echo "$as_me:$LINENO: checking for symlink" >&5 |
| 12211 | echo $ECHO_N "checking for symlink... $ECHO_C" >&6 |
| 12212 | cat >conftest.$ac_ext <<_ACEOF |
| 12213 | #line $LINENO "configure" |
| 12214 | #include "confdefs.h" |
| 12215 | #include <unistd.h> |
| 12216 | #ifdef F77_DUMMY_MAIN |
| 12217 | # ifdef __cplusplus |
| 12218 | extern "C" |
| 12219 | # endif |
| 12220 | int F77_DUMMY_MAIN() { return 1; } |
| 12221 | #endif |
| 12222 | int |
| 12223 | main () |
| 12224 | { |
| 12225 | void *x=symlink |
| 12226 | ; |
| 12227 | return 0; |
| 12228 | } |
| 12229 | _ACEOF |
| 12230 | rm -f conftest.$ac_objext |
| 12231 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12232 | (eval $ac_compile) 2>&5 |
| 12233 | ac_status=$? |
| 12234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12235 | (exit $ac_status); } && |
| 12236 | { ac_try='test -s conftest.$ac_objext' |
| 12237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12238 | (eval $ac_try) 2>&5 |
| 12239 | ac_status=$? |
| 12240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12241 | (exit $ac_status); }; }; then |
| 12242 | |
| 12243 | cat >>confdefs.h <<\_ACEOF |
| 12244 | #define HAVE_SYMLINK 1 |
| 12245 | _ACEOF |
| 12246 | |
| 12247 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12248 | echo "${ECHO_T}yes" >&6 |
| 12249 | else |
| 12250 | echo "$as_me: failed program was:" >&5 |
| 12251 | cat conftest.$ac_ext >&5 |
| 12252 | echo "$as_me:$LINENO: result: no" >&5 |
| 12253 | echo "${ECHO_T}no" >&6 |
| 12254 | |
| 12255 | fi |
| 12256 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12257 | |
Martin v. Löwis | d584368 | 2002-11-21 20:41:28 +0000 | [diff] [blame] | 12258 | # On some systems (eg. FreeBSD 5), we would find a definition of the |
| 12259 | # functions ctermid_r, setgroups in the library, but no prototype |
| 12260 | # (e.g. because we use _XOPEN_SOURCE). See whether we can take their |
| 12261 | # address to avoid compiler warnings and potential miscompilations |
| 12262 | # because of the missing prototypes. |
| 12263 | |
| 12264 | echo "$as_me:$LINENO: checking for ctermid_r" >&5 |
| 12265 | echo $ECHO_N "checking for ctermid_r... $ECHO_C" >&6 |
| 12266 | cat >conftest.$ac_ext <<_ACEOF |
| 12267 | #line $LINENO "configure" |
| 12268 | #include "confdefs.h" |
| 12269 | |
| 12270 | #include "confdefs.h" |
| 12271 | #include <stdio.h> |
| 12272 | |
| 12273 | #ifdef F77_DUMMY_MAIN |
| 12274 | # ifdef __cplusplus |
| 12275 | extern "C" |
| 12276 | # endif |
| 12277 | int F77_DUMMY_MAIN() { return 1; } |
| 12278 | #endif |
| 12279 | int |
| 12280 | main () |
| 12281 | { |
| 12282 | void* p = ctermid_r |
| 12283 | ; |
| 12284 | return 0; |
| 12285 | } |
| 12286 | _ACEOF |
| 12287 | rm -f conftest.$ac_objext |
| 12288 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12289 | (eval $ac_compile) 2>&5 |
| 12290 | ac_status=$? |
| 12291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12292 | (exit $ac_status); } && |
| 12293 | { ac_try='test -s conftest.$ac_objext' |
| 12294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12295 | (eval $ac_try) 2>&5 |
| 12296 | ac_status=$? |
| 12297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12298 | (exit $ac_status); }; }; then |
| 12299 | |
| 12300 | cat >>confdefs.h <<\_ACEOF |
| 12301 | #define HAVE_CTERMID_R 1 |
| 12302 | _ACEOF |
| 12303 | |
| 12304 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12305 | echo "${ECHO_T}yes" >&6 |
| 12306 | else |
| 12307 | echo "$as_me: failed program was:" >&5 |
| 12308 | cat conftest.$ac_ext >&5 |
| 12309 | echo "$as_me:$LINENO: result: no" >&5 |
| 12310 | echo "${ECHO_T}no" >&6 |
| 12311 | |
| 12312 | fi |
| 12313 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12314 | |
| 12315 | echo "$as_me:$LINENO: checking for setgroups" >&5 |
| 12316 | echo $ECHO_N "checking for setgroups... $ECHO_C" >&6 |
| 12317 | cat >conftest.$ac_ext <<_ACEOF |
| 12318 | #line $LINENO "configure" |
| 12319 | #include "confdefs.h" |
| 12320 | |
| 12321 | #include "confdefs.h" |
| 12322 | #include <unistd.h.h> |
| 12323 | |
| 12324 | #ifdef F77_DUMMY_MAIN |
| 12325 | # ifdef __cplusplus |
| 12326 | extern "C" |
| 12327 | # endif |
| 12328 | int F77_DUMMY_MAIN() { return 1; } |
| 12329 | #endif |
| 12330 | int |
| 12331 | main () |
| 12332 | { |
| 12333 | void* p = setgroups |
| 12334 | ; |
| 12335 | return 0; |
| 12336 | } |
| 12337 | _ACEOF |
| 12338 | rm -f conftest.$ac_objext |
| 12339 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12340 | (eval $ac_compile) 2>&5 |
| 12341 | ac_status=$? |
| 12342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12343 | (exit $ac_status); } && |
| 12344 | { ac_try='test -s conftest.$ac_objext' |
| 12345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12346 | (eval $ac_try) 2>&5 |
| 12347 | ac_status=$? |
| 12348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12349 | (exit $ac_status); }; }; then |
| 12350 | |
| 12351 | cat >>confdefs.h <<\_ACEOF |
| 12352 | #define HAVE_SETGROUPS 1 |
| 12353 | _ACEOF |
| 12354 | |
| 12355 | echo "$as_me:$LINENO: result: yes" >&5 |
| 12356 | echo "${ECHO_T}yes" >&6 |
| 12357 | else |
| 12358 | echo "$as_me: failed program was:" >&5 |
| 12359 | cat conftest.$ac_ext >&5 |
| 12360 | echo "$as_me:$LINENO: result: no" >&5 |
| 12361 | echo "${ECHO_T}no" >&6 |
| 12362 | |
| 12363 | fi |
| 12364 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 12365 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12366 | # check for openpty and forkpty |
| 12367 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12368 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12369 | for ac_func in openpty |
| 12370 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12371 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12372 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12373 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12374 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12375 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12376 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12377 | cat >conftest.$ac_ext <<_ACEOF |
| 12378 | #line $LINENO "configure" |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12379 | #include "confdefs.h" |
| 12380 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12381 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12382 | #include <assert.h> |
| 12383 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12384 | #ifdef __cplusplus |
| 12385 | extern "C" |
| 12386 | #endif |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12387 | /* 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] | 12388 | builtin and then its argument prototype would still apply. */ |
| 12389 | char $ac_func (); |
| 12390 | char (*f) (); |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12391 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12392 | #ifdef F77_DUMMY_MAIN |
| 12393 | # ifdef __cplusplus |
| 12394 | extern "C" |
| 12395 | # endif |
| 12396 | int F77_DUMMY_MAIN() { return 1; } |
| 12397 | #endif |
| 12398 | int |
| 12399 | main () |
| 12400 | { |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12401 | /* The GNU C library defines this for functions which it implements |
| 12402 | to always fail with ENOSYS. Some functions are actually named |
| 12403 | something starting with __ and the normal name is an alias. */ |
| 12404 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12405 | choke me |
| 12406 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12407 | f = $ac_func; |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12408 | #endif |
| 12409 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12410 | ; |
| 12411 | return 0; |
| 12412 | } |
| 12413 | _ACEOF |
| 12414 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12415 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12416 | (eval $ac_link) 2>&5 |
| 12417 | ac_status=$? |
| 12418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12419 | (exit $ac_status); } && |
| 12420 | { ac_try='test -s conftest$ac_exeext' |
| 12421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12422 | (eval $ac_try) 2>&5 |
| 12423 | ac_status=$? |
| 12424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12425 | (exit $ac_status); }; }; then |
| 12426 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12427 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12428 | echo "$as_me: failed program was:" >&5 |
| 12429 | cat conftest.$ac_ext >&5 |
| 12430 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12431 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12432 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12433 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12434 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12435 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12436 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12437 | cat >>confdefs.h <<_ACEOF |
| 12438 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12439 | _ACEOF |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12440 | |
Guido van Rossum | d0b69ec | 2001-09-10 14:10:54 +0000 | [diff] [blame] | 12441 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12442 | echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 |
| 12443 | echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6 |
| 12444 | if test "${ac_cv_lib_util_openpty+set}" = set; then |
| 12445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12446 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12447 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12448 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12449 | cat >conftest.$ac_ext <<_ACEOF |
| 12450 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12451 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12452 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12453 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12454 | #ifdef __cplusplus |
| 12455 | extern "C" |
| 12456 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12457 | /* 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] | 12458 | builtin and then its argument prototype would still apply. */ |
| 12459 | char openpty (); |
| 12460 | #ifdef F77_DUMMY_MAIN |
| 12461 | # ifdef __cplusplus |
| 12462 | extern "C" |
| 12463 | # endif |
| 12464 | int F77_DUMMY_MAIN() { return 1; } |
| 12465 | #endif |
| 12466 | int |
| 12467 | main () |
| 12468 | { |
| 12469 | openpty (); |
| 12470 | ; |
| 12471 | return 0; |
| 12472 | } |
| 12473 | _ACEOF |
| 12474 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12475 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12476 | (eval $ac_link) 2>&5 |
| 12477 | ac_status=$? |
| 12478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12479 | (exit $ac_status); } && |
| 12480 | { ac_try='test -s conftest$ac_exeext' |
| 12481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12482 | (eval $ac_try) 2>&5 |
| 12483 | ac_status=$? |
| 12484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12485 | (exit $ac_status); }; }; then |
| 12486 | ac_cv_lib_util_openpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12487 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12488 | echo "$as_me: failed program was:" >&5 |
| 12489 | cat conftest.$ac_ext >&5 |
| 12490 | ac_cv_lib_util_openpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12491 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12492 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12493 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12494 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12495 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 |
| 12496 | echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 |
| 12497 | if test $ac_cv_lib_util_openpty = yes; then |
| 12498 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12499 | #define HAVE_OPENPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12500 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12501 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12502 | fi |
| 12503 | |
| 12504 | fi |
| 12505 | done |
| 12506 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12507 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12508 | for ac_func in forkpty |
| 12509 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12510 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12511 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12512 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12513 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12515 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12516 | cat >conftest.$ac_ext <<_ACEOF |
| 12517 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12518 | #include "confdefs.h" |
| 12519 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12520 | which can conflict with char $ac_func (); below. */ |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12521 | #include <assert.h> |
| 12522 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12523 | #ifdef __cplusplus |
| 12524 | extern "C" |
| 12525 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12526 | /* 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] | 12527 | builtin and then its argument prototype would still apply. */ |
| 12528 | char $ac_func (); |
| 12529 | char (*f) (); |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12530 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12531 | #ifdef F77_DUMMY_MAIN |
| 12532 | # ifdef __cplusplus |
| 12533 | extern "C" |
| 12534 | # endif |
| 12535 | int F77_DUMMY_MAIN() { return 1; } |
| 12536 | #endif |
| 12537 | int |
| 12538 | main () |
| 12539 | { |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12540 | /* The GNU C library defines this for functions which it implements |
| 12541 | to always fail with ENOSYS. Some functions are actually named |
| 12542 | something starting with __ and the normal name is an alias. */ |
| 12543 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12544 | choke me |
| 12545 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12546 | f = $ac_func; |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12547 | #endif |
| 12548 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12549 | ; |
| 12550 | return 0; |
| 12551 | } |
| 12552 | _ACEOF |
| 12553 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12554 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12555 | (eval $ac_link) 2>&5 |
| 12556 | ac_status=$? |
| 12557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12558 | (exit $ac_status); } && |
| 12559 | { ac_try='test -s conftest$ac_exeext' |
| 12560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12561 | (eval $ac_try) 2>&5 |
| 12562 | ac_status=$? |
| 12563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12564 | (exit $ac_status); }; }; then |
| 12565 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12566 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12567 | echo "$as_me: failed program was:" >&5 |
| 12568 | cat conftest.$ac_ext >&5 |
| 12569 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12570 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12571 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12572 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12573 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12574 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12575 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12576 | cat >>confdefs.h <<_ACEOF |
| 12577 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12578 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12579 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12580 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12581 | echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
| 12582 | echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6 |
| 12583 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
| 12584 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12585 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12586 | ac_check_lib_save_LIBS=$LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12587 | LIBS="-lutil $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12588 | cat >conftest.$ac_ext <<_ACEOF |
| 12589 | #line $LINENO "configure" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12590 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12591 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12592 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12593 | #ifdef __cplusplus |
| 12594 | extern "C" |
| 12595 | #endif |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12596 | /* 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] | 12597 | builtin and then its argument prototype would still apply. */ |
| 12598 | char forkpty (); |
| 12599 | #ifdef F77_DUMMY_MAIN |
| 12600 | # ifdef __cplusplus |
| 12601 | extern "C" |
| 12602 | # endif |
| 12603 | int F77_DUMMY_MAIN() { return 1; } |
| 12604 | #endif |
| 12605 | int |
| 12606 | main () |
| 12607 | { |
| 12608 | forkpty (); |
| 12609 | ; |
| 12610 | return 0; |
| 12611 | } |
| 12612 | _ACEOF |
| 12613 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12614 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12615 | (eval $ac_link) 2>&5 |
| 12616 | ac_status=$? |
| 12617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12618 | (exit $ac_status); } && |
| 12619 | { ac_try='test -s conftest$ac_exeext' |
| 12620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12621 | (eval $ac_try) 2>&5 |
| 12622 | ac_status=$? |
| 12623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12624 | (exit $ac_status); }; }; then |
| 12625 | ac_cv_lib_util_forkpty=yes |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12626 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12627 | echo "$as_me: failed program was:" >&5 |
| 12628 | cat conftest.$ac_ext >&5 |
| 12629 | ac_cv_lib_util_forkpty=no |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12630 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12631 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 12632 | LIBS=$ac_check_lib_save_LIBS |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12633 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12634 | echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
| 12635 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6 |
| 12636 | if test $ac_cv_lib_util_forkpty = yes; then |
| 12637 | cat >>confdefs.h <<\_ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12638 | #define HAVE_FORKPTY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12639 | _ACEOF |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12640 | LIBS="$LIBS -lutil" |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12641 | fi |
| 12642 | |
| 12643 | fi |
| 12644 | done |
| 12645 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 12646 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12647 | # check for long file support functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12648 | |
| 12649 | |
| 12650 | |
| 12651 | |
| 12652 | |
| 12653 | |
Fred Drake | 8cef4cf | 2000-06-28 16:40:38 +0000 | [diff] [blame] | 12654 | for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs |
| 12655 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12656 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12657 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12658 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12659 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12661 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12662 | cat >conftest.$ac_ext <<_ACEOF |
| 12663 | #line $LINENO "configure" |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12664 | #include "confdefs.h" |
| 12665 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12666 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12667 | #include <assert.h> |
| 12668 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12669 | #ifdef __cplusplus |
| 12670 | extern "C" |
| 12671 | #endif |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12672 | /* 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] | 12673 | builtin and then its argument prototype would still apply. */ |
| 12674 | char $ac_func (); |
| 12675 | char (*f) (); |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12676 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12677 | #ifdef F77_DUMMY_MAIN |
| 12678 | # ifdef __cplusplus |
| 12679 | extern "C" |
| 12680 | # endif |
| 12681 | int F77_DUMMY_MAIN() { return 1; } |
| 12682 | #endif |
| 12683 | int |
| 12684 | main () |
| 12685 | { |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12686 | /* The GNU C library defines this for functions which it implements |
| 12687 | to always fail with ENOSYS. Some functions are actually named |
| 12688 | something starting with __ and the normal name is an alias. */ |
| 12689 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12690 | choke me |
| 12691 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12692 | f = $ac_func; |
Guido van Rossum | f98e2a7 | 1999-01-06 18:53:34 +0000 | [diff] [blame] | 12693 | #endif |
| 12694 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12695 | ; |
| 12696 | return 0; |
| 12697 | } |
| 12698 | _ACEOF |
| 12699 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12700 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12701 | (eval $ac_link) 2>&5 |
| 12702 | ac_status=$? |
| 12703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12704 | (exit $ac_status); } && |
| 12705 | { ac_try='test -s conftest$ac_exeext' |
| 12706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12707 | (eval $ac_try) 2>&5 |
| 12708 | ac_status=$? |
| 12709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12710 | (exit $ac_status); }; }; then |
| 12711 | eval "$as_ac_var=yes" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12712 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12713 | echo "$as_me: failed program was:" >&5 |
| 12714 | cat conftest.$ac_ext >&5 |
| 12715 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12716 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12717 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12718 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12719 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12720 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12721 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12722 | cat >>confdefs.h <<_ACEOF |
| 12723 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12724 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12725 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12726 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12727 | done |
| 12728 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12729 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12730 | |
| 12731 | |
| 12732 | |
| 12733 | |
| 12734 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12735 | for ac_func in dup2 getcwd strdup strerror memmove |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12736 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12737 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12738 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12739 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12740 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12741 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12742 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12743 | cat >conftest.$ac_ext <<_ACEOF |
| 12744 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12745 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12746 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12747 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12748 | #include <assert.h> |
| 12749 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12750 | #ifdef __cplusplus |
| 12751 | extern "C" |
| 12752 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 12753 | /* 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] | 12754 | builtin and then its argument prototype would still apply. */ |
| 12755 | char $ac_func (); |
| 12756 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12757 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12758 | #ifdef F77_DUMMY_MAIN |
| 12759 | # ifdef __cplusplus |
| 12760 | extern "C" |
| 12761 | # endif |
| 12762 | int F77_DUMMY_MAIN() { return 1; } |
| 12763 | #endif |
| 12764 | int |
| 12765 | main () |
| 12766 | { |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12767 | /* The GNU C library defines this for functions which it implements |
| 12768 | to always fail with ENOSYS. Some functions are actually named |
| 12769 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12770 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12771 | choke me |
| 12772 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12773 | f = $ac_func; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12774 | #endif |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12775 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12776 | ; |
| 12777 | return 0; |
| 12778 | } |
| 12779 | _ACEOF |
| 12780 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12781 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12782 | (eval $ac_link) 2>&5 |
| 12783 | ac_status=$? |
| 12784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12785 | (exit $ac_status); } && |
| 12786 | { ac_try='test -s conftest$ac_exeext' |
| 12787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12788 | (eval $ac_try) 2>&5 |
| 12789 | ac_status=$? |
| 12790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12791 | (exit $ac_status); }; }; then |
| 12792 | eval "$as_ac_var=yes" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12793 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12794 | echo "$as_me: failed program was:" >&5 |
| 12795 | cat conftest.$ac_ext >&5 |
| 12796 | eval "$as_ac_var=no" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12797 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12798 | 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] | 12799 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12800 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12801 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12802 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12803 | cat >>confdefs.h <<_ACEOF |
| 12804 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12805 | _ACEOF |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12806 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12807 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12808 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12809 | fi |
| 12810 | done |
| 12811 | |
| 12812 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12813 | |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12814 | for ac_func in getpgrp |
| 12815 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12816 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 12817 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 12818 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 12819 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 12820 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12821 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12822 | cat >conftest.$ac_ext <<_ACEOF |
| 12823 | #line $LINENO "configure" |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12824 | #include "confdefs.h" |
| 12825 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12826 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12827 | #include <assert.h> |
| 12828 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12829 | #ifdef __cplusplus |
| 12830 | extern "C" |
| 12831 | #endif |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12832 | /* 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] | 12833 | builtin and then its argument prototype would still apply. */ |
| 12834 | char $ac_func (); |
| 12835 | char (*f) (); |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12836 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12837 | #ifdef F77_DUMMY_MAIN |
| 12838 | # ifdef __cplusplus |
| 12839 | extern "C" |
| 12840 | # endif |
| 12841 | int F77_DUMMY_MAIN() { return 1; } |
| 12842 | #endif |
| 12843 | int |
| 12844 | main () |
| 12845 | { |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12846 | /* The GNU C library defines this for functions which it implements |
| 12847 | to always fail with ENOSYS. Some functions are actually named |
| 12848 | something starting with __ and the normal name is an alias. */ |
| 12849 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 12850 | choke me |
| 12851 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12852 | f = $ac_func; |
Martin v. Löwis | 1142de3 | 2002-03-29 16:28:31 +0000 | [diff] [blame] | 12853 | #endif |
| 12854 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12855 | ; |
| 12856 | return 0; |
| 12857 | } |
| 12858 | _ACEOF |
| 12859 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 12860 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12861 | (eval $ac_link) 2>&5 |
| 12862 | ac_status=$? |
| 12863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12864 | (exit $ac_status); } && |
| 12865 | { ac_try='test -s conftest$ac_exeext' |
| 12866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12867 | (eval $ac_try) 2>&5 |
| 12868 | ac_status=$? |
| 12869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12870 | (exit $ac_status); }; }; then |
| 12871 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12872 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12873 | echo "$as_me: failed program was:" >&5 |
| 12874 | cat conftest.$ac_ext >&5 |
| 12875 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12876 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12877 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12878 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12879 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 12880 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 12881 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 12882 | cat >>confdefs.h <<_ACEOF |
| 12883 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 12884 | _ACEOF |
| 12885 | cat >conftest.$ac_ext <<_ACEOF |
| 12886 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12887 | #include "confdefs.h" |
| 12888 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12889 | #ifdef F77_DUMMY_MAIN |
| 12890 | # ifdef __cplusplus |
| 12891 | extern "C" |
| 12892 | # endif |
| 12893 | int F77_DUMMY_MAIN() { return 1; } |
| 12894 | #endif |
| 12895 | int |
| 12896 | main () |
| 12897 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12898 | getpgrp(0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12899 | ; |
| 12900 | return 0; |
| 12901 | } |
| 12902 | _ACEOF |
| 12903 | rm -f conftest.$ac_objext |
| 12904 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 12905 | (eval $ac_compile) 2>&5 |
| 12906 | ac_status=$? |
| 12907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12908 | (exit $ac_status); } && |
| 12909 | { ac_try='test -s conftest.$ac_objext' |
| 12910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12911 | (eval $ac_try) 2>&5 |
| 12912 | ac_status=$? |
| 12913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12914 | (exit $ac_status); }; }; then |
| 12915 | |
| 12916 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12917 | #define GETPGRP_HAVE_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12918 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12919 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12920 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 12921 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12922 | echo "$as_me: failed program was:" >&5 |
| 12923 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12924 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12925 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 12926 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12927 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12928 | done |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 12929 | |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12930 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
| 12931 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 |
| 12932 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 12934 | else |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12935 | if test "$cross_compiling" = yes; then |
| 12936 | { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 |
| 12937 | echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} |
| 12938 | { (exit 1); exit 1; }; } |
| 12939 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12940 | cat >conftest.$ac_ext <<_ACEOF |
| 12941 | #line $LINENO "configure" |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12942 | #include "confdefs.h" |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12943 | #if HAVE_UNISTD_H |
| 12944 | # include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12945 | #endif |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 12946 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12947 | #ifdef F77_DUMMY_MAIN |
| 12948 | # ifdef __cplusplus |
| 12949 | extern "C" |
| 12950 | # endif |
| 12951 | int F77_DUMMY_MAIN() { return 1; } |
| 12952 | #endif |
| 12953 | int |
| 12954 | main () |
| 12955 | { |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12956 | /* If this system has a BSD-style setpgrp which takes arguments, |
| 12957 | setpgrp(1, 1) will fail with ESRCH and return -1, in that case |
| 12958 | exit successfully. */ |
| 12959 | exit (setpgrp (1,1) == -1 ? 0 : 1); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12960 | ; |
| 12961 | return 0; |
| 12962 | } |
| 12963 | _ACEOF |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12964 | rm -f conftest$ac_exeext |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12965 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 12966 | (eval $ac_link) 2>&5 |
| 12967 | ac_status=$? |
| 12968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12969 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 12971 | (eval $ac_try) 2>&5 |
| 12972 | ac_status=$? |
| 12973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 12974 | (exit $ac_status); }; }; then |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12975 | ac_cv_func_setpgrp_void=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12976 | else |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12977 | echo "$as_me: program exited with status $ac_status" >&5 |
| 12978 | echo "$as_me: failed program was:" >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12979 | cat conftest.$ac_ext >&5 |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12980 | ( exit $ac_status ) |
| 12981 | ac_cv_func_setpgrp_void=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 12982 | fi |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12983 | 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] | 12984 | fi |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12985 | fi |
| 12986 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
| 12987 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 |
| 12988 | if test $ac_cv_func_setpgrp_void = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12989 | |
| 12990 | cat >>confdefs.h <<\_ACEOF |
Jeremy Hylton | af4c12f | 2002-07-18 20:25:46 +0000 | [diff] [blame] | 12991 | #define SETPGRP_VOID 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12992 | _ACEOF |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12993 | |
| 12994 | fi |
Guido van Rossum | 8eee56f | 1994-10-20 22:18:37 +0000 | [diff] [blame] | 12995 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12996 | |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 12997 | for ac_func in gettimeofday |
| 12998 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 12999 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13000 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13001 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13002 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13004 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13005 | cat >conftest.$ac_ext <<_ACEOF |
| 13006 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13007 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13008 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13009 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13010 | #include <assert.h> |
| 13011 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13012 | #ifdef __cplusplus |
| 13013 | extern "C" |
| 13014 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13015 | /* 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] | 13016 | builtin and then its argument prototype would still apply. */ |
| 13017 | char $ac_func (); |
| 13018 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 13019 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13020 | #ifdef F77_DUMMY_MAIN |
| 13021 | # ifdef __cplusplus |
| 13022 | extern "C" |
| 13023 | # endif |
| 13024 | int F77_DUMMY_MAIN() { return 1; } |
| 13025 | #endif |
| 13026 | int |
| 13027 | main () |
| 13028 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13029 | /* The GNU C library defines this for functions which it implements |
| 13030 | to always fail with ENOSYS. Some functions are actually named |
| 13031 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13032 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13033 | choke me |
| 13034 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13035 | f = $ac_func; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13036 | #endif |
| 13037 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13038 | ; |
| 13039 | return 0; |
| 13040 | } |
| 13041 | _ACEOF |
| 13042 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13043 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13044 | (eval $ac_link) 2>&5 |
| 13045 | ac_status=$? |
| 13046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13047 | (exit $ac_status); } && |
| 13048 | { ac_try='test -s conftest$ac_exeext' |
| 13049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13050 | (eval $ac_try) 2>&5 |
| 13051 | ac_status=$? |
| 13052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13053 | (exit $ac_status); }; }; then |
| 13054 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13055 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13056 | echo "$as_me: failed program was:" >&5 |
| 13057 | cat conftest.$ac_ext >&5 |
| 13058 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13059 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13060 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13061 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13062 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13063 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13064 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13065 | cat >>confdefs.h <<_ACEOF |
| 13066 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13067 | _ACEOF |
| 13068 | cat >conftest.$ac_ext <<_ACEOF |
| 13069 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13070 | #include "confdefs.h" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13071 | #include <sys/time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13072 | #ifdef F77_DUMMY_MAIN |
| 13073 | # ifdef __cplusplus |
| 13074 | extern "C" |
| 13075 | # endif |
| 13076 | int F77_DUMMY_MAIN() { return 1; } |
| 13077 | #endif |
| 13078 | int |
| 13079 | main () |
| 13080 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13081 | gettimeofday((struct timeval*)0,(struct timezone*)0); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13082 | ; |
| 13083 | return 0; |
| 13084 | } |
| 13085 | _ACEOF |
| 13086 | rm -f conftest.$ac_objext |
| 13087 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13088 | (eval $ac_compile) 2>&5 |
| 13089 | ac_status=$? |
| 13090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13091 | (exit $ac_status); } && |
| 13092 | { ac_try='test -s conftest.$ac_objext' |
| 13093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13094 | (eval $ac_try) 2>&5 |
| 13095 | ac_status=$? |
| 13096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13097 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13098 | : |
| 13099 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13100 | echo "$as_me: failed program was:" >&5 |
| 13101 | cat conftest.$ac_ext >&5 |
| 13102 | |
| 13103 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13104 | #define GETTIMEOFDAY_NO_TZ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13105 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13106 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13107 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13108 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13109 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13110 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13111 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 13112 | done |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13113 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13114 | |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13115 | echo "$as_me:$LINENO: checking for major" >&5 |
| 13116 | echo $ECHO_N "checking for major... $ECHO_C" >&6 |
| 13117 | cat >conftest.$ac_ext <<_ACEOF |
| 13118 | #line $LINENO "configure" |
| 13119 | #include "confdefs.h" |
| 13120 | |
| 13121 | #if defined(MAJOR_IN_MKDEV) |
| 13122 | #include <sys/mkdev.h> |
| 13123 | #elif defined(MAJOR_IN_SYSMACROS) |
| 13124 | #include <sys/sysmacros.h> |
| 13125 | #else |
| 13126 | #include <sys/types.h> |
| 13127 | #endif |
| 13128 | |
| 13129 | #ifdef F77_DUMMY_MAIN |
| 13130 | # ifdef __cplusplus |
| 13131 | extern "C" |
| 13132 | # endif |
| 13133 | int F77_DUMMY_MAIN() { return 1; } |
| 13134 | #endif |
| 13135 | int |
| 13136 | main () |
| 13137 | { |
| 13138 | |
| 13139 | makedev(major(0),minor(0)); |
| 13140 | |
| 13141 | ; |
| 13142 | return 0; |
| 13143 | } |
| 13144 | _ACEOF |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 13145 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13146 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13147 | (eval $ac_link) 2>&5 |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13148 | ac_status=$? |
| 13149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13150 | (exit $ac_status); } && |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 13151 | { ac_try='test -s conftest$ac_exeext' |
Martin v. Löwis | dbe3f76 | 2002-10-10 14:27:30 +0000 | [diff] [blame] | 13152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13153 | (eval $ac_try) 2>&5 |
| 13154 | ac_status=$? |
| 13155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13156 | (exit $ac_status); }; }; then |
| 13157 | |
| 13158 | |
| 13159 | cat >>confdefs.h <<\_ACEOF |
| 13160 | #define HAVE_DEVICE_MACROS 1 |
| 13161 | _ACEOF |
| 13162 | |
| 13163 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13164 | echo "${ECHO_T}yes" >&6 |
| 13165 | |
| 13166 | else |
| 13167 | echo "$as_me: failed program was:" >&5 |
| 13168 | cat conftest.$ac_ext >&5 |
| 13169 | |
| 13170 | echo "$as_me:$LINENO: result: no" >&5 |
| 13171 | echo "${ECHO_T}no" >&6 |
| 13172 | |
| 13173 | fi |
Martin v. Löwis | e327120 | 2002-11-07 07:42:30 +0000 | [diff] [blame] | 13174 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13175 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13176 | # 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] | 13177 | # for [no]getaddrinfo in netdb.h. |
| 13178 | echo "$as_me:$LINENO: checking for getaddrinfo" >&5 |
| 13179 | echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 |
| 13180 | cat >conftest.$ac_ext <<_ACEOF |
| 13181 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13182 | #include "confdefs.h" |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13183 | |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 13184 | #include <sys/types.h> |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13185 | #include <sys/socket.h> |
| 13186 | #include <netdb.h> |
Martin v. Löwis | c010b6d | 2001-11-09 17:50:52 +0000 | [diff] [blame] | 13187 | #include <stdio.h> |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13188 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13189 | #ifdef F77_DUMMY_MAIN |
| 13190 | # ifdef __cplusplus |
| 13191 | extern "C" |
| 13192 | # endif |
| 13193 | int F77_DUMMY_MAIN() { return 1; } |
| 13194 | #endif |
| 13195 | int |
| 13196 | main () |
| 13197 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13198 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13199 | getaddrinfo(NULL, NULL, NULL, NULL); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13200 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13201 | ; |
| 13202 | return 0; |
| 13203 | } |
| 13204 | _ACEOF |
| 13205 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13206 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13207 | (eval $ac_link) 2>&5 |
| 13208 | ac_status=$? |
| 13209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13210 | (exit $ac_status); } && |
| 13211 | { ac_try='test -s conftest$ac_exeext' |
| 13212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13213 | (eval $ac_try) 2>&5 |
| 13214 | ac_status=$? |
| 13215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13216 | (exit $ac_status); }; }; then |
| 13217 | |
| 13218 | echo "$as_me:$LINENO: result: yes" >&5 |
| 13219 | echo "${ECHO_T}yes" >&6 |
| 13220 | echo "$as_me:$LINENO: checking getaddrinfo bug" >&5 |
| 13221 | echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13222 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13223 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 13224 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13225 | buggygetaddrinfo=yes |
| 13226 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13227 | cat >conftest.$ac_ext <<_ACEOF |
| 13228 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13229 | #include "confdefs.h" |
| 13230 | |
| 13231 | #include <sys/types.h> |
| 13232 | #include <netdb.h> |
| 13233 | #include <string.h> |
| 13234 | #include <sys/socket.h> |
| 13235 | #include <netinet/in.h> |
| 13236 | |
| 13237 | main() |
| 13238 | { |
| 13239 | int passive, gaierr, inet4 = 0, inet6 = 0; |
| 13240 | struct addrinfo hints, *ai, *aitop; |
| 13241 | char straddr[INET6_ADDRSTRLEN], strport[16]; |
| 13242 | |
| 13243 | for (passive = 0; passive <= 1; passive++) { |
| 13244 | memset(&hints, 0, sizeof(hints)); |
| 13245 | hints.ai_family = AF_UNSPEC; |
| 13246 | hints.ai_flags = passive ? AI_PASSIVE : 0; |
| 13247 | hints.ai_socktype = SOCK_STREAM; |
| 13248 | if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { |
| 13249 | (void)gai_strerror(gaierr); |
| 13250 | goto bad; |
| 13251 | } |
| 13252 | for (ai = aitop; ai; ai = ai->ai_next) { |
| 13253 | if (ai->ai_addr == NULL || |
| 13254 | ai->ai_addrlen == 0 || |
| 13255 | getnameinfo(ai->ai_addr, ai->ai_addrlen, |
| 13256 | straddr, sizeof(straddr), strport, sizeof(strport), |
| 13257 | NI_NUMERICHOST|NI_NUMERICSERV) != 0) { |
| 13258 | goto bad; |
| 13259 | } |
| 13260 | switch (ai->ai_family) { |
| 13261 | case AF_INET: |
| 13262 | if (strcmp(strport, "54321") != 0) { |
| 13263 | goto bad; |
| 13264 | } |
| 13265 | if (passive) { |
| 13266 | if (strcmp(straddr, "0.0.0.0") != 0) { |
| 13267 | goto bad; |
| 13268 | } |
| 13269 | } else { |
| 13270 | if (strcmp(straddr, "127.0.0.1") != 0) { |
| 13271 | goto bad; |
| 13272 | } |
| 13273 | } |
| 13274 | inet4++; |
| 13275 | break; |
| 13276 | case AF_INET6: |
| 13277 | if (strcmp(strport, "54321") != 0) { |
| 13278 | goto bad; |
| 13279 | } |
| 13280 | if (passive) { |
| 13281 | if (strcmp(straddr, "::") != 0) { |
| 13282 | goto bad; |
| 13283 | } |
| 13284 | } else { |
| 13285 | if (strcmp(straddr, "::1") != 0) { |
| 13286 | goto bad; |
| 13287 | } |
| 13288 | } |
| 13289 | inet6++; |
| 13290 | break; |
| 13291 | case AF_UNSPEC: |
| 13292 | goto bad; |
| 13293 | break; |
| 13294 | default: |
| 13295 | /* another family support? */ |
| 13296 | break; |
| 13297 | } |
| 13298 | } |
| 13299 | } |
| 13300 | |
| 13301 | if (!(inet4 == 0 || inet4 == 2)) |
| 13302 | goto bad; |
| 13303 | if (!(inet6 == 0 || inet6 == 2)) |
| 13304 | goto bad; |
| 13305 | |
| 13306 | if (aitop) |
| 13307 | freeaddrinfo(aitop); |
| 13308 | exit(0); |
| 13309 | |
| 13310 | bad: |
| 13311 | if (aitop) |
| 13312 | freeaddrinfo(aitop); |
| 13313 | exit(1); |
| 13314 | } |
| 13315 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13316 | _ACEOF |
| 13317 | rm -f conftest$ac_exeext |
| 13318 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13319 | (eval $ac_link) 2>&5 |
| 13320 | ac_status=$? |
| 13321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13322 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 13323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13324 | (eval $ac_try) 2>&5 |
| 13325 | ac_status=$? |
| 13326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13327 | (exit $ac_status); }; }; then |
| 13328 | echo "$as_me:$LINENO: result: good" >&5 |
| 13329 | echo "${ECHO_T}good" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13330 | buggygetaddrinfo=no |
| 13331 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13332 | echo "$as_me: program exited with status $ac_status" >&5 |
| 13333 | echo "$as_me: failed program was:" >&5 |
| 13334 | cat conftest.$ac_ext >&5 |
| 13335 | ( exit $ac_status ) |
| 13336 | echo "$as_me:$LINENO: result: buggy" >&5 |
| 13337 | echo "${ECHO_T}buggy" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13338 | buggygetaddrinfo=yes |
| 13339 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13340 | 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] | 13341 | fi |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13342 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13343 | echo "$as_me: failed program was:" >&5 |
| 13344 | cat conftest.$ac_ext >&5 |
| 13345 | |
| 13346 | echo "$as_me:$LINENO: result: no" >&5 |
| 13347 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13348 | buggygetaddrinfo=yes |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13349 | |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13350 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13351 | 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] | 13352 | |
| 13353 | if test "$buggygetaddrinfo" = "yes"; then |
| 13354 | if test "$ipv6" = "yes"; then |
| 13355 | echo 'Fatal: You must get working getaddrinfo() function.' |
| 13356 | echo ' or you can specify "--disable-ipv6"'. |
| 13357 | exit 1 |
| 13358 | fi |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13359 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13360 | |
| 13361 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13362 | #define HAVE_GETADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13363 | _ACEOF |
Martin v. Löwis | 861a65b | 2001-10-24 14:36:00 +0000 | [diff] [blame] | 13364 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13365 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13366 | |
Jack Jansen | 9a66b6d | 2001-08-08 13:56:14 +0000 | [diff] [blame] | 13367 | for ac_func in getnameinfo |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13368 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13369 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13370 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 13371 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 13372 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 13373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13374 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13375 | cat >conftest.$ac_ext <<_ACEOF |
| 13376 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13377 | #include "confdefs.h" |
| 13378 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13379 | which can conflict with char $ac_func (); below. */ |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13380 | #include <assert.h> |
| 13381 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13382 | #ifdef __cplusplus |
| 13383 | extern "C" |
| 13384 | #endif |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13385 | /* 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] | 13386 | builtin and then its argument prototype would still apply. */ |
| 13387 | char $ac_func (); |
| 13388 | char (*f) (); |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13389 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13390 | #ifdef F77_DUMMY_MAIN |
| 13391 | # ifdef __cplusplus |
| 13392 | extern "C" |
| 13393 | # endif |
| 13394 | int F77_DUMMY_MAIN() { return 1; } |
| 13395 | #endif |
| 13396 | int |
| 13397 | main () |
| 13398 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13399 | /* The GNU C library defines this for functions which it implements |
| 13400 | to always fail with ENOSYS. Some functions are actually named |
| 13401 | something starting with __ and the normal name is an alias. */ |
| 13402 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 13403 | choke me |
| 13404 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13405 | f = $ac_func; |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13406 | #endif |
| 13407 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13408 | ; |
| 13409 | return 0; |
| 13410 | } |
| 13411 | _ACEOF |
| 13412 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13413 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13414 | (eval $ac_link) 2>&5 |
| 13415 | ac_status=$? |
| 13416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13417 | (exit $ac_status); } && |
| 13418 | { ac_try='test -s conftest$ac_exeext' |
| 13419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13420 | (eval $ac_try) 2>&5 |
| 13421 | ac_status=$? |
| 13422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13423 | (exit $ac_status); }; }; then |
| 13424 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13425 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13426 | echo "$as_me: failed program was:" >&5 |
| 13427 | cat conftest.$ac_ext >&5 |
| 13428 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13429 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13430 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13431 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13432 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 13433 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 13434 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 13435 | cat >>confdefs.h <<_ACEOF |
| 13436 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13437 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13438 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13439 | fi |
| 13440 | done |
| 13441 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13442 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13443 | # checks for structures |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13444 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
| 13445 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 13446 | if test "${ac_cv_header_time+set}" = set; then |
| 13447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13448 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13449 | cat >conftest.$ac_ext <<_ACEOF |
| 13450 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13451 | #include "confdefs.h" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13452 | #include <sys/types.h> |
| 13453 | #include <sys/time.h> |
| 13454 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13455 | |
| 13456 | #ifdef F77_DUMMY_MAIN |
| 13457 | # ifdef __cplusplus |
| 13458 | extern "C" |
| 13459 | # endif |
| 13460 | int F77_DUMMY_MAIN() { return 1; } |
| 13461 | #endif |
| 13462 | int |
| 13463 | main () |
| 13464 | { |
| 13465 | if ((struct tm *) 0) |
| 13466 | return 0; |
| 13467 | ; |
| 13468 | return 0; |
| 13469 | } |
| 13470 | _ACEOF |
| 13471 | rm -f conftest.$ac_objext |
| 13472 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13473 | (eval $ac_compile) 2>&5 |
| 13474 | ac_status=$? |
| 13475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13476 | (exit $ac_status); } && |
| 13477 | { ac_try='test -s conftest.$ac_objext' |
| 13478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13479 | (eval $ac_try) 2>&5 |
| 13480 | ac_status=$? |
| 13481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13482 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13483 | ac_cv_header_time=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13484 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13485 | echo "$as_me: failed program was:" >&5 |
| 13486 | cat conftest.$ac_ext >&5 |
| 13487 | ac_cv_header_time=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13488 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13489 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13490 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13491 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
| 13492 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13493 | if test $ac_cv_header_time = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13494 | |
| 13495 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13496 | #define TIME_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13497 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13498 | |
| 13499 | fi |
| 13500 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13501 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 13502 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 13503 | if test "${ac_cv_struct_tm+set}" = set; then |
| 13504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13505 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13506 | cat >conftest.$ac_ext <<_ACEOF |
| 13507 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13508 | #include "confdefs.h" |
| 13509 | #include <sys/types.h> |
| 13510 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13511 | |
| 13512 | #ifdef F77_DUMMY_MAIN |
| 13513 | # ifdef __cplusplus |
| 13514 | extern "C" |
| 13515 | # endif |
| 13516 | int F77_DUMMY_MAIN() { return 1; } |
| 13517 | #endif |
| 13518 | int |
| 13519 | main () |
| 13520 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13521 | struct tm *tp; tp->tm_sec; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13522 | ; |
| 13523 | return 0; |
| 13524 | } |
| 13525 | _ACEOF |
| 13526 | rm -f conftest.$ac_objext |
| 13527 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13528 | (eval $ac_compile) 2>&5 |
| 13529 | ac_status=$? |
| 13530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13531 | (exit $ac_status); } && |
| 13532 | { ac_try='test -s conftest.$ac_objext' |
| 13533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13534 | (eval $ac_try) 2>&5 |
| 13535 | ac_status=$? |
| 13536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13537 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13538 | ac_cv_struct_tm=time.h |
| 13539 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13540 | echo "$as_me: failed program was:" >&5 |
| 13541 | cat conftest.$ac_ext >&5 |
| 13542 | ac_cv_struct_tm=sys/time.h |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13543 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13544 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13545 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13546 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 13547 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13548 | if test $ac_cv_struct_tm = sys/time.h; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13549 | |
| 13550 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13551 | #define TM_IN_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13552 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13553 | |
| 13554 | fi |
| 13555 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13556 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
| 13557 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 13558 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then |
| 13559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13560 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13561 | cat >conftest.$ac_ext <<_ACEOF |
| 13562 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13563 | #include "confdefs.h" |
| 13564 | #include <sys/types.h> |
| 13565 | #include <$ac_cv_struct_tm> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13566 | |
| 13567 | |
| 13568 | #ifdef F77_DUMMY_MAIN |
| 13569 | # ifdef __cplusplus |
| 13570 | extern "C" |
| 13571 | # endif |
| 13572 | int F77_DUMMY_MAIN() { return 1; } |
| 13573 | #endif |
| 13574 | int |
| 13575 | main () |
| 13576 | { |
| 13577 | static struct tm ac_aggr; |
| 13578 | if (ac_aggr.tm_zone) |
| 13579 | return 0; |
| 13580 | ; |
| 13581 | return 0; |
| 13582 | } |
| 13583 | _ACEOF |
| 13584 | rm -f conftest.$ac_objext |
| 13585 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13586 | (eval $ac_compile) 2>&5 |
| 13587 | ac_status=$? |
| 13588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13589 | (exit $ac_status); } && |
| 13590 | { ac_try='test -s conftest.$ac_objext' |
| 13591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13592 | (eval $ac_try) 2>&5 |
| 13593 | ac_status=$? |
| 13594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13595 | (exit $ac_status); }; }; then |
| 13596 | ac_cv_member_struct_tm_tm_zone=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13597 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13598 | echo "$as_me: failed program was:" >&5 |
| 13599 | cat conftest.$ac_ext >&5 |
| 13600 | ac_cv_member_struct_tm_tm_zone=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13601 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13602 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13603 | fi |
| 13604 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 13605 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 13606 | if test $ac_cv_member_struct_tm_tm_zone = yes; then |
| 13607 | |
| 13608 | cat >>confdefs.h <<_ACEOF |
| 13609 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 13610 | _ACEOF |
| 13611 | |
| 13612 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13613 | fi |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 13614 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13615 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 13616 | |
| 13617 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13618 | #define HAVE_TM_ZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13619 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13620 | |
| 13621 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13622 | echo "$as_me:$LINENO: checking for tzname" >&5 |
| 13623 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 13624 | if test "${ac_cv_var_tzname+set}" = set; then |
| 13625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13626 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13627 | cat >conftest.$ac_ext <<_ACEOF |
| 13628 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13629 | #include "confdefs.h" |
| 13630 | #include <time.h> |
| 13631 | #ifndef tzname /* For SGI. */ |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13632 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13633 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13634 | |
| 13635 | #ifdef F77_DUMMY_MAIN |
| 13636 | # ifdef __cplusplus |
| 13637 | extern "C" |
| 13638 | # endif |
| 13639 | int F77_DUMMY_MAIN() { return 1; } |
| 13640 | #endif |
| 13641 | int |
| 13642 | main () |
| 13643 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13644 | atoi(*tzname); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13645 | ; |
| 13646 | return 0; |
| 13647 | } |
| 13648 | _ACEOF |
| 13649 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 13650 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 13651 | (eval $ac_link) 2>&5 |
| 13652 | ac_status=$? |
| 13653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13654 | (exit $ac_status); } && |
| 13655 | { ac_try='test -s conftest$ac_exeext' |
| 13656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13657 | (eval $ac_try) 2>&5 |
| 13658 | ac_status=$? |
| 13659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13660 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13661 | ac_cv_var_tzname=yes |
| 13662 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13663 | echo "$as_me: failed program was:" >&5 |
| 13664 | cat conftest.$ac_ext >&5 |
| 13665 | ac_cv_var_tzname=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13666 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13667 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13668 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13669 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
| 13670 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13671 | if test $ac_cv_var_tzname = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13672 | |
| 13673 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13674 | #define HAVE_TZNAME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13675 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13676 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13677 | fi |
| 13678 | fi |
| 13679 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13680 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
| 13681 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 |
| 13682 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
| 13683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 13684 | else |
| 13685 | cat >conftest.$ac_ext <<_ACEOF |
| 13686 | #line $LINENO "configure" |
| 13687 | #include "confdefs.h" |
| 13688 | $ac_includes_default |
| 13689 | #ifdef F77_DUMMY_MAIN |
| 13690 | # ifdef __cplusplus |
| 13691 | extern "C" |
| 13692 | # endif |
| 13693 | int F77_DUMMY_MAIN() { return 1; } |
| 13694 | #endif |
| 13695 | int |
| 13696 | main () |
| 13697 | { |
| 13698 | static struct stat ac_aggr; |
| 13699 | if (ac_aggr.st_rdev) |
| 13700 | return 0; |
| 13701 | ; |
| 13702 | return 0; |
| 13703 | } |
| 13704 | _ACEOF |
| 13705 | rm -f conftest.$ac_objext |
| 13706 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13707 | (eval $ac_compile) 2>&5 |
| 13708 | ac_status=$? |
| 13709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13710 | (exit $ac_status); } && |
| 13711 | { ac_try='test -s conftest.$ac_objext' |
| 13712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13713 | (eval $ac_try) 2>&5 |
| 13714 | ac_status=$? |
| 13715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13716 | (exit $ac_status); }; }; then |
| 13717 | ac_cv_member_struct_stat_st_rdev=yes |
| 13718 | else |
| 13719 | echo "$as_me: failed program was:" >&5 |
| 13720 | cat conftest.$ac_ext >&5 |
| 13721 | ac_cv_member_struct_stat_st_rdev=no |
| 13722 | fi |
| 13723 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13724 | fi |
| 13725 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
| 13726 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 |
| 13727 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
| 13728 | |
| 13729 | cat >>confdefs.h <<_ACEOF |
| 13730 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
| 13731 | _ACEOF |
| 13732 | |
| 13733 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13734 | fi |
| 13735 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13736 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
| 13737 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 |
| 13738 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
| 13739 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13740 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13741 | cat >conftest.$ac_ext <<_ACEOF |
| 13742 | #line $LINENO "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13743 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13744 | $ac_includes_default |
| 13745 | #ifdef F77_DUMMY_MAIN |
| 13746 | # ifdef __cplusplus |
| 13747 | extern "C" |
| 13748 | # endif |
| 13749 | int F77_DUMMY_MAIN() { return 1; } |
| 13750 | #endif |
| 13751 | int |
| 13752 | main () |
| 13753 | { |
| 13754 | static struct stat ac_aggr; |
| 13755 | if (ac_aggr.st_blksize) |
| 13756 | return 0; |
| 13757 | ; |
| 13758 | return 0; |
| 13759 | } |
| 13760 | _ACEOF |
| 13761 | rm -f conftest.$ac_objext |
| 13762 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13763 | (eval $ac_compile) 2>&5 |
| 13764 | ac_status=$? |
| 13765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13766 | (exit $ac_status); } && |
| 13767 | { ac_try='test -s conftest.$ac_objext' |
| 13768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13769 | (eval $ac_try) 2>&5 |
| 13770 | ac_status=$? |
| 13771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13772 | (exit $ac_status); }; }; then |
| 13773 | ac_cv_member_struct_stat_st_blksize=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13774 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13775 | echo "$as_me: failed program was:" >&5 |
| 13776 | cat conftest.$ac_ext >&5 |
| 13777 | ac_cv_member_struct_stat_st_blksize=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13778 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13779 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13780 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13781 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
| 13782 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 |
| 13783 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13784 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13785 | cat >>confdefs.h <<_ACEOF |
| 13786 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
| 13787 | _ACEOF |
| 13788 | |
| 13789 | |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13790 | fi |
| 13791 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13792 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
| 13793 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 |
| 13794 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
| 13795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13796 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13797 | cat >conftest.$ac_ext <<_ACEOF |
| 13798 | #line $LINENO "configure" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13799 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13800 | $ac_includes_default |
| 13801 | #ifdef F77_DUMMY_MAIN |
| 13802 | # ifdef __cplusplus |
| 13803 | extern "C" |
| 13804 | # endif |
| 13805 | int F77_DUMMY_MAIN() { return 1; } |
| 13806 | #endif |
| 13807 | int |
| 13808 | main () |
| 13809 | { |
| 13810 | static struct stat ac_aggr; |
| 13811 | if (ac_aggr.st_blocks) |
| 13812 | return 0; |
| 13813 | ; |
| 13814 | return 0; |
| 13815 | } |
| 13816 | _ACEOF |
| 13817 | rm -f conftest.$ac_objext |
| 13818 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13819 | (eval $ac_compile) 2>&5 |
| 13820 | ac_status=$? |
| 13821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13822 | (exit $ac_status); } && |
| 13823 | { ac_try='test -s conftest.$ac_objext' |
| 13824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13825 | (eval $ac_try) 2>&5 |
| 13826 | ac_status=$? |
| 13827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13828 | (exit $ac_status); }; }; then |
| 13829 | ac_cv_member_struct_stat_st_blocks=yes |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13830 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13831 | echo "$as_me: failed program was:" >&5 |
| 13832 | cat conftest.$ac_ext >&5 |
| 13833 | ac_cv_member_struct_stat_st_blocks=no |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13834 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13835 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13836 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13837 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
| 13838 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 |
| 13839 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 13840 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13841 | cat >>confdefs.h <<_ACEOF |
| 13842 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
| 13843 | _ACEOF |
| 13844 | |
| 13845 | |
| 13846 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13847 | #define HAVE_ST_BLOCKS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13848 | _ACEOF |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13849 | |
| 13850 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13851 | LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
Guido van Rossum | 98bf58f | 2001-10-18 20:34:25 +0000 | [diff] [blame] | 13852 | fi |
| 13853 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 13854 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13855 | |
| 13856 | echo "$as_me:$LINENO: checking for time.h that defines altzone" >&5 |
| 13857 | echo $ECHO_N "checking for time.h that defines altzone... $ECHO_C" >&6 |
| 13858 | if test "${ac_cv_header_time_altzone+set}" = set; then |
| 13859 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13860 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13861 | cat >conftest.$ac_ext <<_ACEOF |
| 13862 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13863 | #include "confdefs.h" |
| 13864 | #include <time.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13865 | #ifdef F77_DUMMY_MAIN |
| 13866 | # ifdef __cplusplus |
| 13867 | extern "C" |
| 13868 | # endif |
| 13869 | int F77_DUMMY_MAIN() { return 1; } |
| 13870 | #endif |
| 13871 | int |
| 13872 | main () |
| 13873 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13874 | return altzone; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13875 | ; |
| 13876 | return 0; |
| 13877 | } |
| 13878 | _ACEOF |
| 13879 | rm -f conftest.$ac_objext |
| 13880 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13881 | (eval $ac_compile) 2>&5 |
| 13882 | ac_status=$? |
| 13883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13884 | (exit $ac_status); } && |
| 13885 | { ac_try='test -s conftest.$ac_objext' |
| 13886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13887 | (eval $ac_try) 2>&5 |
| 13888 | ac_status=$? |
| 13889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13890 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13891 | ac_cv_header_time_altzone=yes |
| 13892 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13893 | echo "$as_me: failed program was:" >&5 |
| 13894 | cat conftest.$ac_ext >&5 |
| 13895 | ac_cv_header_time_altzone=no |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13896 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13897 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13898 | fi |
| 13899 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13900 | echo "$as_me:$LINENO: result: $ac_cv_header_time_altzone" >&5 |
| 13901 | echo "${ECHO_T}$ac_cv_header_time_altzone" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13902 | if test $ac_cv_header_time_altzone = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13903 | |
| 13904 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13905 | #define HAVE_ALTZONE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13906 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13907 | |
| 13908 | fi |
| 13909 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 13910 | was_it_defined=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13911 | echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 13912 | echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 13913 | cat >conftest.$ac_ext <<_ACEOF |
| 13914 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13915 | #include "confdefs.h" |
| 13916 | |
| 13917 | #include <sys/types.h> |
| 13918 | #include <sys/select.h> |
| 13919 | #include <sys/time.h> |
| 13920 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13921 | #ifdef F77_DUMMY_MAIN |
| 13922 | # ifdef __cplusplus |
| 13923 | extern "C" |
| 13924 | # endif |
| 13925 | int F77_DUMMY_MAIN() { return 1; } |
| 13926 | #endif |
| 13927 | int |
| 13928 | main () |
| 13929 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13930 | ; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13931 | ; |
| 13932 | return 0; |
| 13933 | } |
| 13934 | _ACEOF |
| 13935 | rm -f conftest.$ac_objext |
| 13936 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13937 | (eval $ac_compile) 2>&5 |
| 13938 | ac_status=$? |
| 13939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13940 | (exit $ac_status); } && |
| 13941 | { ac_try='test -s conftest.$ac_objext' |
| 13942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13943 | (eval $ac_try) 2>&5 |
| 13944 | ac_status=$? |
| 13945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13946 | (exit $ac_status); }; }; then |
| 13947 | |
| 13948 | |
| 13949 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 13950 | #define SYS_SELECT_WITH_SYS_TIME 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13951 | _ACEOF |
| 13952 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 13953 | was_it_defined=yes |
| 13954 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 13955 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13956 | echo "$as_me: failed program was:" >&5 |
| 13957 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 13958 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13959 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 13960 | echo "$as_me:$LINENO: result: $was_it_defined" >&5 |
| 13961 | echo "${ECHO_T}$was_it_defined" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 13962 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13963 | echo "$as_me:$LINENO: checking for addrinfo" >&5 |
| 13964 | echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6 |
| 13965 | if test "${ac_cv_struct_addrinfo+set}" = set; then |
| 13966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13967 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13968 | cat >conftest.$ac_ext <<_ACEOF |
| 13969 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13970 | #include "confdefs.h" |
| 13971 | |
| 13972 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13973 | #ifdef F77_DUMMY_MAIN |
| 13974 | # ifdef __cplusplus |
| 13975 | extern "C" |
| 13976 | # endif |
| 13977 | int F77_DUMMY_MAIN() { return 1; } |
| 13978 | #endif |
| 13979 | int |
| 13980 | main () |
| 13981 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13982 | struct addrinfo a |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 13983 | ; |
| 13984 | return 0; |
| 13985 | } |
| 13986 | _ACEOF |
| 13987 | rm -f conftest.$ac_objext |
| 13988 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 13989 | (eval $ac_compile) 2>&5 |
| 13990 | ac_status=$? |
| 13991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13992 | (exit $ac_status); } && |
| 13993 | { ac_try='test -s conftest.$ac_objext' |
| 13994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 13995 | (eval $ac_try) 2>&5 |
| 13996 | ac_status=$? |
| 13997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 13998 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 13999 | ac_cv_struct_addrinfo=yes |
| 14000 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14001 | echo "$as_me: failed program was:" >&5 |
| 14002 | cat conftest.$ac_ext >&5 |
| 14003 | ac_cv_struct_addrinfo=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14004 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14005 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14006 | fi |
| 14007 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14008 | echo "$as_me:$LINENO: result: $ac_cv_struct_addrinfo" >&5 |
| 14009 | echo "${ECHO_T}$ac_cv_struct_addrinfo" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14010 | if test $ac_cv_struct_addrinfo = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14011 | |
| 14012 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14013 | #define HAVE_ADDRINFO 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14014 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14015 | |
| 14016 | fi |
| 14017 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14018 | echo "$as_me:$LINENO: checking for sockaddr_storage" >&5 |
| 14019 | echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6 |
| 14020 | if test "${ac_cv_struct_sockaddr_storage+set}" = set; then |
| 14021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14022 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14023 | cat >conftest.$ac_ext <<_ACEOF |
| 14024 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14025 | #include "confdefs.h" |
| 14026 | |
| 14027 | # include <sys/types.h> |
| 14028 | # include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14029 | #ifdef F77_DUMMY_MAIN |
| 14030 | # ifdef __cplusplus |
| 14031 | extern "C" |
| 14032 | # endif |
| 14033 | int F77_DUMMY_MAIN() { return 1; } |
| 14034 | #endif |
| 14035 | int |
| 14036 | main () |
| 14037 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14038 | struct sockaddr_storage s |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14039 | ; |
| 14040 | return 0; |
| 14041 | } |
| 14042 | _ACEOF |
| 14043 | rm -f conftest.$ac_objext |
| 14044 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14045 | (eval $ac_compile) 2>&5 |
| 14046 | ac_status=$? |
| 14047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14048 | (exit $ac_status); } && |
| 14049 | { ac_try='test -s conftest.$ac_objext' |
| 14050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14051 | (eval $ac_try) 2>&5 |
| 14052 | ac_status=$? |
| 14053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14054 | (exit $ac_status); }; }; then |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14055 | ac_cv_struct_sockaddr_storage=yes |
| 14056 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14057 | echo "$as_me: failed program was:" >&5 |
| 14058 | cat conftest.$ac_ext >&5 |
| 14059 | ac_cv_struct_sockaddr_storage=no |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14060 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14061 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14062 | fi |
| 14063 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14064 | echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_storage" >&5 |
| 14065 | echo "${ECHO_T}$ac_cv_struct_sockaddr_storage" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14066 | if test $ac_cv_struct_sockaddr_storage = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14067 | |
| 14068 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14069 | #define HAVE_SOCKADDR_STORAGE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14070 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14071 | |
| 14072 | fi |
| 14073 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14074 | # checks for compiler characteristics |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14075 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14076 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14077 | echo "$as_me:$LINENO: checking whether char is unsigned" >&5 |
| 14078 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
| 14079 | if test "${ac_cv_c_char_unsigned+set}" = set; then |
| 14080 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 14081 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14082 | cat >conftest.$ac_ext <<_ACEOF |
| 14083 | #line $LINENO "configure" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14084 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14085 | $ac_includes_default |
| 14086 | #ifdef F77_DUMMY_MAIN |
| 14087 | # ifdef __cplusplus |
| 14088 | extern "C" |
| 14089 | # endif |
| 14090 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14091 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14092 | int |
| 14093 | main () |
| 14094 | { |
| 14095 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 14096 | test_array [0] = 0 |
| 14097 | |
| 14098 | ; |
| 14099 | return 0; |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14100 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14101 | _ACEOF |
| 14102 | rm -f conftest.$ac_objext |
| 14103 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14104 | (eval $ac_compile) 2>&5 |
| 14105 | ac_status=$? |
| 14106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14107 | (exit $ac_status); } && |
| 14108 | { ac_try='test -s conftest.$ac_objext' |
| 14109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14110 | (eval $ac_try) 2>&5 |
| 14111 | ac_status=$? |
| 14112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14113 | (exit $ac_status); }; }; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14114 | ac_cv_c_char_unsigned=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14115 | else |
| 14116 | echo "$as_me: failed program was:" >&5 |
| 14117 | cat conftest.$ac_ext >&5 |
| 14118 | ac_cv_c_char_unsigned=yes |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14119 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14120 | rm -f conftest.$ac_objext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14121 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14122 | echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
| 14123 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14124 | 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] | 14125 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14126 | #define __CHAR_UNSIGNED__ 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14127 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14128 | |
| 14129 | fi |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14130 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14131 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 14132 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 14133 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 14134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14135 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14136 | ac_cv_prog_cc_stdc=no |
| 14137 | ac_save_CC=$CC |
| 14138 | cat >conftest.$ac_ext <<_ACEOF |
| 14139 | #line $LINENO "configure" |
| 14140 | #include "confdefs.h" |
| 14141 | #include <stdarg.h> |
| 14142 | #include <stdio.h> |
| 14143 | #include <sys/types.h> |
| 14144 | #include <sys/stat.h> |
| 14145 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 14146 | struct buf { int x; }; |
| 14147 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 14148 | static char *e (p, i) |
| 14149 | char **p; |
| 14150 | int i; |
| 14151 | { |
| 14152 | return p[i]; |
| 14153 | } |
| 14154 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 14155 | { |
| 14156 | char *s; |
| 14157 | va_list v; |
| 14158 | va_start (v,p); |
| 14159 | s = g (p, va_arg (v,int)); |
| 14160 | va_end (v); |
| 14161 | return s; |
| 14162 | } |
| 14163 | int test (int i, double x); |
| 14164 | struct s1 {int (*f) (int a);}; |
| 14165 | struct s2 {int (*f) (double a);}; |
| 14166 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 14167 | int argc; |
| 14168 | char **argv; |
| 14169 | #ifdef F77_DUMMY_MAIN |
| 14170 | # ifdef __cplusplus |
| 14171 | extern "C" |
| 14172 | # endif |
| 14173 | int F77_DUMMY_MAIN() { return 1; } |
| 14174 | #endif |
| 14175 | int |
| 14176 | main () |
| 14177 | { |
| 14178 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 14179 | ; |
| 14180 | return 0; |
| 14181 | } |
| 14182 | _ACEOF |
| 14183 | # Don't try gcc -ansi; that turns off useful extensions and |
| 14184 | # breaks some systems' header files. |
| 14185 | # AIX -qlanglvl=ansi |
| 14186 | # Ultrix and OSF/1 -std1 |
| 14187 | # HP-UX 10.20 and later -Ae |
| 14188 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 14189 | # SVR4 -Xc -D__EXTENSIONS__ |
| 14190 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 14191 | do |
| 14192 | CC="$ac_save_CC $ac_arg" |
| 14193 | rm -f conftest.$ac_objext |
| 14194 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14195 | (eval $ac_compile) 2>&5 |
| 14196 | ac_status=$? |
| 14197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14198 | (exit $ac_status); } && |
| 14199 | { ac_try='test -s conftest.$ac_objext' |
| 14200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14201 | (eval $ac_try) 2>&5 |
| 14202 | ac_status=$? |
| 14203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14204 | (exit $ac_status); }; }; then |
| 14205 | ac_cv_prog_cc_stdc=$ac_arg |
| 14206 | break |
| 14207 | else |
| 14208 | echo "$as_me: failed program was:" >&5 |
| 14209 | cat conftest.$ac_ext >&5 |
| 14210 | fi |
| 14211 | rm -f conftest.$ac_objext |
| 14212 | done |
| 14213 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 14214 | CC=$ac_save_CC |
| 14215 | |
| 14216 | fi |
| 14217 | |
| 14218 | case "x$ac_cv_prog_cc_stdc" in |
| 14219 | x|xno) |
| 14220 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 14221 | echo "${ECHO_T}none needed" >&6 ;; |
| 14222 | *) |
| 14223 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 14224 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 14225 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 14226 | esac |
| 14227 | |
| 14228 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
| 14229 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 14230 | if test "${ac_cv_c_const+set}" = set; then |
| 14231 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 14232 | else |
| 14233 | cat >conftest.$ac_ext <<_ACEOF |
| 14234 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14235 | #include "confdefs.h" |
| 14236 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14237 | #ifdef F77_DUMMY_MAIN |
| 14238 | # ifdef __cplusplus |
| 14239 | extern "C" |
| 14240 | # endif |
| 14241 | int F77_DUMMY_MAIN() { return 1; } |
| 14242 | #endif |
| 14243 | int |
| 14244 | main () |
| 14245 | { |
| 14246 | /* FIXME: Include the comments suggested by Paul. */ |
| 14247 | #ifndef __cplusplus |
| 14248 | /* Ultrix mips cc rejects this. */ |
| 14249 | typedef int charset[2]; |
| 14250 | const charset x; |
| 14251 | /* SunOS 4.1.1 cc rejects this. */ |
| 14252 | char const *const *ccp; |
| 14253 | char **p; |
| 14254 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 14255 | struct point {int x, y;}; |
| 14256 | static struct point const zero = {0,0}; |
| 14257 | /* AIX XL C 1.02.0.0 rejects this. |
| 14258 | It does not let you subtract one const X* pointer from another in |
| 14259 | an arm of an if-expression whose if-part is not a constant |
| 14260 | expression */ |
| 14261 | const char *g = "string"; |
| 14262 | ccp = &g + (g ? g-g : 0); |
| 14263 | /* HPUX 7.0 cc rejects these. */ |
| 14264 | ++ccp; |
| 14265 | p = (char**) ccp; |
| 14266 | ccp = (char const *const *) p; |
| 14267 | { /* SCO 3.2v4 cc rejects this. */ |
| 14268 | char *t; |
| 14269 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14270 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14271 | *t++ = 0; |
| 14272 | } |
| 14273 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 14274 | int x[] = {25, 17}; |
| 14275 | const int *foo = &x[0]; |
| 14276 | ++foo; |
| 14277 | } |
| 14278 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 14279 | typedef const int *iptr; |
| 14280 | iptr p = 0; |
| 14281 | ++p; |
| 14282 | } |
| 14283 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 14284 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 14285 | struct s { int j; const int *ap[3]; }; |
| 14286 | struct s *b; b->j = 5; |
| 14287 | } |
| 14288 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 14289 | const int foo = 10; |
| 14290 | } |
| 14291 | #endif |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14292 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14293 | ; |
| 14294 | return 0; |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14295 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14296 | _ACEOF |
| 14297 | rm -f conftest.$ac_objext |
| 14298 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14299 | (eval $ac_compile) 2>&5 |
| 14300 | ac_status=$? |
| 14301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14302 | (exit $ac_status); } && |
| 14303 | { ac_try='test -s conftest.$ac_objext' |
| 14304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14305 | (eval $ac_try) 2>&5 |
| 14306 | ac_status=$? |
| 14307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14308 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14309 | ac_cv_c_const=yes |
| 14310 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14311 | echo "$as_me: failed program was:" >&5 |
| 14312 | cat conftest.$ac_ext >&5 |
| 14313 | ac_cv_c_const=no |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14314 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14315 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14316 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14317 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
| 14318 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14319 | if test $ac_cv_c_const = no; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14320 | |
| 14321 | cat >>confdefs.h <<\_ACEOF |
| 14322 | #define const |
| 14323 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14324 | |
| 14325 | fi |
| 14326 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 14327 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14328 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14329 | echo "$as_me:$LINENO: checking for working volatile" >&5 |
| 14330 | echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| 14331 | cat >conftest.$ac_ext <<_ACEOF |
| 14332 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14333 | #include "confdefs.h" |
| 14334 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14335 | #ifdef F77_DUMMY_MAIN |
| 14336 | # ifdef __cplusplus |
| 14337 | extern "C" |
| 14338 | # endif |
| 14339 | int F77_DUMMY_MAIN() { return 1; } |
| 14340 | #endif |
| 14341 | int |
| 14342 | main () |
| 14343 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14344 | volatile int x; x = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14345 | ; |
| 14346 | return 0; |
| 14347 | } |
| 14348 | _ACEOF |
| 14349 | rm -f conftest.$ac_objext |
| 14350 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14351 | (eval $ac_compile) 2>&5 |
| 14352 | ac_status=$? |
| 14353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14354 | (exit $ac_status); } && |
| 14355 | { ac_try='test -s conftest.$ac_objext' |
| 14356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14357 | (eval $ac_try) 2>&5 |
| 14358 | ac_status=$? |
| 14359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14360 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14361 | works=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14362 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14363 | echo "$as_me: failed program was:" >&5 |
| 14364 | cat conftest.$ac_ext >&5 |
| 14365 | |
| 14366 | cat >>confdefs.h <<\_ACEOF |
| 14367 | #define volatile |
| 14368 | _ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14369 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14370 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14371 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14372 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14373 | echo "$as_me:$LINENO: result: $works" >&5 |
| 14374 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14375 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14376 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14377 | echo "$as_me:$LINENO: checking for working signed char" >&5 |
| 14378 | echo $ECHO_N "checking for working signed char... $ECHO_C" >&6 |
| 14379 | cat >conftest.$ac_ext <<_ACEOF |
| 14380 | #line $LINENO "configure" |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 14381 | #include "confdefs.h" |
| 14382 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14383 | #ifdef F77_DUMMY_MAIN |
| 14384 | # ifdef __cplusplus |
| 14385 | extern "C" |
| 14386 | # endif |
| 14387 | int F77_DUMMY_MAIN() { return 1; } |
| 14388 | #endif |
| 14389 | int |
| 14390 | main () |
| 14391 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14392 | signed char c; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14393 | ; |
| 14394 | return 0; |
| 14395 | } |
| 14396 | _ACEOF |
| 14397 | rm -f conftest.$ac_objext |
| 14398 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14399 | (eval $ac_compile) 2>&5 |
| 14400 | ac_status=$? |
| 14401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14402 | (exit $ac_status); } && |
| 14403 | { ac_try='test -s conftest.$ac_objext' |
| 14404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14405 | (eval $ac_try) 2>&5 |
| 14406 | ac_status=$? |
| 14407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14408 | (exit $ac_status); }; }; then |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14409 | works=yes |
Guido van Rossum | dabb11b | 1994-10-11 15:04:27 +0000 | [diff] [blame] | 14410 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14411 | echo "$as_me: failed program was:" >&5 |
| 14412 | cat conftest.$ac_ext >&5 |
| 14413 | |
| 14414 | cat >>confdefs.h <<\_ACEOF |
| 14415 | #define signed |
| 14416 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14417 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14418 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14419 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14420 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14421 | echo "$as_me:$LINENO: result: $works" >&5 |
| 14422 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14423 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14424 | have_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14425 | echo "$as_me:$LINENO: checking for prototypes" >&5 |
| 14426 | echo $ECHO_N "checking for prototypes... $ECHO_C" >&6 |
| 14427 | cat >conftest.$ac_ext <<_ACEOF |
| 14428 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14429 | #include "confdefs.h" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14430 | int foo(int x) { return 0; } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14431 | #ifdef F77_DUMMY_MAIN |
| 14432 | # ifdef __cplusplus |
| 14433 | extern "C" |
| 14434 | # endif |
| 14435 | int F77_DUMMY_MAIN() { return 1; } |
| 14436 | #endif |
| 14437 | int |
| 14438 | main () |
| 14439 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14440 | return foo(10); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14441 | ; |
| 14442 | return 0; |
| 14443 | } |
| 14444 | _ACEOF |
| 14445 | rm -f conftest.$ac_objext |
| 14446 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14447 | (eval $ac_compile) 2>&5 |
| 14448 | ac_status=$? |
| 14449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14450 | (exit $ac_status); } && |
| 14451 | { ac_try='test -s conftest.$ac_objext' |
| 14452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14453 | (eval $ac_try) 2>&5 |
| 14454 | ac_status=$? |
| 14455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14456 | (exit $ac_status); }; }; then |
| 14457 | |
| 14458 | |
| 14459 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14460 | #define HAVE_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14461 | _ACEOF |
| 14462 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14463 | have_prototypes=yes |
| 14464 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14465 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14466 | echo "$as_me: failed program was:" >&5 |
| 14467 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14468 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14469 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14470 | echo "$as_me:$LINENO: result: $have_prototypes" >&5 |
| 14471 | echo "${ECHO_T}$have_prototypes" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14472 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14473 | works=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14474 | echo "$as_me:$LINENO: checking for variable length prototypes and stdarg.h" >&5 |
| 14475 | echo $ECHO_N "checking for variable length prototypes and stdarg.h... $ECHO_C" >&6 |
| 14476 | cat >conftest.$ac_ext <<_ACEOF |
| 14477 | #line $LINENO "configure" |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14478 | #include "confdefs.h" |
| 14479 | |
| 14480 | #include <stdarg.h> |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 14481 | int foo(int x, ...) { |
| 14482 | va_list va; |
| 14483 | va_start(va, x); |
| 14484 | va_arg(va, int); |
| 14485 | va_arg(va, char *); |
| 14486 | va_arg(va, double); |
| 14487 | return 0; |
| 14488 | } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 14489 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14490 | #ifdef F77_DUMMY_MAIN |
| 14491 | # ifdef __cplusplus |
| 14492 | extern "C" |
| 14493 | # endif |
| 14494 | int F77_DUMMY_MAIN() { return 1; } |
| 14495 | #endif |
| 14496 | int |
| 14497 | main () |
| 14498 | { |
Guido van Rossum | 90eea07 | 1996-08-30 20:58:57 +0000 | [diff] [blame] | 14499 | return foo(10, "", 3.14); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14500 | ; |
| 14501 | return 0; |
| 14502 | } |
| 14503 | _ACEOF |
| 14504 | rm -f conftest.$ac_objext |
| 14505 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14506 | (eval $ac_compile) 2>&5 |
| 14507 | ac_status=$? |
| 14508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14509 | (exit $ac_status); } && |
| 14510 | { ac_try='test -s conftest.$ac_objext' |
| 14511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14512 | (eval $ac_try) 2>&5 |
| 14513 | ac_status=$? |
| 14514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14515 | (exit $ac_status); }; }; then |
| 14516 | |
| 14517 | |
| 14518 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14519 | #define HAVE_STDARG_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14520 | _ACEOF |
| 14521 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14522 | works=yes |
| 14523 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 14524 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14525 | echo "$as_me: failed program was:" >&5 |
| 14526 | cat conftest.$ac_ext >&5 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14527 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14528 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14529 | echo "$as_me:$LINENO: result: $works" >&5 |
| 14530 | echo "${ECHO_T}$works" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14531 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14532 | if test "$have_prototypes" = yes; then |
| 14533 | bad_prototypes=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14534 | echo "$as_me:$LINENO: checking for bad exec* prototypes" >&5 |
| 14535 | echo $ECHO_N "checking for bad exec* prototypes... $ECHO_C" >&6 |
| 14536 | cat >conftest.$ac_ext <<_ACEOF |
| 14537 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14538 | #include "confdefs.h" |
| 14539 | #include <unistd.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14540 | #ifdef F77_DUMMY_MAIN |
| 14541 | # ifdef __cplusplus |
| 14542 | extern "C" |
| 14543 | # endif |
| 14544 | int F77_DUMMY_MAIN() { return 1; } |
| 14545 | #endif |
| 14546 | int |
| 14547 | main () |
| 14548 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14549 | char **t;execve("@",t,t); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14550 | ; |
| 14551 | return 0; |
| 14552 | } |
| 14553 | _ACEOF |
| 14554 | rm -f conftest.$ac_objext |
| 14555 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14556 | (eval $ac_compile) 2>&5 |
| 14557 | ac_status=$? |
| 14558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14559 | (exit $ac_status); } && |
| 14560 | { ac_try='test -s conftest.$ac_objext' |
| 14561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14562 | (eval $ac_try) 2>&5 |
| 14563 | ac_status=$? |
| 14564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14565 | (exit $ac_status); }; }; then |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14566 | : |
| 14567 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14568 | echo "$as_me: failed program was:" >&5 |
| 14569 | cat conftest.$ac_ext >&5 |
| 14570 | |
| 14571 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14572 | #define BAD_EXEC_PROTOTYPES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14573 | _ACEOF |
| 14574 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14575 | bad_prototypes=yes |
| 14576 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14577 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14578 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14579 | echo "$as_me:$LINENO: result: $bad_prototypes" >&5 |
| 14580 | echo "${ECHO_T}$bad_prototypes" >&6 |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 14581 | fi |
| 14582 | |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14583 | # check if sockaddr has sa_len member |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14584 | echo "$as_me:$LINENO: checking if sockaddr has sa_len member" >&5 |
| 14585 | echo $ECHO_N "checking if sockaddr has sa_len member... $ECHO_C" >&6 |
| 14586 | cat >conftest.$ac_ext <<_ACEOF |
| 14587 | #line $LINENO "configure" |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14588 | #include "confdefs.h" |
| 14589 | #include <sys/types.h> |
| 14590 | #include <sys/socket.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14591 | #ifdef F77_DUMMY_MAIN |
| 14592 | # ifdef __cplusplus |
| 14593 | extern "C" |
| 14594 | # endif |
| 14595 | int F77_DUMMY_MAIN() { return 1; } |
| 14596 | #endif |
| 14597 | int |
| 14598 | main () |
| 14599 | { |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14600 | struct sockaddr x; |
| 14601 | x.sa_len = 0; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14602 | ; |
| 14603 | return 0; |
| 14604 | } |
| 14605 | _ACEOF |
| 14606 | rm -f conftest.$ac_objext |
| 14607 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14608 | (eval $ac_compile) 2>&5 |
| 14609 | ac_status=$? |
| 14610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14611 | (exit $ac_status); } && |
| 14612 | { ac_try='test -s conftest.$ac_objext' |
| 14613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14614 | (eval $ac_try) 2>&5 |
| 14615 | ac_status=$? |
| 14616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14617 | (exit $ac_status); }; }; then |
| 14618 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14619 | echo "${ECHO_T}yes" >&6 |
| 14620 | |
| 14621 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14622 | #define HAVE_SOCKADDR_SA_LEN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14623 | _ACEOF |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14624 | |
| 14625 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14626 | echo "$as_me: failed program was:" >&5 |
| 14627 | cat conftest.$ac_ext >&5 |
| 14628 | echo "$as_me:$LINENO: result: no" >&5 |
| 14629 | echo "${ECHO_T}no" >&6 |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14630 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14631 | rm -f conftest.$ac_objext conftest.$ac_ext |
Martin v. Löwis | 01dfdb3 | 2001-06-23 16:30:13 +0000 | [diff] [blame] | 14632 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14633 | va_list_is_array=no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14634 | echo "$as_me:$LINENO: checking whether va_list is an array" >&5 |
| 14635 | echo $ECHO_N "checking whether va_list is an array... $ECHO_C" >&6 |
| 14636 | cat >conftest.$ac_ext <<_ACEOF |
| 14637 | #line $LINENO "configure" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14638 | #include "confdefs.h" |
| 14639 | |
| 14640 | #ifdef HAVE_STDARG_PROTOTYPES |
| 14641 | #include <stdarg.h> |
| 14642 | #else |
| 14643 | #include <varargs.h> |
| 14644 | #endif |
| 14645 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14646 | #ifdef F77_DUMMY_MAIN |
| 14647 | # ifdef __cplusplus |
| 14648 | extern "C" |
| 14649 | # endif |
| 14650 | int F77_DUMMY_MAIN() { return 1; } |
| 14651 | #endif |
| 14652 | int |
| 14653 | main () |
| 14654 | { |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14655 | va_list list1, list2; list1 = list2; |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14656 | ; |
| 14657 | return 0; |
| 14658 | } |
| 14659 | _ACEOF |
| 14660 | rm -f conftest.$ac_objext |
| 14661 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14662 | (eval $ac_compile) 2>&5 |
| 14663 | ac_status=$? |
| 14664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14665 | (exit $ac_status); } && |
| 14666 | { ac_try='test -s conftest.$ac_objext' |
| 14667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14668 | (eval $ac_try) 2>&5 |
| 14669 | ac_status=$? |
| 14670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14671 | (exit $ac_status); }; }; then |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14672 | : |
| 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 | |
| 14678 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14679 | #define VA_LIST_IS_ARRAY 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14680 | _ACEOF |
| 14681 | |
Guido van Rossum | da88dad | 1995-01-26 00:46:29 +0000 | [diff] [blame] | 14682 | va_list_is_array=yes |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 14683 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14684 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14685 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14686 | echo "$as_me:$LINENO: result: $va_list_is_array" >&5 |
| 14687 | echo "${ECHO_T}$va_list_is_array" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 14688 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14689 | # 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] | 14690 | |
| 14691 | |
| 14692 | |
| 14693 | echo "$as_me:$LINENO: checking for gethostbyname_r" >&5 |
| 14694 | echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6 |
| 14695 | if test "${ac_cv_func_gethostbyname_r+set}" = set; then |
| 14696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14697 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14698 | cat >conftest.$ac_ext <<_ACEOF |
| 14699 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14700 | #include "confdefs.h" |
| 14701 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14702 | which can conflict with char gethostbyname_r (); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14703 | #include <assert.h> |
| 14704 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14705 | #ifdef __cplusplus |
| 14706 | extern "C" |
| 14707 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14708 | /* 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] | 14709 | builtin and then its argument prototype would still apply. */ |
| 14710 | char gethostbyname_r (); |
| 14711 | char (*f) (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14712 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14713 | #ifdef F77_DUMMY_MAIN |
| 14714 | # ifdef __cplusplus |
| 14715 | extern "C" |
| 14716 | # endif |
| 14717 | int F77_DUMMY_MAIN() { return 1; } |
| 14718 | #endif |
| 14719 | int |
| 14720 | main () |
| 14721 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14722 | /* The GNU C library defines this for functions which it implements |
| 14723 | to always fail with ENOSYS. Some functions are actually named |
| 14724 | something starting with __ and the normal name is an alias. */ |
| 14725 | #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r) |
| 14726 | choke me |
| 14727 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14728 | f = gethostbyname_r; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14729 | #endif |
| 14730 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14731 | ; |
| 14732 | return 0; |
| 14733 | } |
| 14734 | _ACEOF |
| 14735 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 14736 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 14737 | (eval $ac_link) 2>&5 |
| 14738 | ac_status=$? |
| 14739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14740 | (exit $ac_status); } && |
| 14741 | { ac_try='test -s conftest$ac_exeext' |
| 14742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14743 | (eval $ac_try) 2>&5 |
| 14744 | ac_status=$? |
| 14745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14746 | (exit $ac_status); }; }; then |
| 14747 | ac_cv_func_gethostbyname_r=yes |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14748 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14749 | echo "$as_me: failed program was:" >&5 |
| 14750 | cat conftest.$ac_ext >&5 |
| 14751 | ac_cv_func_gethostbyname_r=no |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14752 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14753 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14754 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14755 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5 |
| 14756 | echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6 |
| 14757 | if test $ac_cv_func_gethostbyname_r = yes; then |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14758 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14759 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14760 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14761 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14762 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14763 | echo "$as_me:$LINENO: checking gethostbyname_r with 6 args" >&5 |
| 14764 | 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] | 14765 | OLD_CFLAGS=$CFLAGS |
| 14766 | CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14767 | cat >conftest.$ac_ext <<_ACEOF |
| 14768 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14769 | #include "confdefs.h" |
| 14770 | |
| 14771 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14772 | |
| 14773 | #ifdef F77_DUMMY_MAIN |
| 14774 | # ifdef __cplusplus |
| 14775 | extern "C" |
| 14776 | # endif |
| 14777 | int F77_DUMMY_MAIN() { return 1; } |
| 14778 | #endif |
| 14779 | int |
| 14780 | main () |
| 14781 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14782 | |
| 14783 | char *name; |
| 14784 | struct hostent *he, *res; |
| 14785 | char buffer[2048]; |
| 14786 | int buflen = 2048; |
| 14787 | int h_errnop; |
| 14788 | |
| 14789 | (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14790 | |
| 14791 | ; |
| 14792 | return 0; |
| 14793 | } |
| 14794 | _ACEOF |
| 14795 | rm -f conftest.$ac_objext |
| 14796 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14797 | (eval $ac_compile) 2>&5 |
| 14798 | ac_status=$? |
| 14799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14800 | (exit $ac_status); } && |
| 14801 | { ac_try='test -s conftest.$ac_objext' |
| 14802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14803 | (eval $ac_try) 2>&5 |
| 14804 | ac_status=$? |
| 14805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14806 | (exit $ac_status); }; }; then |
| 14807 | |
| 14808 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14809 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14810 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14811 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14812 | |
| 14813 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14814 | #define HAVE_GETHOSTBYNAME_R_6_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14815 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14816 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14817 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14818 | echo "${ECHO_T}yes" >&6 |
| 14819 | |
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 | echo "$as_me: failed program was:" >&5 |
| 14822 | cat conftest.$ac_ext >&5 |
| 14823 | |
| 14824 | echo "$as_me:$LINENO: result: no" >&5 |
| 14825 | echo "${ECHO_T}no" >&6 |
| 14826 | echo "$as_me:$LINENO: checking gethostbyname_r with 5 args" >&5 |
| 14827 | echo $ECHO_N "checking gethostbyname_r with 5 args... $ECHO_C" >&6 |
| 14828 | cat >conftest.$ac_ext <<_ACEOF |
| 14829 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14830 | #include "confdefs.h" |
| 14831 | |
| 14832 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14833 | |
| 14834 | #ifdef F77_DUMMY_MAIN |
| 14835 | # ifdef __cplusplus |
| 14836 | extern "C" |
| 14837 | # endif |
| 14838 | int F77_DUMMY_MAIN() { return 1; } |
| 14839 | #endif |
| 14840 | int |
| 14841 | main () |
| 14842 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14843 | |
| 14844 | char *name; |
| 14845 | struct hostent *he; |
| 14846 | char buffer[2048]; |
| 14847 | int buflen = 2048; |
| 14848 | int h_errnop; |
| 14849 | |
| 14850 | (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14851 | |
| 14852 | ; |
| 14853 | return 0; |
| 14854 | } |
| 14855 | _ACEOF |
| 14856 | rm -f conftest.$ac_objext |
| 14857 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14858 | (eval $ac_compile) 2>&5 |
| 14859 | ac_status=$? |
| 14860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14861 | (exit $ac_status); } && |
| 14862 | { ac_try='test -s conftest.$ac_objext' |
| 14863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14864 | (eval $ac_try) 2>&5 |
| 14865 | ac_status=$? |
| 14866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14867 | (exit $ac_status); }; }; then |
| 14868 | |
| 14869 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14870 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14871 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14872 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14873 | |
| 14874 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14875 | #define HAVE_GETHOSTBYNAME_R_5_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14876 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14877 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14878 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14879 | echo "${ECHO_T}yes" >&6 |
| 14880 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14881 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14882 | echo "$as_me: failed program was:" >&5 |
| 14883 | cat conftest.$ac_ext >&5 |
| 14884 | |
| 14885 | echo "$as_me:$LINENO: result: no" >&5 |
| 14886 | echo "${ECHO_T}no" >&6 |
| 14887 | echo "$as_me:$LINENO: checking gethostbyname_r with 3 args" >&5 |
| 14888 | echo $ECHO_N "checking gethostbyname_r with 3 args... $ECHO_C" >&6 |
| 14889 | cat >conftest.$ac_ext <<_ACEOF |
| 14890 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14891 | #include "confdefs.h" |
| 14892 | |
| 14893 | # include <netdb.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14894 | |
| 14895 | #ifdef F77_DUMMY_MAIN |
| 14896 | # ifdef __cplusplus |
| 14897 | extern "C" |
| 14898 | # endif |
| 14899 | int F77_DUMMY_MAIN() { return 1; } |
| 14900 | #endif |
| 14901 | int |
| 14902 | main () |
| 14903 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14904 | |
| 14905 | char *name; |
| 14906 | struct hostent *he; |
| 14907 | struct hostent_data data; |
| 14908 | |
| 14909 | (void) gethostbyname_r(name, he, &data); |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14910 | |
| 14911 | ; |
| 14912 | return 0; |
| 14913 | } |
| 14914 | _ACEOF |
| 14915 | rm -f conftest.$ac_objext |
| 14916 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 14917 | (eval $ac_compile) 2>&5 |
| 14918 | ac_status=$? |
| 14919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14920 | (exit $ac_status); } && |
| 14921 | { ac_try='test -s conftest.$ac_objext' |
| 14922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 14923 | (eval $ac_try) 2>&5 |
| 14924 | ac_status=$? |
| 14925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14926 | (exit $ac_status); }; }; then |
| 14927 | |
| 14928 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14929 | #define HAVE_GETHOSTBYNAME_R 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14930 | _ACEOF |
Guido van Rossum | 8db7d8b | 1999-03-23 16:40:33 +0000 | [diff] [blame] | 14931 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14932 | |
| 14933 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14934 | #define HAVE_GETHOSTBYNAME_R_3_ARG 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14935 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14936 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14937 | echo "$as_me:$LINENO: result: yes" >&5 |
| 14938 | echo "${ECHO_T}yes" >&6 |
| 14939 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14940 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14941 | echo "$as_me: failed program was:" >&5 |
| 14942 | cat conftest.$ac_ext >&5 |
| 14943 | |
| 14944 | echo "$as_me:$LINENO: result: no" >&5 |
| 14945 | echo "${ECHO_T}no" >&6 |
| 14946 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14947 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14948 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14949 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14950 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14951 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 14952 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14953 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14954 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14955 | CFLAGS=$OLD_CFLAGS |
| 14956 | |
| 14957 | else |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14958 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14959 | |
| 14960 | for ac_func in gethostbyname |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14961 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14962 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14963 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 14964 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 14965 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 14966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14967 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14968 | cat >conftest.$ac_ext <<_ACEOF |
| 14969 | #line $LINENO "configure" |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14970 | #include "confdefs.h" |
| 14971 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14972 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14973 | #include <assert.h> |
| 14974 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14975 | #ifdef __cplusplus |
| 14976 | extern "C" |
| 14977 | #endif |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14978 | /* 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] | 14979 | builtin and then its argument prototype would still apply. */ |
| 14980 | char $ac_func (); |
| 14981 | char (*f) (); |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14982 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14983 | #ifdef F77_DUMMY_MAIN |
| 14984 | # ifdef __cplusplus |
| 14985 | extern "C" |
| 14986 | # endif |
| 14987 | int F77_DUMMY_MAIN() { return 1; } |
| 14988 | #endif |
| 14989 | int |
| 14990 | main () |
| 14991 | { |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14992 | /* The GNU C library defines this for functions which it implements |
| 14993 | to always fail with ENOSYS. Some functions are actually named |
| 14994 | something starting with __ and the normal name is an alias. */ |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 14995 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14996 | choke me |
| 14997 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 14998 | f = $ac_func; |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 14999 | #endif |
| 15000 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15001 | ; |
| 15002 | return 0; |
| 15003 | } |
| 15004 | _ACEOF |
| 15005 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15006 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15007 | (eval $ac_link) 2>&5 |
| 15008 | ac_status=$? |
| 15009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15010 | (exit $ac_status); } && |
| 15011 | { ac_try='test -s conftest$ac_exeext' |
| 15012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15013 | (eval $ac_try) 2>&5 |
| 15014 | ac_status=$? |
| 15015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15016 | (exit $ac_status); }; }; then |
| 15017 | eval "$as_ac_var=yes" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15018 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15019 | echo "$as_me: failed program was:" >&5 |
| 15020 | cat conftest.$ac_ext >&5 |
| 15021 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15022 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15023 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15024 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15025 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15026 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15027 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15028 | cat >>confdefs.h <<_ACEOF |
| 15029 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15030 | _ACEOF |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15031 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15032 | fi |
Thomas Wouters | 3a58420 | 2000-08-05 23:28:51 +0000 | [diff] [blame] | 15033 | done |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15034 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15035 | |
Guido van Rossum | a96f0ba | 1999-03-22 21:49:51 +0000 | [diff] [blame] | 15036 | fi |
| 15037 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15038 | |
| 15039 | |
| 15040 | |
| 15041 | |
| 15042 | |
| 15043 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15044 | # checks for system services |
| 15045 | # (none yet) |
| 15046 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15047 | # Linux requires this for correct f.p. operations |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15048 | echo "$as_me:$LINENO: checking for __fpu_control" >&5 |
| 15049 | echo $ECHO_N "checking for __fpu_control... $ECHO_C" >&6 |
| 15050 | if test "${ac_cv_func___fpu_control+set}" = set; then |
| 15051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15052 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15053 | cat >conftest.$ac_ext <<_ACEOF |
| 15054 | #line $LINENO "configure" |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15055 | #include "confdefs.h" |
| 15056 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15057 | which can conflict with char __fpu_control (); below. */ |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15058 | #include <assert.h> |
| 15059 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15060 | #ifdef __cplusplus |
| 15061 | extern "C" |
| 15062 | #endif |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15063 | /* 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] | 15064 | builtin and then its argument prototype would still apply. */ |
| 15065 | char __fpu_control (); |
| 15066 | char (*f) (); |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15067 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15068 | #ifdef F77_DUMMY_MAIN |
| 15069 | # ifdef __cplusplus |
| 15070 | extern "C" |
| 15071 | # endif |
| 15072 | int F77_DUMMY_MAIN() { return 1; } |
| 15073 | #endif |
| 15074 | int |
| 15075 | main () |
| 15076 | { |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15077 | /* The GNU C library defines this for functions which it implements |
| 15078 | to always fail with ENOSYS. Some functions are actually named |
| 15079 | something starting with __ and the normal name is an alias. */ |
| 15080 | #if defined (__stub___fpu_control) || defined (__stub_____fpu_control) |
| 15081 | choke me |
| 15082 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15083 | f = __fpu_control; |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15084 | #endif |
| 15085 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15086 | ; |
| 15087 | return 0; |
| 15088 | } |
| 15089 | _ACEOF |
| 15090 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15091 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15092 | (eval $ac_link) 2>&5 |
| 15093 | ac_status=$? |
| 15094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15095 | (exit $ac_status); } && |
| 15096 | { ac_try='test -s conftest$ac_exeext' |
| 15097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15098 | (eval $ac_try) 2>&5 |
| 15099 | ac_status=$? |
| 15100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15101 | (exit $ac_status); }; }; then |
| 15102 | ac_cv_func___fpu_control=yes |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15103 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15104 | echo "$as_me: failed program was:" >&5 |
| 15105 | cat conftest.$ac_ext >&5 |
| 15106 | ac_cv_func___fpu_control=no |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15107 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15108 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15109 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15110 | echo "$as_me:$LINENO: result: $ac_cv_func___fpu_control" >&5 |
| 15111 | echo "${ECHO_T}$ac_cv_func___fpu_control" >&6 |
| 15112 | if test $ac_cv_func___fpu_control = yes; then |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15113 | : |
| 15114 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15115 | |
| 15116 | echo "$as_me:$LINENO: checking for __fpu_control in -lieee" >&5 |
| 15117 | echo $ECHO_N "checking for __fpu_control in -lieee... $ECHO_C" >&6 |
| 15118 | if test "${ac_cv_lib_ieee___fpu_control+set}" = set; then |
| 15119 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15120 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15121 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15122 | LIBS="-lieee $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15123 | cat >conftest.$ac_ext <<_ACEOF |
| 15124 | #line $LINENO "configure" |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15125 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15126 | |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15127 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15128 | #ifdef __cplusplus |
| 15129 | extern "C" |
| 15130 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15131 | /* 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] | 15132 | builtin and then its argument prototype would still apply. */ |
| 15133 | char __fpu_control (); |
| 15134 | #ifdef F77_DUMMY_MAIN |
| 15135 | # ifdef __cplusplus |
| 15136 | extern "C" |
| 15137 | # endif |
| 15138 | int F77_DUMMY_MAIN() { return 1; } |
| 15139 | #endif |
| 15140 | int |
| 15141 | main () |
| 15142 | { |
| 15143 | __fpu_control (); |
| 15144 | ; |
| 15145 | return 0; |
| 15146 | } |
| 15147 | _ACEOF |
| 15148 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15149 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15150 | (eval $ac_link) 2>&5 |
| 15151 | ac_status=$? |
| 15152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15153 | (exit $ac_status); } && |
| 15154 | { ac_try='test -s conftest$ac_exeext' |
| 15155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15156 | (eval $ac_try) 2>&5 |
| 15157 | ac_status=$? |
| 15158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15159 | (exit $ac_status); }; }; then |
| 15160 | ac_cv_lib_ieee___fpu_control=yes |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15161 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15162 | echo "$as_me: failed program was:" >&5 |
| 15163 | cat conftest.$ac_ext >&5 |
| 15164 | ac_cv_lib_ieee___fpu_control=no |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15165 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15166 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 15167 | LIBS=$ac_check_lib_save_LIBS |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15168 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15169 | echo "$as_me:$LINENO: result: $ac_cv_lib_ieee___fpu_control" >&5 |
| 15170 | echo "${ECHO_T}$ac_cv_lib_ieee___fpu_control" >&6 |
| 15171 | if test $ac_cv_lib_ieee___fpu_control = yes; then |
| 15172 | cat >>confdefs.h <<_ACEOF |
| 15173 | #define HAVE_LIBIEEE 1 |
| 15174 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15175 | |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15176 | LIBS="-lieee $LIBS" |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15177 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 15178 | fi |
| 15179 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15180 | |
Jeremy Hylton | be28f5b | 2000-07-27 21:03:04 +0000 | [diff] [blame] | 15181 | fi |
| 15182 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15183 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15184 | # Check for --with-fpectl |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15185 | echo "$as_me:$LINENO: checking for --with-fpectl" >&5 |
| 15186 | echo $ECHO_N "checking for --with-fpectl... $ECHO_C" >&6 |
| 15187 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15188 | # Check whether --with-fpectl or --without-fpectl was given. |
| 15189 | if test "${with_fpectl+set}" = set; then |
| 15190 | withval="$with_fpectl" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15191 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15192 | if test "$withval" != no |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15193 | then |
| 15194 | |
| 15195 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15196 | #define WANT_SIGFPE_HANDLER 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15197 | _ACEOF |
| 15198 | |
| 15199 | echo "$as_me:$LINENO: result: yes" >&5 |
| 15200 | echo "${ECHO_T}yes" >&6 |
| 15201 | else echo "$as_me:$LINENO: result: no" >&5 |
| 15202 | echo "${ECHO_T}no" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15203 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15204 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15205 | echo "$as_me:$LINENO: result: no" >&5 |
| 15206 | echo "${ECHO_T}no" >&6 |
| 15207 | fi; |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15208 | |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15209 | # check for --with-libm=... |
| 15210 | |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 15211 | case $ac_sys_system in |
Guido van Rossum | 3dc0a51 | 2000-10-05 18:00:06 +0000 | [diff] [blame] | 15212 | Darwin) ;; |
Guido van Rossum | ec95c7b | 1998-08-04 17:59:56 +0000 | [diff] [blame] | 15213 | BeOS) ;; |
Guido van Rossum | 563e708 | 1996-09-10 18:20:48 +0000 | [diff] [blame] | 15214 | *) LIBM=-lm |
| 15215 | esac |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15216 | echo "$as_me:$LINENO: checking for --with-libm=STRING" >&5 |
| 15217 | echo $ECHO_N "checking for --with-libm=STRING... $ECHO_C" >&6 |
| 15218 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15219 | # Check whether --with-libm or --without-libm was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15220 | if test "${with_libm+set}" = set; then |
| 15221 | withval="$with_libm" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15222 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15223 | if test "$withval" = no |
| 15224 | then LIBM= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15225 | echo "$as_me:$LINENO: result: force LIBM empty" >&5 |
| 15226 | echo "${ECHO_T}force LIBM empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15227 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15228 | then LIBM=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15229 | echo "$as_me:$LINENO: result: set LIBM=\"$withval\"" >&5 |
| 15230 | echo "${ECHO_T}set LIBM=\"$withval\"" >&6 |
| 15231 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libm=STRING" >&5 |
| 15232 | echo "$as_me: error: proper usage is --with-libm=STRING" >&2;} |
| 15233 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15234 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15235 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15236 | echo "$as_me:$LINENO: result: default LIBM=\"$LIBM\"" >&5 |
| 15237 | echo "${ECHO_T}default LIBM=\"$LIBM\"" >&6 |
| 15238 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15239 | |
| 15240 | # check for --with-libc=... |
| 15241 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15242 | echo "$as_me:$LINENO: checking for --with-libc=STRING" >&5 |
| 15243 | echo $ECHO_N "checking for --with-libc=STRING... $ECHO_C" >&6 |
| 15244 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 15245 | # Check whether --with-libc or --without-libc was given. |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15246 | if test "${with_libc+set}" = set; then |
| 15247 | withval="$with_libc" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15248 | |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15249 | if test "$withval" = no |
| 15250 | then LIBC= |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15251 | echo "$as_me:$LINENO: result: force LIBC empty" >&5 |
| 15252 | echo "${ECHO_T}force LIBC empty" >&6 |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15253 | elif test "$withval" != yes |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15254 | then LIBC=$withval |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15255 | echo "$as_me:$LINENO: result: set LIBC=\"$withval\"" >&5 |
| 15256 | echo "${ECHO_T}set LIBC=\"$withval\"" >&6 |
| 15257 | else { { echo "$as_me:$LINENO: error: proper usage is --with-libc=STRING" >&5 |
| 15258 | echo "$as_me: error: proper usage is --with-libc=STRING" >&2;} |
| 15259 | { (exit 1); exit 1; }; } |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15260 | fi |
Guido van Rossum | 7f25391 | 1997-05-09 02:42:48 +0000 | [diff] [blame] | 15261 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15262 | echo "$as_me:$LINENO: result: default LIBC=\"$LIBC\"" >&5 |
| 15263 | echo "${ECHO_T}default LIBC=\"$LIBC\"" >&6 |
| 15264 | fi; |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 15265 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15266 | # check for hypot() in math library |
| 15267 | LIBS_SAVE=$LIBS |
| 15268 | LIBS="$LIBS $LIBM" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15269 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15270 | for ac_func in hypot |
| 15271 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15272 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 15273 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 15274 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 15275 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 15276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15277 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15278 | cat >conftest.$ac_ext <<_ACEOF |
| 15279 | #line $LINENO "configure" |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15280 | #include "confdefs.h" |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15281 | /* System header to define __stub macros and hopefully few prototypes, |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15282 | which can conflict with char $ac_func (); below. */ |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15283 | #include <assert.h> |
| 15284 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15285 | #ifdef __cplusplus |
| 15286 | extern "C" |
| 15287 | #endif |
Guido van Rossum | 48bdbfc | 1996-05-28 22:53:48 +0000 | [diff] [blame] | 15288 | /* 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] | 15289 | builtin and then its argument prototype would still apply. */ |
| 15290 | char $ac_func (); |
| 15291 | char (*f) (); |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 15292 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15293 | #ifdef F77_DUMMY_MAIN |
| 15294 | # ifdef __cplusplus |
| 15295 | extern "C" |
| 15296 | # endif |
| 15297 | int F77_DUMMY_MAIN() { return 1; } |
| 15298 | #endif |
| 15299 | int |
| 15300 | main () |
| 15301 | { |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15302 | /* The GNU C library defines this for functions which it implements |
| 15303 | to always fail with ENOSYS. Some functions are actually named |
| 15304 | something starting with __ and the normal name is an alias. */ |
| 15305 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 15306 | choke me |
| 15307 | #else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15308 | f = $ac_func; |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15309 | #endif |
| 15310 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15311 | ; |
| 15312 | return 0; |
| 15313 | } |
| 15314 | _ACEOF |
| 15315 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 15316 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15317 | (eval $ac_link) 2>&5 |
| 15318 | ac_status=$? |
| 15319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15320 | (exit $ac_status); } && |
| 15321 | { ac_try='test -s conftest$ac_exeext' |
| 15322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15323 | (eval $ac_try) 2>&5 |
| 15324 | ac_status=$? |
| 15325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15326 | (exit $ac_status); }; }; then |
| 15327 | eval "$as_ac_var=yes" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 15328 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15329 | echo "$as_me: failed program was:" >&5 |
| 15330 | cat conftest.$ac_ext >&5 |
| 15331 | eval "$as_ac_var=no" |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15332 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15333 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15334 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15335 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 15336 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 15337 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 15338 | cat >>confdefs.h <<_ACEOF |
| 15339 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 15340 | _ACEOF |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15341 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15342 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15343 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 15344 | fi |
Guido van Rossum | 2b3ac69 | 1996-08-30 15:18:41 +0000 | [diff] [blame] | 15345 | done |
| 15346 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15347 | |
Guido van Rossum | af5b83e | 1995-01-04 19:02:35 +0000 | [diff] [blame] | 15348 | LIBS=$LIBS_SAVE |
| 15349 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15350 | # check for wchar.h |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15351 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 15352 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 15353 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 15354 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 15355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15356 | fi |
| 15357 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 15358 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15359 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15360 | # Is the header compilable? |
| 15361 | echo "$as_me:$LINENO: checking wchar.h usability" >&5 |
| 15362 | echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6 |
| 15363 | cat >conftest.$ac_ext <<_ACEOF |
| 15364 | #line $LINENO "configure" |
| 15365 | #include "confdefs.h" |
| 15366 | $ac_includes_default |
| 15367 | #include <wchar.h> |
| 15368 | _ACEOF |
| 15369 | rm -f conftest.$ac_objext |
| 15370 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15371 | (eval $ac_compile) 2>&5 |
| 15372 | ac_status=$? |
| 15373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15374 | (exit $ac_status); } && |
| 15375 | { ac_try='test -s conftest.$ac_objext' |
| 15376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15377 | (eval $ac_try) 2>&5 |
| 15378 | ac_status=$? |
| 15379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15380 | (exit $ac_status); }; }; then |
| 15381 | ac_header_compiler=yes |
| 15382 | else |
| 15383 | echo "$as_me: failed program was:" >&5 |
| 15384 | cat conftest.$ac_ext >&5 |
| 15385 | ac_header_compiler=no |
| 15386 | fi |
| 15387 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15388 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 15389 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 15390 | |
| 15391 | # Is the header present? |
| 15392 | echo "$as_me:$LINENO: checking wchar.h presence" >&5 |
| 15393 | echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6 |
| 15394 | cat >conftest.$ac_ext <<_ACEOF |
| 15395 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15396 | #include "confdefs.h" |
| 15397 | #include <wchar.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15398 | _ACEOF |
| 15399 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 15400 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 15401 | ac_status=$? |
| 15402 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 15403 | rm -f conftest.er1 |
| 15404 | cat conftest.err >&5 |
| 15405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15406 | (exit $ac_status); } >/dev/null; then |
| 15407 | if test -s conftest.err; then |
| 15408 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 15409 | else |
| 15410 | ac_cpp_err= |
| 15411 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15412 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15413 | ac_cpp_err=yes |
| 15414 | fi |
| 15415 | if test -z "$ac_cpp_err"; then |
| 15416 | ac_header_preproc=yes |
| 15417 | else |
| 15418 | echo "$as_me: failed program was:" >&5 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15419 | cat conftest.$ac_ext >&5 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15420 | ac_header_preproc=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15421 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15422 | rm -f conftest.err conftest.$ac_ext |
| 15423 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 15424 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 15425 | |
| 15426 | # So? What about this header? |
| 15427 | case $ac_header_compiler:$ac_header_preproc in |
| 15428 | yes:no ) |
| 15429 | { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 15430 | echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 15431 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 15432 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};; |
| 15433 | no:yes ) |
| 15434 | { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5 |
| 15435 | echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;} |
| 15436 | { echo "$as_me:$LINENO: WARNING: wchar.h: check for missing prerequisite headers?" >&5 |
| 15437 | echo "$as_me: WARNING: wchar.h: check for missing prerequisite headers?" >&2;} |
| 15438 | { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5 |
| 15439 | echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;};; |
| 15440 | esac |
| 15441 | echo "$as_me:$LINENO: checking for wchar.h" >&5 |
| 15442 | echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6 |
| 15443 | if test "${ac_cv_header_wchar_h+set}" = set; then |
| 15444 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15445 | else |
| 15446 | ac_cv_header_wchar_h=$ac_header_preproc |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15447 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15448 | echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5 |
| 15449 | echo "${ECHO_T}$ac_cv_header_wchar_h" >&6 |
| 15450 | |
| 15451 | fi |
| 15452 | if test $ac_cv_header_wchar_h = yes; then |
| 15453 | |
| 15454 | |
| 15455 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15456 | #define HAVE_WCHAR_H 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15457 | _ACEOF |
| 15458 | |
Martin v. Löwis | c45929e | 2002-04-06 10:10:49 +0000 | [diff] [blame] | 15459 | wchar_h="yes" |
| 15460 | |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15461 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15462 | wchar_h="no" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15463 | |
| 15464 | fi |
| 15465 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15466 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15467 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15468 | # determine wchar_t size |
| 15469 | if test "$wchar_h" = yes |
| 15470 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15471 | echo "$as_me:$LINENO: checking for wchar_t" >&5 |
| 15472 | echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6 |
| 15473 | if test "${ac_cv_type_wchar_t+set}" = set; then |
| 15474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15475 | else |
| 15476 | cat >conftest.$ac_ext <<_ACEOF |
| 15477 | #line $LINENO "configure" |
| 15478 | #include "confdefs.h" |
| 15479 | #include <wchar.h> |
| 15480 | |
| 15481 | #ifdef F77_DUMMY_MAIN |
| 15482 | # ifdef __cplusplus |
| 15483 | extern "C" |
| 15484 | # endif |
| 15485 | int F77_DUMMY_MAIN() { return 1; } |
| 15486 | #endif |
| 15487 | int |
| 15488 | main () |
| 15489 | { |
| 15490 | if ((wchar_t *) 0) |
| 15491 | return 0; |
| 15492 | if (sizeof (wchar_t)) |
| 15493 | return 0; |
| 15494 | ; |
| 15495 | return 0; |
| 15496 | } |
| 15497 | _ACEOF |
| 15498 | rm -f conftest.$ac_objext |
| 15499 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15500 | (eval $ac_compile) 2>&5 |
| 15501 | ac_status=$? |
| 15502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15503 | (exit $ac_status); } && |
| 15504 | { ac_try='test -s conftest.$ac_objext' |
| 15505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15506 | (eval $ac_try) 2>&5 |
| 15507 | ac_status=$? |
| 15508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15509 | (exit $ac_status); }; }; then |
| 15510 | ac_cv_type_wchar_t=yes |
| 15511 | else |
| 15512 | echo "$as_me: failed program was:" >&5 |
| 15513 | cat conftest.$ac_ext >&5 |
| 15514 | ac_cv_type_wchar_t=no |
| 15515 | fi |
| 15516 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15517 | fi |
| 15518 | echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5 |
| 15519 | echo "${ECHO_T}$ac_cv_type_wchar_t" >&6 |
| 15520 | |
| 15521 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
| 15522 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 |
| 15523 | if test "${ac_cv_sizeof_wchar_t+set}" = set; then |
| 15524 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 15525 | else |
| 15526 | if test "$ac_cv_type_wchar_t" = yes; then |
| 15527 | # The cast to unsigned long works around a bug in the HP C Compiler |
| 15528 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 15529 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 15530 | # This bug is HP SR number 8606223364. |
| 15531 | if test "$cross_compiling" = yes; then |
| 15532 | # Depending upon the size, compute the lo and hi bounds. |
| 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_lo=0 ac_mid=0 |
| 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_hi=$ac_mid; break |
| 15602 | else |
| 15603 | echo "$as_me: failed program was:" >&5 |
| 15604 | cat conftest.$ac_ext >&5 |
| 15605 | ac_lo=`expr $ac_mid + 1` |
| 15606 | if test $ac_lo -le $ac_mid; then |
| 15607 | ac_lo= ac_hi= |
| 15608 | break |
| 15609 | fi |
| 15610 | ac_mid=`expr 2 '*' $ac_mid + 1` |
| 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 | cat >conftest.$ac_ext <<_ACEOF |
| 15618 | #line $LINENO "configure" |
| 15619 | #include "confdefs.h" |
| 15620 | #include <wchar.h> |
| 15621 | |
| 15622 | #ifdef F77_DUMMY_MAIN |
| 15623 | # ifdef __cplusplus |
| 15624 | extern "C" |
| 15625 | # endif |
| 15626 | int F77_DUMMY_MAIN() { return 1; } |
| 15627 | #endif |
| 15628 | int |
| 15629 | main () |
| 15630 | { |
| 15631 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)]; |
| 15632 | test_array [0] = 0 |
| 15633 | |
| 15634 | ; |
| 15635 | return 0; |
| 15636 | } |
| 15637 | _ACEOF |
| 15638 | rm -f conftest.$ac_objext |
| 15639 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15640 | (eval $ac_compile) 2>&5 |
| 15641 | ac_status=$? |
| 15642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15643 | (exit $ac_status); } && |
| 15644 | { ac_try='test -s conftest.$ac_objext' |
| 15645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15646 | (eval $ac_try) 2>&5 |
| 15647 | ac_status=$? |
| 15648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15649 | (exit $ac_status); }; }; then |
| 15650 | ac_hi=-1 ac_mid=-1 |
| 15651 | while :; do |
| 15652 | cat >conftest.$ac_ext <<_ACEOF |
| 15653 | #line $LINENO "configure" |
| 15654 | #include "confdefs.h" |
| 15655 | #include <wchar.h> |
| 15656 | |
| 15657 | #ifdef F77_DUMMY_MAIN |
| 15658 | # ifdef __cplusplus |
| 15659 | extern "C" |
| 15660 | # endif |
| 15661 | int F77_DUMMY_MAIN() { return 1; } |
| 15662 | #endif |
| 15663 | int |
| 15664 | main () |
| 15665 | { |
| 15666 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)]; |
| 15667 | test_array [0] = 0 |
| 15668 | |
| 15669 | ; |
| 15670 | return 0; |
| 15671 | } |
| 15672 | _ACEOF |
| 15673 | rm -f conftest.$ac_objext |
| 15674 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15675 | (eval $ac_compile) 2>&5 |
| 15676 | ac_status=$? |
| 15677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15678 | (exit $ac_status); } && |
| 15679 | { ac_try='test -s conftest.$ac_objext' |
| 15680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15681 | (eval $ac_try) 2>&5 |
| 15682 | ac_status=$? |
| 15683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15684 | (exit $ac_status); }; }; then |
| 15685 | ac_lo=$ac_mid; break |
| 15686 | else |
| 15687 | echo "$as_me: failed program was:" >&5 |
| 15688 | cat conftest.$ac_ext >&5 |
| 15689 | ac_hi=`expr '(' $ac_mid ')' - 1` |
| 15690 | if test $ac_mid -le $ac_hi; then |
| 15691 | ac_lo= ac_hi= |
| 15692 | break |
| 15693 | fi |
| 15694 | ac_mid=`expr 2 '*' $ac_mid` |
| 15695 | fi |
| 15696 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15697 | done |
| 15698 | else |
| 15699 | echo "$as_me: failed program was:" >&5 |
| 15700 | cat conftest.$ac_ext >&5 |
| 15701 | ac_lo= ac_hi= |
| 15702 | fi |
| 15703 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15704 | fi |
| 15705 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15706 | # Binary search between lo and hi bounds. |
| 15707 | while test "x$ac_lo" != "x$ac_hi"; do |
| 15708 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
| 15709 | cat >conftest.$ac_ext <<_ACEOF |
| 15710 | #line $LINENO "configure" |
| 15711 | #include "confdefs.h" |
| 15712 | #include <wchar.h> |
| 15713 | |
| 15714 | #ifdef F77_DUMMY_MAIN |
| 15715 | # ifdef __cplusplus |
| 15716 | extern "C" |
| 15717 | # endif |
| 15718 | int F77_DUMMY_MAIN() { return 1; } |
| 15719 | #endif |
| 15720 | int |
| 15721 | main () |
| 15722 | { |
| 15723 | static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)]; |
| 15724 | test_array [0] = 0 |
| 15725 | |
| 15726 | ; |
| 15727 | return 0; |
| 15728 | } |
| 15729 | _ACEOF |
| 15730 | rm -f conftest.$ac_objext |
| 15731 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15732 | (eval $ac_compile) 2>&5 |
| 15733 | ac_status=$? |
| 15734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15735 | (exit $ac_status); } && |
| 15736 | { ac_try='test -s conftest.$ac_objext' |
| 15737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15738 | (eval $ac_try) 2>&5 |
| 15739 | ac_status=$? |
| 15740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15741 | (exit $ac_status); }; }; then |
| 15742 | ac_hi=$ac_mid |
| 15743 | else |
| 15744 | echo "$as_me: failed program was:" >&5 |
| 15745 | cat conftest.$ac_ext >&5 |
| 15746 | ac_lo=`expr '(' $ac_mid ')' + 1` |
| 15747 | fi |
| 15748 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 15749 | done |
| 15750 | case $ac_lo in |
| 15751 | ?*) ac_cv_sizeof_wchar_t=$ac_lo;; |
| 15752 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5 |
| 15753 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;} |
| 15754 | { (exit 1); exit 1; }; } ;; |
| 15755 | esac |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15756 | else |
| 15757 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15758 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 |
| 15759 | echo "$as_me: error: cannot run test program while cross compiling" >&2;} |
| 15760 | { (exit 1); exit 1; }; } |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15761 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15762 | cat >conftest.$ac_ext <<_ACEOF |
| 15763 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15764 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15765 | #include <wchar.h> |
| 15766 | |
| 15767 | long longval () { return (long) (sizeof (wchar_t)); } |
| 15768 | unsigned long ulongval () { return (long) (sizeof (wchar_t)); } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15769 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15770 | #include <stdlib.h> |
| 15771 | #ifdef F77_DUMMY_MAIN |
| 15772 | # ifdef __cplusplus |
| 15773 | extern "C" |
| 15774 | # endif |
| 15775 | int F77_DUMMY_MAIN() { return 1; } |
| 15776 | #endif |
| 15777 | int |
| 15778 | main () |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15779 | { |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15780 | |
| 15781 | FILE *f = fopen ("conftest.val", "w"); |
| 15782 | if (! f) |
| 15783 | exit (1); |
| 15784 | if (((long) (sizeof (wchar_t))) < 0) |
| 15785 | { |
| 15786 | long i = longval (); |
| 15787 | if (i != ((long) (sizeof (wchar_t)))) |
| 15788 | exit (1); |
| 15789 | fprintf (f, "%ld\n", i); |
| 15790 | } |
| 15791 | else |
| 15792 | { |
| 15793 | unsigned long i = ulongval (); |
| 15794 | if (i != ((long) (sizeof (wchar_t)))) |
| 15795 | exit (1); |
| 15796 | fprintf (f, "%lu\n", i); |
| 15797 | } |
| 15798 | exit (ferror (f) || fclose (f) != 0); |
| 15799 | |
| 15800 | ; |
| 15801 | return 0; |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15802 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15803 | _ACEOF |
| 15804 | rm -f conftest$ac_exeext |
| 15805 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 15806 | (eval $ac_link) 2>&5 |
| 15807 | ac_status=$? |
| 15808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15809 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 15810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15811 | (eval $ac_try) 2>&5 |
| 15812 | ac_status=$? |
| 15813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15814 | (exit $ac_status); }; }; then |
| 15815 | ac_cv_sizeof_wchar_t=`cat conftest.val` |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15816 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15817 | echo "$as_me: program exited with status $ac_status" >&5 |
| 15818 | echo "$as_me: failed program was:" >&5 |
| 15819 | cat conftest.$ac_ext >&5 |
| 15820 | ( exit $ac_status ) |
| 15821 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77" >&5 |
| 15822 | echo "$as_me: error: cannot compute sizeof (wchar_t), 77" >&2;} |
| 15823 | { (exit 1); exit 1; }; } |
| 15824 | fi |
| 15825 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 15826 | fi |
| 15827 | fi |
| 15828 | rm -f conftest.val |
| 15829 | else |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15830 | ac_cv_sizeof_wchar_t=0 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15831 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15832 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15833 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5 |
| 15834 | echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6 |
| 15835 | cat >>confdefs.h <<_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15836 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15837 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15838 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15839 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15840 | fi |
| 15841 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15842 | echo "$as_me:$LINENO: checking what type to use for unicode" >&5 |
| 15843 | 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] | 15844 | # Check whether --enable-unicode or --disable-unicode was given. |
| 15845 | if test "${enable_unicode+set}" = set; then |
| 15846 | enableval="$enable_unicode" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15847 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15848 | else |
| 15849 | enable_unicode=yes |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15850 | fi; |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15851 | |
| 15852 | if test $enable_unicode = yes |
| 15853 | then |
Martin v. Löwis | fd91779 | 2001-06-27 20:22:04 +0000 | [diff] [blame] | 15854 | # Without any arguments, Py_UNICODE defaults to two-byte mode |
| 15855 | enable_unicode="ucs2" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15856 | fi |
| 15857 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 15858 | |
| 15859 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15860 | case "$enable_unicode" in |
| 15861 | ucs2) unicode_size="2" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15862 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15863 | #define Py_UNICODE_SIZE 2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15864 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15865 | |
| 15866 | ;; |
| 15867 | ucs4) unicode_size="4" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15868 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15869 | #define Py_UNICODE_SIZE 4 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15870 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15871 | |
| 15872 | ;; |
| 15873 | esac |
| 15874 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 15875 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15876 | |
| 15877 | |
Martin v. Löwis | 0036cba | 2002-04-12 09:58:45 +0000 | [diff] [blame] | 15878 | |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15879 | if test "$enable_unicode" = "no" |
| 15880 | then |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 15881 | UNICODE_OBJS="" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15882 | echo "$as_me:$LINENO: result: not used" >&5 |
| 15883 | echo "${ECHO_T}not used" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15884 | else |
Martin v. Löwis | 339d0f7 | 2001-08-17 18:39:25 +0000 | [diff] [blame] | 15885 | UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15886 | |
| 15887 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15888 | #define Py_USING_UNICODE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15889 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15890 | |
| 15891 | if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" |
| 15892 | then |
| 15893 | PY_UNICODE_TYPE="wchar_t" |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15894 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15895 | cat >>confdefs.h <<\_ACEOF |
| 15896 | #define HAVE_USABLE_WCHAR_T 1 |
| 15897 | _ACEOF |
| 15898 | |
| 15899 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15900 | #define PY_UNICODE_TYPE wchar_t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15901 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15902 | |
| 15903 | elif test "$ac_cv_sizeof_short" = "$unicode_size" |
| 15904 | then |
| 15905 | PY_UNICODE_TYPE="unsigned short" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15906 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15907 | #define PY_UNICODE_TYPE unsigned short |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15908 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15909 | |
| 15910 | elif test "$ac_cv_sizeof_long" = "$unicode_size" |
| 15911 | then |
| 15912 | PY_UNICODE_TYPE="unsigned long" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15913 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15914 | #define PY_UNICODE_TYPE unsigned long |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15915 | _ACEOF |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15916 | |
| 15917 | else |
| 15918 | PY_UNICODE_TYPE="no type found" |
| 15919 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15920 | echo "$as_me:$LINENO: result: $PY_UNICODE_TYPE" >&5 |
| 15921 | echo "${ECHO_T}$PY_UNICODE_TYPE" >&6 |
Martin v. Löwis | 0ba70cc | 2001-06-26 22:22:37 +0000 | [diff] [blame] | 15922 | fi |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15923 | |
| 15924 | # check for endianness |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15925 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 15926 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 15927 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 15928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15929 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15930 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 15931 | cat >conftest.$ac_ext <<_ACEOF |
| 15932 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15933 | #include "confdefs.h" |
| 15934 | #include <sys/types.h> |
| 15935 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15936 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15937 | #ifdef F77_DUMMY_MAIN |
| 15938 | # ifdef __cplusplus |
| 15939 | extern "C" |
| 15940 | # endif |
| 15941 | int F77_DUMMY_MAIN() { return 1; } |
| 15942 | #endif |
| 15943 | int |
| 15944 | main () |
| 15945 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15946 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 15947 | bogus endian macros |
| 15948 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15949 | |
| 15950 | ; |
| 15951 | return 0; |
| 15952 | } |
| 15953 | _ACEOF |
| 15954 | rm -f conftest.$ac_objext |
| 15955 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15956 | (eval $ac_compile) 2>&5 |
| 15957 | ac_status=$? |
| 15958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15959 | (exit $ac_status); } && |
| 15960 | { ac_try='test -s conftest.$ac_objext' |
| 15961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15962 | (eval $ac_try) 2>&5 |
| 15963 | ac_status=$? |
| 15964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15965 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15966 | # 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] | 15967 | cat >conftest.$ac_ext <<_ACEOF |
| 15968 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15969 | #include "confdefs.h" |
| 15970 | #include <sys/types.h> |
| 15971 | #include <sys/param.h> |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15972 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15973 | #ifdef F77_DUMMY_MAIN |
| 15974 | # ifdef __cplusplus |
| 15975 | extern "C" |
| 15976 | # endif |
| 15977 | int F77_DUMMY_MAIN() { return 1; } |
| 15978 | #endif |
| 15979 | int |
| 15980 | main () |
| 15981 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 15982 | #if BYTE_ORDER != BIG_ENDIAN |
| 15983 | not big endian |
| 15984 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 15985 | |
| 15986 | ; |
| 15987 | return 0; |
| 15988 | } |
| 15989 | _ACEOF |
| 15990 | rm -f conftest.$ac_objext |
| 15991 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 15992 | (eval $ac_compile) 2>&5 |
| 15993 | ac_status=$? |
| 15994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15995 | (exit $ac_status); } && |
| 15996 | { ac_try='test -s conftest.$ac_objext' |
| 15997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 15998 | (eval $ac_try) 2>&5 |
| 15999 | ac_status=$? |
| 16000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16001 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16002 | ac_cv_c_bigendian=yes |
| 16003 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16004 | echo "$as_me: failed program was:" >&5 |
| 16005 | cat conftest.$ac_ext >&5 |
| 16006 | ac_cv_c_bigendian=no |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16007 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16008 | rm -f conftest.$ac_objext conftest.$ac_ext |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16009 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16010 | echo "$as_me: failed program was:" >&5 |
| 16011 | cat conftest.$ac_ext >&5 |
| 16012 | # It does not; compile a test program. |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16013 | if test "$cross_compiling" = yes; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16014 | # try to guess the endianess by grep'ing values into an object file |
| 16015 | ac_cv_c_bigendian=unknown |
| 16016 | cat >conftest.$ac_ext <<_ACEOF |
| 16017 | #line $LINENO "configure" |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16018 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16019 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 16020 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 16021 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 16022 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 16023 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 16024 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 16025 | #ifdef F77_DUMMY_MAIN |
| 16026 | # ifdef __cplusplus |
| 16027 | extern "C" |
| 16028 | # endif |
| 16029 | int F77_DUMMY_MAIN() { return 1; } |
| 16030 | #endif |
| 16031 | int |
| 16032 | main () |
| 16033 | { |
| 16034 | _ascii (); _ebcdic (); |
| 16035 | ; |
| 16036 | return 0; |
| 16037 | } |
| 16038 | _ACEOF |
| 16039 | rm -f conftest.$ac_objext |
| 16040 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16041 | (eval $ac_compile) 2>&5 |
| 16042 | ac_status=$? |
| 16043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16044 | (exit $ac_status); } && |
| 16045 | { ac_try='test -s conftest.$ac_objext' |
| 16046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16047 | (eval $ac_try) 2>&5 |
| 16048 | ac_status=$? |
| 16049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16050 | (exit $ac_status); }; }; then |
| 16051 | if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 16052 | ac_cv_c_bigendian=yes |
| 16053 | fi |
| 16054 | if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 16055 | if test "$ac_cv_c_bigendian" = unknown; then |
| 16056 | ac_cv_c_bigendian=no |
| 16057 | else |
| 16058 | # finding both strings is unlikely to happen, but who knows? |
| 16059 | ac_cv_c_bigendian=unknown |
| 16060 | fi |
| 16061 | fi |
| 16062 | else |
| 16063 | echo "$as_me: failed program was:" >&5 |
| 16064 | cat conftest.$ac_ext >&5 |
| 16065 | fi |
| 16066 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16067 | else |
| 16068 | cat >conftest.$ac_ext <<_ACEOF |
| 16069 | #line $LINENO "configure" |
| 16070 | #include "confdefs.h" |
| 16071 | int |
| 16072 | main () |
| 16073 | { |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16074 | /* Are we little or big endian? From Harbison&Steele. */ |
| 16075 | union |
| 16076 | { |
| 16077 | long l; |
| 16078 | char c[sizeof (long)]; |
| 16079 | } u; |
| 16080 | u.l = 1; |
| 16081 | exit (u.c[sizeof (long) - 1] == 1); |
| 16082 | } |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16083 | _ACEOF |
| 16084 | rm -f conftest$ac_exeext |
| 16085 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16086 | (eval $ac_link) 2>&5 |
| 16087 | ac_status=$? |
| 16088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16089 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16091 | (eval $ac_try) 2>&5 |
| 16092 | ac_status=$? |
| 16093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16094 | (exit $ac_status); }; }; then |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16095 | ac_cv_c_bigendian=no |
| 16096 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16097 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16098 | echo "$as_me: failed program was:" >&5 |
| 16099 | cat conftest.$ac_ext >&5 |
| 16100 | ( exit $ac_status ) |
| 16101 | ac_cv_c_bigendian=yes |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16102 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16103 | 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] | 16104 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16105 | fi |
| 16106 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16107 | fi |
| 16108 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 16109 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 16110 | case $ac_cv_c_bigendian in |
| 16111 | yes) |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16112 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16113 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16114 | #define WORDS_BIGENDIAN 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16115 | _ACEOF |
| 16116 | ;; |
| 16117 | no) |
| 16118 | ;; |
| 16119 | *) |
| 16120 | { { echo "$as_me:$LINENO: error: unknown endianess |
| 16121 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 16122 | echo "$as_me: error: unknown endianess |
| 16123 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 16124 | { (exit 1); exit 1; }; } ;; |
| 16125 | esac |
Guido van Rossum | ef2255b | 2000-03-10 22:30:29 +0000 | [diff] [blame] | 16126 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16127 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16128 | # Check whether right shifting a negative integer extends the sign bit |
| 16129 | # 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] | 16130 | echo "$as_me:$LINENO: checking whether right shift extends the sign bit" >&5 |
| 16131 | echo $ECHO_N "checking whether right shift extends the sign bit... $ECHO_C" >&6 |
| 16132 | if test "${ac_cv_rshift_extends_sign+set}" = set; then |
| 16133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16134 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16135 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16136 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 16137 | ac_cv_rshift_extends_sign=yes |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16138 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16139 | cat >conftest.$ac_ext <<_ACEOF |
| 16140 | #line $LINENO "configure" |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16141 | #include "confdefs.h" |
| 16142 | |
| 16143 | int main() |
| 16144 | { |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16145 | exit(((-1)>>3 == -1) ? 0 : 1); |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16146 | } |
| 16147 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16148 | _ACEOF |
| 16149 | rm -f conftest$ac_exeext |
| 16150 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16151 | (eval $ac_link) 2>&5 |
| 16152 | ac_status=$? |
| 16153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16154 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16156 | (eval $ac_try) 2>&5 |
| 16157 | ac_status=$? |
| 16158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16159 | (exit $ac_status); }; }; then |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16160 | ac_cv_rshift_extends_sign=yes |
| 16161 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16162 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16163 | echo "$as_me: failed program was:" >&5 |
| 16164 | cat conftest.$ac_ext >&5 |
| 16165 | ( exit $ac_status ) |
| 16166 | ac_cv_rshift_extends_sign=no |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16167 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16168 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 16169 | fi |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16170 | fi |
| 16171 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16172 | echo "$as_me:$LINENO: result: $ac_cv_rshift_extends_sign" >&5 |
| 16173 | echo "${ECHO_T}$ac_cv_rshift_extends_sign" >&6 |
Vladimir Marangozov | a618028 | 2000-07-12 05:05:06 +0000 | [diff] [blame] | 16174 | if test "$ac_cv_rshift_extends_sign" = no |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16175 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16176 | |
| 16177 | cat >>confdefs.h <<\_ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16178 | #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16179 | _ACEOF |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16180 | |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16181 | fi |
| 16182 | |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16183 | # check for getc_unlocked and related locking functions |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16184 | echo "$as_me:$LINENO: checking for getc_unlocked() and friends" >&5 |
| 16185 | echo $ECHO_N "checking for getc_unlocked() and friends... $ECHO_C" >&6 |
| 16186 | if test "${ac_cv_have_getc_unlocked+set}" = set; then |
| 16187 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16188 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16189 | |
| 16190 | cat >conftest.$ac_ext <<_ACEOF |
| 16191 | #line $LINENO "configure" |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16192 | #include "confdefs.h" |
| 16193 | #include <stdio.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16194 | #ifdef F77_DUMMY_MAIN |
| 16195 | # ifdef __cplusplus |
| 16196 | extern "C" |
| 16197 | # endif |
| 16198 | int F77_DUMMY_MAIN() { return 1; } |
| 16199 | #endif |
| 16200 | int |
| 16201 | main () |
| 16202 | { |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16203 | |
| 16204 | FILE *f = fopen("/dev/null", "r"); |
| 16205 | flockfile(f); |
| 16206 | getc_unlocked(f); |
| 16207 | funlockfile(f); |
| 16208 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16209 | ; |
| 16210 | return 0; |
| 16211 | } |
| 16212 | _ACEOF |
| 16213 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16214 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16215 | (eval $ac_link) 2>&5 |
| 16216 | ac_status=$? |
| 16217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16218 | (exit $ac_status); } && |
| 16219 | { ac_try='test -s conftest$ac_exeext' |
| 16220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16221 | (eval $ac_try) 2>&5 |
| 16222 | ac_status=$? |
| 16223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16224 | (exit $ac_status); }; }; then |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16225 | ac_cv_have_getc_unlocked=yes |
| 16226 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16227 | echo "$as_me: failed program was:" >&5 |
| 16228 | cat conftest.$ac_ext >&5 |
| 16229 | ac_cv_have_getc_unlocked=no |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16230 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16231 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16232 | fi |
| 16233 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16234 | echo "$as_me:$LINENO: result: $ac_cv_have_getc_unlocked" >&5 |
| 16235 | echo "${ECHO_T}$ac_cv_have_getc_unlocked" >&6 |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16236 | if test "$ac_cv_have_getc_unlocked" = yes |
| 16237 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16238 | |
| 16239 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16240 | #define HAVE_GETC_UNLOCKED 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16241 | _ACEOF |
Guido van Rossum | cadfaec | 2001-01-05 14:45:49 +0000 | [diff] [blame] | 16242 | |
| 16243 | fi |
Vladimir Marangozov | 676aa88 | 2000-07-12 03:02:43 +0000 | [diff] [blame] | 16244 | |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 16245 | # check for readline 2.2 |
| 16246 | cat >conftest.$ac_ext <<_ACEOF |
| 16247 | #line $LINENO "configure" |
| 16248 | #include "confdefs.h" |
| 16249 | #include <readline/readline.h> |
| 16250 | _ACEOF |
| 16251 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 16252 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 16253 | ac_status=$? |
| 16254 | egrep -v '^ *\+' conftest.er1 >conftest.err |
| 16255 | rm -f conftest.er1 |
| 16256 | cat conftest.err >&5 |
| 16257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16258 | (exit $ac_status); } >/dev/null; then |
| 16259 | if test -s conftest.err; then |
| 16260 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 16261 | else |
| 16262 | ac_cpp_err= |
| 16263 | fi |
| 16264 | else |
| 16265 | ac_cpp_err=yes |
| 16266 | fi |
| 16267 | if test -z "$ac_cpp_err"; then |
| 16268 | have_readline=yes |
| 16269 | else |
| 16270 | echo "$as_me: failed program was:" >&5 |
| 16271 | cat conftest.$ac_ext >&5 |
| 16272 | have_readline=no |
| 16273 | fi |
| 16274 | rm -f conftest.err conftest.$ac_ext |
| 16275 | if test $have_readline = yes |
| 16276 | then |
| 16277 | cat >conftest.$ac_ext <<_ACEOF |
| 16278 | #line $LINENO "configure" |
| 16279 | #include "confdefs.h" |
| 16280 | #include <readline/readline.h> |
| 16281 | |
| 16282 | _ACEOF |
| 16283 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 16284 | egrep "extern int rl_completion_append_character;" >/dev/null 2>&1; then |
| 16285 | |
| 16286 | cat >>confdefs.h <<\_ACEOF |
| 16287 | #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1 |
| 16288 | _ACEOF |
| 16289 | |
| 16290 | fi |
| 16291 | rm -f conftest* |
| 16292 | |
| 16293 | fi |
| 16294 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16295 | # check for readline 4.0 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16296 | echo "$as_me:$LINENO: checking for rl_pre_input_hook in -lreadline" >&5 |
| 16297 | echo $ECHO_N "checking for rl_pre_input_hook in -lreadline... $ECHO_C" >&6 |
| 16298 | if test "${ac_cv_lib_readline_rl_pre_input_hook+set}" = set; then |
| 16299 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16300 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16301 | ac_check_lib_save_LIBS=$LIBS |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16302 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16303 | cat >conftest.$ac_ext <<_ACEOF |
| 16304 | #line $LINENO "configure" |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16305 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16306 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16307 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16308 | #ifdef __cplusplus |
| 16309 | extern "C" |
| 16310 | #endif |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16311 | /* 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] | 16312 | builtin and then its argument prototype would still apply. */ |
| 16313 | char rl_pre_input_hook (); |
| 16314 | #ifdef F77_DUMMY_MAIN |
| 16315 | # ifdef __cplusplus |
| 16316 | extern "C" |
| 16317 | # endif |
| 16318 | int F77_DUMMY_MAIN() { return 1; } |
| 16319 | #endif |
| 16320 | int |
| 16321 | main () |
| 16322 | { |
| 16323 | rl_pre_input_hook (); |
| 16324 | ; |
| 16325 | return 0; |
| 16326 | } |
| 16327 | _ACEOF |
| 16328 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16329 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16330 | (eval $ac_link) 2>&5 |
| 16331 | ac_status=$? |
| 16332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16333 | (exit $ac_status); } && |
| 16334 | { ac_try='test -s conftest$ac_exeext' |
| 16335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16336 | (eval $ac_try) 2>&5 |
| 16337 | ac_status=$? |
| 16338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16339 | (exit $ac_status); }; }; then |
| 16340 | ac_cv_lib_readline_rl_pre_input_hook=yes |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16341 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16342 | echo "$as_me: failed program was:" >&5 |
| 16343 | cat conftest.$ac_ext >&5 |
| 16344 | ac_cv_lib_readline_rl_pre_input_hook=no |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16345 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16346 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16347 | LIBS=$ac_check_lib_save_LIBS |
| 16348 | fi |
| 16349 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 |
| 16350 | echo "${ECHO_T}$ac_cv_lib_readline_rl_pre_input_hook" >&6 |
| 16351 | 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] | 16352 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16353 | cat >>confdefs.h <<\_ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16354 | #define HAVE_RL_PRE_INPUT_HOOK 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16355 | _ACEOF |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16356 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16357 | fi |
| 16358 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16359 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16360 | # check for readline 4.2 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16361 | echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5 |
| 16362 | echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6 |
| 16363 | if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then |
| 16364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16365 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16366 | ac_check_lib_save_LIBS=$LIBS |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16367 | LIBS="-lreadline -ltermcap $LIBS" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16368 | cat >conftest.$ac_ext <<_ACEOF |
| 16369 | #line $LINENO "configure" |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16370 | #include "confdefs.h" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16371 | |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16372 | /* Override any gcc2 internal prototype to avoid an error. */ |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16373 | #ifdef __cplusplus |
| 16374 | extern "C" |
| 16375 | #endif |
Martin v. Löwis | 0daad59 | 2001-09-30 21:09:59 +0000 | [diff] [blame] | 16376 | /* 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] | 16377 | builtin and then its argument prototype would still apply. */ |
| 16378 | char rl_completion_matches (); |
| 16379 | #ifdef F77_DUMMY_MAIN |
| 16380 | # ifdef __cplusplus |
| 16381 | extern "C" |
| 16382 | # endif |
| 16383 | int F77_DUMMY_MAIN() { return 1; } |
| 16384 | #endif |
| 16385 | int |
| 16386 | main () |
| 16387 | { |
| 16388 | rl_completion_matches (); |
| 16389 | ; |
| 16390 | return 0; |
| 16391 | } |
| 16392 | _ACEOF |
| 16393 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 16394 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16395 | (eval $ac_link) 2>&5 |
| 16396 | ac_status=$? |
| 16397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16398 | (exit $ac_status); } && |
| 16399 | { ac_try='test -s conftest$ac_exeext' |
| 16400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16401 | (eval $ac_try) 2>&5 |
| 16402 | ac_status=$? |
| 16403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16404 | (exit $ac_status); }; }; then |
| 16405 | ac_cv_lib_readline_rl_completion_matches=yes |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16406 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16407 | echo "$as_me: failed program was:" >&5 |
| 16408 | cat conftest.$ac_ext >&5 |
| 16409 | ac_cv_lib_readline_rl_completion_matches=no |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16410 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16411 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 16412 | LIBS=$ac_check_lib_save_LIBS |
| 16413 | fi |
| 16414 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5 |
| 16415 | echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6 |
| 16416 | if test $ac_cv_lib_readline_rl_completion_matches = yes; then |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16417 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16418 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16419 | #define HAVE_RL_COMPLETION_MATCHES 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16420 | _ACEOF |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16421 | |
Guido van Rossum | 353ae58 | 2001-07-10 16:45:32 +0000 | [diff] [blame] | 16422 | fi |
| 16423 | |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16424 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16425 | echo "$as_me:$LINENO: checking for broken nice()" >&5 |
| 16426 | echo $ECHO_N "checking for broken nice()... $ECHO_C" >&6 |
| 16427 | if test "${ac_cv_broken_nice+set}" = set; then |
| 16428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16429 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16430 | |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16431 | if test "$cross_compiling" = yes; then |
Guido van Rossum | 3065c94 | 2001-09-17 04:03:14 +0000 | [diff] [blame] | 16432 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16433 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16434 | cat >conftest.$ac_ext <<_ACEOF |
| 16435 | #line $LINENO "configure" |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16436 | #include "confdefs.h" |
| 16437 | |
| 16438 | int main() |
| 16439 | { |
| 16440 | int val1 = nice(1); |
| 16441 | if (val1 != -1 && val1 == nice(2)) |
| 16442 | exit(0); |
| 16443 | exit(1); |
| 16444 | } |
| 16445 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16446 | _ACEOF |
| 16447 | rm -f conftest$ac_exeext |
| 16448 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 16449 | (eval $ac_link) 2>&5 |
| 16450 | ac_status=$? |
| 16451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16452 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 16453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16454 | (eval $ac_try) 2>&5 |
| 16455 | ac_status=$? |
| 16456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16457 | (exit $ac_status); }; }; then |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16458 | ac_cv_broken_nice=yes |
| 16459 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16460 | echo "$as_me: program exited with status $ac_status" >&5 |
| 16461 | echo "$as_me: failed program was:" >&5 |
| 16462 | cat conftest.$ac_ext >&5 |
| 16463 | ( exit $ac_status ) |
| 16464 | ac_cv_broken_nice=no |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16465 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16466 | rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 16467 | fi |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16468 | fi |
| 16469 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16470 | echo "$as_me:$LINENO: result: $ac_cv_broken_nice" >&5 |
| 16471 | echo "${ECHO_T}$ac_cv_broken_nice" >&6 |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16472 | if test "$ac_cv_broken_nice" = yes |
| 16473 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16474 | |
| 16475 | cat >>confdefs.h <<\_ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16476 | #define HAVE_BROKEN_NICE 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16477 | _ACEOF |
Thomas Wouters | e38b2f1 | 2001-07-11 22:35:31 +0000 | [diff] [blame] | 16478 | |
| 16479 | fi |
| 16480 | |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16481 | # Look for subsecond timestamps in struct stat |
| 16482 | echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5 |
| 16483 | echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6 |
| 16484 | if test "${ac_cv_stat_tv_nsec+set}" = set; then |
| 16485 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 16486 | else |
| 16487 | cat >conftest.$ac_ext <<_ACEOF |
| 16488 | #line $LINENO "configure" |
| 16489 | #include "confdefs.h" |
| 16490 | #include <sys/stat.h> |
| 16491 | #ifdef F77_DUMMY_MAIN |
| 16492 | # ifdef __cplusplus |
| 16493 | extern "C" |
| 16494 | # endif |
| 16495 | int F77_DUMMY_MAIN() { return 1; } |
| 16496 | #endif |
| 16497 | int |
| 16498 | main () |
| 16499 | { |
| 16500 | |
| 16501 | struct stat st; |
| 16502 | st.st_mtim.tv_nsec = 1; |
| 16503 | |
| 16504 | ; |
| 16505 | return 0; |
| 16506 | } |
| 16507 | _ACEOF |
| 16508 | rm -f conftest.$ac_objext |
| 16509 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16510 | (eval $ac_compile) 2>&5 |
| 16511 | ac_status=$? |
| 16512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16513 | (exit $ac_status); } && |
| 16514 | { ac_try='test -s conftest.$ac_objext' |
| 16515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16516 | (eval $ac_try) 2>&5 |
| 16517 | ac_status=$? |
| 16518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16519 | (exit $ac_status); }; }; then |
Martin v. Löwis | a32c994 | 2002-09-09 16:17:47 +0000 | [diff] [blame] | 16520 | ac_cv_stat_tv_nsec=yes |
Martin v. Löwis | 94717ed | 2002-09-09 14:24:16 +0000 | [diff] [blame] | 16521 | else |
| 16522 | echo "$as_me: failed program was:" >&5 |
| 16523 | cat conftest.$ac_ext >&5 |
| 16524 | ac_cv_stat_tv_nsec=no |
| 16525 | fi |
| 16526 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16527 | fi |
| 16528 | |
| 16529 | echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5 |
| 16530 | echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6 |
| 16531 | if test "$ac_cv_stat_tv_nsec" = yes |
| 16532 | then |
| 16533 | |
| 16534 | cat >>confdefs.h <<\_ACEOF |
| 16535 | #define HAVE_STAT_TV_NSEC 1 |
| 16536 | _ACEOF |
| 16537 | |
| 16538 | fi |
| 16539 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16540 | # 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] | 16541 | echo "$as_me:$LINENO: checking whether mvwdelch is an expression" >&5 |
| 16542 | echo $ECHO_N "checking whether mvwdelch is an expression... $ECHO_C" >&6 |
| 16543 | if test "${ac_cv_mvwdelch_is_expression+set}" = set; then |
| 16544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16545 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16546 | cat >conftest.$ac_ext <<_ACEOF |
| 16547 | #line $LINENO "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16548 | #include "confdefs.h" |
| 16549 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16550 | #ifdef F77_DUMMY_MAIN |
| 16551 | # ifdef __cplusplus |
| 16552 | extern "C" |
| 16553 | # endif |
| 16554 | int F77_DUMMY_MAIN() { return 1; } |
| 16555 | #endif |
| 16556 | int |
| 16557 | main () |
| 16558 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16559 | |
| 16560 | int rtn; |
| 16561 | rtn = mvwdelch(0,0,0); |
| 16562 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16563 | ; |
| 16564 | return 0; |
| 16565 | } |
| 16566 | _ACEOF |
| 16567 | rm -f conftest.$ac_objext |
| 16568 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16569 | (eval $ac_compile) 2>&5 |
| 16570 | ac_status=$? |
| 16571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16572 | (exit $ac_status); } && |
| 16573 | { ac_try='test -s conftest.$ac_objext' |
| 16574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16575 | (eval $ac_try) 2>&5 |
| 16576 | ac_status=$? |
| 16577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16578 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16579 | ac_cv_mvwdelch_is_expression=yes |
| 16580 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16581 | echo "$as_me: failed program was:" >&5 |
| 16582 | cat conftest.$ac_ext >&5 |
| 16583 | ac_cv_mvwdelch_is_expression=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16584 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16585 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16586 | fi |
| 16587 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16588 | echo "$as_me:$LINENO: result: $ac_cv_mvwdelch_is_expression" >&5 |
| 16589 | echo "${ECHO_T}$ac_cv_mvwdelch_is_expression" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16590 | |
| 16591 | if test "$ac_cv_mvwdelch_is_expression" = yes |
| 16592 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16593 | |
| 16594 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16595 | #define MVWDELCH_IS_EXPRESSION 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16596 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16597 | |
| 16598 | fi |
| 16599 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16600 | echo "$as_me:$LINENO: checking whether WINDOW has _flags" >&5 |
| 16601 | echo $ECHO_N "checking whether WINDOW has _flags... $ECHO_C" >&6 |
| 16602 | if test "${ac_cv_window_has_flags+set}" = set; then |
| 16603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16604 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16605 | cat >conftest.$ac_ext <<_ACEOF |
| 16606 | #line $LINENO "configure" |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16607 | #include "confdefs.h" |
| 16608 | #include <curses.h> |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16609 | #ifdef F77_DUMMY_MAIN |
| 16610 | # ifdef __cplusplus |
| 16611 | extern "C" |
| 16612 | # endif |
| 16613 | int F77_DUMMY_MAIN() { return 1; } |
| 16614 | #endif |
| 16615 | int |
| 16616 | main () |
| 16617 | { |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16618 | |
| 16619 | WINDOW *w; |
| 16620 | w->_flags = 0; |
| 16621 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16622 | ; |
| 16623 | return 0; |
| 16624 | } |
| 16625 | _ACEOF |
| 16626 | rm -f conftest.$ac_objext |
| 16627 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16628 | (eval $ac_compile) 2>&5 |
| 16629 | ac_status=$? |
| 16630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16631 | (exit $ac_status); } && |
| 16632 | { ac_try='test -s conftest.$ac_objext' |
| 16633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16634 | (eval $ac_try) 2>&5 |
| 16635 | ac_status=$? |
| 16636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16637 | (exit $ac_status); }; }; then |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16638 | ac_cv_window_has_flags=yes |
| 16639 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16640 | echo "$as_me: failed program was:" >&5 |
| 16641 | cat conftest.$ac_ext >&5 |
| 16642 | ac_cv_window_has_flags=no |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16643 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16644 | rm -f conftest.$ac_objext conftest.$ac_ext |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16645 | fi |
| 16646 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16647 | echo "$as_me:$LINENO: result: $ac_cv_window_has_flags" >&5 |
| 16648 | echo "${ECHO_T}$ac_cv_window_has_flags" >&6 |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16649 | |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16650 | |
| 16651 | if test "$ac_cv_window_has_flags" = yes |
| 16652 | then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16653 | |
| 16654 | cat >>confdefs.h <<\_ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16655 | #define WINDOW_HAS_FLAGS 1 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16656 | _ACEOF |
Jack Jansen | 666b1e7 | 2001-10-31 12:11:48 +0000 | [diff] [blame] | 16657 | |
| 16658 | fi |
| 16659 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16660 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
| 16661 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 |
| 16662 | if test "${ac_cv_type_socklen_t+set}" = set; then |
| 16663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16664 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16665 | cat >conftest.$ac_ext <<_ACEOF |
| 16666 | #line $LINENO "configure" |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16667 | #include "confdefs.h" |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 16668 | |
| 16669 | #ifdef HAVE_SYS_TYPES_H |
| 16670 | #include <sys/types.h> |
| 16671 | #endif |
| 16672 | #ifdef HAVE_SYS_SOCKET_H |
| 16673 | #include <sys/socket.h> |
| 16674 | #endif |
| 16675 | |
| 16676 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16677 | #ifdef F77_DUMMY_MAIN |
| 16678 | # ifdef __cplusplus |
| 16679 | extern "C" |
| 16680 | # endif |
| 16681 | int F77_DUMMY_MAIN() { return 1; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16682 | #endif |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16683 | int |
| 16684 | main () |
| 16685 | { |
| 16686 | if ((socklen_t *) 0) |
| 16687 | return 0; |
| 16688 | if (sizeof (socklen_t)) |
| 16689 | return 0; |
| 16690 | ; |
| 16691 | return 0; |
| 16692 | } |
| 16693 | _ACEOF |
| 16694 | rm -f conftest.$ac_objext |
| 16695 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 16696 | (eval $ac_compile) 2>&5 |
| 16697 | ac_status=$? |
| 16698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16699 | (exit $ac_status); } && |
| 16700 | { ac_try='test -s conftest.$ac_objext' |
| 16701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 16702 | (eval $ac_try) 2>&5 |
| 16703 | ac_status=$? |
| 16704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 16705 | (exit $ac_status); }; }; then |
Guido van Rossum | 8d6e8af | 2000-10-30 17:45:07 +0000 | [diff] [blame] | 16706 | ac_cv_type_socklen_t=yes |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16707 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16708 | echo "$as_me: failed program was:" >&5 |
| 16709 | cat conftest.$ac_ext >&5 |
| 16710 | ac_cv_type_socklen_t=no |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16711 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16712 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 16713 | fi |
| 16714 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
| 16715 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 |
| 16716 | if test $ac_cv_type_socklen_t = yes; then |
| 16717 | : |
| 16718 | else |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16719 | |
Martin v. Löwis | 01c0401 | 2002-11-11 14:58:44 +0000 | [diff] [blame] | 16720 | cat >>confdefs.h <<\_ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16721 | #define socklen_t int |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16722 | _ACEOF |
Guido van Rossum | 95713eb | 2000-05-18 20:53:31 +0000 | [diff] [blame] | 16723 | |
| 16724 | fi |
| 16725 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16726 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16727 | |
| 16728 | |
Martin v. Löwis | 06f15bb | 2001-12-02 13:02:32 +0000 | [diff] [blame] | 16729 | for h in `(cd $srcdir;echo Python/thread_*.h)` |
| 16730 | do |
| 16731 | THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" |
| 16732 | done |
| 16733 | |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16734 | |
Jack Jansen | 0b06be7 | 2002-06-21 14:48:38 +0000 | [diff] [blame] | 16735 | SRCDIRS="Parser Grammar Objects Python Modules Mac Mac/Python" |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16736 | echo "$as_me:$LINENO: checking for build directories" >&5 |
| 16737 | echo $ECHO_N "checking for build directories... $ECHO_C" >&6 |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16738 | for dir in $SRCDIRS; do |
| 16739 | if test ! -d $dir; then |
| 16740 | mkdir $dir |
Guido van Rossum | 262cf20 | 2000-11-02 19:33:53 +0000 | [diff] [blame] | 16741 | fi |
Neil Schemenauer | d32c249 | 2001-01-24 17:25:28 +0000 | [diff] [blame] | 16742 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16743 | echo "$as_me:$LINENO: result: done" >&5 |
| 16744 | echo "${ECHO_T}done" >&6 |
Fred Drake | 036144d | 2000-10-26 17:09:35 +0000 | [diff] [blame] | 16745 | |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16746 | # generate output files |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16747 | 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] | 16748 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16749 | cat >confcache <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16750 | # This file is a shell script that caches the results of configure |
| 16751 | # 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] | 16752 | # scripts and configure runs, see configure's option --config-cache. |
| 16753 | # It is not useful on other systems. If it contains results you don't |
| 16754 | # want to keep, you may remove or edit it. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16755 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16756 | # config.status only pays attention to the cache file if you give it |
| 16757 | # the --recheck option to rerun configure. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16758 | # |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16759 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
| 16760 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 16761 | # following values. |
| 16762 | |
| 16763 | _ACEOF |
| 16764 | |
Guido van Rossum | f78abae | 1997-01-21 22:02:36 +0000 | [diff] [blame] | 16765 | # The following way of writing the cache mishandles newlines in values, |
| 16766 | # but we know of no workaround that is simple, portable, and efficient. |
| 16767 | # So, don't put newlines in cache variables' values. |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16768 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 16769 | # 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] | 16770 | { |
| 16771 | (set) 2>&1 | |
| 16772 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 16773 | *ac_space=\ *) |
| 16774 | # `set' does not quote correctly, so add quotes (double-quote |
| 16775 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 16776 | sed -n \ |
| 16777 | "s/'/'\\\\''/g; |
| 16778 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 16779 | ;; |
| 16780 | *) |
| 16781 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 16782 | sed -n \ |
| 16783 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 16784 | ;; |
| 16785 | esac; |
| 16786 | } | |
| 16787 | sed ' |
| 16788 | t clear |
| 16789 | : clear |
| 16790 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 16791 | t end |
| 16792 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 16793 | : end' >>confcache |
| 16794 | if cmp -s $cache_file confcache; then :; else |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16795 | if test -w $cache_file; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16796 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 16797 | cat confcache >$cache_file |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16798 | else |
| 16799 | echo "not updating unwritable cache $cache_file" |
| 16800 | fi |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16801 | fi |
Guido van Rossum | 8ddd0ad | 1995-06-14 23:10:28 +0000 | [diff] [blame] | 16802 | rm -f confcache |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16803 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16804 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 16805 | # Let make expand exec_prefix. |
| 16806 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
Guido van Rossum | 0a516c9 | 1994-09-12 10:58:40 +0000 | [diff] [blame] | 16807 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16808 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 16809 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 16810 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 16811 | # (actually we leave an empty line to preserve line numbers). |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16812 | if test "x$srcdir" = x.; then |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16813 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 16814 | s/:*\$(srcdir):*/:/; |
| 16815 | s/:*\${srcdir}:*/:/; |
| 16816 | s/:*@srcdir@:*/:/; |
| 16817 | s/^\([^=]*=[ ]*\):*/\1/; |
| 16818 | s/:*$//; |
| 16819 | s/^[^=]*=[ ]*$//; |
| 16820 | }' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 16821 | fi |
| 16822 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16823 | DEFS=-DHAVE_CONFIG_H |
| 16824 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16825 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16826 | : ${CONFIG_STATUS=./config.status} |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16827 | ac_clean_files_save=$ac_clean_files |
| 16828 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 16829 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 16830 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 16831 | cat >$CONFIG_STATUS <<_ACEOF |
| 16832 | #! $SHELL |
| 16833 | # Generated by $as_me. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16834 | # Run this file to recreate the current configuration. |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 16835 | # Compiler output produced by configure, useful for debugging |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16836 | # configure, is in config.log if it exists. |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 16837 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16838 | debug=false |
| 16839 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 16840 | _ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16841 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16842 | cat >>$CONFIG_STATUS <<\_ACEOF |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16843 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16844 | ## --------------------- ## |
| 16845 | ## M4sh Initialization. ## |
| 16846 | ## --------------------- ## |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16847 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16848 | # Be Bourne compatible |
| 16849 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 16850 | emulate sh |
| 16851 | NULLCMD=: |
| 16852 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 16853 | set -o posix |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16854 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16855 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16856 | # NLS nuisances. |
| 16857 | # Support unset when possible. |
| 16858 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 16859 | as_unset=unset |
| 16860 | else |
| 16861 | as_unset=false |
| 16862 | fi |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 16863 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16864 | (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && |
| 16865 | { $as_unset LANG || test "${LANG+set}" != set; } || |
| 16866 | { LANG=C; export LANG; } |
| 16867 | (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && |
| 16868 | { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || |
| 16869 | { LC_ALL=C; export LC_ALL; } |
| 16870 | (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && |
| 16871 | { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || |
| 16872 | { LC_TIME=C; export LC_TIME; } |
| 16873 | (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && |
| 16874 | { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || |
| 16875 | { LC_CTYPE=C; export LC_CTYPE; } |
| 16876 | (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && |
| 16877 | { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || |
| 16878 | { LANGUAGE=C; export LANGUAGE; } |
| 16879 | (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && |
| 16880 | { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || |
| 16881 | { LC_COLLATE=C; export LC_COLLATE; } |
| 16882 | (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && |
| 16883 | { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || |
| 16884 | { LC_NUMERIC=C; export LC_NUMERIC; } |
| 16885 | (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && |
| 16886 | { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || |
| 16887 | { LC_MESSAGES=C; export LC_MESSAGES; } |
| 16888 | |
| 16889 | |
| 16890 | # Name of the executable. |
| 16891 | as_me=`(basename "$0") 2>/dev/null || |
| 16892 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 16893 | X"$0" : 'X\(//\)$' \| \ |
| 16894 | X"$0" : 'X\(/\)$' \| \ |
| 16895 | . : '\(.\)' 2>/dev/null || |
| 16896 | echo X/"$0" | |
| 16897 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 16898 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 16899 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 16900 | s/.*/./; q'` |
| 16901 | |
| 16902 | # PATH needs CR, and LINENO needs CR and PATH. |
| 16903 | # Avoid depending upon Character Ranges. |
| 16904 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 16905 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 16906 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 16907 | as_cr_digits='0123456789' |
| 16908 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 16909 | |
| 16910 | # The user is always right. |
| 16911 | if test "${PATH_SEPARATOR+set}" != set; then |
| 16912 | echo "#! /bin/sh" >conftest.sh |
| 16913 | echo "exit 0" >>conftest.sh |
| 16914 | chmod +x conftest.sh |
| 16915 | if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then |
| 16916 | PATH_SEPARATOR=';' |
| 16917 | else |
| 16918 | PATH_SEPARATOR=: |
| 16919 | fi |
| 16920 | rm -f conftest.sh |
| 16921 | fi |
| 16922 | |
| 16923 | |
| 16924 | as_lineno_1=$LINENO |
| 16925 | as_lineno_2=$LINENO |
| 16926 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 16927 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 16928 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 16929 | # Find who we are. Look in the path if we contain no path at all |
| 16930 | # relative or not. |
| 16931 | case $0 in |
| 16932 | *[\\/]* ) as_myself=$0 ;; |
| 16933 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16934 | for as_dir in $PATH |
| 16935 | do |
| 16936 | IFS=$as_save_IFS |
| 16937 | test -z "$as_dir" && as_dir=. |
| 16938 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 16939 | done |
| 16940 | |
| 16941 | ;; |
| 16942 | esac |
| 16943 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 16944 | # in which case we are not to be found in the path. |
| 16945 | if test "x$as_myself" = x; then |
| 16946 | as_myself=$0 |
| 16947 | fi |
| 16948 | if test ! -f "$as_myself"; then |
| 16949 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 16950 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 16951 | { (exit 1); exit 1; }; } |
| 16952 | fi |
| 16953 | case $CONFIG_SHELL in |
| 16954 | '') |
| 16955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16956 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 16957 | do |
| 16958 | IFS=$as_save_IFS |
| 16959 | test -z "$as_dir" && as_dir=. |
| 16960 | for as_base in sh bash ksh sh5; do |
| 16961 | case $as_dir in |
| 16962 | /*) |
| 16963 | if ("$as_dir/$as_base" -c ' |
| 16964 | as_lineno_1=$LINENO |
| 16965 | as_lineno_2=$LINENO |
| 16966 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 16967 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 16968 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 16969 | CONFIG_SHELL=$as_dir/$as_base |
| 16970 | export CONFIG_SHELL |
| 16971 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 16972 | fi;; |
| 16973 | esac |
| 16974 | done |
| 16975 | done |
| 16976 | ;; |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 16977 | esac |
| 16978 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 16979 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 16980 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 16981 | # line-number line before each line; the second 'sed' does the real |
| 16982 | # work. The second script uses 'N' to pair each line-number line |
| 16983 | # with the numbered line, and appends trailing '-' during |
| 16984 | # substitution so that $LINENO is not a special case at line end. |
| 16985 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 16986 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 16987 | sed '=' <$as_myself | |
| 16988 | sed ' |
| 16989 | N |
| 16990 | s,$,-, |
| 16991 | : loop |
| 16992 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 16993 | t loop |
| 16994 | s,-$,, |
| 16995 | s,^['$as_cr_digits']*\n,, |
| 16996 | ' >$as_me.lineno && |
| 16997 | chmod +x $as_me.lineno || |
| 16998 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 16999 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 17000 | { (exit 1); exit 1; }; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17001 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17002 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 17003 | # (the dirname of $[0] is not the place where we might find the |
| 17004 | # original and so on. Autoconf is especially sensible to this). |
| 17005 | . ./$as_me.lineno |
| 17006 | # Exit status is that of the last command. |
| 17007 | exit |
| 17008 | } |
| 17009 | |
| 17010 | |
| 17011 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 17012 | *c*,-n*) ECHO_N= ECHO_C=' |
| 17013 | ' ECHO_T=' ' ;; |
| 17014 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 17015 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 17016 | esac |
| 17017 | |
| 17018 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 17019 | as_expr=expr |
| 17020 | else |
| 17021 | as_expr=false |
| 17022 | fi |
| 17023 | |
| 17024 | rm -f conf$$ conf$$.exe conf$$.file |
| 17025 | echo >conf$$.file |
| 17026 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 17027 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 17028 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 17029 | if test -f conf$$.exe; then |
| 17030 | # Don't use ln at all; we don't have any links |
| 17031 | as_ln_s='cp -p' |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17032 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17033 | as_ln_s='ln -s' |
| 17034 | fi |
| 17035 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 17036 | as_ln_s=ln |
| 17037 | else |
| 17038 | as_ln_s='cp -p' |
| 17039 | fi |
| 17040 | rm -f conf$$ conf$$.exe conf$$.file |
| 17041 | |
| 17042 | as_executable_p="test -f" |
| 17043 | |
| 17044 | # Sed expression to map a string onto a valid CPP name. |
| 17045 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 17046 | |
| 17047 | # Sed expression to map a string onto a valid variable name. |
| 17048 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 17049 | |
| 17050 | |
| 17051 | # IFS |
| 17052 | # We need space, tab and new line, in precisely that order. |
| 17053 | as_nl=' |
| 17054 | ' |
| 17055 | IFS=" $as_nl" |
| 17056 | |
| 17057 | # CDPATH. |
| 17058 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } |
| 17059 | |
| 17060 | exec 6>&1 |
| 17061 | |
| 17062 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 17063 | # report actual input values of CONFIG_FILES etc. instead of their |
| 17064 | # values after options handling. Logging --version etc. is OK. |
| 17065 | exec 5>>config.log |
| 17066 | { |
| 17067 | echo |
| 17068 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 17069 | ## Running $as_me. ## |
| 17070 | _ASBOX |
| 17071 | } >&5 |
| 17072 | cat >&5 <<_CSEOF |
| 17073 | |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 17074 | 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] | 17075 | generated by GNU Autoconf 2.53. Invocation command line was |
| 17076 | |
| 17077 | CONFIG_FILES = $CONFIG_FILES |
| 17078 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 17079 | CONFIG_LINKS = $CONFIG_LINKS |
| 17080 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 17081 | $ $0 $@ |
| 17082 | |
| 17083 | _CSEOF |
| 17084 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 17085 | echo >&5 |
| 17086 | _ACEOF |
| 17087 | |
| 17088 | # Files that config.status was made for. |
| 17089 | if test -n "$ac_config_files"; then |
| 17090 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 17091 | fi |
| 17092 | |
| 17093 | if test -n "$ac_config_headers"; then |
| 17094 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 17095 | fi |
| 17096 | |
| 17097 | if test -n "$ac_config_links"; then |
| 17098 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 17099 | fi |
| 17100 | |
| 17101 | if test -n "$ac_config_commands"; then |
| 17102 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 17103 | fi |
| 17104 | |
| 17105 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17106 | |
| 17107 | ac_cs_usage="\ |
| 17108 | \`$as_me' instantiates files from templates according to the |
| 17109 | current configuration. |
| 17110 | |
| 17111 | Usage: $0 [OPTIONS] [FILE]... |
| 17112 | |
| 17113 | -h, --help print this help, then exit |
| 17114 | -V, --version print version number, then exit |
| 17115 | -d, --debug don't remove temporary files |
| 17116 | --recheck update $as_me by reconfiguring in the same conditions |
| 17117 | --file=FILE[:TEMPLATE] |
| 17118 | instantiate the configuration file FILE |
| 17119 | --header=FILE[:TEMPLATE] |
| 17120 | instantiate the configuration header FILE |
| 17121 | |
| 17122 | Configuration files: |
| 17123 | $config_files |
| 17124 | |
| 17125 | Configuration headers: |
| 17126 | $config_headers |
| 17127 | |
| 17128 | Report bugs to <bug-autoconf@gnu.org>." |
| 17129 | _ACEOF |
| 17130 | |
| 17131 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17132 | ac_cs_version="\\ |
Martin v. Löwis | 88afe66 | 2002-10-26 13:47:44 +0000 | [diff] [blame] | 17133 | python config.status 2.3 |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17134 | configured by $0, generated by GNU Autoconf 2.53, |
| 17135 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 17136 | |
| 17137 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 17138 | Free Software Foundation, Inc. |
| 17139 | This config.status script is free software; the Free Software Foundation |
| 17140 | gives unlimited permission to copy, distribute and modify it." |
| 17141 | srcdir=$srcdir |
| 17142 | INSTALL="$INSTALL" |
| 17143 | _ACEOF |
| 17144 | |
| 17145 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17146 | # If no file are specified by the user, then we need to provide default |
| 17147 | # value. By we need to know if files were specified by the user. |
| 17148 | ac_need_defaults=: |
| 17149 | while test $# != 0 |
| 17150 | do |
| 17151 | case $1 in |
| 17152 | --*=*) |
| 17153 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 17154 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 17155 | shift |
| 17156 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} |
| 17157 | shift |
| 17158 | ;; |
| 17159 | -*);; |
| 17160 | *) # This is not an option, so the user has probably given explicit |
| 17161 | # arguments. |
| 17162 | ac_need_defaults=false;; |
| 17163 | esac |
| 17164 | |
| 17165 | case $1 in |
| 17166 | # Handling of the options. |
| 17167 | _ACEOF |
| 17168 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17169 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 17170 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
| 17171 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; |
| 17172 | _ACEOF |
| 17173 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17174 | --version | --vers* | -V ) |
| 17175 | echo "$ac_cs_version"; exit 0 ;; |
| 17176 | --he | --h) |
| 17177 | # Conflict between --help and --header |
| 17178 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 17179 | Try \`$0 --help' for more information." >&5 |
| 17180 | echo "$as_me: error: ambiguous option: $1 |
| 17181 | Try \`$0 --help' for more information." >&2;} |
| 17182 | { (exit 1); exit 1; }; };; |
| 17183 | --help | --hel | -h ) |
| 17184 | echo "$ac_cs_usage"; exit 0 ;; |
| 17185 | --debug | --d* | -d ) |
| 17186 | debug=: ;; |
| 17187 | --file | --fil | --fi | --f ) |
| 17188 | shift |
| 17189 | CONFIG_FILES="$CONFIG_FILES $1" |
| 17190 | ac_need_defaults=false;; |
| 17191 | --header | --heade | --head | --hea ) |
| 17192 | shift |
| 17193 | CONFIG_HEADERS="$CONFIG_HEADERS $1" |
| 17194 | ac_need_defaults=false;; |
| 17195 | |
| 17196 | # This is an error. |
| 17197 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 17198 | Try \`$0 --help' for more information." >&5 |
| 17199 | echo "$as_me: error: unrecognized option: $1 |
| 17200 | Try \`$0 --help' for more information." >&2;} |
| 17201 | { (exit 1); exit 1; }; } ;; |
| 17202 | |
| 17203 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 17204 | |
| 17205 | esac |
| 17206 | shift |
| 17207 | done |
| 17208 | |
| 17209 | _ACEOF |
| 17210 | |
| 17211 | |
| 17212 | |
| 17213 | |
| 17214 | |
| 17215 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17216 | for ac_config_target in $ac_config_targets |
| 17217 | do |
| 17218 | case "$ac_config_target" in |
| 17219 | # Handling of arguments. |
| 17220 | "Makefile.pre" ) CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; |
| 17221 | "Modules/Setup.config" ) CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; |
| 17222 | "pyconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; |
| 17223 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 17224 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 17225 | { (exit 1); exit 1; }; };; |
| 17226 | esac |
| 17227 | done |
| 17228 | |
| 17229 | # If the user did not use the arguments to specify the items to instantiate, |
| 17230 | # then the envvar interface is used. Set only those that are not. |
| 17231 | # We use the long form for the default assignment because of an extremely |
| 17232 | # bizarre bug on SunOS 4.1.3. |
| 17233 | if $ac_need_defaults; then |
| 17234 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 17235 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 17236 | fi |
| 17237 | |
| 17238 | # Create a temporary directory, and hook for its removal unless debugging. |
| 17239 | $debug || |
| 17240 | { |
| 17241 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 17242 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 17243 | } |
| 17244 | |
| 17245 | # Create a (secure) tmp directory for tmp files. |
| 17246 | : ${TMPDIR=/tmp} |
| 17247 | { |
| 17248 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && |
| 17249 | test -n "$tmp" && test -d "$tmp" |
| 17250 | } || |
| 17251 | { |
| 17252 | tmp=$TMPDIR/cs$$-$RANDOM |
| 17253 | (umask 077 && mkdir $tmp) |
| 17254 | } || |
| 17255 | { |
| 17256 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 |
| 17257 | { (exit 1); exit 1; } |
| 17258 | } |
| 17259 | |
| 17260 | _ACEOF |
| 17261 | |
| 17262 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17263 | |
| 17264 | # |
| 17265 | # CONFIG_FILES section. |
| 17266 | # |
| 17267 | |
| 17268 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 17269 | # This happens for instance when ./config.status config.h |
| 17270 | if test -n "\$CONFIG_FILES"; then |
| 17271 | # Protect against being on the right side of a sed subst in config.status. |
| 17272 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 17273 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 17274 | s,@SHELL@,$SHELL,;t t |
| 17275 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 17276 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 17277 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 17278 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 17279 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 17280 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 17281 | s,@exec_prefix@,$exec_prefix,;t t |
| 17282 | s,@prefix@,$prefix,;t t |
| 17283 | s,@program_transform_name@,$program_transform_name,;t t |
| 17284 | s,@bindir@,$bindir,;t t |
| 17285 | s,@sbindir@,$sbindir,;t t |
| 17286 | s,@libexecdir@,$libexecdir,;t t |
| 17287 | s,@datadir@,$datadir,;t t |
| 17288 | s,@sysconfdir@,$sysconfdir,;t t |
| 17289 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 17290 | s,@localstatedir@,$localstatedir,;t t |
| 17291 | s,@libdir@,$libdir,;t t |
| 17292 | s,@includedir@,$includedir,;t t |
| 17293 | s,@oldincludedir@,$oldincludedir,;t t |
| 17294 | s,@infodir@,$infodir,;t t |
| 17295 | s,@mandir@,$mandir,;t t |
| 17296 | s,@build_alias@,$build_alias,;t t |
| 17297 | s,@host_alias@,$host_alias,;t t |
| 17298 | s,@target_alias@,$target_alias,;t t |
| 17299 | s,@DEFS@,$DEFS,;t t |
| 17300 | s,@ECHO_C@,$ECHO_C,;t t |
| 17301 | s,@ECHO_N@,$ECHO_N,;t t |
| 17302 | s,@ECHO_T@,$ECHO_T,;t t |
| 17303 | s,@LIBS@,$LIBS,;t t |
| 17304 | s,@VERSION@,$VERSION,;t t |
| 17305 | s,@SOVERSION@,$SOVERSION,;t t |
| 17306 | s,@CONFIG_ARGS@,$CONFIG_ARGS,;t t |
| 17307 | s,@PYTHONFRAMEWORK@,$PYTHONFRAMEWORK,;t t |
| 17308 | s,@PYTHONFRAMEWORKDIR@,$PYTHONFRAMEWORKDIR,;t t |
| 17309 | s,@PYTHONFRAMEWORKPREFIX@,$PYTHONFRAMEWORKPREFIX,;t t |
| 17310 | s,@PYTHONFRAMEWORKINSTALLDIR@,$PYTHONFRAMEWORKINSTALLDIR,;t t |
| 17311 | s,@MACHDEP@,$MACHDEP,;t t |
| 17312 | s,@SGI_ABI@,$SGI_ABI,;t t |
Jack Jansen | 83f898c | 2002-12-30 22:23:40 +0000 | [diff] [blame^] | 17313 | s,@EXTRAPLATDIR@,$EXTRAPLATDIR,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17314 | s,@CXX@,$CXX,;t t |
| 17315 | s,@MAINOBJ@,$MAINOBJ,;t t |
| 17316 | s,@EXEEXT@,$EXEEXT,;t t |
| 17317 | s,@CC@,$CC,;t t |
| 17318 | s,@CFLAGS@,$CFLAGS,;t t |
| 17319 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 17320 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 17321 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 17322 | s,@OBJEXT@,$OBJEXT,;t t |
| 17323 | s,@CPP@,$CPP,;t t |
| 17324 | s,@BUILDEXEEXT@,$BUILDEXEEXT,;t t |
| 17325 | s,@LIBRARY@,$LIBRARY,;t t |
| 17326 | s,@LDLIBRARY@,$LDLIBRARY,;t t |
| 17327 | s,@DLLLIBRARY@,$DLLLIBRARY,;t t |
| 17328 | s,@BLDLIBRARY@,$BLDLIBRARY,;t t |
| 17329 | s,@LDLIBRARYDIR@,$LDLIBRARYDIR,;t t |
| 17330 | s,@INSTSONAME@,$INSTSONAME,;t t |
| 17331 | s,@RUNSHARED@,$RUNSHARED,;t t |
| 17332 | s,@LINKCC@,$LINKCC,;t t |
| 17333 | s,@RANLIB@,$RANLIB,;t t |
| 17334 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 17335 | s,@AR@,$AR,;t t |
| 17336 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 17337 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 17338 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 17339 | s,@LN@,$LN,;t t |
| 17340 | s,@OPT@,$OPT,;t t |
| 17341 | s,@LIBTOOL_CRUFT@,$LIBTOOL_CRUFT,;t t |
| 17342 | s,@SO@,$SO,;t t |
| 17343 | s,@LDSHARED@,$LDSHARED,;t t |
| 17344 | s,@BLDSHARED@,$BLDSHARED,;t t |
| 17345 | s,@CCSHARED@,$CCSHARED,;t t |
| 17346 | s,@LINKFORSHARED@,$LINKFORSHARED,;t t |
| 17347 | s,@CFLAGSFORSHARED@,$CFLAGSFORSHARED,;t t |
Martin v. Löwis | f90ae20 | 2002-06-11 06:22:31 +0000 | [diff] [blame] | 17348 | s,@SHLIBS@,$SHLIBS,;t t |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17349 | s,@USE_SIGNAL_MODULE@,$USE_SIGNAL_MODULE,;t t |
| 17350 | s,@SIGNAL_OBJS@,$SIGNAL_OBJS,;t t |
| 17351 | s,@USE_THREAD_MODULE@,$USE_THREAD_MODULE,;t t |
| 17352 | s,@LDLAST@,$LDLAST,;t t |
| 17353 | s,@THREADOBJ@,$THREADOBJ,;t t |
| 17354 | s,@DLINCLDIR@,$DLINCLDIR,;t t |
| 17355 | s,@DYNLOADFILE@,$DYNLOADFILE,;t t |
| 17356 | s,@MACHDEP_OBJS@,$MACHDEP_OBJS,;t t |
| 17357 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 17358 | s,@HAVE_GETHOSTBYNAME_R_6_ARG@,$HAVE_GETHOSTBYNAME_R_6_ARG,;t t |
| 17359 | s,@HAVE_GETHOSTBYNAME_R_5_ARG@,$HAVE_GETHOSTBYNAME_R_5_ARG,;t t |
| 17360 | s,@HAVE_GETHOSTBYNAME_R_3_ARG@,$HAVE_GETHOSTBYNAME_R_3_ARG,;t t |
| 17361 | s,@HAVE_GETHOSTBYNAME_R@,$HAVE_GETHOSTBYNAME_R,;t t |
| 17362 | s,@HAVE_GETHOSTBYNAME@,$HAVE_GETHOSTBYNAME,;t t |
| 17363 | s,@LIBM@,$LIBM,;t t |
| 17364 | s,@LIBC@,$LIBC,;t t |
| 17365 | s,@UNICODE_OBJS@,$UNICODE_OBJS,;t t |
| 17366 | s,@THREADHEADERS@,$THREADHEADERS,;t t |
| 17367 | s,@SRCDIRS@,$SRCDIRS,;t t |
| 17368 | CEOF |
| 17369 | |
| 17370 | _ACEOF |
| 17371 | |
| 17372 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17373 | # Split the substitutions into bite-sized pieces for seds with |
| 17374 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 17375 | ac_max_sed_lines=48 |
| 17376 | ac_sed_frag=1 # Number of current file. |
| 17377 | ac_beg=1 # First line for current file. |
| 17378 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 17379 | ac_more_lines=: |
| 17380 | ac_sed_cmds= |
| 17381 | while $ac_more_lines; do |
| 17382 | if test $ac_beg -gt 1; then |
| 17383 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 17384 | else |
| 17385 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 17386 | fi |
| 17387 | if test ! -s $tmp/subs.frag; then |
| 17388 | ac_more_lines=false |
| 17389 | else |
| 17390 | # The purpose of the label and of the branching condition is to |
| 17391 | # speed up the sed processing (if there are no `@' at all, there |
| 17392 | # is no need to browse any of the substitutions). |
| 17393 | # These are the two extra sed commands mentioned above. |
| 17394 | (echo ':t |
| 17395 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 17396 | if test -z "$ac_sed_cmds"; then |
| 17397 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 17398 | else |
| 17399 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 17400 | fi |
| 17401 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 17402 | ac_beg=$ac_end |
| 17403 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 17404 | fi |
| 17405 | done |
| 17406 | if test -z "$ac_sed_cmds"; then |
| 17407 | ac_sed_cmds=cat |
| 17408 | fi |
| 17409 | fi # test -n "$CONFIG_FILES" |
| 17410 | |
| 17411 | _ACEOF |
| 17412 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17413 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 17414 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 17415 | case $ac_file in |
| 17416 | - | *:- | *:-:* ) # input from stdin |
| 17417 | cat >$tmp/stdin |
| 17418 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17419 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17420 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17421 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17422 | * ) ac_file_in=$ac_file.in ;; |
| 17423 | esac |
| 17424 | |
| 17425 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 17426 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 17427 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17428 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 17429 | X"$ac_file" : 'X\(//\)$' \| \ |
| 17430 | X"$ac_file" : 'X\(/\)' \| \ |
| 17431 | . : '\(.\)' 2>/dev/null || |
| 17432 | echo X"$ac_file" | |
| 17433 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 17434 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 17435 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 17436 | /^X\(\/\).*/{ s//\1/; q; } |
| 17437 | s/.*/./; q'` |
| 17438 | { case "$ac_dir" in |
| 17439 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 17440 | *) as_incr_dir=.;; |
| 17441 | esac |
| 17442 | as_dummy="$ac_dir" |
| 17443 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 17444 | case $as_mkdir_dir in |
| 17445 | # Skip DOS drivespec |
| 17446 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 17447 | *) |
| 17448 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 17449 | test -d "$as_incr_dir" || |
| 17450 | mkdir "$as_incr_dir" || |
| 17451 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 17452 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 17453 | { (exit 1); exit 1; }; } |
| 17454 | ;; |
| 17455 | esac |
| 17456 | done; } |
| 17457 | |
| 17458 | ac_builddir=. |
| 17459 | |
| 17460 | if test "$ac_dir" != .; then |
| 17461 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 17462 | # A "../" for each directory in $ac_dir_suffix. |
| 17463 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 17464 | else |
| 17465 | ac_dir_suffix= ac_top_builddir= |
| 17466 | fi |
| 17467 | |
| 17468 | case $srcdir in |
| 17469 | .) # No --srcdir option. We are building in place. |
| 17470 | ac_srcdir=. |
| 17471 | if test -z "$ac_top_builddir"; then |
| 17472 | ac_top_srcdir=. |
| 17473 | else |
| 17474 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 17475 | fi ;; |
| 17476 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 17477 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 17478 | ac_top_srcdir=$srcdir ;; |
| 17479 | *) # Relative path. |
| 17480 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 17481 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 17482 | esac |
| 17483 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 17484 | # absolute. |
| 17485 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
Guido van Rossum | faf5e4d | 2002-12-30 16:25:41 +0000 | [diff] [blame] | 17486 | 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] | 17487 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 17488 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 17489 | |
| 17490 | |
| 17491 | case $INSTALL in |
| 17492 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 17493 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 17494 | esac |
| 17495 | |
| 17496 | if test x"$ac_file" != x-; then |
| 17497 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 17498 | echo "$as_me: creating $ac_file" >&6;} |
| 17499 | rm -f "$ac_file" |
| 17500 | fi |
| 17501 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 17502 | # use $as_me), people would be surprised to read: |
| 17503 | # /* config.h. Generated by config.status. */ |
| 17504 | if test x"$ac_file" = x-; then |
| 17505 | configure_input= |
| 17506 | else |
| 17507 | configure_input="$ac_file. " |
| 17508 | fi |
| 17509 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 17510 | sed 's,.*/,,'` by configure." |
| 17511 | |
| 17512 | # First look for the input files in the build tree, otherwise in the |
| 17513 | # src tree. |
| 17514 | ac_file_inputs=`IFS=: |
| 17515 | for f in $ac_file_in; do |
| 17516 | case $f in |
| 17517 | -) echo $tmp/stdin ;; |
| 17518 | [\\/$]*) |
| 17519 | # Absolute (can't be DOS-style, as IFS=:) |
| 17520 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 17521 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17522 | { (exit 1); exit 1; }; } |
| 17523 | echo $f;; |
| 17524 | *) # Relative |
| 17525 | if test -f "$f"; then |
| 17526 | # Build tree |
| 17527 | echo $f |
| 17528 | elif test -f "$srcdir/$f"; then |
| 17529 | # Source tree |
| 17530 | echo $srcdir/$f |
| 17531 | else |
| 17532 | # /dev/null tree |
| 17533 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 17534 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17535 | { (exit 1); exit 1; }; } |
| 17536 | fi;; |
| 17537 | esac |
| 17538 | done` || { (exit 1); exit 1; } |
| 17539 | _ACEOF |
| 17540 | cat >>$CONFIG_STATUS <<_ACEOF |
| 17541 | sed "$ac_vpsub |
| 17542 | $extrasub |
| 17543 | _ACEOF |
| 17544 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17545 | :t |
| 17546 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 17547 | s,@configure_input@,$configure_input,;t t |
| 17548 | s,@srcdir@,$ac_srcdir,;t t |
| 17549 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 17550 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 17551 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 17552 | s,@builddir@,$ac_builddir,;t t |
| 17553 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 17554 | s,@top_builddir@,$ac_top_builddir,;t t |
| 17555 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 17556 | s,@INSTALL@,$ac_INSTALL,;t t |
| 17557 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 17558 | rm -f $tmp/stdin |
| 17559 | if test x"$ac_file" != x-; then |
| 17560 | mv $tmp/out $ac_file |
| 17561 | else |
| 17562 | cat $tmp/out |
| 17563 | rm -f $tmp/out |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17564 | fi |
| 17565 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17566 | done |
| 17567 | _ACEOF |
| 17568 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17569 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17570 | # |
| 17571 | # CONFIG_HEADER section. |
| 17572 | # |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17573 | |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17574 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 17575 | # 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] | 17576 | # |
| 17577 | # ac_d sets the value in "#define NAME VALUE" lines. |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17578 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 17579 | ac_dB='[ ].*$,\1#\2' |
| 17580 | ac_dC=' ' |
| 17581 | ac_dD=',;t' |
| 17582 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 17583 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 17584 | ac_uB='$,\1#\2define\3' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17585 | ac_uC=' ' |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17586 | ac_uD=',;t' |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17587 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17588 | 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] | 17589 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17590 | case $ac_file in |
| 17591 | - | *:- | *:-:* ) # input from stdin |
| 17592 | cat >$tmp/stdin |
| 17593 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17594 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17595 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 17596 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 17597 | * ) ac_file_in=$ac_file.in ;; |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17598 | esac |
| 17599 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17600 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 17601 | echo "$as_me: creating $ac_file" >&6;} |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17602 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17603 | # First look for the input files in the build tree, otherwise in the |
| 17604 | # src tree. |
| 17605 | ac_file_inputs=`IFS=: |
| 17606 | for f in $ac_file_in; do |
| 17607 | case $f in |
| 17608 | -) echo $tmp/stdin ;; |
| 17609 | [\\/$]*) |
| 17610 | # Absolute (can't be DOS-style, as IFS=:) |
| 17611 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 17612 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17613 | { (exit 1); exit 1; }; } |
| 17614 | echo $f;; |
| 17615 | *) # Relative |
| 17616 | if test -f "$f"; then |
| 17617 | # Build tree |
| 17618 | echo $f |
| 17619 | elif test -f "$srcdir/$f"; then |
| 17620 | # Source tree |
| 17621 | echo $srcdir/$f |
| 17622 | else |
| 17623 | # /dev/null tree |
| 17624 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 17625 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 17626 | { (exit 1); exit 1; }; } |
| 17627 | fi;; |
| 17628 | esac |
| 17629 | done` || { (exit 1); exit 1; } |
| 17630 | # Remove the trailing spaces. |
| 17631 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17632 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17633 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17634 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17635 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 17636 | # `conftest.undefs', that substitutes the proper values into |
| 17637 | # config.h.in to produce config.h. The first handles `#define' |
| 17638 | # templates, and the second `#undef' templates. |
| 17639 | # And first: Protect against being on the right side of a sed subst in |
| 17640 | # config.status. Protect against being in an unquoted here document |
| 17641 | # in config.status. |
| 17642 | rm -f conftest.defines conftest.undefs |
| 17643 | # Using a here document instead of a string reduces the quoting nightmare. |
| 17644 | # Putting comments in sed scripts is not portable. |
| 17645 | # |
| 17646 | # `end' is used to avoid that the second main sed command (meant for |
| 17647 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 17648 | # See the Autoconf documentation for `clear'. |
| 17649 | cat >confdef2sed.sed <<\_ACEOF |
| 17650 | s/[\\&,]/\\&/g |
| 17651 | s,[\\$`],\\&,g |
| 17652 | t clear |
| 17653 | : clear |
| 17654 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 17655 | t end |
| 17656 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 17657 | : end |
| 17658 | _ACEOF |
| 17659 | # If some macros were called several times there might be several times |
| 17660 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 17661 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 17662 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 17663 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 17664 | rm -f confdef2sed.sed |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17665 | |
| 17666 | # This sed command replaces #undef with comments. This is necessary, for |
| 17667 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 17668 | # 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] | 17669 | cat >>conftest.undefs <<\_ACEOF |
| 17670 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 17671 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17672 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17673 | # Break up conftest.defines because some shells have a limit on the size |
| 17674 | # of here documents, and old seds have small limits too (100 cmds). |
| 17675 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 17676 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 17677 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 17678 | echo ' :' >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17679 | rm -f conftest.tail |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17680 | while grep . conftest.defines >/dev/null |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17681 | do |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17682 | # Write a limited-size here document to $tmp/defines.sed. |
| 17683 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 17684 | # Speed up: don't consider the non `#define' lines. |
| 17685 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 17686 | # Work around the forget-to-reset-the-flag bug. |
| 17687 | echo 't clr' >>$CONFIG_STATUS |
| 17688 | echo ': clr' >>$CONFIG_STATUS |
| 17689 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17690 | echo 'CEOF |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17691 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 17692 | rm -f $tmp/in |
| 17693 | mv $tmp/out $tmp/in |
| 17694 | ' >>$CONFIG_STATUS |
| 17695 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 17696 | rm -f conftest.defines |
| 17697 | mv conftest.tail conftest.defines |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17698 | done |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17699 | rm -f conftest.defines |
| 17700 | echo ' fi # egrep' >>$CONFIG_STATUS |
| 17701 | echo >>$CONFIG_STATUS |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17702 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17703 | # Break up conftest.undefs because some shells have a limit on the size |
| 17704 | # of here documents, and old seds have small limits too (100 cmds). |
| 17705 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 17706 | rm -f conftest.tail |
| 17707 | while grep . conftest.undefs >/dev/null |
| 17708 | do |
| 17709 | # Write a limited-size here document to $tmp/undefs.sed. |
| 17710 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 17711 | # Speed up: don't consider the non `#undef' |
| 17712 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 17713 | # Work around the forget-to-reset-the-flag bug. |
| 17714 | echo 't clr' >>$CONFIG_STATUS |
| 17715 | echo ': clr' >>$CONFIG_STATUS |
| 17716 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 17717 | echo 'CEOF |
| 17718 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 17719 | rm -f $tmp/in |
| 17720 | mv $tmp/out $tmp/in |
| 17721 | ' >>$CONFIG_STATUS |
| 17722 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 17723 | rm -f conftest.undefs |
| 17724 | mv conftest.tail conftest.undefs |
| 17725 | done |
| 17726 | rm -f conftest.undefs |
| 17727 | |
| 17728 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 17729 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 17730 | # use $as_me), people would be surprised to read: |
| 17731 | # /* config.h. Generated by config.status. */ |
| 17732 | if test x"$ac_file" = x-; then |
| 17733 | echo "/* Generated by configure. */" >$tmp/config.h |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17734 | else |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17735 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
Jack Jansen | dd19cf8 | 2001-12-06 22:36:17 +0000 | [diff] [blame] | 17736 | fi |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17737 | cat $tmp/in >>$tmp/config.h |
| 17738 | rm -f $tmp/in |
| 17739 | if test x"$ac_file" != x-; then |
| 17740 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then |
| 17741 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 17742 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 17743 | else |
| 17744 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 17745 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 17746 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 17747 | X"$ac_file" : 'X\(//\)$' \| \ |
| 17748 | X"$ac_file" : 'X\(/\)' \| \ |
| 17749 | . : '\(.\)' 2>/dev/null || |
| 17750 | echo X"$ac_file" | |
| 17751 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 17752 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 17753 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 17754 | /^X\(\/\).*/{ s//\1/; q; } |
| 17755 | s/.*/./; q'` |
| 17756 | { case "$ac_dir" in |
| 17757 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; |
| 17758 | *) as_incr_dir=.;; |
| 17759 | esac |
| 17760 | as_dummy="$ac_dir" |
| 17761 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do |
| 17762 | case $as_mkdir_dir in |
| 17763 | # Skip DOS drivespec |
| 17764 | ?:) as_incr_dir=$as_mkdir_dir ;; |
| 17765 | *) |
| 17766 | as_incr_dir=$as_incr_dir/$as_mkdir_dir |
| 17767 | test -d "$as_incr_dir" || |
| 17768 | mkdir "$as_incr_dir" || |
| 17769 | { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 |
| 17770 | echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} |
| 17771 | { (exit 1); exit 1; }; } |
| 17772 | ;; |
| 17773 | esac |
| 17774 | done; } |
Michael W. Hudson | 5424113 | 2001-12-07 15:38:26 +0000 | [diff] [blame] | 17775 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17776 | rm -f $ac_file |
| 17777 | mv $tmp/config.h $ac_file |
| 17778 | fi |
| 17779 | else |
| 17780 | cat $tmp/config.h |
| 17781 | rm -f $tmp/config.h |
| 17782 | fi |
| 17783 | done |
| 17784 | _ACEOF |
Guido van Rossum | 7f43da7 | 1994-08-01 12:15:30 +0000 | [diff] [blame] | 17785 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17786 | cat >>$CONFIG_STATUS <<\_ACEOF |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17787 | |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17788 | { (exit 0); exit 0; } |
| 17789 | _ACEOF |
Guido van Rossum | 76be6ed | 1995-01-02 18:33:54 +0000 | [diff] [blame] | 17790 | chmod +x $CONFIG_STATUS |
Martin v. Löwis | 1143799 | 2002-04-12 09:54:03 +0000 | [diff] [blame] | 17791 | ac_clean_files=$ac_clean_files_save |
| 17792 | |
| 17793 | |
| 17794 | # configure is writing to config.log, and then calls config.status. |
| 17795 | # config.status does its own redirection, appending to config.log. |
| 17796 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 17797 | # by configure, so config.status won't be able to write to it; its |
| 17798 | # output is simply discarded. So we exec the FD to /dev/null, |
| 17799 | # effectively closing config.log, so it can be properly (re)opened and |
| 17800 | # appended to by config.status. When coming back to configure, we |
| 17801 | # need to make the FD available again. |
| 17802 | if test "$no_create" != yes; then |
| 17803 | ac_cs_success=: |
| 17804 | exec 5>/dev/null |
| 17805 | $SHELL $CONFIG_STATUS || ac_cs_success=false |
| 17806 | exec 5>>config.log |
| 17807 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 17808 | # would make configure fail if this is the last instruction. |
| 17809 | $ac_cs_success || { (exit 1); exit 1; } |
| 17810 | fi |
Guido van Rossum | 627b2d7 | 1993-12-24 10:39:16 +0000 | [diff] [blame] | 17811 | |
Neil Schemenauer | 3ecf0aa | 2001-01-26 16:15:20 +0000 | [diff] [blame] | 17812 | |
| 17813 | echo "creating Setup" |
| 17814 | if test ! -f Modules/Setup |
| 17815 | then |
| 17816 | cp $srcdir/Modules/Setup.dist Modules/Setup |
| 17817 | fi |
| 17818 | |
| 17819 | echo "creating Setup.local" |
| 17820 | if test ! -f Modules/Setup.local |
| 17821 | then |
| 17822 | echo "# Edit this file for local setup changes" >Modules/Setup.local |
| 17823 | fi |
| 17824 | |
| 17825 | echo "creating Makefile" |
| 17826 | $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ |
| 17827 | -s Modules Modules/Setup.config \ |
Neil Schemenauer | f8b71c5 | 2001-04-21 17:41:16 +0000 | [diff] [blame] | 17828 | Modules/Setup.local Modules/Setup |
Neil Schemenauer | c761fc8 | 2001-02-19 04:50:49 +0000 | [diff] [blame] | 17829 | mv config.c Modules |